Metropolitan area network broadband access method, system and device and storage medium
By configuring the BRAS pool information in the metropolitan area network broadband access system, configuration information is generated to achieve chain backup and load balancing between BRASs, the problem of insufficient reliability and uneven business in the case of dual BRAS failure is solved, and the system is improved reliability and load balancing.
Patent Information
- Application Number
- CN202411270185.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-11
AI Technical Summary
The existing metropolitan area network broadband access system is insufficient in the event of dual BRAS failure and has the problem of uneven BRAS carrying services.
By obtaining BRAS pool information, determining the total number of devices, generating configuration information to configure OLT and BRAS, making it form a one-to-one correspondence between S-VLAN and logical subinterfaces, and establishing a chain backup relationship to ensure load balancing and reliability between BRASs. sex.
It improves the reliability of the metropolitan area network broadband access system, ensures that even if some BRAS fails, the system can still maintain normal operation, and achieves uniform distribution of BRAS user service load.
Smart Images

Figure CN119276648A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of broadband access technology, and in particular to a metropolitan area network broadband access method, system, equipment and storage medium. Background Art
[0002] BRAS (Broadband Remote Access Server) is an access gateway for broadband network applications in the metropolitan area network and a bridge between the broadband access network and the backbone network.
[0003] In the prior art, in order to ensure the reliability of broadband services in the metropolitan area network, a pair of BRAS are usually configured to serve as mutual disaster backup, so that when one BRAS fails to work due to a failure or maintenance, the other BRAS can still maintain the broadband access function. The uplink of the OLT (Optical Line Terminal) is connected to the BRAS pair, and the dial-up access request of the broadband user is sent to the two BRASs through the OLT. The BRAS will respond to the dial-up request, and the broadband user will only establish a PPPOE (Point-to-Point Protocol Over Ethernet) session with the first BRAS that responds, that is, the broadband user accesses the first BRAS that responds to achieve the broadband access function.
[0004] However, the existing method of using a pair of BRASs as mutual disaster backup can only cope with the situation where a single BRAS fails to work. When two BRASs fail at the same time, the broadband access service will be completely interrupted, that is, there is a problem of insufficient reliability. At the same time, there may be an imbalance in the number of broadband users accessing the BRAS, that is, there is a problem of uneven BRAS-bearing services. Summary of the invention
[0005] The present invention provides a metropolitan area network broadband access method, system, device and storage medium, which are used to solve the defects of insufficient reliability and uneven BRAS bearing services in the metropolitan area network broadband access scenario in the prior art.
[0006] The present invention provides a metropolitan area network broadband access method, comprising:
[0007] Acquire BRAS pool information, where the BRAS pool information includes information of at least three BRASs;
[0008] Determining the total number of devices of the BRAS according to the BRAS pool information;
[0009] Generate first configuration information according to the total number of devices, where the first configuration information is used to configure the OLT to set S-VLANs equal to the total number of devices;
[0010] According to the BRAS pool information, second configuration information is generated, wherein the second configuration information is used to configure the BRAS so that the BRAS corresponds to the S-VLAN one-to-one and the BRAS preferentially responds to user access requests corresponding to the S-VLAN, and so that the BRAS serves as a primary backup device for another BRAS and the two BRASs do not serve as each other's primary backup devices.
[0011] According to a metropolitan area network broadband access method provided by the present invention, generating second configuration information according to the BRAS pool information includes:
[0012] Generate first sub-configuration information according to the total number of devices, where the first sub-configuration information is used to configure each BRAS so that the BRAS sets logical sub-interfaces equal to the total number of devices, and the logical sub-interfaces correspond to the S-VLANs one by one;
[0013] Generate second sub-configuration information corresponding to the BRAS according to the BRAS pool information, wherein the second sub-configuration information is used to set a response delay of each of the logical sub-interfaces in the BRAS, so that the logical sub-interface corresponding to the first S-VLAN is free of delay, and the logical sub-interface corresponding to the second S-VLAN is a first preset delay;
[0014] Generate the second configuration information according to the first sub-configuration information and the second sub-configuration information;
[0015] The first S-VLAN is the S-VLAN corresponding to the BRAS, the BRAS corresponding to the BRAS as the primary backup device is the target backup BRAS, and the second S-VLAN is the S-VLAN corresponding to the target backup BRAS.
[0016] According to a metropolitan area network broadband access method provided by the present invention, generating second sub-configuration information corresponding to the BRAS according to the BRAS pool information includes:
[0017] According to the BRAS pool information, sorting the BRASs to form a circular queue;
[0018] According to the circular queue, between two adjacent BRASs, the BRAS ranked later is used as the primary backup device of the BRAS ranked earlier, and backup relationship information is generated;
[0019] The second sub-configuration information corresponding to the BRAS is generated according to the backup relationship information.
[0020] According to a metropolitan area network broadband access method provided by the present invention, generating the second sub-configuration information corresponding to the BRAS according to the backup relationship information includes:
[0021] Taking each of the BRASs as a target BRAS in turn, and determining a corresponding backup order starting with the target BRAS according to the backup relationship information;
[0022] According to the backup order and the preset step delay, based on the correspondence between the BRAS and the S-VLAN and the correspondence between the logical sub-interface and the S-VLAN, the response delay of the logical sub-interface in the target BRAS is determined in turn, and the second sub-configuration information corresponding to the target BRAS is generated.
[0023] The present invention also provides a metropolitan area network broadband access method, which is applied to BRAS, comprising:
[0024] Acquire second configuration information;
[0025] Determine the total number of devices according to the second configuration information, and set an equal number of logical sub-interfaces according to the total number of devices, wherein the logical sub-interfaces correspond to the S-VLANs one by one;
[0026] According to the second configuration information, setting the response delay of each of the logical sub-interfaces;
[0027] In response to a user access request of the OLT, based on the S-VLAN corresponding to the user access request, determine the corresponding logical sub-interface as the first target interface, and after the response delay corresponding to the first target interface, generate response feedback information and send the response feedback information through the first target interface;
[0028] The second configuration information is determined by the above-mentioned metropolitan area network broadband access method.
[0029] A metropolitan area network broadband access method provided by the present invention also includes:
[0030] in response to a recovery message, the recovery message being generated by the other BRAS;
[0031] According to the recovery message, determining the corresponding logical sub-interface as the second target interface;
[0032] Generate offline reconnection information, and send the offline reconnection information to a user equipment connected to the second target interface;
[0033] The offline reconnection information is used to instruct the user equipment to go offline and regenerate the user access request.
[0034] The present invention also provides a metropolitan area network broadband access method, which is applied to OLT and includes:
[0035] Obtaining first configuration information;
[0036] Determine the total number of devices according to the first configuration information, and set an equal number of S-VLANs according to the total number of devices;
[0037] In response to a user dial-up request, according to the number of user devices accessing the S-VLAN, a target S-VLAN is selected, the user dial-up request is encapsulated according to the target S-VLAN to generate a user access request, and the user access request is sent to the BRAS;
[0038] The first configuration information is determined by the above-mentioned metropolitan area network broadband access method.
[0039] The present invention also provides a metropolitan area network broadband access system, comprising: a configuration device, at least three BRASs and at least one OLT, wherein the configuration device is respectively connected to the BRAS and the OLT in communication, and the OLT is connected to the BRAS in communication;
[0040] The configuration device executes the above-mentioned metropolitan area network broadband access method; the BRAS executes the above-mentioned metropolitan area network broadband access method applied to the BRAS; and the OLT executes the above-mentioned metropolitan area network broadband access method applied to the OLT.
[0041] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a metropolitan area network broadband access method as described above is implemented.
[0042] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for broadband access to a metropolitan area network as described in any one of the above is implemented.
[0043] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the above-mentioned metropolitan area network broadband access methods.
[0044] The present invention provides a metropolitan area network broadband access method, system, device and storage medium, which have at least the following beneficial effects:
[0045] Obtain BRAS pool information, determine the total number of devices according to the number of BRASs included, and then generate the first configuration information to configure the OLT so that the OLT sets S-VLANs equal to the total number of devices. Generate the second configuration information according to the BRAS pool information to configure the BRAS so that each BRAS corresponds to the S-VLAN one-to-one, and the BRAS responds preferentially when obtaining the user access request of the corresponding S-VLAN. Based on the user service load corresponding to each S-VLAN, the OLT allocates new user access requests to the S-VLAN with low load, so that the user equipment is connected to the corresponding BRAS, making the user service load between the BRAS more balanced. After the second configuration information configures the BRAS, each BRAS serves as the master backup device of another BRAS, and the two BRASs will not serve as the master backup device of each other, that is, a chain backup relationship is formed between the BRASs. In this way, a chain backup relationship is formed between each BRAS. Even if some of the BRAS cannot respond, other BRAS can respond as backup to maintain broadband access services. Compared with the method of two BRAS serving as mutual disaster backup, it can effectively improve reliability. At the same time, by setting the S-VLAN corresponding to the BRAS through the OLT, the BRAS gives priority to responding to the corresponding S-VLAN, which is conducive to making the user service load of the BRAS more even. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 This is one of the flow diagrams of a metropolitan area network broadband access method provided by the present invention.
[0048] Figure 2 This is the second flow chart of a metropolitan area network broadband access method provided by the present invention.
[0049] Figure 3 This is the third flow chart of a metropolitan area network broadband access method provided by the present invention.
[0050] Figure 4 It is a schematic diagram of a metropolitan area network broadband access system provided by the present invention in a broadband access scenario.
[0051] Figure 5 It is a schematic diagram of a metropolitan area network broadband access system provided by the present invention in a failure stage in a recovery scenario.
[0052] Figure 6 It is a schematic diagram of a metropolitan area network broadband access system provided by the present invention in a recovery phase in a recovery scenario.
[0053] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The existing method of using a pair of BRASs for mutual disaster recovery can only deal with the situation where a single BRAS cannot respond due to failure, maintenance, etc. In the case of two BRASs failing at the same time, the broadband access function cannot be maintained. Although the probability of two BRASs failing at the same time is low, it is not impossible. Based on the user equipment, a PPOE session will be established with the first BRAS that responds, that is, the user equipment is connected to the first BRAS that responds, and the subsequent BRAS that responds will not establish a PPOE session. There may be an imbalance in the user equipment connected to the two BRASs, that is, there is a problem of uneven BRAS carrying user services, which is not conducive to fully utilizing BRAS resources and affects service response performance.
[0056] In a pair of BRASs that serve as mutual disaster backup, when one of the BRASs stops working due to a failure, maintenance, etc., the user devices connected to it will go offline and re-dial to connect to the other BRAS that is working normally. However, when the suspended BRAS is restored, if you want to balance the user service load of the two BRASs, you need to make all the user devices connected to the BRAS that was originally working continuously go offline and re-dial to connect, resulting in the user devices that have been working normally also needing to go offline, and fine user access adjustments cannot be made, affecting the user experience.
[0057] For the above problems, the following Figure 1 A metropolitan area network broadband access method of the present invention is described, comprising:
[0058] S100: Acquire BRAS pool information, where the BRAS pool information includes information of at least three BRASs;
[0059] S110: Determine the total number of devices of the BRAS according to the BRAS pool information;
[0060] S120: Generate first configuration information according to the total number of devices, where the first configuration information is used to configure the OLT to set S-VLANs equal to the total number of devices;
[0061] S130: Generate second configuration information based on the BRAS pool information, where the second configuration information is used to configure the BRAS so that the BRAS corresponds to the S-VLAN one-to-one and the BRAS preferentially responds to user access requests corresponding to the S-VLAN, and so that the BRAS serves as a primary backup device for another BRAS and the two BRASs do not serve as each other's primary backup devices.
[0062] Obtain BRAS pool information, determine the total number of devices according to the number of BRASs included, and then generate the first configuration information to configure the OLT so that the OLT sets S-VLANs equal to the total number of devices. Generate the second configuration information according to the BRAS pool information to configure the BRAS so that each BRAS corresponds to the S-VLAN one-to-one, and the BRAS responds preferentially when obtaining the user access request of the corresponding S-VLAN. Based on the user service load corresponding to each S-VLAN, the OLT allocates new user access requests to the S-VLAN with low load, so that the user equipment is connected to the corresponding BRAS, making the user service load between the BRAS more balanced. After the second configuration information configures the BRAS, each BRAS serves as the master backup device of another BRAS, and the two BRASs will not serve as the master backup device of each other, that is, a chain backup relationship is formed between the BRASs.
[0063] In this way, a chain backup relationship is formed between each BRAS. Even if some of the BRAS cannot respond, other BRAS can respond as backup to maintain broadband access services. Compared with the method of two BRAS serving as mutual disaster backup, it can effectively improve reliability. At the same time, by setting the S-VLAN corresponding to the BRAS through the OLT, the BRAS gives priority to responding to the corresponding S-VLAN, which is conducive to making the user service load of the BRAS more even.
[0064] S-VLAN (Service Virtual Local Area Network) refers to the VLAN (Virtual Local Area Network) used to distinguish and isolate different users or different services in the service provider network. It allows the creation of multiple logical networks in the same physical network, thereby ensuring that the traffic of different users does not interfere with each other and providing personalized network services.
[0065] In some embodiments of the present invention, the BRAS pool information includes information corresponding to the BRAS selected as the backup pool, which may specifically include information such as the identification code and network location of the BRAS.
[0066] In some embodiments of the present invention, the first configuration information configures the OLT, which may be to instruct the OLT to set multiple S-VLANs, and then the OLT may forward the user access request through the S-VLAN with a low load when a new user access request appears according to the load conditions of different S-VLANs, so that the BRAS corresponding to the S-VLAN responds preferentially, thereby achieving the effect of selecting BRAS access according to the user service load. It can be understood that the load condition of the S-VLAN is associated with the load condition of the corresponding BRAS.
[0067] For ease of understanding, the correspondence between S-VLAN and BRAS is schematically illustrated by way of example: Assume that the BRAS pool includes three BRASs, namely BRAS(1), BRAS(2) and BRAS(3), and each OLT is provided with S-VLANs equal to the total number of devices, that is, three S-VLANs, namely S-VLAN(1), S-VLAN(2) and S-VLAN(3). Assume that BRAS(1) corresponds to S-VLAN(1), then the OLT forwards the user access application to each BRAS, and after determining that the corresponding S-VLAN is S-VLAN(1), BRAS(1) responds preferentially, so that the user device is accessed to BRAS(1).
[0068] Based on the above example, the primary and backup devices are further schematically explained. Assuming that BRAS (2) is the primary and backup device of BRAS (1), after obtaining the user access request of S-VLAN (1), BRAS (1) will respond first, and BRAS (2) will respond after a preset delay. In this way, when BRAS (1) is suspended and cannot respond, the user device will access BRAS (2) based on the response of BRAS (2), realizing the function of BRAS (2) as the primary and backup device of BRAS (1). Similarly, according to the relationship between the primary and backup devices, and the corresponding relationship between BRAS and S-VLAN, the response delay of BRAS to different S-VLANs can be set to achieve the effect of chain backup.
[0069] It should be noted that, on the basis of each BRAS being the primary backup device of another BRAS, a secondary backup device, a tertiary backup device, etc. can be further added. For example, on the basis of BRAS (2) being the primary backup device of BRAS (1), by setting the response delay of BRAS (3) to S-VLAN (1), so that BRAS (3) responds after BRAS (2), it can be achieved that BRAS (3) can be used as the secondary backup device of BRAS (1), so as to ensure the response to S-VLAN (1) when BRAS (1) and BRAS (2) are suspended at the same time. Similarly, in the case of more BRASs, a chain-type ladder backup relationship can be established in the above manner, so that when any BRAS less than the total number of devices is suspended, access response can be guaranteed for all S-VLANs.
[0070] In some embodiments of a metropolitan area network broadband access method of the present invention, the S130 includes:
[0071] Generate first sub-configuration information according to the total number of devices, where the first sub-configuration information is used to configure each BRAS so that the BRAS sets logical sub-interfaces equal to the total number of devices, and the logical sub-interfaces correspond to the S-VLANs one by one;
[0072] Generate second sub-configuration information corresponding to the BRAS according to the BRAS pool information, wherein the second sub-configuration information is used to set a response delay of each of the logical sub-interfaces in the BRAS, so that the logical sub-interface corresponding to the first S-VLAN is free of delay, and the logical sub-interface corresponding to the second S-VLAN is a first preset delay;
[0073] Generate the second configuration information according to the first sub-configuration information and the second sub-configuration information;
[0074] The first S-VLAN is the S-VLAN corresponding to the BRAS, the BRAS corresponding to the BRAS as the primary backup device is the target backup BRAS, and the second S-VLAN is the S-VLAN corresponding to the target backup BRAS.
[0075] According to the first sub-configuration information, based on the total number of devices, each BRAS is provided with an equal number of logical sub-interfaces, and then each BRAS has a logical sub-interface corresponding to each S-VLAN. After obtaining a user access request, the BRAS returns an access response through the corresponding logical sub-interface according to the S-VLAN to which the user access request belongs, so that the user device is accessed to the corresponding logical sub-interface. In this way, the BRAS can manage user devices of different S-VLANs based on the logical sub-interface, which is conducive to fine-grained user access adjustment.
[0076] When other BRASs resume working, the user devices under the corresponding logical sub-interface can be taken offline and broadband access can be reestablished according to the S-VLAN corresponding to the restored BRAS, so that these user devices can be reconnected to the restored BRAS without taking all the user devices connected to it offline. This can achieve the purpose of user load balancing, making user access adjustment more flexible and precise, and helping to reduce the impact of recovery and reconnection on user experience.
[0077] According to the second sub-configuration information, based on the backup relationship between the BRASs, a response delay is set for each logical sub-interface in each BRAS to implement the backup relationship between the BRASs.
[0078] For ease of understanding, a schematic description is also given using three BRASs and three S-VLANs, assuming that: BRAS (1) is the primary backup device of BRAS (3), that is, BRAS (3) is the target backup BRAS of BRAS (1); BRAS (2) is the primary backup device of BRAS (1); BRAS (3) is the primary backup device of BRAS (2); BRAS (1) corresponds to S-VLAN (1); BRAS (2) corresponds to S-VLAN (2); BRAS (3) corresponds to S-VLAN (3). Among them, S-VLAN (1) is the first S-VLAN of BRAS (1), and S-VLAN (3) is the second S-VLAN of BRAS (1).
[0079] BRAS (1), BRAS (2) and BRAS (3) are each provided with three logical sub-interfaces, namely logical sub-interface (1), logical sub-interface (2) and logical sub-interface (3). Among them, logical sub-interface (1) corresponds to S-VLAN (1); logical sub-interface (2) corresponds to S-VLAN (2); and logical sub-interface (3) corresponds to S-VLAN (3).
[0080] In this case, for BRAS (1), logical sub-interface (1) is set to no delay; logical sub-interface (2) is set to the second preset delay, and logical sub-interface (3) is set to the first preset delay, and the second preset delay is greater than the first preset delay. Similarly, for BRAS (2), logical sub-interface (1) is set to the first preset delay, logical sub-interface (2) is set to no delay, and logical sub-interface (3) is set to the second preset delay. In BRAS (3), logical sub-interface (1) is set to the second preset delay, logical sub-interface (2) is set to the first preset delay, and logical sub-interface (3) is set to no delay. It can be understood that the response delay settings of each logical sub-interface in different BRASs are not the same.
[0081] BRAS (1) responds to S-VLAN (1) without delay, achieving the effect of priority response. BRAS (1) responds to S-VLAN (3) after a first preset delay, achieving the purpose of BRAS (1) serving as the primary backup device of BRAS (3), that is, BRAS (1) responds to S-VLAN (3) after BRAS (3). The logical sub-interface (2) is set to the second preset delay, so that BRAS (1) serves as the secondary backup device of BRAS (2) and responds to S-VLAN (2) after BRAS (3). The same effect is achieved for BRAS (2) and BRAS (3).
[0082] It is understandable that when there are more BRASs, similar to the above setting, for BRAS (1), BRAS (2) can be used as the primary backup device, BRAS (3) as the secondary backup device, BRAS (4) as the tertiary backup device, and so on.
[0083] In this way, by setting up logical sub-interfaces on each BRAS that are equal to the total number of devices, that is, the number of S-VLANs, and setting different response delays for the logical sub-interfaces in each BRAS, a backup relationship between BRASs is implemented, so that the BRAS has multiple backup devices of different levels, and the BRAS serves as a backup device of different levels for other BRASs.
[0084] In some embodiments of a metropolitan area network broadband access method of the present invention, generating second sub-configuration information corresponding to the BRAS according to the BRAS pool information includes:
[0085] According to the BRAS pool information, sorting the BRASs to form a circular queue;
[0086] According to the circular queue, between two adjacent BRASs, the BRAS ranked later is used as the primary backup device of the BRAS ranked earlier, and backup relationship information is generated;
[0087] The second sub-configuration information corresponding to the BRAS is generated according to the backup relationship information.
[0088] By sorting the BRASs to form a circular queue, the standby relationship between the BRASs can be quickly and clearly determined according to the queue position relationship of the circular queue, which is conducive to improving the efficiency of generating the second sub-configuration information.
[0089] It can be understood that each BRAS in the circular queue starts with itself, the first BRAS behind is the primary backup device, the second BRAS behind is the secondary backup device, the third BRAS behind is the third-level backup device, and so on. Assuming that there are N BRASs in the circular queue, the first BRAS in front of the BRAS itself is the N-1th-level backup device. For each BRAS, there are N-1-level backups, and the backup relationship information is generated based on the backup relationship of each BRAS.
[0090] In some embodiments of a metropolitan area network broadband access method of the present invention, generating the second sub-configuration information corresponding to the BRAS according to the backup relationship information includes:
[0091] Taking each of the BRASs as a target BRAS in turn, and determining a corresponding backup order starting with the target BRAS according to the backup relationship information;
[0092] According to the backup order and the preset step delay, based on the correspondence between the BRAS and the S-VLAN and the correspondence between the logical sub-interface and the S-VLAN, the response delay of the logical sub-interface in the target BRAS is determined in turn, and the second sub-configuration information corresponding to the target BRAS is generated.
[0093] The backup relationship information includes the backup relationship corresponding to each BRAS, and the backup order is determined according to the backup relationship corresponding to the target BRAS, that is, the backup order includes the target BRAS as the starting point, the subsequent primary backup device, the secondary backup device, the third-level backup device to the N-1-level backup device. Based on the backup order and the S-VLAN corresponding to the backup device, the logical sub-interface of the target BRAS is determined, and the response delay of the logical sub-interface is set according to the preset step delay.
[0094] For ease of understanding, the numbers and corresponding relationships of the above three BRAS situations are used as an example to illustrate schematically. When BRAS (2) is used as the target BRAS, the corresponding backup order is: BRAS (2), BRAS (3), BRAS (1), that is, BRAS (3) is the primary backup device and BRAS (1) is the secondary backup device. Based on the fact that BRAS (3) corresponds to S-VLAN (3) and S-VLAN (3) corresponds to logical sub-interface (3), similarly, BRAS (1) corresponds to logical sub-interface (1). Therefore, according to the preset step delay, assuming that it increases step by step by 100 ms, the logical sub-interface (3) in BRAS (2) is set to a response delay of 100 ms and the logical sub-interface (1) is set to a response delay of 200 seconds. It can be understood that the logical sub-interface (2) corresponding to BRAS (2) itself has no delay. When BRAS (1) and BRAS (3) are used as target BRASs, the same process is used to set their own logical sub-interfaces. Similarly, the process of setting the logical sub-interface of each BRAS in the case of multiple BRASs can be deduced by analogy.
[0095] In this way, the backup order corresponding to the target BRAS is determined according to the backup relationship information, and then the response delay of each logical sub-interface in the target BRAS is configured in combination with the preset step delay to realize the ladder backup relationship between each BRAS, which can effectively respond to emergencies. Even if several BRAS cannot work, other BRAS can orderly replace the non-working BRAS according to the backup ladder, thereby improving the reliability of broadband access.
[0096] In some embodiments of the present invention, the preset step delay may be an arithmetic progression, such as being set with an interval of 100 ms or other unit time. In some embodiments of the present invention, the preset step delay may also be set step by step according to demand, or be set with a progression corresponding to a demand curve.
[0097] The above describes the configuration process of a metropolitan area network broadband access method of the present invention. In some embodiments of the present invention, it can be executed by a configuration device to generate first configuration information and second configuration information, send the first configuration information to the OLT to configure the OLT, and send the second configuration information to the BRAS to configure the BRAS, thereby realizing chain backup of the BRAS and load balancing of user broadband access services.
[0098] The following description is respectively made for the BRAS side and the OLT side. The following method applied to the BRAS and the following method applied to the OLT can be cross-referenced with the above-mentioned metropolitan area network broadband access method, and will not be described in detail.
[0099] refer to Figure 2 and Figure 4The present invention also provides a metropolitan area network broadband access method, which is applied to BRAS and includes:
[0100] S200: Acquire second configuration information;
[0101] S210: Determine the total number of devices according to the second configuration information, and set an equal number of logical sub-interfaces according to the total number of devices, where the logical sub-interfaces correspond to the S-VLANs one by one;
[0102] S220: Setting a response delay of each of the logical sub-interfaces according to the second configuration information;
[0103] S230: In response to the user access request of the OLT, based on the S-VLAN corresponding to the user access request, determine the corresponding logical sub-interface as the first target interface, and after the response delay corresponding to the first target interface, generate response feedback information and send the response feedback information through the first target interface;
[0104] The second configuration information is determined by the above-mentioned metropolitan area network broadband access method.
[0105] After the BRAS obtains the second configuration information, it sets the logical sub-interface according to the second configuration information and sets the response delay of the logical sub-interface. Figure 4 In the broadband access scenario, when the OLT uploads a new user access request, the BRAS determines the S-VLAN to which the user access request belongs, and then determines its own corresponding logical sub-interface, that is, the first target interface, and sends response feedback information based on the response delay corresponding to the first target interface to respond to the user access request. When the BRAS itself is the first BRAS to respond, the user device is connected to the first target interface. Figure 4 As shown, when each BRAS is operating normally, users of S-VLAN (1) are accessed to the logical sub-interface (1) under BRAS (1), users of S-VLAN (2) are accessed to the logical sub-interface (2) under BRAS (2), ... users of S-VLAN (n) are accessed to the logical sub-interface (n) under BRAS (n).
[0106] In this way, based on the response implementation of the logical sub-interface, a chain-type ladder backup relationship is realized between each BRAS in the BRAS pool. When other BRAS cannot respond to the user request of its corresponding S-VLAN due to failure or other reasons, the normally working BRAS can also connect the user equipment to its corresponding logical sub-port after the corresponding response delay, thereby effectively improving reliability.
[0107] It is understandable that after the user equipment sends a user access request, it will only establish a session with the first responding BRAS, that is, the user equipment will only access one BRAS, and the subsequent response feedback information sent to the user equipment by other BRAS based on the response delay will be ignored by the user equipment.
[0108] refer to Figure 2 , Figure 5 and Figure 6 In some embodiments of a metropolitan area network broadband access method applied to BRAS of the present invention, the method further includes:
[0109] S240: responding to a recovery message, the recovery message being generated by another BRAS;
[0110] S250: According to the recovery message, determine the corresponding logical sub-interface as the second target interface;
[0111] S260: Generate offline reconnection information, and send the offline reconnection information to a user equipment connected to the second target interface;
[0112] The offline reconnection information is used to instruct the user equipment to go offline and regenerate the user access request.
[0113] When the BRAS stops working due to failure, maintenance, etc., the user devices in the corresponding S-VLAN are connected to the logical sub-interface corresponding to the normal working BRAS to maintain the broadband access service of the user devices. Figure 5 and Figure 6 , Figure 5 As shown, BRAS (1) to BRAS (n-1) stop working due to a fault, and users of each S-VLAN are connected to the corresponding logical sub-interface under BRAS (n), such as users of S-VLAN (1) are connected to logical sub-interface (1) under BRAS (n), users of S-VLAN (2) are connected to logical sub-interface (2) under BRAS (n), ... users of S-VLAN (n-1) are connected to logical sub-interface (n-1) under BRAS (n).
[0114] The suspended BRAS will resume work after the fault is repaired and maintenance is completed. In order to balance the user load of the BRAS, the restored BRAS generates a recovery message and sends it to other BRASs that are operating normally. Other BRASs that are operating normally respond to the recovery message, determine the S-VLAN corresponding to the restored BRAS, and make the corresponding logical sub-interface, that is, the user equipment under the second target interface offline, so that the user equipment regenerates the user access request to reconnect. At this time, the restored BRAS will be the first to respond because it is the user access request belonging to the corresponding S-VLAN, and then connect the offline and reconnected user equipment to its corresponding logical sub-interface. Figure 6 As shown, after BRAS (1) to BRAS (n-1) resume operation, they will send a recovery message to BRAS (n) to inform BRAS (n) of the recovery operation. Then BRAS (n) will order the users of its logical sub-interfaces (1) to (n-1) to go offline and reconnect, so that users of S-VLAN (1) can reconnect to logical sub-interface (1) under BRAS (1), users of S-VLAN (2) can reconnect to logical sub-interface (2) under BRAS (2), and ... users of S-VLAN (n-1) can reconnect to logical sub-interface (n-1) under BRAS (n-1). Users of logical sub-interface (n) under BRAS (n) do not need to go offline and are not affected by the recovery.
[0115] In this way, after the suspended BRAS resumes operation, its corresponding user equipment can be connected to it to achieve the effect of user load balancing. At the same time, the BRAS that continues to work normally does not need to disconnect all the user equipment under it and reconnect them. It can make fine user access adjustments based on logical sub-interfaces, which is conducive to making the adjustment more flexible and reducing the impact on user experience.
[0116] refer to Figure 3 The present invention also provides a metropolitan area network broadband access method, applied to OLT, comprising:
[0117] S300: Acquire first configuration information;
[0118] S310: Determine the total number of devices according to the first configuration information, and set an equal number of S-VLANs according to the total number of devices;
[0119] S320: In response to the user dial-up request, select a target S-VLAN according to the number of user devices accessing the S-VLAN, encapsulate the user dial-up request according to the target S-VLAN to generate a user access request, and send the user access request to the BRAS;
[0120] The first configuration information is determined by the above-mentioned metropolitan area network broadband access method.
[0121] The OLT learns the total number of BRAS devices in the BRAS pool according to the first configuration information, and sets an equal number of S-VLANs accordingly. Figure 4 In the broadband access scenario, when obtaining a user dial-up request, the S-VLAN with the smallest user load is selected as the target S-VLAN according to the number of user devices corresponding to each S-VLAN, that is, the user load. The user dial-up request is encapsulated according to the target S-VLAN to generate a user access request, so that the subsequent BRAS can determine the S-VLAN to which the user access request belongs based on the S-VLAN identifier in the user access request. The user access request is sent to each BRAS, so that the user device can establish a session with the first BRAS that responds.
[0122] In this way, S-VLAN is set up through OLT, and based on the user load of each S-VLAN, new user access requests are uploaded to BRAS through S-VLAN with low user load, so as to achieve user load balancing, which is conducive to making full use of BRAS resources and improving the stability of broadband access service response.
[0123] refer to Figures 4 to 6 The present invention also provides a metropolitan area network broadband access system, characterized in that it comprises: a configuration device, at least three BRASs and at least one OLT, the configuration device is respectively connected to the BRAS and the OLT in communication, and the OLT is connected to the BRAS in communication;
[0124] Among them, the configuration device executes the above-mentioned metropolitan area network broadband access method to generate first configuration information and second configuration information; the BRAS executes the above-mentioned metropolitan area network broadband access method applied to BRAS; and the OLT executes the above-mentioned metropolitan area network broadband access method applied to OLT.
[0125] The configuration device obtains BRAS pool information, determines the total number of devices according to the number of BRASs included, and then generates first configuration information to configure the OLT so that the OLT sets S-VLANs equal to the total number of devices. The configuration device generates second configuration information according to the BRAS pool information to configure the BRAS so that each BRAS corresponds to the S-VLAN one by one, and the BRAS responds preferentially when obtaining a user access request corresponding to the S-VLAN.
[0126] Based on the user service load corresponding to each S-VLAN, the OLT distributes new user access requests to the S-VLAN with low load, so that the user equipment can access the corresponding BRAS, making the user service load between BRASs more balanced.
[0127] After the BRAS is configured based on the second configuration information, each BRAS serves as a primary backup device of another BRAS, and two BRASs will not serve as primary backup devices for each other, that is, a chain backup relationship is formed between the BRASs.
[0128] In this way, a chain backup relationship is formed between each BRAS. Even if some of the BRAS cannot respond, other BRAS can respond as backup to maintain broadband access services. Compared with the method of two BRAS serving as mutual disaster backup, it can effectively improve reliability. At the same time, by setting the S-VLAN corresponding to the BRAS through the OLT, the BRAS gives priority to responding to the corresponding S-VLAN, which is conducive to making the user service load of the BRAS more even.
[0129] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the above-mentioned metropolitan area network broadband access method.
[0130] The electronic device provided by the present invention may be a configuration device, a BRAS or an OLT.
[0131] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0132] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a metropolitan area network broadband access method provided by the above methods.
[0133] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute a metropolitan area network broadband access method provided by the above methods.
[0134] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0136] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0137] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0138] All actions to obtain signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A metropolitan area network broadband access method, characterized in that: include: Acquire BRAS pool information, where the BRAS pool information includes information of at least three BRASs; Determining the total number of devices of the BRAS according to the BRAS pool information; Generate first configuration information according to the total number of devices, where the first configuration information is used to configure the OLT to set S-VLANs equal to the total number of devices; According to the BRAS pool information, second configuration information is generated, wherein the second configuration information is used to configure the BRAS so that the BRAS corresponds to the S-VLAN one-to-one and the BRAS preferentially responds to user access requests corresponding to the S-VLAN, and so that the BRAS serves as a primary backup device for another BRAS and the two BRASs do not serve as each other's primary backup devices.
2. A metropolitan area network broadband access method according to claim 1, characterized in that: The generating second configuration information according to the BRAS pool information includes: Generate first sub-configuration information according to the total number of devices, where the first sub-configuration information is used to configure each BRAS so that the BRAS sets logical sub-interfaces equal to the total number of devices, and the logical sub-interfaces correspond to the S-VLANs one by one; Generate second sub-configuration information corresponding to the BRAS according to the BRAS pool information, wherein the second sub-configuration information is used to set a response delay of each of the logical sub-interfaces in the BRAS, so that the logical sub-interface corresponding to the first S-VLAN is free of delay, and the logical sub-interface corresponding to the second S-VLAN is a first preset delay; Generate the second configuration information according to the first sub-configuration information and the second sub-configuration information; The first S-VLAN is the S-VLAN corresponding to the BRAS, the BRAS corresponding to the BRAS as the primary backup device is the target backup BRAS, and the second S-VLAN is the S-VLAN corresponding to the target backup BRAS.
3. A metropolitan area network broadband access method according to claim 2, characterized in that: The generating, according to the BRAS pool information, second sub-configuration information corresponding to the BRAS includes: According to the BRAS pool information, sorting the BRASs to form a circular queue; According to the circular queue, between two adjacent BRASs, the BRAS ranked later is used as the primary backup device of the BRAS ranked earlier, and backup relationship information is generated; The second sub-configuration information corresponding to the BRAS is generated according to the backup relationship information.
4. A metropolitan area network broadband access method according to claim 3, characterized in that: The generating, according to the backup relationship information, the second sub-configuration information corresponding to the BRAS includes: Taking each of the BRASs as a target BRAS in turn, and determining a corresponding backup order starting with the target BRAS according to the backup relationship information; According to the backup order and the preset step delay, based on the correspondence between the BRAS and the S-VLAN and the correspondence between the logical sub-interface and the S-VLAN, the response delay of the logical sub-interface in the target BRAS is determined in turn, and the second sub-configuration information corresponding to the target BRAS is generated.
5. A metropolitan area network broadband access method, characterized in that: Applied to BRAS, including: Obtaining second configuration information; Determine the total number of devices according to the second configuration information, and set an equal number of logical sub-interfaces according to the total number of devices, wherein the logical sub-interfaces correspond to the S-VLANs one by one; According to the second configuration information, setting the response delay of each of the logical sub-interfaces; In response to a user access request of the OLT, based on the S-VLAN corresponding to the user access request, determine the corresponding logical sub-interface as the first target interface, and after the response delay corresponding to the first target interface, generate response feedback information and send the response feedback information through the first target interface; Wherein, the second configuration information is determined by a metropolitan area network broadband access method as described in any one of claims 2 to 4.
6. A metropolitan area network broadband access method according to claim 5, characterized in that: Also includes: in response to a recovery message, the recovery message being generated by the other BRAS; According to the recovery message, determining the corresponding logical sub-interface as the second target interface; Generate offline reconnection information, and send the offline reconnection information to a user equipment connected to the second target interface; The offline reconnection information is used to instruct the user equipment to go offline and regenerate the user access request.
7. A metropolitan area network broadband access method, characterized in that: Applied to OLT, including: Acquire first configuration information; Determine the total number of devices according to the first configuration information, and set an equal number of S-VLANs according to the total number of devices; In response to a user dial-up request, according to the number of user devices accessing the S-VLAN, a target S-VLAN is selected, the user dial-up request is encapsulated according to the target S-VLAN to generate a user access request, and the user access request is sent to the BRAS; Wherein, the first configuration information is determined by a metropolitan area network broadband access method as described in any one of claims 1 to 4.
8. A metropolitan area network broadband access system, characterized in that: include: A configuration device, at least three BRASs and at least one OLT, wherein the configuration device is communicatively connected to the BRAS and the OLT respectively, and the OLT is communicatively connected to the BRAS; The configuration device executes a metropolitan area network broadband access method as described in any one of claims 1 to 4; the BRAS executes a metropolitan area network broadband access method as described in claim 5 or 6; and the OLT executes a metropolitan area network broadband access method as described in claim 7.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for metropolitan area network broadband access as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a metropolitan area network broadband access method as claimed in any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, a metropolitan area network broadband access method as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Business disaster tolerance method and related device
CN105556900A
Broadband access method and device
CN106559292A
User flow distribution method and system
CN107819602A
Method and device for determining load balancing strategy and storage medium
CN110891028A
Implementation method and device for optical line terminal-content distribution network, medium and network
CN111385338A
Cited By
Service network channel configuration method, device and equipment and readable storage medium
CN118827362A