Method and device for automatically discovering and adjusting unbalanced online user traffic of a BRAS device
Through online analysis and automatic adjustment, the problem of unbalanced user traffic in BRAS devices is solved, and automatic balanced adjustment of traffic and network stability is achieved.
Patent Information
- Application Number
- CN202211616380.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2042-12-15
AI Technical Summary
The prior art is difficult to effectively solve the situation of uneven user traffic in BRAS devices, especially when the link traffic is uneven, the lack of automatic alarm and balanced processing mechanisms.
By analyzing the traffic situation of paired BRAS devices online, identifying hidden dangers of unbalanced traffic, and automatically adjusting access users according to the service access strategy to achieve traffic equalization. Each step of adjustment operation adopts atomic capability, is scalable, and supports multiple adjustment strategies.
It realizes automatic balance adjustment of user traffic in BRAS equipment, improves network stability and efficiency, can effectively deal with traffic imbalance and be scalable.
Smart Images

Figure CN115987897B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention generally relate to the field of communication technologies, and particularly to a method and device for automatically discovering and adjusting unbalanced online user traffic of a BRAS device. Background Art
[0002] Currently, user terminals mainly access the network through a BRAS. And with the development of Internet technologies, in order to avoid excessive access requests from user terminals that a BRAS needs to process, usually two BRASs are deployed in the network. These two BRASs process access requests from different types of user terminals according to a pre-set load balancing strategy to achieve load balancing.
[0003] For the sake of convenience of description, the two BRASs are respectively referred to as the first BRAS and the second BRAS. For any user terminal, when the user terminal needs to access the network, both the first BRAS and the second BRAS receive the access request sent by the user terminal. The first BRAS and the second BRAS respectively determine the last bit of the Media Access Control (MAC) address of the user terminal, where the MAC address is recorded in binary. For the first BRAS, if the last bit of the MAC address of the user terminal is an odd number 1, it immediately responds to the access request of the user terminal so that the user terminal accesses the network through the first BRAS. For the second BRAS, if the last bit of the MAC address of the user terminal is an even number 0, it immediately responds to the access request of the user terminal so that the user terminal accesses the network through the second BRAS. That is to say, the related technology formulates a load balancing strategy based on the parity characteristics of the last bit of the MAC address of the user terminal.
[0004] For example, in the patent "Method, Device and Storage Medium for Determining a Load Balancing Strategy (Application No.: CN201811044541.9)": Multiple MAC addresses are obtained, and according to the multiple MAC addresses, a classification rule for dividing the multiple MAC addresses into N categories is determined. A load balancing strategy for the first BRAS is determined according to the classification rule, and the load balancing strategy of the first BRAS is sent to the first BRAS. This solution improves the flexibility of the determined load balancing strategy, but does not solve the problems of alarm and balancing processing for unbalanced link traffic situations. Summary of the Invention
[0005] To solve the above problems, the present invention supports the analysis of the balance of the number of online users of paired BRASs and the identification of potential hazards. According to the service access strategy, corresponding operation methods are adopted to achieve the automatic balance adjustment of the accessing users. Moreover, each adjustment operation adopts an atomic capability method and has scalability. For example, if it is found that the balance is still not achieved after the adjustment, secondary adjustment can be performed according to the strategy.
[0006] According to an embodiment of the present invention, there is provided a method and apparatus for automatically discovering and adjusting the uneven traffic of online users in a BRAS device.
[0007] In the first aspect of the present invention, there is provided a method for automatically discovering and adjusting the uneven traffic of online users in a BRAS device. The method includes:
[0008] S01: Obtain the corresponding relationships of the master device, standby device, master device port, and standby device port in all pairs of devices to be inspected in the network management system;
[0009] S02: Check whether there is uneven traffic in the pair of devices. If the traffic is balanced, no adjustment is made;
[0010] S03: If the traffic is uneven, an alarm is given. If the traffic is uneven, log in to the corresponding device for BARS balancing processing. If it is link expansion, no adjustment is made;
[0011] S04: Log in to the device again after a period of time after the balancing process for post-adjustment inspection.
[0012] Further, the step of checking whether there is uneven traffic in the pair of devices in S02 is:
[0013] S021: The user sets a time length in the system and queries the utilization rate of the corresponding ports of the pair of devices in the ES within this time length;
[0014] S022: Among the port traffic utilization rates of all master devices and the port traffic utilization rates of standby devices, take the port with the highest traffic utilization rate on one side and the collection time as the reference device Adev, reference port Aport, reference time T, and reference traffic utilization rate Aflux;
[0015] S023: According to the corresponding relationships of the master device, standby device, master device port, and standby device port in the pair of devices, query the corresponding peer port Bport of the reference port of the reference device and the traffic utilization rate Bflux of the peer port at the reference time T;
[0016] S024: If Aflux is less than 50% and Bflux is less than 50% and |Aflux - Bflux| is greater than or equal to 20%, an alarm for uneven link traffic is given; if Aflux is greater than 50% or Bflux is greater than 50%, an alarm for uneven link traffic is given; if Aflux is greater than or equal to 50% and Bflux is greater than or equal to 50%, an alarm for link expansion is given; otherwise, no alarm is given.
[0017] Further, the steps of the BARS balancing processing in S03 are:
[0018] S031: Obtain the number of sub-interfaces UserN that can be adjusted for each device set by the user in the network management system;
[0019] S032: Log in to the reference device Adev and query the broadband user sub-interfaces under all reference ports Aport;
[0020] S033: Determine whether the number of broadband user sub-interfaces exceeds the adjustable number of sub-interfaces UserN. If the number does not exceed, all broadband user sub-interfaces are used as the adjusted sub-interfaces. If the number exceeds, query the number of online users for each broadband user sub-interface, sort the user online numbers from high to low, and take the first UserN sub-interfaces as the adjusted sub-interfaces;
[0021] S034: Calculate the sub-interfaces that need to be adjusted at the opposite end according to the principle that the VlanIDs of paired sub-interfaces are the same and the corresponding relationship of the physical ports of paired ports;
[0022] S035: Log in to the opposite-end device Bdev to adjust the sub-interfaces and delete the delay configuration;
[0023] S036: Log in to the reference device Adev to adjust the sub-interfaces, perform delay configuration, and kick off the users who exceed the limit.
[0024] Further, the steps of the post-adjustment check in S04 are as follows:
[0025] S041: Log in to the reference device Adev and query the traffic utilization rate F of the main interface corresponding to the adjusted sub-interfaces in real time;
[0026] S042: Log in to the opposite-end device Bdev and query the traffic utilization rate F' of the main interface corresponding to the adjusted sub-interfaces in real time;
[0027] S043: Obtain the threshold M of the traffic utilization rate difference of the paired ports after adjustment configured by the user in the network management system;
[0028] S044: Check whether the traffic utilization rate differences of all adjusted paired ports are within M%. If the traffic utilization rate differences are all within M%, the balancing is successful;
[0029] S045: If the traffic utilization rate differences are not all within M%, the balancing fails. Determine whether a multiple adjustment strategy is set. If not, end and return a balancing failure message;
[0030] S046: If a multiple adjustment strategy is set, perform the BARS balancing adjustment again according to the adjustment strategy.
[0031] Further, the number of times of the adjustment strategy is set by the staff.
[0032] In the second aspect of the present invention, there is provided a device for automatically discovering and adjusting the unbalanced online user traffic of a BRAS device. The device includes:
[0033] An acquisition module: configured to acquire the corresponding relationships of the master device, standby device, master device port, and standby device port in all pairs of devices to be inspected in the network management system;
[0034] A traffic inspection module: configured to check whether there is unbalanced traffic in the pair of devices. If the traffic is balanced, no adjustment is made;
[0035] An alarm module: configured to give an alarm if the traffic is unbalanced, log in to the corresponding device for BARS balancing processing if the traffic is unbalanced, and not make any adjustment if it is a link expansion;
[0036] An adjustment inspection module: configured to log in to the device again after a period of time after the balancing process for post-adjustment inspection.
[0037] Further, the traffic inspection module further includes:
[0038] A utilization rate query module: configured to allow the user to set a time length in the system and query the utilization rate at time points of the corresponding ports of the pair of devices within this time length from the ES;
[0039] A reference device determination module: configured to select the port with the highest traffic utilization rate, the acquisition time, as the reference device Adev, reference port Aport, reference time T, and reference traffic utilization rate Aflux from among the port traffic utilization rates of all master devices and the port traffic utilization rates of standby devices;
[0040] A peer port determination module: configured to query the peer port Bport corresponding to the reference port of the reference device and the traffic utilization rate Bflux of the peer port at the reference time T according to the corresponding relationships of the master device, standby device, master device port, and standby device port in the pair of devices;
[0041] An alarm judgment module: configured to give an alarm for unbalanced link traffic if Aflux is less than 50%, Bflux is less than 50%, and |Aflux - Bflux| is greater than or equal to 20%; give an alarm for unbalanced link traffic if Aflux is greater than 50% or Bflux is greater than 50%; give an alarm for link expansion if Aflux is greater than or equal to 50% and Bflux is greater than or equal to 50%; otherwise, no alarm is given.
[0042] Further, the alarm module further includes:
[0043] A sub-interface number acquisition module: configured to acquire the number of adjustable sub-interfaces UserN of each device set by the user in the network management system;
[0044] Broadband user sub-interface query module: used to log in to the reference device Adev and query the broadband user sub-interfaces under all reference ports Aport;
[0045] Quantity judgment module: used to judge whether the number of broadband user sub-interfaces exceeds the adjustable number of sub-interfaces UserN. If the number does not exceed, all broadband user sub-interfaces are used as adjustable sub-interfaces; if the number exceeds, the number of online users of each broadband user sub-interface is queried and sorted from high to low, and the first UserN sub-interfaces are taken as adjustable sub-interfaces;
[0046] Calculation module: used to calculate the sub-interfaces that need to be adjusted at the opposite end according to the principle that the VlanIDs of paired sub-interfaces are the same and the corresponding relationship of the physical ports of paired ports;
[0047] Opposite-end sub-interface adjustment module: used to log in to the opposite-end device Bdev to adjust the sub-interfaces and delete the delay configuration;
[0048] Reference device sub-interface module: used to log in to the reference device Adev to adjust the sub-interfaces, perform delay configuration, and kick offline the users who exceed the limit.
[0049] Furthermore, the adjustment check module further includes:
[0050] Reference device traffic utilization rate query module: used to log in to the reference device Adev and query the traffic utilization rate F of the main interface corresponding to the adjusted sub-interfaces in real time;
[0051] Opposite-end device traffic utilization rate query module: used to log in to the opposite-end device Bdev and query the traffic utilization rate F' of the main interface corresponding to the adjusted sub-interfaces in real time;
[0052] Traffic utilization rate difference threshold acquisition module: used to acquire the traffic utilization rate difference threshold M configured by the user in the network management system;
[0053] Traffic utilization rate difference judgment module: used to check whether the traffic utilization rate differences of all adjusted paired ports are within M%. If the traffic utilization rate differences are all within M%, the balancing is successful;
[0054] Adjustment strategy setting judgment module: used to, if the traffic utilization rate differences are not all within M%, the balancing fails, judge whether a multiple adjustment strategy is set. If not, end and return a balancing failure message; if a multiple adjustment strategy is set, re-perform BARS balancing adjustment according to the adjustment strategy.
[0055] Furthermore, the number of times of the adjustment strategy is set by the staff.
[0056] The above-mentioned English abbreviation interpretations:
[0057] BARS: Broadband Remote Access Server, a broadband remote access server
[0058] ES: Elastic Search, a distributed full-text search engine
[0059] VlanID: Local Area Network identifier
[0060] The present invention supports the analysis of the balance of the number of online users of paired BRASs and the identification of potential hazards. According to the service access policy, corresponding operation methods are adopted to achieve the automatic balance adjustment of the accessed users, and each adjustment operation adopts the atomic capability method, with scalability. For example, if it is found that the balance is still not achieved after the adjustment, secondary adjustment can be carried out according to the policy.
[0061] It should be understood that the content described in the section of the invention content is not intended to limit the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In combination with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages, and aspects of the embodiments of the present invention will become more obvious. Among them:
[0063] Figure 1 Shows a flowchart of a method for automatically detecting and adjusting the imbalance of the online user traffic of a BRAS device according to an embodiment of the present invention;
[0064] Figure 2 Shows a block diagram of a device for automatically detecting and adjusting the imbalance of the online user traffic of a BRAS device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0065] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0066] According to an embodiment of the present invention, a method and device for automatically discovering and adjusting the imbalance of online user traffic in a BRAS device are proposed, which support the analysis of the balance of the number of paired BRAS online users and the identification of potential hazards. According to the service access policy, corresponding operation methods are adopted to achieve the automatic balance adjustment of the accessed users, and each adjustment operation adopts the atomic capability method, with scalability. For example, if it is found that the balance is still not achieved after the adjustment, secondary adjustment can be carried out according to the policy.
[0067] The following elaborates on the principles and spirit of the present invention in detail with reference to several representative embodiments of the present invention.
[0068] Figure 1 It is a schematic flowchart of a method for automatically discovering and adjusting the imbalance of online user traffic in a BRAS device according to an embodiment of the present invention. The method includes:
[0069] S01: Obtain the corresponding relationships of the master device, standby device, master device port, and standby device port in all pairs of devices to be inspected in the network management system;
[0070] S02: Check whether there is a situation of unbalanced traffic in the paired devices. If the traffic is balanced, no adjustment is made;
[0071] S03: If the traffic is unbalanced, an alarm is issued. If the traffic is unbalanced, log in to the corresponding device for BARS balance processing. If it is for link expansion, no adjustment is made;
[0072] S04: Log in to the device again after a period of time after the balance processing for post-adjustment inspection.
[0073] It should be noted that although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution.
[0074] In order to more clearly explain the above method for automatically discovering and adjusting the imbalance of online user traffic in a BRAS device, the following is illustrated with a specific embodiment. However, it should be noted that this embodiment is only for better explaining the present invention and does not constitute an improper limitation of the present invention.
[0075] The following further illustrates the method for automatically discovering and adjusting the imbalance of online user traffic in a BRAS device in more detail with a specific example:
[0076] The network management system stores information about paired BRAS devices and corresponding ports, as shown in Table 1:
[0077] Table 1
[0078] Primary device IP Primary BNG port Standby device IP Standby BNG port 120.196.46.248 10GE3 / 0 / 3 120.196.46.249 10GE4 / 0 / 3 120.196.46.248 10GE3 / 0 / 4 120.196.46.249 10GE4 / 0 / 4 120.196.50.248 10GE3 / 1 / 0 120.196.50.249 10GE3 / 1 / 10 120.196.50.248 10GE3 / 1 / 1 120.196.50.249 10GE3 / 1 / 2 120.196.50.248 10GE3 / 1 / 4 120.196.50.249 10GE3 / 1 / 5
[0079] If the user configures N as 3 in the network management system in advance, each pair of paired devices regularly queries the primary and standby ports of the paired devices from the ES, and the traffic utilization rate within the range of the first 3 days.
[0080] From the traffic utilization rates of the primary and standby ports, select the port on the highest side and the collection time as the reference device Adev: 120.196.46.248, the reference port Aport: 10GE3 / 0 / 3, the reference time T: 20221201222500, and the reference traffic utilization rate Aflux: 49%.
[0081] Query the traffic utilization rate Bflux: 20% of the opposite port Bport: 10GE4 / 0 / 3 of the device 120.196.50.249 at the reference time T.
[0082] Aflux is less than 50%, Bflux is less than 50%, |Aflux - Bflux| = 29% is greater than 20%, a link imbalance alarm is generated. After all ports are processed, group by the device corresponding to the reference port + alarm type. For the same alarm type, each device only sends one alarm, and the alarm parameter respara is all the reference ports of the device, separated by commas.
[0083] Perform BRAS balancing processing on the link imbalance alarm:
[0084] Obtain the number of adjustable sub-interfaces UserN: 2 set by the user for each device in the network management system 。
[0085] Log in to the reference device Adev: 120.196.46.248, and query the broadband user sub-ports under all reference ports Aport, as shown in Table 2:
[0086] Table 2
[0087]
[0088]
[0089] If the number of all broadband user sub-ports exceeds the number of adjustable sub-interfaces UserN, query the number of online users of each broadband user sub-interface in turn, sort them from high to low according to the number of online users, and select the first UserN sub-interfaces as the adjusted sub-interfaces;
[0090] Calculate the sub-interfaces that need to be adjusted on the peer device according to the principle that the VlanIDs of paired sub-interfaces are the same and the corresponding relationship of the physical ports of paired ports:
[0091] If the sub-interfaces 10GE3 / 0 / 3.1001 and 10GE3 / 0 / 3.2001 of the reference-end device 120.196.46.248 need to be adjusted, then the sub-interfaces 10GE4 / 0 / 3.1001 and 10GE4 / 0 / 3.2001 of the device 120.196.46.249 also need to be adjusted.
[0092] First, log in to the peer device and delete the delay configuration for the sub-interfaces that need to be adjusted. Instruction example:
[0093]
[0094] Then, log in to the reference-end device, configure the delay, and kick the user offline. Instruction example:
[0095]
[0096]
[0097] cut access-user interface 10GE3 / 0 / 3.1001
[0098] cut access-user interface 10GE3 / 0 / 3.2001
[0099] Check whether the BRAS device balance is successful after 15 minutes:
[0100] Log in to the reference device Adev and query the traffic utilization rate F of the main interface corresponding to the adjusted sub-interfaces in real time: 38%;
[0101] Log in to the peer device Bdev and query the traffic utilization rate F' of the main interface corresponding to the adjusted sub-interfaces in real time: 36%;
[0102] Obtain the threshold M for the difference in traffic utilization rates of the adjusted paired ports configured by the user in the network management system: 2;
[0103] Check whether the difference in traffic utilization rates of all adjusted paired ports is within 2%. If so, the balance is successful.
[0104] Furthermore, if the difference in traffic utilization rates is not all within 2%, the balance fails. Determine whether a multiple adjustment strategy is set. If not, end and return a balance failure message; if a multiple adjustment strategy is set, perform the BARS balance adjustment again according to the adjustment strategy. The number of times of the adjustment strategy can be set, generally not exceeding 3 times.
[0105] Based on the same inventive concept, the present invention also proposes a device for automatically discovering and adjusting the unbalanced online user traffic of a BRAS device. The implementation of this device can refer to the implementation of the above method, and the repeated parts will not be elaborated. As Figure 2 shown, the device 100 includes:
[0106] An acquisition module 101: configured to acquire the corresponding relationships of the master device, standby device, master device port, and standby device port among all pairs of devices to be inspected in the network management system;
[0107] A traffic inspection module 102: configured to check whether there is unbalanced traffic in the pair of devices. If the traffic is balanced, no adjustment is made;
[0108] An alarm module 103: configured to give an alarm if the traffic is unbalanced, log in to the corresponding device for BARS balancing processing if the traffic is unbalanced, and not make any adjustment if it is for link expansion;
[0109] An adjustment inspection module 104: configured to log in to the device again after a period of time after the balancing processing to perform post-adjustment inspection.
[0110] The traffic inspection module 102 further includes:
[0111] A utilization rate query module 1021: configured to allow the user to set the time length in the system and query the utilization rate of the corresponding ports of the pair of devices at time points within this time length from the ES;
[0112] A reference device determination module 1022: configured to select the port with the highest traffic utilization rate, the acquisition time, etc. on the side of the port traffic utilization rate of all master devices and the port traffic utilization rate of standby devices as the reference device Adev, reference port Aport, reference time T, and reference traffic utilization rate Aflux;
[0113] A peer port determination module 1023: configured to query the peer port Bport corresponding to the reference port of the reference device and the traffic utilization rate Bflux of the peer port at the reference time T according to the corresponding relationships of the master device, standby device, master device port, and standby device port in the pair of devices;
[0114] An alarm judgment module 1024: configured to give an alarm for unbalanced link traffic if Aflux is less than 50%, Bflux is less than 50%, and |Aflux - Bflux| is greater than or equal to 20%; give an alarm for unbalanced link traffic if Aflux is greater than 50% or Bflux is greater than 50%; give an alarm for link expansion if Aflux is greater than or equal to 50% and Bflux is greater than or equal to 50%; otherwise, no alarm is given.
[0115] The alarm module 103 further includes:
[0116] Sub - interface quantity acquisition module 1031: used to acquire the number of adjustable sub - interfaces UserN for each device set by the user in the network management system;
[0117] Broadband user sub - interface query module 1032: used to log in to the reference device Adev and query the broadband user sub - interfaces under all reference ports Aport;
[0118] Quantity judgment module 1033: used to judge whether the number of broadband user sub - interfaces exceeds the adjustable number of sub - interfaces UserN. If the number does not exceed, all broadband user sub - interfaces are used as adjustable sub - interfaces; if the number exceeds, query the number of online users for each broadband user sub - interface, sort the user online numbers from high to low, and take the first UserN sub - interfaces as adjustable sub - interfaces;
[0119] Calculation module 1034: used to calculate the sub - interfaces that need to be adjusted at the opposite end according to the principle that the VlanIDs of paired sub - interfaces are the same and the corresponding relationship of the physical ports of paired ports;
[0120] Opposite - end sub - interface adjustment module 1035: used to log in to the opposite - end device Bdev to adjust the sub - interfaces and delete the delay configuration;
[0121] Reference device sub - interface module 1036: used to log in to the reference device Adev to adjust the sub - interfaces, perform delay configuration, and kick offline the users who exceed the limit.
[0122] The adjustment check module 104 further includes:
[0123] Reference device traffic utilization rate query module 1041: used to log in to the reference device Adev and query the traffic utilization rate F of the main interface corresponding to the adjusted sub - interfaces in real - time;
[0124] Opposite - end device traffic utilization rate query module 1042: used to log in to the opposite - end device Bdev and query the traffic utilization rate F' of the main interface corresponding to the adjusted sub - interfaces in real - time;
[0125] Traffic utilization rate difference threshold acquisition module 1043: used to acquire the traffic utilization rate difference threshold M configured by the user in the network management system for the adjusted paired ports;
[0126] Traffic utilization rate difference judgment module 1044: used to check whether the traffic utilization rate differences of all adjusted paired ports are within M%, if the traffic utilization rate differences are all within M%, the balancing is successful;
[0127] Adjustment strategy setting judgment module 1045: If the difference in traffic utilization rates is not all within M%, the balancing fails. It determines whether multiple adjustment strategies are set. If not, it ends and returns a balancing failure message. If multiple adjustment strategies are set, it re-performs BARS balancing adjustment according to the adjustment strategies.
[0128] A device for automatically discovering and adjusting the imbalance of online user traffic in a BRAS device proposed by the present invention supports the analysis of the balance of the number of paired BRAS online users and the identification of potential hazards. According to the service access strategy, it adopts corresponding operation methods to achieve the automatic balance adjustment of the accessed users. Moreover, each adjustment operation adopts the atomic capability method and has scalability. For example, if it is still found to be unbalanced after the adjustment, secondary adjustment can be performed according to the strategy.
[0129] Although the spirit and principles of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the specific embodiments disclosed, and the division of each aspect does not mean that the features in these aspects cannot be combined for benefits. This division is only for the convenience of expression. The present invention aims to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
[0130] Regarding the limitations on the protection scope of the present invention, those skilled in the art should understand that based on the technical solution of the present invention, various modifications or deformations that can be made by those skilled in the art without creative efforts are still within the protection scope of the present invention.
Claims
1. A method for automatically discovering and adjusting the unbalanced online user traffic of a BRAS device, characterized in that, the method includes: S01: Obtain the corresponding relationships of the master device, standby device, master device port, and standby device port in all pairs of devices to be inspected in the network management system; S02: Check whether there is unbalanced traffic in the pair of devices. If the traffic is balanced, no adjustment is made. Among them, the step of checking whether there is unbalanced traffic in the pair of devices is: S021: The user sets the time length in the system and queries the utilization rate of the corresponding ports of the pair of devices at time points within this time length from the ES; S022: Among the port traffic utilization rates of all master device ports and standby device ports, select the port with the highest traffic utilization rate, the acquisition time as the reference device Adev, reference port Aport, reference time T, and reference traffic utilization rate Aflux; S023: According to the corresponding relationships of the master device, standby device, master device port, and standby device port in the pair of devices, query the corresponding peer port Bport of the reference port of the reference device and the traffic utilization rate Bflux of the peer port at the reference time T; S024: If Aflux is less than 50% and Bflux is less than 50% and |Aflux - Bflux| is greater than or equal to 20%, an alarm for unbalanced link traffic is issued; if Aflux is greater than 50% or Bflux is greater than 50%, an alarm for unbalanced link traffic is issued; if Aflux is greater than or equal to 50% and Bflux is greater than or equal to 50%, an alarm for link capacity expansion is issued; otherwise, no alarm is issued; S03: If the traffic is unbalanced, an alarm is issued. If the traffic is unbalanced, log in to the corresponding device for BARS balancing processing. If it is link capacity expansion, no adjustment is made; S04: Log in to the device again after a period of time after the balancing process for post-adjustment inspection.
2. The method for automatically discovering and adjusting the unbalanced online user traffic of a BRAS device according to claim 1, characterized in that, the steps of the BARS balancing processing described in S03 are: S031: Obtain the number of adjustable sub-interfaces UserN set by the user for each device in the network management system; S032: Log in to the reference device Adev and query the broadband user sub-interfaces under all reference ports Aport; S033: Judge whether the number of broadband user sub-interfaces exceeds the adjustable number of sub-interfaces UserN. If the number does not exceed, all broadband user sub-interfaces are used as adjustment sub-interfaces; If the number exceeds, query the number of online users of each broadband user sub-interface and sort the user online numbers from high to low, and select the first UserN sub-interfaces as adjustment sub-interfaces; S034: Calculate the sub-interfaces that need to be adjusted at the peer end according to the principle that the VlanIDs of the paired sub-interfaces are the same and the corresponding relationships of the physical ports of the paired ports; S035: Log in to the peer device Bdev to adjust the sub-interfaces and delete the delay configuration; S036: Log in to the reference device Adev to adjust the sub-interfaces, perform delay configuration, and kick offline the users who exceed the limit.
3. A method for automatically detecting and adjusting the unbalanced online user traffic of a BRAS device according to claim 1, characterized in that, the steps of post-adjustment inspection in S04 are as follows: S041: Log in to the reference device Adev, and query the traffic utilization rate F of the main interface corresponding to the sub-interface that has been adjusted in real time; S042: Log in to the peer device Bdev, and query the traffic utilization rate F' of the main interface corresponding to the sub-interface that has been adjusted in real time; S043: Obtain the difference threshold M of the traffic utilization rate of the paired ports after adjustment configured by the user in the network management system; S044: Check whether the difference in the traffic utilization rate of all adjusted paired ports is within M%, if the difference in the traffic utilization rate is within M%, the balance is successful; S045: If the difference in the traffic utilization rate is not all within M%, the balance fails. Determine whether a multiple adjustment strategy is set. If not, end and return a balance failure message; S046: If a multiple adjustment strategy is set, re-perform the BARS balance adjustment according to the adjustment strategy.
4. A method for automatically detecting and adjusting the unbalanced online user traffic of a BRAS device according to claim 3, characterized in that, the number of times of the adjustment strategy is set by the staff.
5. A device for automatically detecting and adjusting the unbalanced online user traffic of a BRAS device, characterized in that, the device includes: An acquisition module: used to acquire the corresponding relationships of the main device, standby device, main device port and standby device port in all paired devices to be inspected in the network management system; A traffic inspection module: used to check whether there is unbalanced traffic in the paired devices. If the traffic is balanced, no adjustment is made, including: A utilization rate query module: used for the user to set a time length in the system, and query the utilization rate of the corresponding ports of the paired devices at time points within this time length from the ES; A reference device determination module: used to select the port with the highest traffic utilization rate and the acquisition time on the side with the highest traffic utilization rate among the port traffic utilization rates of all main devices and the port traffic utilization rates of standby devices as the reference device Adev, reference port Aport, reference time T, and reference traffic utilization rate Aflux; A peer port determination module: used to query the peer port Bport corresponding to the reference port of the reference device and the traffic utilization rate Bflux of the peer port at the reference time T according to the corresponding relationships of the main device, standby device, main device port and standby device port in the paired devices; An alarm judgment module: used to alarm for unbalanced link traffic if Aflux is less than 50% and Bflux is less than 50% and |Aflux - Bflux| is greater than or equal to 20%; alarm for unbalanced link traffic if Aflux is greater than 50% or Bflux is greater than 50%; alarm for link expansion if Aflux is greater than or equal to 50% and Bflux is greater than or equal to 50%; otherwise, no alarm is made; An alarm module: used to alarm if the traffic is unbalanced. If the traffic is unbalanced, log in to the corresponding device for BARS balance processing. If it is link expansion, no adjustment is made; Adjustment check module: It is used to log in to the device again after a period of time after the balancing process to perform post-adjustment checks.
6. A device for automatically discovering and adjusting the unbalanced online user traffic of a BRAS device according to claim 5, characterized in that, The alarm module further includes: Sub-interface quantity acquisition module: It is used to acquire the adjustable sub-interface quantity UserN of each device set by the user in the network management system; Broadband user sub-interface query module: It is used to log in to the reference device Adev to query the broadband user sub-interfaces under all reference ports Aport; Quantity judgment module: It is used to judge whether the quantity of broadband user sub-interfaces exceeds the adjustable sub-interface quantity UserN. If the quantity does not exceed, all broadband user sub-interfaces will be used as adjustment sub-interfaces; if the quantity exceeds, query the number of online users of each broadband user sub-interface and sort the user online numbers from high to low, and take the first UserN sub-interfaces as adjustment sub-interfaces; Calculation module: It is used to calculate the sub-interfaces that need to be adjusted at the opposite end according to the principle that the VlanIDs of paired sub-interfaces are the same and the corresponding relationship of the physical ports of paired ports; Opposite-end sub-interface adjustment module: It is used to log in to the opposite-end device Bdev to adjust the sub-interfaces and delete the delay configuration; Reference device sub-interface module: It is used to log in to the reference device Adev to adjust the sub-interfaces, perform delay configuration, and kick offline the users who exceed the limit.
7. A device for automatically discovering and adjusting the unbalanced online user traffic of a BRAS device according to claim 5, characterized in that, The adjustment check module further includes: Reference device traffic utilization rate query module: It is used to log in to the reference device Adev to query the traffic utilization rate F of the main interface corresponding to the adjusted sub-interface in real time; Opposite-end device traffic utilization rate query module: It is used to log in to the opposite-end device Bdev to query the traffic utilization rate F' of the main interface corresponding to the adjusted sub-interface in real time; Traffic utilization rate difference threshold acquisition module: It is used to acquire the traffic utilization rate difference threshold M configured by the user in the network management system for the adjusted paired ports; Traffic utilization rate difference judgment module: It is used to check whether the traffic utilization rate differences of all adjusted paired ports are within M%. If the traffic utilization rate differences are all within M%, the balancing is successful; Adjustment strategy setting judgment module: It is used to, if the traffic utilization rate differences are not all within M%, the balancing fails, judge whether a multiple adjustment strategy is set. If not, end and return a balancing failure message; if a multiple adjustment strategy is set, perform BARS balancing adjustment again according to the adjustment strategy.
8. A device for automatically discovering and adjusting the unbalanced online user traffic of a BRAS device according to claim 7, characterized in that, The number of times of the adjustment strategy is set by the staff.
Citation Information
Patent Citations
Methods, apparatus and storage media for determining load balancing strategies
CN110891028B
Server load management method and server load management device
CN105471938A
Link aggregation traffic distribution method, device and apparatus, and storage medium
CN109218216A