CN109245911B - Method and device for realizing BRAS hot standby and computer readable storage medium - Google Patents

Method and device for realizing BRAS hot standby and computer readable storage medium Download PDF

Info

Publication number
CN109245911B
CN109245911B CN201710561290.0A CN201710561290A CN109245911B CN 109245911 B CN109245911 B CN 109245911B CN 201710561290 A CN201710561290 A CN 201710561290A CN 109245911 B CN109245911 B CN 109245911B
Authority
CN
China
Prior art keywords
bras
equipment
target
port
standby
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710561290.0A
Other languages
Chinese (zh)
Other versions
CN109245911A (en
Inventor
胡淑军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710561290.0A priority Critical patent/CN109245911B/en
Publication of CN109245911A publication Critical patent/CN109245911A/en
Application granted granted Critical
Publication of CN109245911B publication Critical patent/CN109245911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0695Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The invention provides a method and equipment for realizing BRAS hot standby and a computer readable storage medium, relates to the technical field of communication, and aims to save network equipment resources. The method for realizing the BRAS hot standby comprises the following steps: acquiring state information of target primary BRAS equipment; when the target main BRAS equipment is determined to have a fault according to the state information, determining standby equipment of the target main BRAS equipment; the standby equipment is used for backing up a plurality of main BRAS equipment; and transmitting the data of the target primary BRAS equipment by utilizing the standby equipment. The invention can save network equipment resources.

Description

Method and device for realizing BRAS hot standby and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for implementing a BRAS hot standby, and a computer-readable storage medium.
Background
A Broadband Remote Access Server (BRAS) is a novel Access gateway for Broadband network applications.
The existing BRAS hot standby scheme adopts a 1:1 hot standby technology, namely, a standby device with the same configuration as that of a main device is used for realizing backup. And synchronizing the user table item information between the main equipment and the standby equipment in real time. Once the main device has a link failure or a device failure, the standby device is upgraded to the main device, and the forwarding of the user traffic is directly taken over according to the synchronized user forwarding table.
The existing hot standby scheme of the BRAS deploys one standby device for each BRAS, which causes a serious waste of resources.
Disclosure of Invention
In view of the above, the present invention provides a method, a device and a computer readable storage medium for implementing a BRAS hot standby, so as to save network device resources.
In order to solve the above technical problem, the present invention provides a method for implementing a BRAS hot standby, which is applied to a BRAS management and control device, and includes:
acquiring state information of target primary BRAS equipment;
when the target main BRAS equipment is determined to have a fault according to the state information, determining standby equipment of the target main BRAS equipment; the standby equipment is used for backing up a plurality of main BRAS equipment;
and transmitting the data of the target primary BRAS equipment by utilizing the standby equipment.
Before the obtaining of the status information of the target primary BRAS device, the method further includes:
setting backup corresponding relation between the standby equipment and a plurality of main BRAS equipment; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
Before the obtaining of the status information of the target primary BRAS device, the method further includes:
receiving a PPPoE signaling message of the target main BRAS equipment;
generating a user forwarding table item according to the PPPoE signaling message;
and sending the user forwarding table item to the target main BRAS equipment.
Before the sending of the user forwarding table entry to the target primary BRAS device, the method further includes:
for any port in the target main BRAS equipment, when a user is on line for the first time, an IP address is allocated to the any port;
and sending the IP address corresponding to any port to the target primary BRAS equipment.
Wherein, when determining that the target primary BRAS equipment has a fault according to the status information, determining the standby equipment of the target primary BRAS equipment comprises:
and when the complete machine fault of the target main BRAS equipment is determined or the fault between the target main BRAS equipment and the BRAS management and control equipment is determined according to the state information, determining that the standby BRAS equipment corresponding to the target main BRAS equipment is the standby equipment of the target main BRAS equipment.
Wherein the transmitting data of the target primary BRAS device by using the standby device comprises:
notifying the backup BRAS equipment of the IP address of each port of the target primary BRAS equipment, so that the backup BRAS equipment takes over users of each port of the target primary BRAS equipment, and notifying the backup BRAS equipment of noticing the IP address of each port of the target primary BRAS equipment so as to transmit the data of the target primary BRAS equipment by utilizing the backup BRAS equipment; or
And notifying the IP address of each port of the target main BRAS equipment and the user forwarding table entry of each port to the standby BRAS equipment, so that the standby BRAS equipment takes over the users of each port of the target main BRAS equipment, refreshes the MAC table entry of a convergence switch, and notices the IP address of each port of the target main BRAS equipment so as to transmit the data of the target main BRAS equipment by utilizing the standby BRAS equipment.
Wherein, the obtaining the status information of the target primary BRAS device comprises:
receiving the state information of a target port reported by the target main BRAS equipment;
when determining that the target primary BRAS equipment has a fault according to the state information, determining the standby equipment of the target primary BRAS equipment comprises the following steps:
and when the target port is determined to have a fault according to the state information, determining standby BRAS equipment corresponding to the target main BRAS equipment, and determining a standby port corresponding to the target port in each port of the standby BRAS equipment.
Wherein the transmitting data of the target primary BRAS device by using the standby device comprises:
notifying the backup BRAS equipment of the IP address of the target port, so that the backup BRAS equipment takes over the user of the target port, and notifying the backup BRAS equipment of noticing the IP address of the target port so as to transmit the data of the target port by using the backup port; or
And notifying the backup BRAS equipment of the IP address of the target port and the user forwarding table entry of the target port, so that the backup BRAS equipment takes over the user of the target port, refreshes the MAC table entry of the aggregation switch, and announces the IP address of the target port so as to transmit the data of the target port by using the backup port.
In a second aspect, an embodiment of the present invention provides a method for implementing a BRAS hot standby, where the method is applied to a primary BRAS device, and includes:
acquiring state information;
reporting the state information to BRAS management and control equipment, so that the BRAS management and control equipment determines standby equipment when determining that a fault occurs according to the state information, and transmits data by using the standby equipment; the standby equipment is used for backing up a plurality of main BRAS equipment.
Wherein the acquiring the state information comprises:
acquiring state information between the BRAS management and control equipment and the BRAS management and control equipment; or
And acquiring the state information of each port.
Wherein the method further comprises:
receiving a user message;
when the user message is a PPPoE signaling message, forwarding the PPPoE signaling message to BRAS (broadband remote access server) management and control equipment; and when the user message is a data message, forwarding the data message according to a user forwarding table item issued by the BRAS control equipment.
Before receiving the user message, the method further comprises:
receiving a user forwarding table item issued by the BRAS control equipment;
and receiving the IP address distributed to each port by the BRAS management and control equipment.
In a third aspect, an embodiment of the present invention provides a method for implementing a BRAS hot standby, where the method is applied to a standby BRAS device, and includes:
receiving a notice of a BRAS management and control device, wherein the notice is used for indicating that a target primary BRAS device fails;
transmitting data of the target primary BRAS equipment according to the notification;
the backup BRAS equipment is used for backing up a plurality of main BRAS equipment.
Wherein the transmitting data of the target primary BRAS device according to the notification comprises:
when the BRAS management and control equipment determines that a target main BRAS equipment complete machine fails or determines that a fault occurs between the target main BRAS equipment and the BRAS management and control equipment, receiving IP addresses of all ports of the target main BRAS equipment sent by the BRAS management and control equipment, and taking over users of all ports of the target main BRAS equipment;
and announcing the IP address of each port of the target main BRAS equipment to realize the flow guiding of the network side flow of the target main BRAS equipment.
Wherein the transmitting data of the target primary BRAS device according to the notification comprises:
when the BRAS management and control equipment determines that a target port of target main BRAS equipment has a fault, receiving an IP address of the target port sent by the BRAS management and control equipment, and taking over a user of the target port;
and refreshing the MAC table entry of the aggregation switch, and announcing the IP address of the target port to realize the flow guidance of the user side flow of the target main BRAS equipment.
In a fourth aspect, an embodiment of the present invention provides a BRAS management and control device, including: a processor and a transceiver;
the transceiver is used for acquiring the state information of the target primary BRAS equipment;
the processor is used for determining a standby device of the target main BRAS device when the target main BRAS device is determined to be in fault according to the state information; the standby equipment is used for backing up a plurality of main BRAS equipment; and transmitting the data of the target primary BRAS equipment by utilizing the standby equipment.
The processor is further configured to set a backup correspondence between the standby device and a plurality of primary BRAS devices; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
The transceiver is further configured to receive a PPPoE signaling message of the target primary BRAS device;
the processor is further configured to generate a user forwarding entry according to the PPPoE signaling message;
the transceiver is further configured to send the user forwarding entry to the target primary BRAS device.
The processor is further configured to, for any port in the target primary BRAS device, allocate an IP address to the any port when a user is on-line for the first time;
the transceiver is also used for sending the IP address corresponding to any port to the target main BRAS equipment.
And the processor is further used for determining that the backup BRAS equipment corresponding to the target main BRAS equipment is the backup equipment of the target main BRAS equipment when the complete machine fault of the target main BRAS equipment is determined or the fault is determined between the target main BRAS equipment and the BRAS management and control equipment according to the state information.
Wherein the processor is further configured to notify, by the transceiver, the backup BRAS device of an IP address of each port of the target primary BRAS device, so that the backup BRAS device takes over users of each port of the target primary BRAS device, and notify the backup BRAS device of advertising of the IP address of each port of the target primary BRAS device, so as to transmit data of the target primary BRAS device by using the backup BRAS device; or
The processor is further configured to notify, through the transceiver, the backup BRAS device of the IP address of each port of the target primary BRAS device and the user forwarding entry of each port, so that the backup BRAS device takes over users of each port of the target primary BRAS device, refreshes the MAC entry of the aggregation switch, and announces the IP address of each port of the target primary BRAS device, so as to transmit data of the target primary BRAS device by using the backup BRAS device.
The transceiver is further configured to receive status information of a target port reported by the target primary BRAS device;
and the processor is further used for determining a standby BRAS device corresponding to the target main BRAS device when the target port is determined to have a fault according to the state information, and determining a standby port corresponding to the target port in each port of the standby BRAS device.
The processor is further configured to notify the backup BRAS device of the IP address of the target port through the transceiver, so that the backup BRAS device takes over a user of the target port, and notify the backup BRAS device to announce the IP address of the target port, so as to transmit data of the target port through the backup port; or
The processor is further configured to notify the standby BRAS device of the IP address of the target port and the user forwarding entry of the target port through the transceiver, so that the standby BRAS device takes over users of the target port, refreshes the MAC entry of the aggregation switch, and announces the IP address of the target port, so as to transmit data of the target port through the standby port.
In a fifth aspect, an embodiment of the present invention provides a BRAS device, including: a processor and a transceiver;
the processor is used for acquiring state information;
the transceiver is used for reporting the state information to BRAS management and control equipment, so that when the BRAS management and control equipment determines that a fault occurs according to the state information, standby equipment is determined, and data are transmitted by using the standby equipment; the standby equipment is used for backing up a plurality of main BRAS equipment.
The processor is further used for acquiring state information between the BRAS management and control equipment and the BRAS management and control equipment; or to obtain status information for each port.
Wherein, the transceiver is also used for receiving a user message;
the processor is further configured to forward the PPPoE signaling message to a BRAS management and control device through the transceiver when the user message is the PPPoE signaling message; and when the user message is a data message, forwarding the data message through the transceiver according to a user forwarding table item issued by the BRAS control equipment.
The transceiver is further configured to receive a user forwarding table item issued by the BRAS management and control equipment; and receiving the IP address distributed to each port by the BRAS management and control equipment.
In a sixth aspect, an embodiment of the present invention provides a BRAS device, including: a processor and a transceiver;
the transceiver is used for receiving a notice of the BRAS management and control equipment, and the notice is used for indicating that the target primary BRAS equipment fails;
the processor is used for transmitting the data of the target primary BRAS equipment according to the notification;
the BRAS equipment is used for backing up a plurality of main BRAS equipment.
The processor is further configured to receive, by the transceiver, an IP address of each port of the target primary BRAS device sent by the BRAS management and control device when the BRAS management and control device determines that a complete machine of the target primary BRAS device is faulty or determines that a fault occurs between the target primary BRAS device and the BRAS management and control device, and take over users of each port of the target primary BRAS device; and the transceiver notices the IP address of each port of the target main BRAS equipment, so as to realize the flow guiding of the network side flow of the target main BRAS equipment.
The processor is further used for receiving the IP address of the target port sent by the BRAS management and control equipment through the transceiver and taking over the user of the target port when the BRAS management and control equipment determines that the target port of the target main BRAS equipment has a fault; and refreshing the MAC table entry of the aggregation switch, and noticing the IP address of the target port through the transceiver to realize the flow guiding of the user side flow of the target main BRAS equipment.
In a seventh aspect, an embodiment of the present invention provides a BRAS management and control device, including a memory, a processor, and a computer program that is stored on the memory and is executable on the processor; and when the processor executes the program, the method for realizing the BRAS hot standby of the first aspect is realized.
In an eighth aspect, an embodiment of the present invention provides a BRAS device, including a memory, a processor, and a computer program stored on the memory and executable on the processor; the method for implementing the BRAS hot standby of the second aspect is implemented when the processor executes the program.
In a ninth aspect, an embodiment of the present invention provides a BRAS device, including a memory, a processor, and a computer program stored on the memory and executable on the processor; and when the processor executes the program, the method for realizing the BRAS hot standby of the third aspect is realized.
In a tenth aspect, an embodiment of the present invention provides a computer-readable storage medium, configured to store a computer program, where the computer program is executable by a processor to implement the method for implementing a BRAS hot standby according to the first aspect; or the method for implementing the BRAS hot standby according to the second aspect is implemented; or implementing the BRAS hot standby implementation method according to the third aspect.
The technical scheme of the invention has the following beneficial effects:
in the embodiment of the invention, when the target primary BRAS equipment is determined to be in failure, the standby equipment of the target primary BRAS equipment is determined, and the data of the target primary BRAS equipment is transmitted by utilizing the standby equipment. The backup device is used for backing up a plurality of primary BRAS devices. The embodiment of the invention realizes the backup of a plurality of main BRAS devices by using one backup device, thereby saving network device resources by using the scheme of the embodiment of the invention.
Drawings
Fig. 1 is a schematic diagram of a BRAS hot standby scheme in the prior art;
fig. 2 is a flowchart of a method for implementing BRAS hot standby according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for implementing BRAS hot standby according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for implementing BRAS hot standby according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a BRAS management and control device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a BRAS device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a BRAS device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a BRAS hot standby scheme according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a BRAS management and control device according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a BRAS device of an embodiment of the present invention;
fig. 11 is a schematic diagram of a BRAS device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention will be made with reference to the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The existing hot standby scheme of the BRAS adopts a 1:1 backup technology, i.e. one standby device is deployed for each BRAS, which causes serious waste of resources. In the scenario shown in fig. 1, BRAS-2 is used to backup BRAS-1, and BRAS-4 is used to backup BRAS-3. In the scheme, the BRAS-2 and the BRAS-4 are completely used as backup devices, and 4 devices are actually used for the traffic which only needs to be processed by 2 devices. Meanwhile, the ports of the Core Router (CR) are also doubled, and the resource waste is serious. In addition to the serious resource waste, the configuration complexity of the 1:1 hot standby is high (the 1:1 hot standby is a proprietary scheme of a manufacturer, and is different from each other, and has many configuration commands and is complicated to configure), and a direct link between two backup BRAS (a dedicated transmission line or an optical fiber direct link between two backup BRAS is required) is also two serious problems.
In order to solve the above problem, in the embodiment of the present invention, a newly added centralized BRAS management and control device is used to uniformly store the table entry information of all users and implement uniform management on all BRAS devices, and the BRAS devices perform data packet processing according to the user forwarding table entry information issued by the BRAS management and control device, so as to solve the above problem of the conventional hot standby scheme on the basis of implementing hot standby.
As shown in fig. 2, the method for implementing a BRAS hot standby according to an embodiment of the present invention is applied to a BRAS management and control device, and includes:
step 201, obtaining the state information of the target primary BRAS equipment.
The target primary BRAS device is any one primary BRAS device. The status information may be status information between the target primary BRAS device and the BRAS management device, or status information of a certain port of the target primary BRAS device.
And keeping heartbeat connection detection between the target main BRAS equipment and the BRAS management and control equipment so as to determine the state of the counterpart and obtain the state information of the counterpart. And the target main BRAS equipment can detect the state of each port of the target main BRAS equipment, so that the state information of each port is obtained and reported to the BRAS management and control equipment.
Step 202, when the target main BRAS equipment is determined to have a fault according to the state information, determining standby equipment of the target main BRAS equipment; the standby equipment is used for backing up a plurality of main BRAS equipment.
In the embodiment of the invention, the backup relationship can be set in the BRAS management and control equipment. When setting backup relation, using ports as granularity, configuring corresponding relation between each port of main BRAS device and each port of backup BRAS device. For example, 1 port of BRAS-4 is configured and 1 port of BRAS-1, 1 port of BRAS-2 and 1 port of BRAS-3 are backed up at the same time, and the configuration relationship is as follows:
backup group 1 virtual MAC 1: the port 1 of BRAS-1 is used as the main use, and the port 1 of BRAS-4 is the backup.
Backup group 2 virtual MAC 2: port 1 of BRAS-2 is the main use, port 1 of BRAS-4 is the backup.
Backup group 3 virtual MAC 3: port 1 of BRAS-3 is the main use, port 1 of BRAS-4 is the backup.
The failure of the target primary BRAS device includes: the complete machine fault of the target main BRAS equipment or the fault between the target main BRAS equipment and the BRAS management and control equipment occurs; a port of the target primary BRAS device fails.
And when the complete machine fault of the target main BRAS equipment is determined or the fault between the target main BRAS equipment and the BRAS management and control equipment is determined according to the state information, determining that the standby BRAS equipment corresponding to the target main BRAS equipment is the standby equipment of the target main BRAS equipment.
And when the target port of the target main BRAS equipment is determined to have a fault according to the state information, determining standby BRAS equipment corresponding to the target main BRAS equipment, and determining a standby port corresponding to the target port in each port of the standby BRAS equipment. And the target port is any port in the target main BRAS equipment.
And step 203, transmitting the data of the target primary BRAS equipment by using the standby equipment.
When the complete machine of the target main BRAS equipment is determined to be in fault or the fault between the target main BRAS equipment and the BRAS management and control equipment is determined according to the state information, the BRAS management and control equipment informs the backup BRAS equipment of the IP address of each port of the target main BRAS equipment, so that the backup BRAS equipment takes over users of each port of the target main BRAS equipment and informs the backup BRAS equipment of noticing the IP address of each port of the target main BRAS equipment, and the backup BRAS equipment is utilized to transmit the data of the target main BRAS equipment; or the BRAS management and control equipment informs the standby BRAS equipment of the IP address of each port of the target main BRAS equipment and the user forwarding table entry of each port, so that the standby BRAS equipment takes over users of each port of the target main BRAS equipment, refreshes the MAC table entry of a convergence switch, and announces the IP address of each port of the target main BRAS equipment, so that the standby BRAS equipment is utilized to transmit data of the target main BRAS equipment.
When determining that a target port of a target main BRAS device is in fault according to the state information, the BRAS management and control device informs the backup BRAS device of the IP address of the target port, so that the backup BRAS device takes over a user of the target port and informs the backup BRAS device of noticing the IP address of the target port, and the backup BRAS device is utilized to transmit data of the target port; or, the BRAS management and control device notifies the backup BRAS device of the IP address of the target port and the user forwarding table entry of the target port, so that the backup BRAS device takes over the user of the target port, refreshes the MAC table entry of the aggregation switch, and announces the IP address of the target port, so as to transmit the data of the target port by using the backup port.
In the embodiment of the invention, when the target primary BRAS equipment is determined to be in failure, the standby equipment of the target primary BRAS equipment is determined, and the data of the target primary BRAS equipment is transmitted by utilizing the standby equipment. The backup device is used for backing up a plurality of primary BRAS devices. The embodiment of the invention realizes the backup of a plurality of main BRAS devices by using one backup device, thereby saving network device resources by using the scheme of the embodiment of the invention.
On the basis of the embodiment shown in fig. 2, in order to improve communication efficiency, the BRAS management and control device may further preset backup corresponding relationships between the standby device and the plurality of primary BRAS devices; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
On the basis of the embodiment shown in fig. 2, to ensure normal communication, the BRAS management and control device may further receive a PPPoE signaling message of the target main BRAS device, generate a user forwarding table according to the PPPoE signaling message, and send the user forwarding table to the target main BRAS device.
On the basis of the embodiment shown in fig. 2, to ensure normal communication, for any port in the target primary BRAS device, when a user first comes online, the BRAS management and control device may also allocate an IP address to the any port; and sending the IP address corresponding to any port to the target primary BRAS equipment.
As shown in fig. 3, the method for implementing a BRAS hot standby according to an embodiment of the present invention is applied to a primary BRAS device, and includes:
step 301, acquiring state information.
In this step, the primary BRAS device may obtain status information of each port thereof, or obtain status information with the BRAS management device.
Step 302, reporting the state information to a BRAS management and control device, so that when the BRAS management and control device determines that a fault occurs according to the state information, the BRAS management and control device determines a standby device and transmits data by using the standby device; the standby equipment is used for backing up a plurality of main BRAS equipment.
In addition, the main BRAS equipment can also receive a user message, and when the user message is a PPPoE signaling message, the main BRAS equipment forwards the PPPoE signaling message to the BRAS management and control equipment; and when the user message is a data message, forwarding the data message according to a user forwarding table item issued by the BRAS control equipment.
In addition, the main BRAS equipment can also receive a user forwarding table item issued by the BRAS control equipment; and receiving the IP address distributed to each port by the BRAS management and control equipment.
In the embodiment of the invention, when the target primary BRAS equipment is determined to be in failure, the standby equipment of the target primary BRAS equipment is determined, and the data of the target primary BRAS equipment is transmitted by utilizing the standby equipment. The backup device is used for backing up a plurality of primary BRAS devices. The embodiment of the invention realizes the backup of a plurality of main BRAS devices by using one backup device, thereby saving network device resources by using the scheme of the embodiment of the invention.
As shown in fig. 4, the method for implementing a BRAS hot standby according to an embodiment of the present invention is applied to a standby BRAS device, and includes:
step 401, receiving a notification of the BRAS management and control device, where the notification is used to indicate that the target primary BRAS device has a fault.
Step 402, transmitting the data of the target primary BRAS equipment according to the notice;
the backup BRAS equipment is used for backing up a plurality of main BRAS equipment.
Specifically, in this step, when the BRAS management and control device determines that a complete machine of a target primary BRAS device is faulty or determines that a fault occurs between the target primary BRAS device and the BRAS management and control device, receiving an IP address of each port of the target primary BRAS device sent by the BRAS management and control device, and taking over users of each port of the target primary BRAS device; and announcing the IP address of each port of the target main BRAS equipment to realize the flow guiding of the network side flow of the target main BRAS equipment.
Specifically, in this step, when the BRAS management and control device determines that a target port of a target primary BRAS device is faulty, the IP address of the target port sent by the BRAS management and control device is received, and a user of the target port is taken over;
and refreshing a Media Access Control (MAC) table entry of the aggregation switch, and announcing the IP address of the target port to realize the flow guidance of the user side flow of the target main BRAS equipment.
In the embodiment of the invention, when the target primary BRAS equipment is determined to be in failure, the standby equipment of the target primary BRAS equipment is determined, and the data of the target primary BRAS equipment is transmitted by utilizing the standby equipment. The backup device is used for backing up a plurality of primary BRAS devices. The embodiment of the invention realizes the backup of a plurality of main BRAS devices by using one backup device, thereby saving network device resources by using the scheme of the embodiment of the invention.
As shown in fig. 5, the BRAS management and control device according to the embodiment of the present invention includes: a processor 501 and a transceiver 502; the transceiver 502 is used for acquiring the status information of the target primary BRAS device; the processor 501 is configured to determine a standby device of the target primary BRAS device when it is determined that the target primary BRAS device fails according to the status information; the standby equipment is used for backing up a plurality of main BRAS equipment; and transmitting the data of the target primary BRAS equipment by utilizing the standby equipment.
The processor 501 is further configured to set a backup correspondence between the standby device and a plurality of primary BRAS devices; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
Wherein, the transceiver 502 is further configured to receive a PPPoE signaling message of the target primary BRAS device; the processor 501 is further configured to generate a user forwarding entry according to the PPPoE signaling message; the transceiver 502 is further configured to send the user forwarding entry to the target primary BRAS device.
Wherein, the transceiver 502 is further configured to receive a PPPoE signaling message of the target primary BRAS device; the processor 501 is further configured to generate a user forwarding entry according to the PPPoE signaling message;
the transceiver 502 is further configured to send the user forwarding entry to the target primary BRAS device.
The processor 501 is further configured to, for any port in the target primary BRAS device, allocate an IP address to the any port when a user is on-line for the first time; the transceiver 502 is further configured to send an IP address corresponding to any of the ports to the target primary BRAS device.
The processor 501 is further configured to determine that a backup BRAS device corresponding to the target primary BRAS device is a backup device of the target primary BRAS device when it is determined that the target primary BRAS device is completely faulty or it is determined that a fault occurs between the target primary BRAS device and the BRAS management and control device according to the status information.
Wherein, the processor 501 is further configured to notify, through the transceiver 502, the backup BRAS device of the IP address of each port of the target primary BRAS device, so that the backup BRAS device takes over users of each port of the target primary BRAS device, and notify the backup BRAS device to announce the IP address of each port of the target primary BRAS device, so as to transmit data of the target primary BRAS device by using the backup BRAS device; or
The processor 501 is further configured to notify, through the transceiver 502, the IP address of each port of the target primary BRAS device and the user forwarding entry of each port to the backup BRAS device, so that the backup BRAS device takes over users of each port of the target primary BRAS device, refreshes the MAC entry of the aggregation switch, and announces the IP address of each port of the target primary BRAS device, so as to transmit data of the target primary BRAS device by using the backup BRAS device.
The transceiver 502 is further configured to receive status information of a target port reported by the target primary BRAS device; the processor 501 is further configured to determine a backup BRAS device corresponding to the target primary BRAS device when it is determined that the target port fails according to the status information, and determine a backup port corresponding to the target port in each port of the backup BRAS device.
Wherein, the processor 501 is further configured to notify the backup BRAS device of the IP address of the target port through the transceiver 502, so that the backup BRAS device takes over a user of the target port, and notify the backup BRAS device to announce the IP address of the target port, so as to transmit data of the target port through the backup port; or
The processor 501 is further configured to notify the standby BRAS device of the IP address of the target port and the user forwarding entry of the target port through the transceiver 502, so that the standby BRAS device takes over the user of the target port, refreshes the MAC entry of the aggregation switch, and advertises the IP address of the target port, so as to transmit the data of the target port through the standby port.
In the embodiment of the invention, when the target primary BRAS equipment is determined to be in failure, the standby equipment of the target primary BRAS equipment is determined, and the data of the target primary BRAS equipment is transmitted by utilizing the standby equipment. The backup device is used for backing up a plurality of primary BRAS devices. The embodiment of the invention realizes the backup of a plurality of main BRAS devices by using one backup device, thereby saving network device resources by using the scheme of the embodiment of the invention.
As shown in fig. 6, a BRAS device according to an embodiment of the present invention includes: a processor 601 and a transceiver 602;
the processor 601 is configured to obtain status information; the transceiver 602 is configured to report the status information to a BRAS management and control device, so that when determining that a fault occurs according to the status information, the BRAS management and control device determines a standby device and transmits data by using the standby device; the standby equipment is used for backing up a plurality of main BRAS equipment.
The processor 601 is further configured to acquire status information with the BRAS management and control device; or to obtain status information for each port.
Wherein, the transceiver 602 is further configured to receive a user message; the processor 601 is further configured to forward, when the user packet is a PPPoE signaling packet, the PPPoE signaling packet to a BRAS management and control device through the transceiver 602; and when the user message is a data message, forwarding the data message through the transceiver 602 according to a user forwarding table item issued by the BRAS control equipment.
The transceiver 602 is further configured to receive a user forwarding table item issued by the BRAS management and control device; and receiving the IP address distributed to each port by the BRAS management and control equipment.
In the embodiment of the invention, when the target primary BRAS equipment is determined to be in failure, the standby equipment of the target primary BRAS equipment is determined, and the data of the target primary BRAS equipment is transmitted by utilizing the standby equipment. The backup device is used for backing up a plurality of primary BRAS devices. The embodiment of the invention realizes the backup of a plurality of main BRAS devices by using one backup device, thereby saving network device resources by using the scheme of the embodiment of the invention.
As shown in fig. 7, the BRAS device according to the embodiment of the present invention includes: a processor 701 and a transceiver 702; the transceiver 702 is configured to receive a notification of a BRAS management device, where the notification is used to indicate that a target primary BRAS device has a fault; the processor 701 is configured to transmit data of the target primary BRAS device according to the notification;
the BRAS equipment is used for backing up a plurality of main BRAS equipment.
The processor 701 is further configured to, when the BRAS management and control device determines that a complete machine of a target primary BRAS device is faulty or determines that a fault occurs between the target primary BRAS device and the BRAS management and control device, receive, by the transceiver, an IP address of each port of the target primary BRAS device sent by the BRAS management and control device, and take over users of each port of the target primary BRAS device; and the transceiver notices the IP address of each port of the target main BRAS equipment, so as to realize the flow guiding of the network side flow of the target main BRAS equipment.
The processor 701 is further configured to, when the BRAS management and control device determines that a target port of a target primary BRAS device fails, receive, by the transceiver, an IP address of the target port sent by the BRAS management and control device, and take over a user of the target port; and refreshing the MAC table entry of the aggregation switch, and noticing the IP address of the target port through the transceiver to realize the flow guiding of the user side flow of the target main BRAS equipment.
As shown in fig. 8, the implementation process of the embodiment of the present invention is described by taking a 3:1 backup (BRAS-4 backup BRAS-1/2/3) as an example.
In the embodiments of the present invention, several concepts will be described first.
And (3) backup granularity: the backup granularity of the embodiments of the present invention is link level backup (port level backup). For example, a user side link failure on BRAS-1 directly backs up the user on the link to a link of BRAS-4.
Because heartbeat detection exists between the BRAS-1 and the BRAS management and control equipment, if the complete machine of the BRAS-1 fails or the interactive channel between the BRAS management and control equipment and the BRAS-1 fails, the BRAS management and control equipment can detect the heartbeat detection; if the side link of the BRAS-1 network is in fault, the BRAS-1 informs the management and control equipment; after the situations occur, the management and control equipment can directly switch all interfaces on the BRAS-1 to the BRAS-4.
Drainage at the user side: in order to realize data drainage at a user side, two links of one backup group need to be configured with the same virtual MAC, namely two links of BRAS-1 and BRAS-4 connected with a convergence switch are configured with the same virtual MAC. When the BRAS-1 finds out the link failure at the user side, the BRAS management and control equipment is informed, the BRAS management and control equipment issues the related user table item of the failed link on the BRAS-1 to the BRAS-4 according to the configured backup group relation, and simultaneously the BRAS-4 is informed to refresh the MAC table item of the aggregation switch, namely, the forwarding port of the original MAC address in the MAC table of the aggregation switch is modified, so that the user data is forwarded to the BRAS-4, and the drainage is realized.
Network side drainage: when the BRAS management and control equipment allocates the user address to the BRAS equipment, the port is used as granularity, namely, each port of the BRAS equipment is allocated with a segment of IP address. When the BRAS-1 goes up the link failure, the BRAS management and control equipment informs the BRAS-4 backup link to take over the relevant users of the BRAS-1 failure link, and simultaneously informs the BRAS-4 to externally announce the route (the IP route distributed by the BRAS-1 failure link), thereby realizing the traffic diversion of the network side.
The user table entry obtaining mode comprises the following steps: after the BRAS-4 takes over the users of the BRAS-1 fault link, the BRAS management and control equipment directly sends the user forwarding table entry of the link to the BRAS-4, so that the BRAS-4 can realize the forwarding of user side traffic according to the forwarding table entry information.
The following describes a specific implementation process of the embodiment of the present invention.
In this embodiment, the BRAS administration device keeps heartbeat connection detection with all BRAS devices. Configuring a backup relationship in a BRAS management and control device, such as: the port 1 of the BRAS-4 is configured to simultaneously backup the port 1 of the BRAS-1, the port 1 of the BRAS-2 and the port 1 of the BRAS-3 (for example, only one port of one device is illustrated, and the same is true when the device has N ports to be backed up). The configuration relationship is as follows:
backup group 1 virtual MAC 1: the port 1 of BRAS-1 is used as the main use, and the port 1 of BRAS-4 is the backup.
Backup group 2 virtual MAC 2: port 1 of BRAS-2 is the main use, port 1 of BRAS-4 is the backup.
Backup group 3 virtual MAC 3: port 1 of BRAS-3 is the main use, port 1 of BRAS-4 is the backup.
After the user message reaches each BRAS device, taking BRAS-1 as an example, BRAS-1 judges whether the user message is a PPPoE signaling message or a data message. If the signaling message is a PPPoE signaling message, the BRAS-1 needs to send the BRAS management and control equipment, and the BRAS management and control equipment generates a user forwarding table according to the related information of the PPPoE signaling; if the data message is the data message, the BRAS-1 directly forwards the data message according to the user forwarding table item issued by the BRAS control equipment.
The BRAS management and control equipment completes user authentication and authorization according to the PPPoE dialing signaling and generates a user forwarding table entry, an ip address network segment is distributed according to a BRAS interface on which a first user is on line, then the BRAS management and control equipment issues the user forwarding table entry to the BRAS equipment, and meanwhile the BRAS equipment issues the ip address segment of the BRAS interface. (the ip address field needs to be issued only after the first user of the interface is online).
The BRAS equipment forwards the user side flow according to a user forwarding table issued by the BRAS management and control equipment, and forwards the network side flow according to a routing table generated by running a routing protocol by the BRAS equipment. After receiving the IP address segment, the BRAS equipment issues the address route segment to the outside, and the flow guiding of the network side flow is realized.
The specific scheme of network side drainage is as follows: when the BRAS management and control equipment allocates the user address to the BRAS equipment, the port is taken as granularity, namely, each port of the BRAS equipment is allocated with a section of IP address, when the BRAS-1 goes up the link failure, the BRAS management and control equipment informs the BRAS-4 backup link to take over the relevant user of the BRAS-1 failure link, and simultaneously informs the BRAS-4 to externally announce the section of the route (the IP section route allocated to the BRAS-1 failure link), thereby realizing the flow guiding of network side flow.
When the BRAS-1 user side interface or the link fails, the BRAS-1 reports the failure to the BRAS management and control equipment, the BRAS management and control equipment issues user forwarding entries of all users under the interface and ip address fields distributed by the interface to the BRAS-4 according to a preset backup relation, and simultaneously informs the BRAS-4 to refresh MAC entries of a convergence switch, so that the flow of user side flow is guided. And simultaneously, the route of the ip address segment is externally issued, and the flow guidance of network side flow is realized.
Wherein, the specific scheme of the user side drainage is as follows: in order to realize user side data flow guiding, two links of a backup group need to be configured with the same virtual MAC, namely two links of BRAS-1 and BRAS-4 connected with a convergence switch are configured with the same virtual MAC, when the BRAS-1 finds that the user side link has a fault, the BRAS control equipment is informed, the BRAS control equipment issues a related user table item of the fault link on the BRAS-1 to the BRAS-4 according to the configured backup group relation, and simultaneously the BRAS-4 is informed to refresh the MAC table item of the convergence switch, namely a forwarding port of an original MAC address in the MAC table of the convergence switch is modified, so that the user data is forwarded to the BRAS-4, and flow guiding is realized.
And if the link failure at the network side or the complete machine failure of the BRAS equipment, the same is carried out. In this case, all interfaces on the BRAS device that failed need to be switched to the backup device.
As can be seen from the above description, in the embodiment of the present invention, a plurality of BRAS devices are hot backed up by adding a BRAS management and control device, so that the resource waste caused by the original BRAS hot standby scheme is reduced, and the resource utilization rate approaches 100% along with the increase of N. Meanwhile, the embodiment of the invention solves the problem that the configuration of the original BRAS hot standby scheme is complex and the problem that a direct link is required between two backup BRAS. The embodiment of the invention adds a BRAS management and control device which is responsible for user list item management, simplifies the original BRAS device into a pure forwarding plane device and is solely responsible for data flow forwarding.
As shown in fig. 9, the BRAS management apparatus according to the embodiment of the present invention includes:
a processor 900 for reading the program in the memory 920, executing the following processes: acquiring status information of a target primary BRAS device through the transceiver 910; when the target main BRAS equipment is determined to have a fault according to the state information, determining standby equipment of the target main BRAS equipment; the standby equipment is used for backing up a plurality of main BRAS equipment; and transmitting the data of the target primary BRAS equipment by utilizing the standby equipment.
A transceiver 910 for receiving and transmitting data under the control of the processor 900.
In fig. 9, among other things, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 900, and various circuits, represented by memory 920, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 910 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 900 is responsible for managing the bus architecture and general processing, and the memory 920 may store data used by the processor 900 in performing operations.
The processor 900 is responsible for managing the bus architecture and general processing, and the memory 920 may store data used by the processor 900 in performing operations.
The processor 900 is further configured to read the computer program and perform the following steps of receiving, by the transceiver 910, an LCP configuration request message sent by a BRAS controller, where the LCP configuration request message includes an address of the BRAS repeater; and obtaining the address of the BRAS according to the LCP configuration request message.
The processor 900 is further configured to read the computer program and perform the following steps:
setting backup corresponding relation between the standby equipment and a plurality of main BRAS equipment; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
The processor 900 is further configured to read the computer program and perform the following steps:
receiving, by the transceiver 910, a PPPoE signaling message of the target primary BRAS device;
generating a user forwarding table item according to the PPPoE signaling message;
the user forwarding entry is sent to the target primary BRAS device via transceiver 910.
The processor 900 is further configured to read the computer program and perform the following steps:
for any port in the target main BRAS equipment, when a user is on line for the first time, an IP address is allocated to the any port;
and sending the IP address corresponding to any port to the target primary BRAS equipment through the transceiver 910.
The processor 900 is further configured to read the computer program and perform the following steps:
and when the complete machine fault of the target main BRAS equipment is determined or the fault between the target main BRAS equipment and the BRAS management and control equipment is determined according to the state information, determining that the standby BRAS equipment corresponding to the target main BRAS equipment is the standby equipment of the target main BRAS equipment.
The processor 900 is further configured to read the computer program and perform the following steps:
notifying the backup BRAS equipment of the IP address of each port of the target primary BRAS equipment, so that the backup BRAS equipment takes over users of each port of the target primary BRAS equipment, and notifying the backup BRAS equipment of noticing the IP address of each port of the target primary BRAS equipment so as to transmit the data of the target primary BRAS equipment by utilizing the backup BRAS equipment; or
And notifying the IP address of each port of the target main BRAS equipment and the user forwarding table entry of each port to the standby BRAS equipment, so that the standby BRAS equipment takes over the users of each port of the target main BRAS equipment, refreshes the MAC table entry of a convergence switch, and notices the IP address of each port of the target main BRAS equipment so as to transmit the data of the target main BRAS equipment by utilizing the standby BRAS equipment.
The processor 900 is further configured to read the computer program and perform the following steps:
receiving, by the transceiver 910, status information of a target port reported by the target primary BRAS device;
and when the target port is determined to have a fault according to the state information, determining standby BRAS equipment corresponding to the target main BRAS equipment, and determining a standby port corresponding to the target port in each port of the standby BRAS equipment.
The processor 900 is further configured to read the computer program and perform the following steps:
notifying the backup BRAS equipment of the IP address of the target port, so that the backup BRAS equipment takes over the user of the target port, and notifying the backup BRAS equipment of noticing the IP address of the target port so as to transmit the data of the target port by using the backup port; or
And notifying the backup BRAS equipment of the IP address of the target port and the user forwarding table entry of the target port, so that the backup BRAS equipment takes over the user of the target port, refreshes the MAC table entry of the aggregation switch, and announces the IP address of the target port so as to transmit the data of the target port by using the backup port.
As shown in fig. 10, the BRAS device according to an embodiment of the present invention includes:
the processor 1000, which is used to read the program in the memory 1020, executes the following processes: acquiring state information; reporting the state information to BRAS management and control equipment through a transceiver 1010, so that when the BRAS management and control equipment determines that a fault occurs according to the state information, standby equipment is determined, and data are transmitted by using the standby equipment; the standby equipment is used for backing up a plurality of main BRAS equipment.
A transceiver 1010 for receiving and transmitting data under the control of the processor 1000.
Where in fig. 10, the bus architecture may include any number of interconnected buses and bridges, with various circuits being linked together, particularly one or more processors represented by processor 1000 and memory represented by memory 1020. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1010 may be a number of elements including a transmitter and a transceiver providing a means for communicating with various other apparatus over a transmission medium. The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 in performing operations.
The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 in performing operations.
The processor 1000 is further configured to read the computer program and execute the following steps:
acquiring status information between the BRAS management and control equipment through a transceiver 1010; or to obtain status information for each port.
The processor 1000 is further configured to read the computer program and execute the following steps:
receiving a user message via transceiver 1010; when the user message is a PPPoE signaling message, forwarding the PPPoE signaling message to BRAS (broadband remote access server) management and control equipment; and when the user message is a data message, forwarding the data message according to a user forwarding table item issued by the BRAS control equipment.
The processor 1000 is further configured to read the computer program and execute the following steps:
receiving a user forwarding table item issued by the BRAS control equipment through a transceiver 1010; and receiving the IP address allocated to each port by the BRAS management device through a transceiver 1010.
As shown in fig. 11, the BRAS device according to an embodiment of the present invention includes:
the processor 1100, which reads the program in the memory 1120, performs the following processes: receiving, by the transceiver 1111, a notification of a BRAS administration device, the notification indicating that a target primary BRAS device has failed; and transmitting the data of the target primary BRAS equipment according to the notification.
A transceiver 1111 for receiving and transmitting data under the control of the processor 1100.
Where in fig. 11, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 1100, and various circuits, represented by memory 1120, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1111 may be a plurality of elements including a transmitter and a transceiver providing a means for communicating with various other apparatus over a transmission medium. The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 may store data used by the processor 1100 in performing operations.
The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 may store data used by the processor 1100 in performing operations.
The BRAS equipment is used for backing up a plurality of main BRAS equipment.
The processor 1100 is also adapted to read the computer program and perform the following steps:
when the BRAS management and control equipment determines that a target main BRAS equipment complete machine fails or determines that a fault occurs between the target main BRAS equipment and the BRAS management and control equipment, receiving IP addresses of all ports of the target main BRAS equipment sent by the BRAS management and control equipment, and taking over users of all ports of the target main BRAS equipment;
and announcing the IP address of each port of the target main BRAS equipment to realize the flow guiding of the network side flow of the target main BRAS equipment.
The processor 1100 is also adapted to read the computer program and perform the following steps:
when the BRAS management and control equipment determines that a target port of target main BRAS equipment has a fault, receiving an IP address of the target port sent by the BRAS management and control equipment, and taking over a user of the target port;
and refreshing the MAC table entry of the aggregation switch, and announcing the IP address of the target port to realize the flow guidance of the user side flow of the target main BRAS equipment.
Furthermore, a computer-readable storage medium of an embodiment of the present invention stores a computer program executable by a processor to implement:
acquiring state information of target primary BRAS equipment;
when the target main BRAS equipment is determined to have a fault according to the state information, determining standby equipment of the target main BRAS equipment; the standby equipment is used for backing up a plurality of main BRAS equipment;
and transmitting the data of the target primary BRAS equipment by utilizing the standby equipment.
Before the obtaining of the status information of the target primary BRAS device, the method further includes:
setting backup corresponding relation between the standby equipment and a plurality of main BRAS equipment; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
Before the obtaining of the status information of the target primary BRAS device, the method further includes:
receiving a PPPoE signaling message of the target main BRAS equipment;
generating a user forwarding table item according to the PPPoE signaling message;
and sending the user forwarding table item to the target main BRAS equipment.
Before the sending of the user forwarding table entry to the target primary BRAS device, the method further includes:
for any port in the target main BRAS equipment, when a user is on line for the first time, an IP address is allocated to the any port;
and sending the IP address corresponding to any port to the target primary BRAS equipment.
Wherein, when determining that the target primary BRAS equipment has a fault according to the status information, determining the standby equipment of the target primary BRAS equipment comprises:
and when the complete machine fault of the target main BRAS equipment is determined or the fault between the target main BRAS equipment and the BRAS management and control equipment is determined according to the state information, determining that the standby BRAS equipment corresponding to the target main BRAS equipment is the standby equipment of the target main BRAS equipment.
Wherein the transmitting data of the target primary BRAS device by using the standby device comprises:
notifying the backup BRAS equipment of the IP address of each port of the target primary BRAS equipment, so that the backup BRAS equipment takes over users of each port of the target primary BRAS equipment, and notifying the backup BRAS equipment of noticing the IP address of each port of the target primary BRAS equipment so as to transmit the data of the target primary BRAS equipment by utilizing the backup BRAS equipment; or
And notifying the IP address of each port of the target main BRAS equipment and the user forwarding table entry of each port to the standby BRAS equipment, so that the standby BRAS equipment takes over the users of each port of the target main BRAS equipment, refreshes the MAC table entry of a convergence switch, and notices the IP address of each port of the target main BRAS equipment so as to transmit the data of the target main BRAS equipment by utilizing the standby BRAS equipment.
Wherein, the obtaining the status information of the target primary BRAS device comprises:
receiving the state information of a target port reported by the target main BRAS equipment;
when determining that the target primary BRAS equipment has a fault according to the state information, determining the standby equipment of the target primary BRAS equipment comprises the following steps:
and when the target port is determined to have a fault according to the state information, determining standby BRAS equipment corresponding to the target main BRAS equipment, and determining a standby port corresponding to the target port in each port of the standby BRAS equipment.
Wherein the transmitting data of the target primary BRAS device by using the standby device comprises:
notifying the backup BRAS equipment of the IP address of the target port, so that the backup BRAS equipment takes over the user of the target port, and notifying the backup BRAS equipment of noticing the IP address of the target port so as to transmit the data of the target port by using the backup port; or
And notifying the backup BRAS equipment of the IP address of the target port and the user forwarding table entry of the target port, so that the backup BRAS equipment takes over the user of the target port, refreshes the MAC table entry of the aggregation switch, and announces the IP address of the target port so as to transmit the data of the target port by using the backup port.
Furthermore, a computer-readable storage medium of an embodiment of the present invention stores a computer program executable by a processor to implement:
acquiring state information;
reporting the state information to BRAS management and control equipment, so that the BRAS management and control equipment determines standby equipment when determining that a fault occurs according to the state information, and transmits data by using the standby equipment; the standby equipment is used for backing up a plurality of main BRAS equipment.
Wherein the acquiring the state information comprises:
acquiring state information between the BRAS management and control equipment and the BRAS management and control equipment; or
And acquiring the state information of each port.
Wherein the method further comprises:
receiving a user message;
when the user message is a PPPoE signaling message, forwarding the PPPoE signaling message to BRAS (broadband remote access server) management and control equipment; and when the user message is a data message, forwarding the data message according to a user forwarding table item issued by the BRAS control equipment.
Wherein the method further comprises:
receiving a user forwarding table item issued by the BRAS control equipment;
and receiving the IP address distributed to each port by the BRAS management and control equipment.
Furthermore, a computer-readable storage medium of an embodiment of the present invention stores a computer program executable by a processor to implement:
receiving a notice of a BRAS management and control device, wherein the notice is used for indicating that a target primary BRAS device fails;
and transmitting the data of the target primary BRAS equipment according to the notification.
Wherein the transmitting data of the target primary BRAS device according to the notification comprises:
when the BRAS management and control equipment determines that a target main BRAS equipment complete machine fails or determines that a fault occurs between the target main BRAS equipment and the BRAS management and control equipment, receiving IP addresses of all ports of the target main BRAS equipment sent by the BRAS management and control equipment, and taking over users of all ports of the target main BRAS equipment;
and announcing the IP address of each port of the target main BRAS equipment to realize the flow guiding of the network side flow of the target main BRAS equipment.
Wherein the transmitting data of the target primary BRAS device according to the notification comprises:
when the BRAS management and control equipment determines that a target port of target main BRAS equipment has a fault, receiving an IP address of the target port sent by the BRAS management and control equipment, and taking over a user of the target port;
and refreshing the MAC table entry of the aggregation switch, and announcing the IP address of the target port to realize the flow guidance of the user side flow of the target main BRAS equipment.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the transceiving method according to various embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (34)

1. A method for realizing BRAS hot standby is applied to BRAS management and control equipment, and is characterized by comprising the following steps:
acquiring state information of target primary BRAS equipment;
when the target main BRAS equipment is determined to have a fault according to the state information, determining standby equipment of the target main BRAS equipment; the standby equipment is used for backing up a plurality of main BRAS equipment;
transmitting data of the target primary BRAS equipment by utilizing the standby equipment;
the BRAS management and control equipment stores the table entry information of all users in a unified mode and manages all the BRAS equipment in a unified mode, and each BRAS equipment carries out data message processing according to the user forwarding table entry information issued by the BRAS management and control equipment.
2. The method of claim 1, wherein prior to the obtaining the status information of the target primary BRAS device, the method further comprises:
setting backup corresponding relation between the standby equipment and a plurality of main BRAS equipment; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
3. The method of claim 1, wherein prior to the obtaining the status information of the target primary BRAS device, the method further comprises:
receiving a PPPoE signaling message of the target main BRAS equipment;
generating a user forwarding table item according to the PPPoE signaling message;
and sending the user forwarding table item to the target main BRAS equipment.
4. The method of claim 3, wherein prior to said sending said subscriber forwarding entry to said target primary BRAS device, said method further comprises:
for any port in the target main BRAS equipment, when a user is on line for the first time, an IP address is allocated to the any port;
and sending the IP address corresponding to any port to the target primary BRAS equipment.
5. The method of claim 1, wherein the determining a backup device of the target primary BRAS device when it is determined that the target primary BRAS device fails based on the status information comprises:
and when the complete machine fault of the target main BRAS equipment is determined or the fault between the target main BRAS equipment and the BRAS management and control equipment is determined according to the state information, determining that the standby BRAS equipment corresponding to the target main BRAS equipment is the standby equipment of the target main BRAS equipment.
6. The method of claim 5, wherein the transmitting data of the target primary BRAS device using the backup device comprises:
notifying the backup BRAS equipment of the IP address of each port of the target primary BRAS equipment, so that the backup BRAS equipment takes over users of each port of the target primary BRAS equipment, and notifying the backup BRAS equipment of noticing the IP address of each port of the target primary BRAS equipment so as to transmit the data of the target primary BRAS equipment by utilizing the backup BRAS equipment; or
And notifying the IP address of each port of the target main BRAS equipment and the user forwarding table entry of each port to the standby BRAS equipment, so that the standby BRAS equipment takes over the users of each port of the target main BRAS equipment, refreshes the MAC table entry of a convergence switch, and notices the IP address of each port of the target main BRAS equipment so as to transmit the data of the target main BRAS equipment by utilizing the standby BRAS equipment.
7. The method of claim 1, wherein the obtaining the status information of the target primary BRAS device comprises:
receiving the state information of a target port reported by the target main BRAS equipment;
when determining that the target primary BRAS equipment has a fault according to the state information, determining the standby equipment of the target primary BRAS equipment comprises the following steps:
and when the target port is determined to have a fault according to the state information, determining standby BRAS equipment corresponding to the target main BRAS equipment, and determining a standby port corresponding to the target port in each port of the standby BRAS equipment.
8. The method of claim 7, wherein the transmitting data of the target primary BRAS device with the backup device comprises:
notifying the backup BRAS equipment of the IP address of the target port, so that the backup BRAS equipment takes over the user of the target port, and notifying the backup BRAS equipment of noticing the IP address of the target port so as to transmit the data of the target port by using the backup port; or
And notifying the backup BRAS equipment of the IP address of the target port and the user forwarding table entry of the target port, so that the backup BRAS equipment takes over the user of the target port, refreshes the MAC table entry of the aggregation switch, and announces the IP address of the target port so as to transmit the data of the target port by using the backup port.
9. A method for realizing BRAS hot standby is applied to a main BRAS device, and is characterized by comprising the following steps:
acquiring state information;
reporting the state information to BRAS management and control equipment, so that the BRAS management and control equipment determines standby equipment when determining that a fault occurs according to the state information, and transmits data by using the standby equipment; the standby equipment is used for backing up a plurality of main BRAS equipment;
the BRAS management and control equipment stores the table entry information of all users in a unified mode and manages all the BRAS equipment in a unified mode, and each BRAS equipment carries out data message processing according to the user forwarding table entry information issued by the BRAS management and control equipment.
10. The method of claim 9, wherein obtaining the status information comprises:
acquiring state information between the BRAS management and control equipment and the BRAS management and control equipment; or
And acquiring the state information of each port.
11. The method of claim 9, further comprising:
receiving a user message;
when the user message is a PPPoE signaling message, forwarding the PPPoE signaling message to BRAS (broadband remote access server) management and control equipment; and when the user message is a data message, forwarding the data message according to a user forwarding table item issued by the BRAS control equipment.
12. The method of claim 11, wherein prior to receiving the user message, the method further comprises:
receiving a user forwarding table item issued by the BRAS control equipment;
and receiving the IP address distributed to each port by the BRAS management and control equipment.
13. A method for realizing BRAS hot standby is applied to standby BRAS equipment, and is characterized by comprising the following steps:
receiving a notice of a BRAS management and control device, wherein the notice is used for indicating that a target primary BRAS device fails;
transmitting data of the target primary BRAS equipment according to the notification;
the backup BRAS equipment is used for backing up a plurality of main BRAS equipment;
the BRAS management and control equipment stores the table entry information of all users in a unified mode and manages all the BRAS equipment in a unified mode, and each BRAS equipment carries out data message processing according to the user forwarding table entry information issued by the BRAS management and control equipment.
14. The method of claim 13, wherein the transmitting data of the target primary BRAS device in accordance with the notification comprises:
when the BRAS management and control equipment determines that a target main BRAS equipment complete machine fails or determines that a fault occurs between the target main BRAS equipment and the BRAS management and control equipment, receiving IP addresses of all ports of the target main BRAS equipment sent by the BRAS management and control equipment, and taking over users of all ports of the target main BRAS equipment;
and announcing the IP address of each port of the target main BRAS equipment to realize the flow guiding of the network side flow of the target main BRAS equipment.
15. The method of claim 13, wherein the transmitting data of the target primary BRAS device in accordance with the notification comprises:
when the BRAS management and control equipment determines that a target port of target main BRAS equipment has a fault, receiving an IP address of the target port sent by the BRAS management and control equipment, and taking over a user of the target port;
and refreshing the MAC table entry of the aggregation switch, and announcing the IP address of the target port to realize the flow guidance of the user side flow of the target main BRAS equipment.
16. A BRAS manages and controls equipment, characterized in that includes: a processor and a transceiver;
the transceiver is used for acquiring the state information of the target primary BRAS equipment;
the processor is used for determining a standby device of the target main BRAS device when the target main BRAS device is determined to be in fault according to the state information; the standby equipment is used for backing up a plurality of main BRAS equipment; transmitting data of the target primary BRAS equipment by utilizing the standby equipment;
the BRAS management and control equipment stores the table entry information of all users in a unified mode and manages all the BRAS equipment in a unified mode, and each BRAS equipment carries out data message processing according to the user forwarding table entry information issued by the BRAS management and control equipment.
17. The apparatus of claim 16,
the processor is further configured to set a backup correspondence between the standby device and a plurality of primary BRAS devices; wherein one port of the backup device corresponds to one or more ports of the plurality of primary BRAS devices.
18. The apparatus of claim 16,
the transceiver is also used for receiving a PPPoE signaling message of the target main BRAS equipment;
the processor is further configured to generate a user forwarding entry according to the PPPoE signaling message;
the transceiver is further configured to send the user forwarding entry to the target primary BRAS device.
19. The apparatus of claim 18,
the processor is also used for allocating an IP address to any port in the target main BRAS equipment when a user is on line for the first time;
the transceiver is also used for sending the IP address corresponding to any port to the target main BRAS equipment.
20. The apparatus of claim 16,
and the processor is further used for determining that the backup BRAS equipment corresponding to the target main BRAS equipment is the backup equipment of the target main BRAS equipment when the complete machine fault of the target main BRAS equipment is determined or the fault is determined between the target main BRAS equipment and the BRAS management and control equipment according to the state information.
21. The apparatus of claim 20,
the processor is further configured to notify, by the transceiver, the backup BRAS device of an IP address of each port of the target primary BRAS device, so that the backup BRAS device takes over users of each port of the target primary BRAS device, and notify the backup BRAS device of advertising the IP address of each port of the target primary BRAS device, so as to transmit data of the target primary BRAS device by using the backup BRAS device; or
The processor is further configured to notify, through the transceiver, the backup BRAS device of the IP address of each port of the target primary BRAS device and the user forwarding entry of each port, so that the backup BRAS device takes over users of each port of the target primary BRAS device, refreshes the MAC entry of the aggregation switch, and announces the IP address of each port of the target primary BRAS device, so as to transmit data of the target primary BRAS device by using the backup BRAS device.
22. The apparatus of claim 16,
the transceiver is also used for receiving the state information of the target port reported by the target main BRAS equipment;
and the processor is further used for determining a standby BRAS device corresponding to the target main BRAS device when the target port is determined to have a fault according to the state information, and determining a standby port corresponding to the target port in each port of the standby BRAS device.
23. The apparatus of claim 22,
the processor is further configured to notify the backup BRAS device of the IP address of the target port through the transceiver, so that the backup BRAS device takes over a user of the target port, and notify the backup BRAS device to announce the IP address of the target port, so as to transmit data of the target port using the backup port; or
The processor is further configured to notify the standby BRAS device of the IP address of the target port and the user forwarding entry of the target port through the transceiver, so that the standby BRAS device takes over users of the target port, refreshes the MAC entry of the aggregation switch, and announces the IP address of the target port, so as to transmit data of the target port through the standby port.
24. A BRAS device, comprising: a processor and a transceiver;
the processor is used for acquiring state information;
the transceiver is used for reporting the state information to BRAS management and control equipment, so that when the BRAS management and control equipment determines that a fault occurs according to the state information, standby equipment is determined, and data are transmitted by using the standby equipment; the standby equipment is used for backing up a plurality of main BRAS equipment;
the BRAS management and control equipment stores the table entry information of all users in a unified mode and manages all the BRAS equipment in a unified mode, and each BRAS equipment carries out data message processing according to the user forwarding table entry information issued by the BRAS management and control equipment.
25. The apparatus of claim 24,
the processor is further used for acquiring state information between the BRAS management and control equipment and the BRAS management and control equipment; or to obtain status information for each port.
26. The apparatus of claim 24,
the transceiver is also used for receiving a user message;
the processor is further configured to forward the PPPoE signaling message to a BRAS management and control device through the transceiver when the user message is the PPPoE signaling message; and when the user message is a data message, forwarding the data message through the transceiver according to a user forwarding table item issued by the BRAS control equipment.
27. The apparatus of claim 26,
the transceiver is also used for receiving a user forwarding table item issued by the BRAS control equipment; and receiving the IP address distributed to each port by the BRAS management and control equipment.
28. A BRAS device, comprising: a processor and a transceiver;
the transceiver is used for receiving a notice of the BRAS management and control equipment, and the notice is used for indicating that the target primary BRAS equipment fails;
the processor is used for transmitting the data of the target primary BRAS equipment according to the notification;
the BRAS management and control equipment stores the table entry information of all users in a unified way and realizes the unified management of all BRAS equipment, and each BRAS equipment processes data messages according to the user forwarding table entry information issued by the BRAS management and control equipment;
the BRAS equipment is used for backing up a plurality of main BRAS equipment.
29. The apparatus of claim 28,
the processor is further configured to, when the BRAS management and control device determines that a complete machine of a target primary BRAS device fails or determines that a fault occurs between the target primary BRAS device and the BRAS management and control device, receive, by the transceiver, an IP address of each port of the target primary BRAS device sent by the BRAS management and control device, and take over users of each port of the target primary BRAS device; and the transceiver notices the IP address of each port of the target main BRAS equipment, so as to realize the flow guiding of the network side flow of the target main BRAS equipment.
30. The apparatus of claim 28,
the processor is further configured to, when the BRAS management and control device determines that a target port of a target primary BRAS device fails, receive, by the transceiver, an IP address of the target port sent by the BRAS management and control device, and take over a user of the target port; and refreshing the MAC table entry of the aggregation switch, and noticing the IP address of the target port through the transceiver to realize the flow guiding of the user side flow of the target main BRAS equipment.
31. A BRAS policing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor; the method for implementing BRAS hot standby according to any one of claims 1-8 is implemented when the processor executes the program.
32. A BRAS device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor; characterized in that, the processor implements the BRAS hot standby implementation method according to any one of claims 9-12 when executing the program.
33. A BRAS device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor; characterized in that, the processor implements the BRAS hot standby implementation method according to any one of claims 13-15 when executing the program.
34. A computer readable storage medium for storing a computer program, wherein the computer program is executable by a processor to implement a method for implementing a BRAS hotstand according to any one of claims 1 to 8; or a method for implementing the BRAS hot standby according to any one of claims 9 to 12; or a method for implementing a BRAS hot standby according to any of claims 13-15.
CN201710561290.0A 2017-07-11 2017-07-11 Method and device for realizing BRAS hot standby and computer readable storage medium Active CN109245911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710561290.0A CN109245911B (en) 2017-07-11 2017-07-11 Method and device for realizing BRAS hot standby and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710561290.0A CN109245911B (en) 2017-07-11 2017-07-11 Method and device for realizing BRAS hot standby and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109245911A CN109245911A (en) 2019-01-18
CN109245911B true CN109245911B (en) 2022-04-15

Family

ID=65083925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710561290.0A Active CN109245911B (en) 2017-07-11 2017-07-11 Method and device for realizing BRAS hot standby and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109245911B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830310B (en) * 2019-11-28 2022-04-26 新华三大数据技术有限公司 Cross-data-center disaster backup method and BRAS system
CN113037599A (en) * 2019-12-24 2021-06-25 中兴通讯股份有限公司 Message processing method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system
CN104038362A (en) * 2013-03-08 2014-09-10 中国移动通信集团广东有限公司 Network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system
CN104038362A (en) * 2013-03-08 2014-09-10 中国移动通信集团广东有限公司 Network system

Also Published As

Publication number Publication date
CN109245911A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
US11734138B2 (en) Hot standby method, apparatus, and system
KR102392120B1 (en) Processing method, device and system for nf component abnormality
CN102904818A (en) Method and device for updating ARP (Address Resolution Protocol) information table
US8880703B2 (en) Address distribution method, device and system thereof
US9288075B2 (en) Method and system for auto-configuration, and network node
CN103036702B (en) A kind of N+1 backup method of cross-network segment and device
CN110677282B (en) Hot backup method of distributed system and distributed system
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
US20140050092A1 (en) Load sharing method and apparatus
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
CN106101297B (en) A kind of message answer method and device
CN104506372A (en) Method and system for realizing host-backup server switching
CN109245911B (en) Method and device for realizing BRAS hot standby and computer readable storage medium
CN103401954B (en) The implementation method of virtual DHCP
CN103517155A (en) Flow dynamic control method and device based on monitor service
CN101340339A (en) Wideband access server cluster system and apparatus
CN102811153B (en) VLAN state negotiating method and edge device
JP2016072704A (en) Relay system and switch device
CN102255716B (en) A kind of method and system of the backup between equipment to protocol status
CN104320282A (en) Method for switching of main and standby virtual machines in virtual edge port aggregation system and physical mainframes
CN108206748B (en) Core network backup method applied to TD-LTE (time division-Long term evolution) Internet of things service isolation environment
CN106850264B (en) A kind of network equipment
CN109039680B (en) Method and system for switching main Broadband Network Gateway (BNG) and standby BNG and BNG
KR20120128031A (en) System and method for providing push service
CN102271045A (en) Virtual private network (VPN)-instance-based inter-equipment backup method, equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant