Method for processing user online and network equipment
By switching the odd/even MAC delay configuration between BRAS devices through VRRP messages, the problem of users being unable to switch to another BRAS device when the CGN board fails is solved, and automatic backup and recovery between BRAS devices is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NEW H3C TECH CO LTD
- Filing Date
- 2025-12-26
- Publication Date
- 2026-04-10
AI Technical Summary
When the CGN board of a BRAS device fails, the user cannot switch to another BRAS device to go online, and existing technology cannot achieve effective backup between BRAS devices.
When the BRAS device identifies a CGN board fault, it sends a VRRP message to notify the second BRAS device to switch the odd/even MAC delay configuration, thereby taking over user online messages and stopping delay processing, thus achieving a smooth handover of users between BRAS devices.
After a CGN board failure, users can automatically switch to another BRAS device to resume normal operation without manual intervention, achieving efficient backup between BRAS devices.
Smart Images

Figure CN121841948A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of communication technology, and in particular to a method and network device for processing user online access. Background Technology
[0002] After configuring the PPPoE or IPoE user access response delay time, the system will respond to the PPPoE or IPoE user's online request with a delay according to the configured time, and supports configuring different response delay times for odd MAC and even MAC.
[0003] like Figure 1 As shown, two BRAS devices are deployed in the current network to provide device-level backup and traffic load balancing, and are implemented through: 1. Configure BRAS A to perform delayed response for users with even MAC addresses, and use the default configuration (no delayed response) for users with odd MAC addresses.
[0004] 2. Configure BRAS B to perform delayed response for users with odd MAC addresses, and use the default configuration (no delayed response) for users with even MAC addresses.
[0005] With the above configuration, under normal circumstances, BRAS A will respond to the online requests of users with odd-numbered MAC addresses before BRAS B. Therefore, users with odd-numbered MAC addresses will be prioritized for online access on BRAS A. Similarly, BRAS B will respond to the online requests of users with even-numbered MAC addresses before BRAS A. Therefore, users with even-numbered MAC addresses will be prioritized for online access on BRAS B, thereby achieving load balancing of user traffic between BRAS A and BRAS B. Summary of the Invention
[0006] To overcome the problems existing in related technologies, this specification provides a method and network device for handling user online access.
[0007] According to a first aspect of the embodiments of this specification, a method for processing user online access is provided, the method being applied to a first BRAS device in an odd / even MAC delay access system, the method comprising: When the first BRAS device identifies a fault in its first CGN board, it sends a first VRRP message to the second BRAS device and performs both odd and even MAC delay configuration. This enables the second BRAS device to take over the first BRAS device's reception of user online messages after receiving the first VRRP message, and to stop executing the odd / even MAC delay.
[0008] The sending of the first VRRP message to the second BRAS device comprises: The first BRAS device initiates the first VRRP message to the second BRAS device.
[0009] The first VRRP message comprises an identifier indicating the first CGN board failure and VLAN information of the first BRAS online port.
[0010] The second BRAS device takes over the receiving of the user online message by the first BRAS device according to the first VRRP message after receiving the first VRRP message, and stops performing the odd / even MAC delay, which comprises: The second BRAS device acquires the first CGN board failure identifier and the VLAN information of the first BRAS online port carried in the first VRRP message after receiving the first VRRP message; The second BRAS device switches the odd / even MAC delay configuration to the default configuration according to the first CGN board failure identifier, so as to stop performing the odd / even MAC delay; The second BRAS device takes over the receiving of the user online message by the first BRAS device according to the VLAN information of the first BRAS online port.
[0011] The first BRAS device and the second BRAS device are set with a first configuration and a default configuration; The first configuration is to perform the odd / even MAC delay, and the default configuration is not to perform the MAC delay.
[0012] When the first BRAS device identifies the recovery of the first CGN board failure of itself, the first BRAS device immediately performs the odd / even MAC delay.
[0013] It can be seen from the above embodiments that, for the problem that the user cannot switch to another BRAS online after the CGN board failure of the first BRAS device, the first BRAS can inform the second BRAS of the CGN board failure of itself by using the VRRP message, and the second BRAS changes the odd / even MAC delay of the corresponding CGN service sub-interface, so as to achieve the purpose of user switching BRAS.
[0014] According to a second aspect of the embodiments of the present specification, a network device is provided, which comprises: When the first BRAS device identifies the first CGN board failure of itself, the identification module sends a first VRRP message to the second BRAS device, and performs the odd and even MAC delay configuration; So that the second BRAS device, after receiving the first VRRP message, takes over the first BRAS device to receive the user online message according to the first VRRP message, and stops performing the odd / even MAC delay.
[0015] The identification module is specifically configured to initiate the first VRRP message to the second BRAS device.
[0016] The first VRRP message includes an identifier for indicating the first CGN board failure and VLAN information of the first BRAS online port.
[0017] The second BRAS device, after receiving the first VRRP message, takes over the first BRAS device to receive the user online message according to the first VRRP message, and stops performing the odd / even MAC delay, includes: So that the second BRAS device, after receiving the first VRRP message, takes over the first BRAS device to receive the user online message according to the first VRRP message, and stops performing the odd / even MAC delay. The second BRAS device switches the odd / even MAC delay configuration to the default configuration according to the first CGN board failure identifier, so as to stop performing the odd / even MAC delay. The second BRAS device takes over the first BRAS device to receive the user online message according to the VLAN information of the first BRAS online port.
[0018] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present specification. BRIEF DESCRIPTION OF DRAWINGS
[0019] The accompanying drawings incorporated in the specification and constituting a part of the specification illustrate embodiments consistent with the present specification and serve to explain the principles of the present specification together with the specification.
[0020] Figure 1 is a network architecture diagram according to an exemplary embodiment of the present specification.
[0021] Figure 2 is a method flow diagram for processing user online according to an exemplary embodiment of the present specification. DETAILED DESCRIPTION
[0022] The exemplary embodiments will be described in detail herein with reference to several drawings. The description, when taken with the drawings, is intended to be illustrative of various embodiments and is not intended to restrict the present specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present specification as detailed in the appended claims.
[0023] The terms used in this specification are for the purpose of describing particular embodiments only and are not intended to limit the present specification. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0024] It should be understood that although the terms first, second, third, etc. can be used herein to describe various information, these terms are not intended to denote a limitation on the scope of the present specification. These terms are only used to distinguish one piece of information from another piece of information. For example, without departing from the scope of the present specification, first information can also be referred to as second information, and similarly, second information can also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as meaning "when" or "upon determination" or "in response to a determination".
[0025] At present, home broadband services have PPPoE linkage CGN services. Each BRAS device in the current network can have only one CGN board. When the CGN board fails, the user cannot be online from the BRAS device, nor can the user be online from another BRAS.
[0026] In one implementation, two CGN boards are inserted on each BRAS device to form a master-slave relationship or centralized backup. After one of the CGN boards fails, the user can be online from the other CGN board. However, when all the CGN boards in the same BRAS fail, the user still cannot be successfully online (cannot be online from the opposite BRAS), that is, in the current mode, only the backup between the CGN boards can be implemented, and the backup between the BRAS devices cannot be implemented.
[0027] To solve the above technical problems, the present embodiment provides a method for processing user online, as shown in the figure, the method is applied to a first BRAS device in an odd / even MAC delay access system, and the method comprises the following steps of: Figure 2 As shown in the figure, the method is applied to a first BRAS device in an odd / even MAC delay access system, and the method comprises the following steps of: S201 When the first BRAS device identifies that the first CGN board of itself fails, a first VRRP packet is sent to a second BRAS device, and odd and even MAC delay configurations are performed. S202 takes over the first BRAS device to receive user online message according to the first VRRP message, and stops performing odd / even MAC delay after receiving the first VRRP message.
[0028] In one example, the first BRAS device can be a master BRAS device, and the second BRAS device can be a standby BRAS device, and in another example, the first BRAS device can be a standby BRAS device, and the second BRAS device can be a master BRAS device.
[0029] It is worth noting that in the PPPoE technology, the standby BRAS device will not send VRRP message to the master BRAS device, and in the present embodiment, even if the standby BRAS device identifies that the CGN board of itself fails, it will send VRRP message to the master BRAS device to inform the master BRAS that the CGN board of itself fails, and make the master BRAS perform step S202.
[0030] In the present embodiment, the CGN (Carrier Grade NAT) board card failure identification of BRAS (Broadband Remote Access Server) is achieved, which can be achieved by combining monitoring means and failure phenomenon analysis.
[0031] For example, by monitoring key monitoring indicators and alarms, such as CPU / memory utilization, session state, port / NAT resource utilization, board physical state, etc., when the state (part or all) of the above appears abnormal, it can be judged that the CGN board fails. Alternatively, it can be judged by business level failure phenomenon, such as user online exception, log and alarm analysis, traffic anomaly, etc.
[0032] In step S201, when the first BRAS device identifies that the first CGN board of itself fails, the first BRAS will add a CGN board flag position in the first VRRP message, which can be represented by 0 or 1, for example, when the CGN board flag is 0, it can represent that the CGN board in the first BRAS fails, and when the CGN board flag is 1, it can represent that the CGN board in the first BRAS is normal.
[0033] Meanwhile, the double-layer VLAN information of the PPPoE+CGN online port (if the access port is a single-layer VLAN, the inner-layer VLAN is 0) is added in the first VRRP packet. By adding the double-layer VLAN information of the PPPoE+CGN online port in the first VRRP packet, the second BRAS device can find the online port corresponding to the standby BRAS device by analyzing the VLAN information in the packet, analyze the CGN board flag position 0 at the opposite end, and modify the odd / even delay of the PPPoE+CGN online port of the standby device to no delay. Meanwhile, the delay of the PPPoE+CGN online port of the first BRAS device is all MAC delay (that is, no distinction between odd / even MAC, all delay processing, so as to realize the second BRAS taking over the user online packet of the first BRAS).
[0034] In the embodiment, after receiving the first VRRP packet, the second BRAS needs to change the odd or even MAC delay processing configuration previously executed to no distinction between odd or even MAC delay processing configuration, in order to realize temporary taking over the work of the first BRAS.
[0035] Specifically, each BRAS can know the odd / even MAC delay configuration and the default configuration (which can also be understood as the first configuration and the second configuration, wherein the first configuration corresponds to the MAC delay configuration, and the second configuration corresponds to the default configuration). The odd / even MAC delay configuration can include processing the odd MAC first and then processing the even MAC, or processing the even MAC first and then processing the odd MAC (determined according to user demand), and the second configuration is no odd / even MAC delay.
[0036] In the embodiment, when the CGN boards in the first BRAS and the second BRAS are both normal, the first BRAS and the second BRAS execute their respective first configurations (for example, the first BRAS executes even MAC delay, and the second BRAS executes odd MAC delay). If the CGN board in the first BRAS fails, the second BRAS executes the default configuration, that is, no odd / even MAC delay. Conversely, if the CGN board in the second BRAS fails, the first BRAS executes the default configuration.
[0037] As can be seen from the above embodiments, when the first BRAS device identifies that the CGN board thereof fails, the first BRAS device can send a first VRRP packet carrying an identifier indicating the CGN board failure and VLAN information of the online port of the first BRAS to the second BRAS device, so that the second BRAS takes over the user online processing on the first BRAS according to the first VRRP packet, thereby solving the technical problem that after the CGN board in the first BRAS device fails, the user cannot switch to the online of the second BRAS.
[0038] In the embodiment, when the first BRAS device identifies that the CGN board of itself is recovered from failure to normal, the first BRAS sets to perform the odd / even MAC delay configuration, and simultaneously, sends a second VRRP message to the second BRAS device, wherein the second VRRP message carries an identification indicating that the CGN board of the first BRAS is normal, so that the second BRAS stops using the default configuration and re-enables the first configuration (odd / even delay configuration) to restore the normal working mode after receiving the second VRRP message.
[0039] As can be seen from the above embodiment, the processing mode after the CGN board failure recovery in the BRAS is provided, and through the mode, the working mode pre-configured by the administrator can be automatically restored after the CGN board failure recovery, without manual recovery.
[0040] Based on the above embodiments, the disclosure provides an example, specifically as follows: 1. When the CGN single board of the BRAS device with the VRRP as the master fails, the CGN board flag of the master device in the VRRP heartbeat message initiated by the master device is set to 0 (set to 1 when the bit is 1), the double-layer vlan information of the PPPoE+CGN online port is added in the message (if the access port is single-layer vlan, the inner-layer vlan is set to 0), and the delay of the PPPoE+CGN online port of the master device is all MAC delay (without distinguishing odd / even MAC); after the backup VRRP device receives the message, the vlan information in the message is analyzed to find the online port corresponding to the backup BRAS device, the CGN board flag of the opposite end is analyzed to be 0, and the odd / even delay of the PPPoE+CGN online port of the backup device is modified to no delay.
[0041] 2. When the CGN single board of the BRAS device with the VRRP as the master is recovered, the access delay of the device is modified to the original configuration of the odd / even MAC delay, the CGN board flag of the master device in the VRRP heartbeat message initiated by the master device is set to 1, and the vlan information of the PPPoE+CGN online port is added in the message; after the opposite end device receives the message, the access delay is also modified to the original configuration of the odd / even MAC delay.
[0042] 3. When the CGN single board of the BRAS device with the VRRP as the backup fails, the mechanism is basically the same as the first step, the backup VRRP constructs a VRRP message to send to the opposite end, the CGN board flag of the local device is set to 0, the vlan information of the PPPoE+CGN online port is added in the message, and the delay of the PPPoE+CGN online port of the device is modified to all MAC delay (without distinguishing odd / even MAC); after the master VRRP device receives the message, the odd / even delay of the PPPoE+CGN online port of the device is modified to no delay, and the CGN board flag of the BRAS device with the VRRP as the backup is set to 0 in the VRRP message sent by the master VRRP device.
[0043] After the backup VRRP device sends the VRRP message, the backup VRRP device re-sends the message again if the backup BRAS CGN flag in the message sent by the master VRRP device is not set to 0 (the master VRRP device does not receive the message sent by the backup VRRP device due to link congestion or other reasons during the sending process), and the backup VRRP device re-sends the message for 3 times by default. The backup VRRP device does not re-send the message if the message is not received.
[0044] 4. When the CGN board of the backup BRAS device recovers, the principle is the same as that in the second step.
[0045] 5. When the CGN boards of the first BRAS and the second BRAS both fail, the CGN board flags of the master and the backup devices are both 0, and the odd / even MAC delays of the two devices remain unchanged.
[0046] Based on the above method embodiments, the embodiment of the disclosure further provides a network device, which comprises: The identification module is configured to send a first VRRP message to a second BRAS device when the first BRAS device identifies that the first CGN board of the first BRAS device fails. So that the second BRAS device takes over the first BRAS device to receive user online messages and stops performing odd / even MAC delays according to the first VRRP message after receiving the first VRRP message.
[0047] The identification module is specifically configured to send the first VRRP message to the second BRAS device.
[0048] The first VRRP message comprises an identifier for indicating the failure of the first CGN board and VLAN information of an online port of the first BRAS.
[0049] The second BRAS device takes over the first BRAS device to receive user online messages and stops performing odd / even MAC delays according to the first VRRP message after receiving the first VRRP message, and the method comprises: So that the second BRAS device takes over the first BRAS device to receive user online messages and stops performing odd / even MAC delays according to the first VRRP message after receiving the first VRRP message, and the method comprises: The second BRAS device switches the odd / even MAC delay configuration to the default configuration according to the first CGN board failure identifier, so as to stop performing the odd / even MAC delay. The second BRAS device takes over the first BRAS device to receive user online messages according to the VLAN information of the online port of the first BRAS.
[0050] For the apparatus embodiments, since they basically correspond to the method embodiments, the relevant parts are referred to the part of the description of the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the modules described as separate components can or can not be physically separated, and the components shown as modules can or can not be physical modules, i.e., can be located in one place or distributed on multiple network modules. Some or all of the modules can be selected to achieve the purposes of the solutions of the present specification according to actual needs. Those skilled in the art can understand and implement without creative labor.
[0051] The above describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims can be performed in a different order than the order in which they are recited and still achieve the desired results. In addition, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.
[0052] Other embodiments of the present specification will be apparent to those skilled in the art after consideration of the specification and practice of the application disclosed herein. The specification and examples given herein are intended as illustrative only and are not intended to limit the true scope and spirit of the present specification. The true scope and spirit of the present specification are indicated by the following claims.
[0053] It should be understood that the present specification is not limited to the precise structures described herein and illustrated in the drawings and that various modifications and changes can be made without departing from the scope thereof. The scope of the present specification is indicated by the appended claims.
[0054] The above only describes the preferred embodiments of the present specification and does not limit the present specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of protection of the present specification.
Claims
1. A method of handling a user's logon, characterized by, The method is applied to a first BRAS device in an odd / even MAC delay access system, and the method comprises: When the first BRAS device identifies that the first CGN board of the first BRAS device is faulty, the first BRAS device sends a first VRRP message to a second BRAS device, and performs odd and even MAC delay configuration; So that the second BRAS device, after receiving the first VRRP message, takes over the first BRAS device to receive user online messages according to the first VRRP message, and stops performing odd / even MAC delay.
2. The method of claim 1, wherein, The first BRAS device initiates the first VRRP message to the second BRAS device. The first VRRP message comprises: identification for indicating that the first CGN board is faulty and VLAN information of a first BRAS online port.
3. The method of claim 1, wherein, The first BRAS device initiates the first VRRP message to the second BRAS device.
4. The method of claim 1, wherein, The first VRRP message comprises: identification for indicating that the first CGN board is faulty and VLAN information of a first BRAS online port. The first BRAS device initiates the first VRRP message to the second BRAS device. The first VRRP message comprises: identification for indicating that the first CGN board is faulty and VLAN information of a first BRAS online port. The first BRAS device initiates the first VRRP message to the second BRAS device.
5. The method of claim 4, wherein, The first VRRP message comprises: identification for indicating that the first CGN board is faulty and VLAN information of a first BRAS online port. The first BRAS device initiates the first VRRP message to the second BRAS device. The method further comprises:
6. The method of claim 1, wherein, The first BRAS device and the second BRAS device are set with a first configuration and a default configuration; The first configuration is to perform odd / even MAC delay, and the default configuration is not to perform MAC delay.
7. A network device, comprising: The method further comprises: When the first BRAS device identifies that the first CGN board of the first BRAS device is faulty, the first BRAS device initiates the first VRRP message to the second BRAS device. The network device comprises: An identification module, configured to, when the first BRAS device identifies that the first CGN board of the first BRAS device is faulty, send a first VRRP message to a second BRAS device, and perform odd and even MAC delay configuration; So that the second BRAS device, after receiving the first VRRP message, takes over the first BRAS device to receive user online messages according to the first VRRP message, and stops performing odd / even MAC delay.
9. The network device of claim 7, wherein, 8. The network device according to claim 7, wherein 10. The network device of claim 7, wherein, The identification module is specifically configured to initiate the first VRRP message to the second BRAS device. The first VRRP message comprises: identification for indicating that the first CGN board is faulty and VLAN information of a first BRAS online port. The first BRAS device initiates the first VRRP message to the second BRAS device. The first VRRP message comprises: identification for indicating that the first CGN board is faulty and VLAN information of a first BRAS online port. So that the second BRAS device, after receiving the first VRRP message, acquires a first CGN board failure identifier carried in the first VRRP message and VLAN information of a first BRAS online port; The second BRAS device switches the odd / even MAC delay configuration to a default configuration according to the first CGN board failure identifier, so as to stop executing the odd / even MAC delay; The second BRAS device takes over the first BRAS device in receiving user online messages according to the VLAN information of the first BRAS online port.