BRAS bearing user number balancing method based on MAC address offset bit
By adopting an equalization method based on MAC address offset in the BRAS architecture, the user number equalization process is automatically completed, and the problem of uneven user number in the existing technology is solved, and the effect of simplifying operations and reducing costs is achieved.
Patent Information
- Application Number
- CN202510347603.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-06-13
Smart Images

Figure CN120151349A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of controlling and forwarding user data traffic in broadband access service network devices, and particularly to a method for balancing the number of BRAS-borne users based on MAC address offset bits. Background Art
[0002] BRAS (Broadband Remote Access Server) plays a crucial role in the network architecture. It is a bridge connecting user terminals (such as home broadband, enterprise networks, etc.) to the core network (such as the Internet), and is responsible for functions such as user authentication, address allocation, and bandwidth management. When the number of users borne by BRAS is unbalanced, a series of problems will occur.
[0003] In terms of balancing the number of users borne by dual-active backup BRAS, there are currently several methods:
[0004] 1. VRRP (Virtual Router Redundancy Protocol) combined with BFD (Bidirectional Forwarding Detection): The VRRP protocol can create a virtual router between BRAS devices. When the primary BRAS device fails, it can quickly switch to the standby BRAS device to ensure that the service is not interrupted. Combining with the BFD fast fault detection mechanism can further shorten the fault switching time. In the dual-active backup BRAS architecture, VRRP can be used in conjunction with a load balancing algorithm to direct user traffic to different BRAS devices.
[0005] 2. Link aggregation and dynamic routing: Through link aggregation technology (such as Ethernet link aggregation), multiple physical links can be bundled into a logical link to improve the bandwidth and reliability of the link. Dynamic routing protocols (such as OSPF, Open Shortest Path First) can automatically adjust the routing according to the network topology and link status to achieve balanced distribution of user traffic.
[0006] Combined with the actual application status, the problems and defects of the current methods are as follows:
[0007] VRRP (Virtual Router Redundancy Protocol) combined with BFD (Bidirectional Forwarding Detection): It requires additional configuration and management overhead, especially in a multi-BRAS device environment. In some cases, the fault switching of VRRP may not be completely transparent, which may lead to a short service interruption.
[0008] Link aggregation and dynamic routing: Link aggregation requires additional hardware support and may be limited by the number of physical links. The configuration and debugging of dynamic routing protocols are relatively complex, and network administrators need to have a relatively high technical level. Summary of the Invention
[0009] In view of the defects or deficiencies existing in the prior art, the present invention provides a method for balancing the number of users carried by BRAS based on the MAC address offset bits. It realizes complex service operations through a predefined process. While solving the problem of balancing the number of users carried by BRAS, the whole process is automatically completed through a process-based design, which not only saves the configuration management and hardware device costs, but also is simple and easy to use. Without affecting the existing network services, it ensures the rationality of the balance of the number of users carried by BRAS imperceptibly.
[0010] The technical solution of the present invention is as follows:
[0011] A method for balancing the number of users carried by BRAS based on the MAC address offset bits, characterized in that it includes:
[0012] Use the balance judgment module to check whether the number of users carried by the primary and standby devices of BRAS meets the conditions for starting the balance process. If the difference ratio of the number of users carried by the primary and standby devices of BRAS ≤ the set value, there is no need to start the balance process. If the difference ratio of the number of users carried by the primary and standby devices of BRAS > the set value, it is necessary to start the balance process;
[0013] Use the balance preparation module to conduct a systematic inspection of the primary and standby devices;
[0014] Use the balance implementation module to collect the 48-bit MAC addresses on the sub-interfaces as completely as possible during the user busy time and idle time through a periodic program, convert the MAC addresses from hexadecimal representation to binary form, traverse and count each bit of all MAC addresses, determine the parity ratio by bit, and calculate the offset value, and configure the offset value on the ports of the primary and standby devices;
[0015] Use the balance verification module to confirm the status of the primary and standby devices after the balance implementation, and after the observation date, check the balance degree of the users of the primary and standby machines after all users have re-logged on and off due to lease term or manual reasons;
[0016] Use the balance monitoring module to compare the information of the primary and standby devices, check the balance preparation module, and mark and explain the places where the information is inconsistent with the information checked in the balance preparation module.
[0017] The set value = 0.05, and the expression for the difference ratio of the number of users carried by the primary and standby devices of BRAS is as follows:
[0018]
[0019] Where N Radio is the difference ratio of the number of users, N main is the number of users of the primary device, N backup is the number of users of the standby device.
[0020] The systematic inspection of the primary and standby devices by using the balancing preparation module includes checking the CPU utilization rate, displaying the basic information of all devices, checking the memory occupancy rate information, checking the configuration parameters currently in effect on the device, displaying the information related to the current and next startup of the device, checking the system resource usage information of the device, querying all active hardware alarm information, checking all active alarm information, displaying the traffic with all port statuses being up, checking the status and traffic of the physical ports and logical main interfaces on the device, checking the status and traffic of all Ethernet interfaces on the device, displaying the number of users going online on all interfaces, checking the detailed information of users going online within sub-interfaces, and displaying the information related to the current and next startup of the device.
[0021] The parity ratio expression is as follows:
[0022]
[0023] Where B Radio is the parity ratio, Bn 1 is the number of digits with value 1 in the nth bit, Bn 0 is the number of digits with value 0 in the nth bit, and n is a positive integer.
[0024] The offset value expression is as follows:
[0025] The offset value value = 48 - B Radio is close to the position m where 1 is located.
[0026] The balancing implementation module includes a parameter entry module, a MAC collection module, and a MAC calculation and configuration module that are connected in sequence.
[0027] The balancing process includes the following steps:
[0028] Step 1, device systematic inspection;
[0029] Step 2, enter the balancing information of the number of users carried by the BRAS: the names of the primary and standby devices, the name of the upstream OLT or switch device, the type of balancing port, and the name of the balancing port;
[0030] Step 3, MAC address collection;
[0031] Step 4, determine whether the MAC address collection is complete. If not, return to Step 3. If so, enter Step 5;
[0032] Step 5, binary conversion of the MAC address;
[0033] Step 6, selection of paired balancing ports;
[0034] Step 7, calculation of the offset bits of paired balancing ports;
[0035] Step 8: Determine whether all paired balanced ports have been exhausted. If not, return to Step 7. If so, proceed to Step 9;
[0036] Step 9: Execute the paired balanced port instruction for the primary and standby devices;
[0037] Step 10: Conduct a systematic check of the device;
[0038] Step 11: Determine whether the balanced observation date has arrived. If not, proceed to Step 14. If so, proceed to Step 12;
[0039] Step 12: Verify the balanced result of the number of users carried by the BRAS;
[0040] Step 13: Determine whether the balanced result of the number of users carried by the BRAS is satisfactory. If not, return to Step 1. If so, proceed to Step 14;
[0041] Step 14: End.
[0042] The technical effects of the present invention are as follows: A method for balancing the number of users carried by BRAS based on the MAC address offset bit realizes complex business operations through a predefined process, and combines and utilizes a balance judgment module, a balance preparation module, a balance implementation module, a balance verification module, and a balance duty module. It not only solves the problem of balancing the number of users carried by BRAS, but also automates and processes this process, saving labor and material costs. This process is simple and easy to use, and can complete the balancing operation without perception without affecting the existing network services. Moreover, this process supports multiple uses and can meet the requirements of balancing the number of users carried by BRAS as much as possible, playing an important role in modern network communication. This method and device can not only improve the network stability and availability, but also optimize resource allocation and enhance the user experience.
[0043] The present invention can have the following characteristics:
[0044] (1) It is used to balance the number of users carried by the primary and standby devices connected to the BRAS.
[0045] (2) The process is automated, involving a modular design of a balance judgment module, a balance preparation module, a balance implementation module, a balance verification module, and a balance duty module.
[0046] (3) It is based on a bit-by-bit cyclic algorithm that determines the parity ratio of the offset value based on the MAC addresses of online users.
[0047] (4) It is an operation and maintenance instruction algorithm for balancing the number of users carried by BRAS based on the MAC address offset bit. Description of the Drawings
[0048] Figure 1It is a schematic diagram of the module combination structure involved in implementing the method for balancing the number of users carried by BRAS based on the MAC address offset bits of the present invention. Figure 1 It includes a balance judgment module, a balance preparation module, a balance implementation module, a balance verification module, and a balance duty module connected in sequence. The balance implementation module includes a parameter entry module, a MAC collection module, and a MAC calculation and configuration module (MAC, Media Access Control). BRAS is a Broadband Remote Access Server.
[0049] Figure 2 It is a diagram showing the correspondence between hexadecimal MAC addresses and binary MAC addresses.
[0050] Figure 3 It is a schematic diagram of the home user MAC address format and its offset value.
[0051] Figure 4 It is a schematic diagram of the balance process steps. Figure 1 It includes Step 1, systematic inspection of the device; Step 2, entry of the information for balancing the number of users carried by BRAS: the names of the primary and standby devices, the name of the upstream OLT (Optical Line Terminal) or switch device, the balance port type, and the balance port name; Step 3, MAC address collection; Step 4, determine whether the MAC address collection is complete. If not, return to Step 3. If so, enter Step 5; Step 5, binary conversion of the MAC address; Step 6, selection of paired balance ports; Step 7, calculation of the offset bits of the paired balance ports; Step 8, determine whether the paired balance ports are exhausted. If not, return to Step 7. If so, enter Step 9; Step 9, execution of the paired balance port instructions for the primary and standby devices; Step 10, systematic inspection of the device; Step 11, determine whether the balance observation date has arrived. If not, enter Step 14. If so, enter Step 12; Step 12, verification of the result of balancing the number of users carried by BRAS (BRAS, Broadband Remote Access Server); Step 13, determine whether the result of balancing the number of users carried by BRAS is satisfactory. If not, return to Step 1. If so, enter Step 14; Step 14, end.
[0052] Figure 5 It is a schematic diagram of the MAC address collection process. Figure 5It includes step 3.1, creating a MAC address collection task; step 3.2, entering task parameters, including fixed parameters: task execution area; dynamic parameters: instruction arrangement scenario name; dynamic parameters: primary and standby device names, upstream device name, balancing type, balancing port; execution method: execution time, number of executions; step 3.3, the MAC address collection task is successfully created.
[0053] Figure 6 It is a schematic diagram of the execution process of the instruction for paired balancing ports of primary and standby devices. Figure 6 It includes step 9.1, creating an offset bit configuration task; step 9.2, entering task parameters, including fixed parameters: task execution area; dynamic parameters: instruction arrangement scenario name, preparation time, implementation time, change responsible person; dynamic parameters: primary and standby device names, upstream device name, balancing type, balancing port; execution method: execute immediately; step 9.3, the offset bit configuration task is successfully created.
[0054] Figure 7 It is a schematic diagram of the process for verifying the balancing result of the number of users carried by BRAS. Figure 7 It includes step 12.1, creating an offset bit verification task; step 12.2, entering task parameters, including fixed parameters: task execution area; dynamic parameters: instruction arrangement scenario name, verification time, on-duty time, change on-duty person; dynamic parameters: primary and standby device names, upstream device name, balancing type, balancing port; execution method: execute immediately; step 12.3, the offset bit verification task is successfully created. Detailed implementation mode
[0055] The present invention will be described below in conjunction with the accompanying drawings ( Figures 1 - 7 ).
[0056] Figure 1 It is a schematic diagram of the module combination structure involved in implementing the method for balancing the number of users carried by BRAS based on the MAC address offset bit of the present invention. Figure 2 It is a diagram showing the correspondence between hexadecimal MAC addresses and binary MAC addresses. Figure 3 It is a schematic diagram of the MAC address format of home broadband users and their offset values. Figure 4 It is a schematic diagram of the steps of the balancing process. Figure 5 It is a schematic diagram of the MAC address collection process.
[0057] Figure 6 It is a schematic diagram of the execution process of the instruction for paired balancing ports of primary and standby devices. Figure 7 It is a schematic diagram of the process for verifying the balancing result of the number of users carried by BRAS. Refer to Figures 1 to 7As shown in the figure, a method for balancing the number of users carried by BRAS based on the MAC address offset bits includes: using an equilibrium judgment module to check whether the number of users carried by the primary and standby devices of BRAS meets the conditions for starting the equilibrium process. If the difference ratio of the number of users carried by the primary and standby devices of BRAS is less than or equal to the set value, there is no need to start the equilibrium process. If the difference ratio of the number of users carried by the primary and standby devices of BRAS is greater than the set value, the equilibrium process needs to be started; using an equilibrium preparation module to conduct a systematic inspection of the primary and standby devices; using an equilibrium implementation module to collect the 48-bit MAC addresses on the sub-interfaces as completely as possible during the busy and idle hours of users through a periodic program, convert the MAC addresses from hexadecimal representation to binary form, traverse and count each bit of all MAC addresses, determine the parity ratio by bit, and calculate the offset value, and configure the offset value on the ports of the primary and standby devices; using an equilibrium verification module to confirm the status of the primary and standby devices after the equilibrium implementation, and after the observation date, check the equilibrium degree of the users on the primary and standby machines after all users have re-logged in and out due to lease or manual reasons; using an equilibrium monitoring module to compare the information of the primary and standby devices, check the information of the equilibrium preparation module, and mark and explain the places where the information is inconsistent with the information checked in the equilibrium preparation module.
[0058] The set value = 0.05, and the expression for the difference ratio of the number of users carried by the primary and standby devices of BRAS is as follows:
[0059]
[0060] Where N Radio is the difference ratio of the number of users, N main is the number of users on the primary device, N backup is the number of users on the standby device.
[0061] The systematic inspection of the primary and standby devices using the equilibrium preparation module includes checking the CPU utilization rate, displaying the basic information of all devices, checking the memory occupancy information, checking the currently effective configuration parameters of the device, displaying the information related to the current and next startup of the device, checking the system resource usage information of the device, querying all active hardware alarm information, checking all active alarm information, displaying the traffic with all port statuses up, checking the status and traffic of the physical ports and logical main interfaces on the device, checking the status and traffic of all Ethernet interfaces on the device, displaying the number of users logged in on all interfaces, checking the detailed list of users logged in within the sub-interface, and displaying the information related to the current and next startup of the device.
[0062] The expression for the parity ratio is as follows:
[0063]
[0064] Where B Radio is the parity ratio, Bn 1is the number of digits equal to 1 in the nth digit, Bn 0 is the number of digits equal to 0 in the nth digit, where n is a positive integer.
[0065] The offset value expression is as follows:
[0066] Offset value value = 48 - B Radio is close to the digit position m where 1 is located.
[0067] The balancing implementation module includes a parameter entry module, a MAC collection module, and a MAC calculation and configuration module that are connected in sequence.
[0068] The balancing process includes the following steps: Step 1, perform a systematic check of the device; Step 2, enter the balancing information of the number of users carried by the BRAS: the names of the primary and standby devices, the names of the upstream OLT or switch devices, the types of balancing ports, and the names of the balancing ports; Step 3, collect MAC addresses; Step 4, determine whether the MAC address collection is complete. If not, return to Step 3. If so, proceed to Step 5; Step 5, convert the MAC address to binary; Step 6, select paired balancing ports; Step 7, calculate the offset bits of the paired balancing ports; Step 8, determine whether the paired balancing ports are exhausted. If not, return to Step 7. If so, proceed to Step 9; Step 9, execute the paired balancing port instructions for the primary and standby devices; Step 10, perform a systematic check of the device; Step 11, determine whether the balancing observation date has arrived. If not, proceed to Step 14. If so, proceed to Step 12; Step 12, verify the balancing result of the number of users carried by the BRAS; Step 13, determine whether the balancing result of the number of users carried by the BRAS is satisfactory. If not, return to Step 1. If so, proceed to Step 14; Step 14, end.
[0069] The method and device for balancing the number of users carried by the BRAS based on the MAC address offset bits achieve complex service operations through a predefined process. It not only solves the problem of balancing the number of users carried by the BRAS but also automates and streamlines this process, saving labor and material costs. This process is simple and easy to use, and without affecting the existing network services, it can complete the balancing operation imperceptibly. Moreover, this process supports multiple uses and can meet the requirements of balancing the number of users carried by the BRAS as much as possible, playing an important role in modern network communication. This method and device can not only improve network stability and availability but also optimize resource allocation and enhance the user experience.
[0070] Through modular design, the present invention describes a method and apparatus for balancing the number of users carried by BRAS based on the offset bits of the MAC address. In the whole process, first, through the balance judgment module, it is checked whether the number of users carried by the BRAS of the primary and standby devices meets the balance condition. If it meets, the balance process is divided into four modules: balance preparation, balance implementation, balance verification, and balance monitoring. Through periodic task scheduling, these four modules are implemented in an automated manner, as Figure 1 shown.
[0071] Regarding the balance judgment module: The balance judgment module is a prerequisite for balancing the number of users carried by BRAS. Only when the deviation of the number of users carried by the BRAS of the ports under the same type of the primary and standby devices is too large and balance operation needs to be performed, the balance is carried out. If the difference in the number of users carried by the BRAS of the primary and standby devices ≤ 0.05, no balance operation is required. The conditions for balance are as follows:
[0072]
[0073] This process can be obtained by querying the number of users carried by the BRAS on the device through the program cycle until the conditions are met, and then the following operations are continued.
[0074] The instruction is as follows:
[0075] dis access-user interface <interfacename>
[0076] Regarding the balancing preparation module: The balancing preparation module needs to conduct a systematic inspection of the device, specifically including checking the CPU utilization rate, displaying the basic information of all devices, checking the memory occupancy information, checking the currently effective configuration parameters of the device, displaying the information related to the current and next startup of the device, checking the system resource usage information of the device, querying all active hardware alarm information, checking all active alarm information, displaying the traffic with all port states being up (up means active state), checking the status and traffic of the physical ports and logical main interfaces on the device, checking the status and traffic of all Ethernet interfaces on the device, displaying the number of users logged in on all interfaces, checking the detailed user login details within the sub-interfaces, and displaying the information related to the current and next startup of the device.
[0077] Regarding the balancing implementation module: Since the BRAS device can only view the MAC addresses of real-time online users, in order to more comprehensively count the detailed MAC addresses of users under the interface, the balancing implementation module needs to collect the 48-bit MAC addresses on the sub-interfaces as completely as possible during the busy and idle periods of users through a periodic program.
[0078] The instructions are as follows:
[0079] dis access-user interface <interfacename>|include-
[0080] and convert from the common hexadecimal representation to binary form. Traverse and count each bit of all MAC addresses to determine the parity ratio of a certain bit in the MAC address, as Figure 2 shown.
[0081] Perform parity check in the order from right to left, from the 48th bit to the 1st bit, and count the number of 1s and 0s respectively.
[0082]
[0083] Calculate the parity ratio bit by bit:
[0084]
[0085] If the parity ratio is equal to 1 during the calculation process, the process ends, record that bit as the mth bit, and set the offset value value to 48 - m; if no equal to 1 is found, continue to calculate the parity ratio from right to left until no equal to 1 is found for the 1st bit, then take the bit whose parity ratio is closer to 1, and the offset value value = 48 - the bit closer to 1, as Figure 3 shown.
[0086] Configure the offset value on the ports of the primary and standby devices according to the calculated offset value.
[0087] The instructions are as follows:
[0088] access-delay odd-even mac offset <value>
[0089] Regarding the balance verification module: After the balance is implemented, confirm the device status. After the observation date, after all users have logged in and out again due to lease term or manual reasons, check the balance degree of the primary and standby users. Theoretically, the difference in the number of users between the primary and standby devices should be controlled within 0.05. If the expected effect is not achieved, the balance process can be called again to perform the balance operation of the number of BRAS-bearing users on the primary and standby devices.
[0090] Regarding the balance monitoring module: The balance monitoring module needs to compare the device information to ensure that the entire balance process has no significant impact on device performance, etc. See the inspection in the balance preparation module for details, and mark and explain the inconsistent places.
[0091] Regarding the steps of the balance process: The balance process is the steps under the default condition of meeting the balance conditions of the balance judgment module, as Figure 4 shown.
[0092] Step 1: Before balance, collect device information and conduct a systematic inspection of the device according to what is mentioned in the balance preparation module.
[0093] Step 2: Enter the balance information of the number of BRAS-bearing users. For the primary and standby devices that need to be balanced, the input parameters include: the names of the primary and standby devices, the name of the upstream OLT or switch device, the balance port type (the port type varies according to different services processed, such as IMS service, NET service, OTT service, or RMS service, etc.), and the balance port name.
[0094] Step 3: Collect the MAC addresses of the primary and standby devices. This step can be completed by creating a periodic MAC address collection task in the balance implementation module. For details, see Figure 5 and Step 3.1.
[0095] Step 3.1: Create a MAC address collection task. Task parameters need to be entered, including fixed parameters: the task execution area; dynamic parameters: the scenario name; dynamic parameters: the names of the primary and standby devices, the upstream device name, the balance type, and the balance port; execution method: execution time and execution times. After the MAC address collection task is successfully created, execute Step 4.
[0096] Step 4: Confirm whether the MAC address collection is complete. According to what is mentioned in the balance implementation module, collect the 48-bit MAC addresses on the sub-interfaces as completely as possible during the busy and idle times of users through a periodic program. The number of collections can be set according to time, and the time and number are flexibly configured according to the actual situation.
[0097] Step 5: Binary conversion of MAC address. Since the MAC address displayed on the device is in hexadecimal, and user load balancing by the MAC address is achieved through the number of bits of the binary MAC address, it is necessary to convert the hexadecimal MAC address to binary.
[0098] Step 6: Select paired load balancing ports according to the load balancing port type and load balancing port name of the input parameters, and perform load balancing according to the port type (only the ports of the primary and standby devices with the same port type for the same service are used together for BRAS user load balancing) and port name.
[0099] Step 7: Traverse and count each bit of all MAC addresses to determine the parity ratio of a certain bit in the MAC address, and calculate the offset bits of the paired load balancing ports.
[0100] Step 8: According to the load balancing port type and load balancing port name of the input parameters, confirm whether all paired ports have been calculated for offset bits, and loop until all required ports have been exhausted.
[0101] Step 9: According to the calculation results of Step 8, execute instructions on the primary and standby devices to perform load balancing of paired ports on the primary and standby devices. For details, see Figure 6 and Step 9.1.
[0102] Step 9.1: Create an offset bit configuration task. It is necessary to enter task parameters, including fixed parameters: task execution area; dynamic parameters: scenario name, preparation time, implementation time, change responsible person; dynamic parameters: primary and standby device names, upstream device name, load balancing type, load balancing port; execution method: execute immediately. After successfully creating the offset bit configuration task, execute Step 10.
[0103] Step 10: Conduct a systematic inspection of the device again, collect device information and compare it with the information before load balancing, mark the inconsistent places, and output them for the operator to view. The operator outputs the on-duty materials to the on-duty personnel of the next day.
[0104] Step 11: Confirm the device status, and after the observation day (usually set to 7 working days, which can be adjusted according to the actual situation), check the load balancing degree after all users have logged in and out again due to lease expiration or manual reasons. If the observation day has not arrived, no task operation is performed.
[0105] Step 12: Verify the BRAS user load balancing result. Theoretically, the difference in the user ratio between the primary and standby machines should be controlled within 0.05. For details, see Figure 7 and Step 12.1.
[0106] Step 12.1: Create an offset bit verification task. Task parameters need to be entered, including fixed parameters: task execution area; dynamic parameters: scenario name, verification time, on-duty time, change of on-duty personnel; dynamic parameters: primary and standby device names, upstream device names, balancing type, balancing ports; execution method: execute immediately. After successfully creating the offset bit verification task, proceed to Step 13.
[0107] Step 13: Check if the BRAS user load balancing result is satisfactory. If not, the entire process can be executed again.
[0108] The content not detailed in the specification of the present invention belongs to the prior art well-known to those skilled in the art. It is hereby specified that the above description helps those skilled in the art to understand the present invention, but does not limit the protection scope of the present invention. Any implementation that makes equivalent replacements, modifies and improves, and / or simplifies the above description without departing from the substantial content of the present invention falls within the protection scope of the present invention.< / value> < / interfacename> < / interfacename>
Claims
1. A method for balancing the number of users carried by BRAS based on MAC address offset bits, characterized in that: include: Use the balancing judgment module to check whether the number of users carried by the master and backup BRASs meets the conditions for starting the balancing process. If the difference ratio of the number of users carried by the master and backup BRASs is ≤ the set value, there is no need to start the balancing process. If the difference ratio of the number of users carried by the master and backup BRASs is > the set value, the balancing process needs to be started. Use the balance preparation module to systematically check the primary and backup devices; The balancing implementation module collects the 48-bit MAC addresses on the sub-interfaces as completely as possible during the busy and idle hours of the users through a periodic program, converts the hexadecimal representation of the MAC addresses into binary form, traverses and counts each bit of all MAC addresses, determines the parity ratio bit by bit, calculates the offset value, and configures the offset value on the ports of the primary and backup devices; Use the balance check module to confirm the status of the primary and backup devices after the balancing is implemented, and check the balance of the primary and backup users after an observation day when all users have gone online and offline again due to lease or manual reasons; Use the balancing duty module to compare the information of the primary and backup devices, check the balancing preparation module, and mark the places where the information is inconsistent with the inspection information in the balancing preparation module.
2. The method for balancing the number of users carried by BRAS based on MAC address offset bits according to claim 1, characterized in that: The setting value=0.05, the expression of the difference ratio of the number of users carried by the BRAS of the primary and backup devices is as follows: Where N Radio is the difference ratio of the number of users, N main is the number of users on the master device, N backup Is the number of users of the backup device.
3. The method for balancing the number of users carried by BRAS based on MAC address offset bits according to claim 1, characterized in that: The described method of using the balancing preparation module to perform a systematic check on the primary and backup devices includes checking CPU utilization, displaying basic information of all devices, checking memory usage information, checking the currently effective configuration parameters of the device, displaying information related to the current and next startup of the device, checking the system resource usage information of the device, querying all active hardware alarm information, viewing all active alarm information, displaying the traffic of all ports with an up status, viewing the status and traffic of the physical ports and logical main interfaces on the device, viewing the status and traffic of all Ethernet interfaces on the device, displaying the number of online users on all interfaces, viewing the details of online users in the sub-interfaces, and displaying information related to the current and next startup of the device.
4. The method for balancing the number of users carried by BRAS based on MAC address offset bits according to claim 1, characterized in that: The parity ratio expression is as follows: Among them B Radio is the parity ratio, Bn1 is the number of 1s in the n-th digit, Bn0 is the number of 0s in the n-th digit, and n is a positive integer.
5. The method for balancing the number of users carried by BRAS based on MAC address offset bits according to claim 1, characterized in that: The offset value expression is as follows: Offset value = 48-B Radio The number m of digits close to 1.
6. The method for balancing the number of users carried by BRAS based on MAC address offset bits according to claim 1, characterized in that: The equalization implementation module includes a parameter entry module, a MAC collection module and a MAC calculation and configuration module which are connected in sequence.
7. The method for balancing the number of users carried by BRAS based on MAC address offset bits according to claim 1, characterized in that: The balancing process includes the following steps: Step 1: Systematic inspection of equipment; Step 2: Enter the balancing information of the number of users carried by the BRAS: the names of the primary and backup devices, the names of the upstream OLT or switch devices, the balancing port type and the balancing port name; Step 3, MAC address collection; Step 4, determine whether the MAC address collection is complete, if not, return to step 3, if yes, go to step 5; Step 5: MAC address binary conversion; Step 6, paired balanced port selection; Step 7, calculating the offset of paired balanced ports; Step 8, determine whether the paired balanced ports are exhausted, if not, return to step 7, if yes, go to step 9; Step 9, the master and standby devices execute the command of balancing ports in pairs; Step 10: Systematic inspection of equipment; Step 11, determine whether the equilibrium observation day has arrived, if not, proceed to step 14, if yes, proceed to step 12; Step 12, verifying the result of balancing the number of users carried by the BRAS; Step 13, judging whether the result of balancing the number of users carried by the BRAS is satisfactory, if not, returning to step 1, if yes, proceeding to step 14; Step 14, end.