WO2011035586A1 - Method, device and system for allocating addresses in hot standby scenario - Google Patents

Method, device and system for allocating addresses in hot standby scenario Download PDF

Info

Publication number
WO2011035586A1
WO2011035586A1 PCT/CN2010/072595 CN2010072595W WO2011035586A1 WO 2011035586 A1 WO2011035586 A1 WO 2011035586A1 CN 2010072595 W CN2010072595 W CN 2010072595W WO 2011035586 A1 WO2011035586 A1 WO 2011035586A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
bras
request
resource
backup
Prior art date
Application number
PCT/CN2010/072595
Other languages
French (fr)
Chinese (zh)
Inventor
冷通
叶志宁
冯军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011035586A1 publication Critical patent/WO2011035586A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to an address allocation method, apparatus, and system in a hot backup scenario.
  • the broadband metropolitan area network service control layer is a unique layer of the service access network connecting the core switching network.
  • the device that plays an important role is the Broadband Remote Access Server (BRAS), which mainly undertakes service access control. And user management aspects.
  • BRAS Broadband Remote Access Server
  • two BRAS products are deployed at the control layer of the network.
  • two devices are in a primary state and one is in a standby state.
  • the master device is used to control user access and record user information, and back up user information to the standby device through real-time synchronization or batch synchronization.
  • the primary device is faulty, the active/standby switchover can be implemented quickly.
  • the user information is backed up to the standby state device. Therefore, the user does not have the perception during the active/standby switchover process to ensure service quality and improve the user service experience.
  • the two BRAS devices are device A and device B.
  • the working mode of 1:1 is that for all users, device A is the primary state device, and device B is the standby state device.
  • Service device B does not carry users; 1+1 works in the case of a group of users, device A is the master device, device B is the standby device, and the other group is set.
  • device B is the primary state device, and device A is the standby state device, that is, device A and device during normal operation. B carries user services.
  • two BRASs that are mutually standby have the same shared address pool.
  • a backup group between two BRASs or two BRASs works in 1+1 mode, users will access the two BRASs separately and share addresses in the address pool.
  • the user information is synchronized to the remote device in real time.
  • the remote device marks the IP address in the local address record as unavailable according to the address assigned to the user in the synchronization information. .
  • the invention provides an address allocation method, device and system in a hot backup scenario, which solves the problem of address conflict in a hot backup scenario.
  • An address allocation method in a hot backup scenario in which two broadband remote access servers (BRASs) work in a hot backup scenario and are mutually backup devices, and the method includes:
  • the BRAS receives an address request request for its backup device
  • the BRAS allocates an address resource to the backup device from the shared address pool according to the address request, and sets the state of the address resource to a remote application;
  • the BRAS sends a consent message to the backup device, where the consent message carries address resource information allocated to the backup device.
  • the method further includes:
  • a veto message is sent to the backup device, and the backup device is notified to temporarily stop the address request.
  • the method further includes: The BRAS receives an acknowledgement message fed back by the backup device, and sets a state of the address resource to a remote allocation.
  • An address allocation method in a hot backup scenario in which two broadband remote access servers (BRASs) work in a hot backup scenario and are mutually backup devices, and the method includes:
  • the backup device When the number of locally available address resources is lower than the address lower limit value, the backup device sends an address request request to the BRAS, requesting the BRAS to allocate an address resource to the backup device;
  • the backup device Receiving, by the backup device, a consent message sent by the BRAS, where the consent message carries address resource information allocated to the backup device; and the backup device allocates an address to the backup device according to the consent message.
  • the resource status is set to unassigned.
  • the method further includes:
  • the backup device accepts a user's online request, assigns an address to the user from the address resource, and sets the state of the address to a local allocation.
  • the address allocation method in the above hot backup scenario further includes:
  • the backup device If the user goes offline, the status of the address occupied by the user is set to unassigned; and the status is that the number of unallocated address resources reaches the upper address limit, the backup device requests the BRAS to release part of the address resource.
  • the backup device further includes: the backup device receiving the veto message sent by the BRAS, indicating that the address request is temporarily stopped.
  • the method further includes:
  • the backup device synchronously shares address information in the address pool with the BRAS; and when there is a free address in the shared address pool, the backup device continues to send an address request request to the BRAS.
  • a BRAS including:
  • a request receiving module which is configured to: receive an address request request
  • a resource management module configured to: allocate an address resource from the shared address pool according to the address request request received by the request receiving module, and set the state of the address resource to a remote application;
  • the request response module is configured to: send a consent message, and carry the address resource information allocated by the resource management module in the consent message.
  • the request response module is further configured to: when there is no address resource that can be allocated in the shared address pool, send a veto message to notify the temporary stop address request.
  • the above BRAS also includes:
  • the request sending module is configured to: when the number of locally available address resources is lower than the address lower limit, send an address request request to the remote device, requesting to allocate the address resource locally;
  • a response receiving module configured to: receive an agreement message in response to the address request request sent by the request sending module, where the consent message carries the allocated address resource information;
  • the resource management module is further configured to: set the allocated address resource status to unassigned according to the consent message received by the response receiving module.
  • the response receiving module is further configured to: receive a veto message, and instruct the request sending module to temporarily stop the address request;
  • the BRAS also includes:
  • An information synchronization module is configured to: synchronously share the address information in the address pool with the remote end, and after the response receiving module instructs the request sending module to temporarily stop the address request, if the shared address pool is found to have a free address And instructing the request sending module to continue to send an address request request.
  • An address allocation system in a hot backup scenario comprising a first BRAS and a second BRAS, wherein the first BRAS and the second BRAS work in a hot backup scenario and are mutually backup devices;
  • the first BRAS is configured to: when the number of locally available address resources is lower than an address lower limit, send an address request request to the second BRAS, request the second BRAS to locally allocate an address resource, and receive the second
  • the consent message sent by the BRAS the consent message carries the address resource information allocated for the second BRAS, and according to the consent message, the status of the address resource allocated to the second BRAS is set to be unassigned;
  • the second BRAS is configured to: connect an address request sent by the first BRAS, allocate an address resource to the first BRAS from the shared address pool according to the address request, and set a status of the address resource.
  • the consent message is sent to the first BRAS, and the address resource information allocated to the first BRAS is carried in the consent message.
  • the first BRAS is further configured to: accept a user's online request, assign an address to the user from the address resource, and set the status of the address to a local allocation.
  • the first BRAS is further configured to: if the user goes offline, set the state of the address occupied by the user to be unassigned; when the state is that the number of unallocated address resources reaches the address upper limit, to the second The BRAS applies to release some of the address resources.
  • An embodiment of the present invention provides an address allocation method, apparatus, and system in a hot backup scenario.
  • One of the BRASs in the two hot backup scenarios is selected as the shared address pool primary management device, and the other is used as the backup device.
  • the BRAS sends an address request to the BRAS as the primary management device.
  • the BRAS allocates an address resource for the backup device and locally marks the address resource allocated to the backup device as the remote allocation.
  • the BRAS is prevented from allocating the same address to the users accessing it, which solves the problem of address conflict in the hot backup scenario.
  • FIG. 1 is a schematic diagram of a network of an application scenario according to an embodiment of the present invention
  • FIG. 2 is a flow chart of an address allocation method in a hot backup scenario according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a BRAS according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a BRAS according to still another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a BRAS according to still another embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an address allocation system in a hot backup scenario according to an embodiment of the present invention.
  • an embodiment of the present invention provides an address allocation method in a hot backup scenario.
  • the user accesses the aggregation device through the access network, and the aggregation device doubles up to two BRASs.
  • the BRAS acts as a gateway to terminate the user VLAN.
  • the virtual routing redundancy protocol is used between the two BRAS devices.
  • the Router Redundancy Protocol (VRRP) negotiates the master/slave relationship. There are two modes of operation for the two BRAS devices: 1 and 1 and 1+1.
  • BRAS1 and BRAS2 are backup devices of each other and work in dual-system hot standby mode.
  • 1:1 mode of operation if BRAS1 is the master device, BRAS1 carries the user service, and BRAS2 acts as the backup device, and only the BRAS1 is backed up.
  • User information In the 1+1 working mode, for a group of users, for a backup group, BRAS1 is the master device, BRAS2 is the backup device, but for another backup group.
  • BRAS2 can be the primary device and BRAS2 is the backup device. That is, when working normally, both BRAS1 and BRAS2 carry some user services.
  • the address allocation method in the hot backup scenario provided by the embodiment of the present invention is applicable to any of the above working modes.
  • the core router (CR) 101 is connected with a BRAS 102 and a BRAS 103 which are mutually backup devices, and the BRAS 102 and the BRAS 103 share the same address pool; the BRAS 102
  • the switch device (SW) 104 is connected to the BRAS 103, and the user accesses the network through the SW 104.
  • An embodiment of the present invention provides an address allocation method in a hot backup scenario, in which one BRAS of a pair of BRASs that are mutually backup devices is used as a primary management device, and the address resources of the shared address pool and the backup device are completed by the BRAS. Management, the process of using this method to complete the address allocation is shown in Figure 2, including:
  • Step 201 Negotiating the master device and the standby device between a pair of BRASs in the hot backup scenario.
  • the BRAS 102 negotiates with the BRAS 103 to select one.
  • the BRAS is used as the master device, and the device is responsible for the management of the shared address pool.
  • the other BRAS is used as the backup device.
  • the BRAS 102 is the master device as an example.
  • this step can also be completed by the network maintenance personnel during system configuration, and a pair of primary devices in the BRAS that are mutually prepared are specified.
  • Step 202 The BRAS manages the shared address pool for all users to go online.
  • the BRAS 102 manages the shared address pool, and the resources in the shared address pool are used by the BRAS 102 and the BRAS 103.
  • the BRAS 102 and the BRAS 103 store address information, and record the usage of each address in the shared address pool.
  • an unassigned state indicates that the address or address segment is not used by the BRAS 102 and is not used by the BRAS 103; the local allocation state is for the BRAS 102.
  • the status indicates that the address or address segment is used by the BRAS 102.
  • the BRAS 103 the status indicates that the address or address segment is used by the BRAS 103; the status of the remote application only appears on the primary management device, that is, the address of the BRAS 102.
  • a record in the message indicates that the address or address segment has been assigned to the backup device, but has not received an acknowledgment message that the backup device successfully obtained the address or address segment; the remote allocation state indicates that the address or address segment has been assigned to
  • BRAS 103 an address or address segment in the remote allocation state for BRAS 103 has been assigned to BRAS 102.
  • Step 203 When the number of locally available address resources is lower than the address lower limit, the backup device sends an address request request to the BRAS, requesting the BRAS to allocate an address resource to the backup device.
  • the backup device is available.
  • the number of address resources is set to two thresholds, which are assigned as the lower address limit and the upper address limit, which are used to describe the number of address resources available on the current backup device.
  • the lower limit of the address must be less than or equal to the upper limit of the address.
  • the BRAS 103 monitors the current number of locally available address resources in real time. When the number of available address resources is lower than the lower limit of the address, it indicates that the current available address resources are insufficient. At this time, the BRAS 103 needs to send an address request request to the BRAS 102 to request acquisition. Address resource.
  • the address resource obtained by the address request request may be one or several addresses, or may be an address segment (such as a class D address).
  • Step 204 The BRAS receives an address request request of the backup device, and allocates an address resource to the backup device from the shared address pool according to the address request request, and sets the state of the address resource to a remote application.
  • the BRAS 102 receives the address request sent by the BRAS 103 in step 203, allocates an address resource for the BRAS 103, and sets the status of the address resource to "remote application"; further, if the BRAS 103 applies for one or For a few addresses, the BRAS 102 needs to first determine the status of these addresses. When the status of these addresses is "unallocated", these addresses are assigned to the BRAS 103.
  • BRAS 102 can reject The request of the BRAS 103 replies to the BRAS 103 with a veto message.
  • Step 205 The BRAS sends an agreement message to the backup device, where the consent message carries address resource information allocated to the backup device.
  • the BRAS 102 issues a consent message to the BRAS 103, which carries the information of the address resource assigned to the BRAS 103 in the consent message.
  • Step 206 The backup device sets, according to the consent message, an address resource status assigned to the backup device to be unassigned;
  • the BRAS 103 receives the consent message sent by the BRAS 102, and according to the consent message, sets the state of the address resource allocated by the BRAS 102 to "unallocated", that is, these address resources have been managed by the BRAS 103 and allocated to the users under it.
  • Step 207 The BRAS receives an acknowledgement message fed back by the backup device, and sets a state of the address resource to a remote allocation.
  • the BRAS 102 receives the acknowledgment message sent by the BRAS 103, changing the state of the address resource allocated to the BRAS 103 from "remote allocation” to "remote allocation”.
  • Step 208 The backup device accepts the online request of the user, allocates an address to the user from the address resource, and sets the state of the address to a local allocation.
  • the BRAS 103 selects an address from the local "unallocated" state address resource to the user.
  • the status of the address is still "remote allocation". " .
  • Step 209 If the number of the unallocated address resources reaches the address upper limit, the backup device requests the BRAS to release part of the address resources.
  • the BRAS 103 detects that the number of unallocated address resources exceeds the upper address limit, it indicates that a considerable part of the address resources are in an idle state, and the status of the part of the address resources on the BRAS 102 side is "remote allocation", that is, Used by the BRAS 102, in order to avoid waste of resources, the BRAS 103 will initiate an address resource release procedure, requesting the BRAS 102 to release part of the resources, and modifying the state of the address resource released by the part of the BRAS 103 side to "remote allocation", and the partial address of the BRAS 102 side. The status of the resource is changed to "unallocated".
  • the BRAS 102 finds that there is no address in the shared address pool that can be allocated to the BRAS 103, the BRAS 102 sends a veto message to the BRAS 103, instructing the BRAS 103 to suspend the application address; since the BRAS 102 and the BRAS 103 will perform information Synchronization, the local address usage is synchronized to the peer, so when the address resource under the BRAS 102 is released, the BRAS 103 will know this and start to apply for the address to the BRAS 102 again.
  • the BRAS 103 sets itself as the primary management device, and the BRAS 103 manages the shared address pool; when the BRAS 103 finds that the BRAS 102 is restored, the local information is synchronized with the BRAS 102, and After the synchronization, the identity of the primary management device of the BRAS 102 is restored, and the shared address pool is continuously managed by the BRAS 102.
  • An embodiment of the present invention further provides a BRAS, as shown in FIG. 3, including:
  • a request receiving module 301 configured to receive an address request request
  • the resource management module 302 is configured to allocate an address resource from the shared address pool according to the address request request received by the request receiving module 301, and set the state of the address resource to a remote application;
  • the request response module 303 is configured to send a consent message, where the address resource information allocated by the resource management module 302 is carried in the consent message. Further, the request response module 303 is further configured to send a veto message to notify the temporary stop address request when there is no address resource that can be allocated in the shared address pool.
  • the foregoing BRAS further includes:
  • the request sending module 304 is configured to send an address request request to the remote device when the number of locally available address resources is lower than the address lower limit, and request to allocate the address resource locally;
  • the response receiving module 305 is configured to receive an agreement message in response to the address request request sent by the request sending module 304, where the consent message carries the allocated address resource information;
  • the resource management module 302 is further configured to set the allocated address resource status to unassigned according to the consent message received by the response receiving module 305.
  • the response receiving module 305 is further configured to receive a veto message, and the request sending module 304 temporarily stops the address request.
  • the BRAS as shown in FIG. 5, further includes:
  • the information synchronization module 306 is configured to synchronously share address information in the address pool with the remote end. After the response receiving module 305 instructs the request sending module 304 to temporarily stop the address request, if the shared address pool is found to be idle. The address indicates that the request sending module 304 continues to send an address request request.
  • An embodiment of the present invention further provides an address allocation system in a hot backup scenario.
  • the system includes a first BRAS 601 and a second BRAS 602.
  • the first BRAS 601 and the second BRAS 602 work in hot.
  • the first BRAS 601 is configured to send an address request request to the second BRAS 602 when the number of locally available address resources is lower than an address lower limit, requesting the second BRAS 602 to locally allocate an address resource, and receive the second
  • the consent message sent by the BRAS 602 the consent message carries the address resource information allocated for the second BRAS 602, and the yan sets the address resource status allocated to the second BRAS 602 to be unassigned according to the consent message;
  • the second BRAS 602 is configured to receive an address request sent by the first BRAS 601, allocate an address resource to the first BRAS 601 from a shared address pool according to the address request, and set a status of the address resource.
  • the consent message is sent to the first BRAS 601, and the address resource information allocated to the first BRAS 601 is carried in the consent message.
  • the first BRAS 601 is further configured to accept a user's online request, assign an address to the user from the address resource, and set a status of the address to a local allocation.
  • the first BRAS 601 is further configured to: if the user goes offline, set the state of the address occupied by the user to be unassigned; when the state is that the number of unallocated address resources reaches the address upper limit, to the second BRAS 602 applies to release some of the address resources.
  • the address allocation system in the BRAS and the hot backup scenario may be combined with the address allocation method in the hot backup scenario provided by the embodiment of the present invention, and one of the BRASs in the two hot backup scenarios is selected as the shared address.
  • the pool master manages the device, and the other device functions as a backup device.
  • the BRAS sends an address request to the BRAS as the primary management device.
  • the BRAS allocates the address resource to the backup device and locally
  • the address resource allocated to the backup device is marked as a remote allocation, which prevents the BRAS from assigning the same address to the users accessing it, and solves the problem of address conflict in the hot backup scenario.
  • each functional unit in each embodiment of the present invention may be implemented in the form of hardware, or may be implemented in the form of a software functional module.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • An embodiment of the present invention provides an address allocation method, apparatus, and system in a hot backup scenario.
  • One of the BRASs in the two hot backup scenarios is selected as the shared address pool primary management device, and the other is used as the backup device.
  • the BRAS sends an address request to the BRAS as the primary management device.
  • the BRAS allocates an address resource for the backup device and locally marks the address resource allocated to the backup device as the remote allocation.
  • the BRAS is prevented from allocating the same address to the users accessing it, which solves the problem of address conflict in the hot backup scenario.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Hardware Redundancy (AREA)

Abstract

A method for allocating addresses in a hot standby scenario is disclosed, two broadband remote access servers (BRAS) work in the hot standby scenario and are a backup device for each other, the method includes: the BRAS receives an address applying request of its backup device; the BRAS allocates address resources from a shared address pool for the backup device according to the address applying request and sets the statuses of the address resources as being applied remotely; and the BRAS sends an agreement message to the backup device, the information of the address resources allocated to the backup device are carried in the agreement message. A device and a system for allocating addresses are also disclosed. The method, device and system avoid the same address being allocated by the BRAS to the users who access it, and solve the problem of the address conflict in the hot standby scenario.

Description

热备份场景下的地址分配方法、 装置和***  Address allocation method, device and system in hot backup scenario
技术领域 Technical field
本发明涉及移动通信领域,尤其涉及一种热备份场景下的地址分配方法、 装置和***。  The present invention relates to the field of mobile communications, and in particular, to an address allocation method, apparatus, and system in a hot backup scenario.
背景技术 Background technique
宽带城域网业务控制层, 是业务接入网络连接核心交换网络的一个特有 的层面, 起重要角色的设备就是宽带远程接入服务器 (Broadband Remote Access Server, BRAS ) , 其主要承担业务接入控制和用户管理方面的功能。  The broadband metropolitan area network service control layer is a unique layer of the service access network connecting the core switching network. The device that plays an important role is the Broadband Remote Access Server (BRAS), which mainly undertakes service access control. And user management aspects.
随着对网络提供的业务高质量保障需求的提出, 对业务控制层 BRAS产 品的性能和可靠性提出了更高的要求, BRAS产品所承担的功能和网络中所 处的位置, 决定了 BRAS具有高可靠性的组网, 故 BRAS双机热备份的概念 应运而生, 通过在业务控制层部署两台 BRAS设备, 使其具有主备冗余, 用 户信息备份的功能, 以保障在设备故障时, 能快速的实现切换和业务恢复, 达到用户无感知的服务保障。 同时, 也彻底解决了单点故障的网络隐患。  With the demand for high-quality security for the services provided by the network, higher requirements are placed on the performance and reliability of the BRAS products in the service control layer. The functions of the BRAS products and the location in the network determine the BRAS. High-reliability networking, so the concept of BRAS dual-system hot backup comes into being. By deploying two BRAS devices at the service control layer, it has the functions of active/standby redundancy and user information backup to ensure equipment failure. It can quickly realize switching and service recovery, and achieve user-unaware service guarantee. At the same time, it also completely solved the network hidden danger of single point of failure.
BRAS双机热备份场景是在网络的控制层部署两台 BRAS产品, 在工作 时, 两台设备一个为主状态, 一个为备状态。 主设备用来控制用户接入和记 录用户信息, 并通过实时同步或者批量同步的方式将用户信息备份到备用设 备上。 当主用设备发生故障时, 能快速的实现主备切换, 由于用户信息已经 备用到备状态设备, 所以设备主备切换过程中用户无感知, 确保服务质量, 提高用户服务体验。  In the BRAS dual-system hot backup scenario, two BRAS products are deployed at the control layer of the network. When working, two devices are in a primary state and one is in a standby state. The master device is used to control user access and record user information, and back up user information to the standby device through real-time synchronization or batch synchronization. When the primary device is faulty, the active/standby switchover can be implemented quickly. The user information is backed up to the standby state device. Therefore, the user does not have the perception during the active/standby switchover process to ensure service quality and improve the user service experience.
在双机热备份场景中, 存在 1 : 1和 1+1两种工作方式。 假定两台 BRAS 设备为设备 A和设备 B, 1 : 1的工作方式为对所有的用户而言, 设备 A为主 状态设备,设备 B为备状态设备, 即正常工作时, 只有设备 A承载用户业务, 设备 B不承载用户; 1+1的工作方式为对设定的一个群组的用户而言, 设备 A为主状态设备,设备 B为备状态设备,对设定的另外一个群组的用户而言, 设备 B为主状态设备, 设备 A为备状态设备, 即正常工作时, 设备 A和设备 B均承载用户业务。 In the dual-system hot backup scenario, there are two working modes: 1:1 and 1+1. Assume that the two BRAS devices are device A and device B. The working mode of 1:1 is that for all users, device A is the primary state device, and device B is the standby state device. Service, device B does not carry users; 1+1 works in the case of a group of users, device A is the master device, device B is the standby device, and the other group is set. For the user, device B is the primary state device, and device A is the standby state device, that is, device A and device during normal operation. B carries user services.
在双机热备场景中,互为备 殳备的两台 BRAS具有相同的共享地址池。 当两台 BRAS或两台 BRAS间的某一备份组以 1+1方式工作时, 用户将分别 从两台 BRAS接入, 且同时共享地址池中分配地址。 当某个用户上线分配到 地址后, 用户信息会实时同步到远端备 ^殳备, 远端设备会根据同步信息中 分配给用户的地址, 将本地的地址纪录中该 IP项标记为不可用。  In a hot standby scenario, two BRASs that are mutually standby have the same shared address pool. When a backup group between two BRASs or two BRASs works in 1+1 mode, users will access the two BRASs separately and share addresses in the address pool. After a user is online and assigned an address, the user information is synchronized to the remote device in real time. The remote device marks the IP address in the local address record as unavailable according to the address assigned to the user in the synchronization information. .
在实现上述 BRAS为上线用户分配地址的过程中, 存在如下问题: 当两台 BRAS设备同时有用户接入时, 一个 BRAS为用户分配了某一地 址, 该 BRAS将该用户的地址信息同步到备份设备前, 备份设备下也有用户 上线, 而备伤^殳备为用户分配了同一地址, 即两个互为备 殳备的 BRAS为 各自的用户分配了相同的地址, 造成了地址冲突。  In the process of implementing the foregoing BRAS for assigning addresses to online users, the following problems exist: When two BRAS devices have user access at the same time, one BRAS allocates an address to the user, and the BRAS synchronizes the address information of the user to the backup. Before the device, the user is also online under the backup device, and the backup device allocates the same address to the user. That is, the two BRASs that are mutually prepared are assigned the same address for their respective users, causing address conflicts.
发明内容 Summary of the invention
本发明提供了一种热备份场景下的地址分配方法、 装置和***, 解决了 热备份场景下地址冲突的问题。  The invention provides an address allocation method, device and system in a hot backup scenario, which solves the problem of address conflict in a hot backup scenario.
一种热备份场景下的地址分配方法, 两个宽带远程接入服务器(BRAS ) 工作在热备份场景下并互为备份设备, 该方法包括:  An address allocation method in a hot backup scenario, in which two broadband remote access servers (BRASs) work in a hot backup scenario and are mutually backup devices, and the method includes:
BRAS接收其备份设备的地址申请请求;  The BRAS receives an address request request for its backup device;
所述 BRAS根据所述地址申请请求, 从共享地址池中为所述备份设备分 配地址资源, 将所述地址资源的状态设置为远端申请中; 以及  The BRAS allocates an address resource to the backup device from the shared address pool according to the address request, and sets the state of the address resource to a remote application;
所述 BRAS向所述备 ^殳备发送同意消息, 在所述同意消息中携带分配 给该备份设备的地址资源信息。  The BRAS sends a consent message to the backup device, where the consent message carries address resource information allocated to the backup device.
在所述 BRAS接收其备份设备的地址申请请求的步骤之后, 上述方法还 包括:  After the step of the BRAS receiving the address request request of the backup device, the method further includes:
如果所述共享地址池中没有可以分配给所述备份设备的地址资源, 则向 所述备份设备发送否决消息, 通知该备份设备暂时停止地址申请。  If there is no address resource that can be allocated to the backup device in the shared address pool, a veto message is sent to the backup device, and the backup device is notified to temporarily stop the address request.
在所述 BRAS向所述备份设备发送同意消息的步骤之后, 上述方法还包 括: 所述 BRAS接收所述备份设备反馈的确认消息, 将所述地址资源的状态 设置为远端分配。 After the step of the BRAS sending a consent message to the backup device, the method further includes: The BRAS receives an acknowledgement message fed back by the backup device, and sets a state of the address resource to a remote allocation.
一种热备份场景下的地址分配方法, 两个宽带远程接入服务器(BRAS ) 工作在热备份场景下并互为备份设备, 该方法包括: An address allocation method in a hot backup scenario, in which two broadband remote access servers (BRASs) work in a hot backup scenario and are mutually backup devices, and the method includes:
备份设备在本地可用地址资源数量低于地址下限值时, 向 BRAS发送地 址申请请求, 请求所述 BRAS为所述备份设备分配地址资源;  When the number of locally available address resources is lower than the address lower limit value, the backup device sends an address request request to the BRAS, requesting the BRAS to allocate an address resource to the backup device;
所述备 殳备接收所述 BRAS发送的同意消息, 所述同意消息中携带有 分配给该备份设备的地址资源信息; 以及 所述备份设备根据所述同意消息, 将分配给该备份设备的地址资源状态 设置为未分配。  Receiving, by the backup device, a consent message sent by the BRAS, where the consent message carries address resource information allocated to the backup device; and the backup device allocates an address to the backup device according to the consent message. The resource status is set to unassigned.
在所述备份设备根据所述同意消息, 将分配给该备份设备的地址资源状 态设置为未分配的步骤之后, 上述方法还包括:  After the step of setting the address resource status of the backup device to the unassigned according to the consent message, the method further includes:
所述备份设备接受用户的上线请求, 从所述地址资源中为所述用户分配 一个地址, 并将该地址的状态设置为本地分配。  The backup device accepts a user's online request, assigns an address to the user from the address resource, and sets the state of the address to a local allocation.
上述热备份场景下的地址分配方法, 还包括:  The address allocation method in the above hot backup scenario further includes:
如果用户下线, 将该用户占用的地址的状态设置为未分配; 以及 所述状态为未分配的地址资源数量达到地址上限值, 则所述备份设备向 所述 BRAS申请释放部分地址资源。  If the user goes offline, the status of the address occupied by the user is set to unassigned; and the status is that the number of unallocated address resources reaches the upper address limit, the backup device requests the BRAS to release part of the address resource.
所述备份设备在本地地址资源低于地址下限值时, 向 BRAS发送地址申 请请求的步骤之后, 还包括: 所述备份设备接收所述 BRAS发送的否决消息,指示暂时停止地址申请。 在所述备份设备接收所述 BRAS发送的否决消息, 指示暂时停止地址申 请的步骤之后, 上述方法还包括:  After the step of sending the address request to the BRAS when the local address resource is lower than the address lower limit, the backup device further includes: the backup device receiving the veto message sent by the BRAS, indicating that the address request is temporarily stopped. After the step of receiving the veto message sent by the BRAS to indicate that the address request is temporarily stopped, the method further includes:
所述备份设备与所述 BRAS同步共享地址池中的地址信息; 以及 当所述共享地址池中有空闲的地址时, 所述备份设备继续向所述 BRAS 发送地址申请请求。 一种 BRAS, 包括: The backup device synchronously shares address information in the address pool with the BRAS; and when there is a free address in the shared address pool, the backup device continues to send an address request request to the BRAS. A BRAS, including:
请求接收模块, 其设置为: 接收地址申请请求;  a request receiving module, which is configured to: receive an address request request;
资源管理模块, 其设置为: 根据所述请求接收模块接收的地址申请请求, 从共享地址池中分配地址资源, 将所述地址资源的状态设置为远端申请中; 以及  a resource management module, configured to: allocate an address resource from the shared address pool according to the address request request received by the request receiving module, and set the state of the address resource to a remote application;
请求响应模块, 其设置为: 发送同意消息, 在所述同意消息中携带所述 资源管理模块分配的地址资源信息。  The request response module is configured to: send a consent message, and carry the address resource information allocated by the resource management module in the consent message.
所述请求响应模块还设置为: 在所述共享地址池中没有可以分配的地址 资源时, 发送否决消息, 通知暂时停止地址申请。  The request response module is further configured to: when there is no address resource that can be allocated in the shared address pool, send a veto message to notify the temporary stop address request.
上述 BRAS, 还包括:  The above BRAS also includes:
请求发送模块, 其设置为: 在本地可用地址资源数量低于地址下限值时, 向远端设备发送地址申请请求, 请求为本地分配地址资源; 以及  The request sending module is configured to: when the number of locally available address resources is lower than the address lower limit, send an address request request to the remote device, requesting to allocate the address resource locally;
响应接收模块, 其设置为: 接收响应所述请求发送模块发送的地址申请 请求的同意消息, 所述同意消息中携带有分配的地址资源信息;  a response receiving module, configured to: receive an agreement message in response to the address request request sent by the request sending module, where the consent message carries the allocated address resource information;
所述资源管理模块还设置为: 根据所述响应接收模块接收的同意消息, 将分配的地址资源状态设置为未分配。  The resource management module is further configured to: set the allocated address resource status to unassigned according to the consent message received by the response receiving module.
所述响应接收模块还设置为: 接收否决消息, 指示所述请求发送模块暂 时停止地址申请;  The response receiving module is further configured to: receive a veto message, and instruct the request sending module to temporarily stop the address request;
所述 BRAS还包括:  The BRAS also includes:
信息同步模块, 其设置为: 与远端同步共享地址池中的地址信息, 在所 述响应接收模块指示所述请求发送模块暂时停止地址申请后, 如果发现所述 共享地址池中有空闲的地址, 则指示所述请求发送模块继续发送地址申请请 求。  An information synchronization module is configured to: synchronously share the address information in the address pool with the remote end, and after the response receiving module instructs the request sending module to temporarily stop the address request, if the shared address pool is found to have a free address And instructing the request sending module to continue to send an address request request.
一种热备份场景下的地址分配***, 包括第一 BRAS和第二 BRAS, 所 述第一 BRAS与所述第二 BRAS工作在热备份场景下并互为备份设备; 所述第一 BRAS设置为: 在本地可用地址资源数量低于地址下限值时, 向所述第二 BRAS发送地址申请请求, 请求所述第二 BRAS为本地分配地址 资源, 接收所述第二 BRAS发送的同意消息, 所述同意消息中携带有为所述 第二 BRAS 分配的地址资源信息, 根据所述同意消息, 将分配给所述第二 BRAS的地址资源状态设置为未分配; An address allocation system in a hot backup scenario, comprising a first BRAS and a second BRAS, wherein the first BRAS and the second BRAS work in a hot backup scenario and are mutually backup devices; The first BRAS is configured to: when the number of locally available address resources is lower than an address lower limit, send an address request request to the second BRAS, request the second BRAS to locally allocate an address resource, and receive the second The consent message sent by the BRAS, the consent message carries the address resource information allocated for the second BRAS, and according to the consent message, the status of the address resource allocated to the second BRAS is set to be unassigned;
所述第二 BRAS设置为: 接所述第一 BRAS发送的地址申请请求, 根据 所述地址申请请求, 从共享地址池中为所述第一 BRAS分配地址资源, 将所 述地址资源的状态设置为远端申请中, 并向所述第一 BRAS发送同意消息, 在所述同意消息中携带分配给该第一 BRAS的地址资源信息。  The second BRAS is configured to: connect an address request sent by the first BRAS, allocate an address resource to the first BRAS from the shared address pool according to the address request, and set a status of the address resource. In the remote application, the consent message is sent to the first BRAS, and the address resource information allocated to the first BRAS is carried in the consent message.
所述第一 BRAS还设置为: 接受用户的上线请求, 从所述地址资源中为 所述用户分配一个地址, 并将该地址的状态设置为本地分配。  The first BRAS is further configured to: accept a user's online request, assign an address to the user from the address resource, and set the status of the address to a local allocation.
所述第一 BRAS还设置为: 如果用户下线, 将该用户占用的地址的状态 设置为未分配; 当所述状态为未分配的地址资源数量达到地址上限值时, 向 所述第二 BRAS申请释放部分地址资源。  The first BRAS is further configured to: if the user goes offline, set the state of the address occupied by the user to be unassigned; when the state is that the number of unallocated address resources reaches the address upper limit, to the second The BRAS applies to release some of the address resources.
本发明的实施例提供了一种热备份场景下的地址分配方法、装置及***, 在两个热备份场景下的 BRAS中选定一个作为共享地址池主管理设备, 另一 个作为备份设备, 在备份设备需要为其下接入的用户分配地址时, 向作为主 管理设备的 BRAS发出地址申请请求, BRAS为备份设备分配地址资源, 并 在本地将分配给备份设备的地址资源标记为远端分配, 避免了 BRAS将同样 的地址分配给其下接入的用户, 解决了热备份场景下地址冲突的问题。 附图概述  An embodiment of the present invention provides an address allocation method, apparatus, and system in a hot backup scenario. One of the BRASs in the two hot backup scenarios is selected as the shared address pool primary management device, and the other is used as the backup device. When the backup device needs to assign an address to the user to access it, the BRAS sends an address request to the BRAS as the primary management device. The BRAS allocates an address resource for the backup device and locally marks the address resource allocated to the backup device as the remote allocation. The BRAS is prevented from allocating the same address to the users accessing it, which solves the problem of address conflict in the hot backup scenario. BRIEF abstract
图 1为本发明的实施例应用场景的网络示意图;  FIG. 1 is a schematic diagram of a network of an application scenario according to an embodiment of the present invention;
图 2为本发明的实施例提供的一种热备份场景下的地址分配方法的流程 图;  2 is a flow chart of an address allocation method in a hot backup scenario according to an embodiment of the present invention;
图 3为本发明的实施例提供的一种 BRAS的结构示意图;  3 is a schematic structural diagram of a BRAS according to an embodiment of the present invention;
图 4为本发明的又一实施例提供的一种 BRAS的结构示意图;  4 is a schematic structural diagram of a BRAS according to still another embodiment of the present invention;
图 5为本发明的又一实施例提供的一种 BRAS的结构示意图; 图 6为本发明的实施例提供的一种热备份场景下的地址分配***的结构 示意图。 FIG. 5 is a schematic structural diagram of a BRAS according to still another embodiment of the present invention; FIG. FIG. 6 is a schematic structural diagram of an address allocation system in a hot backup scenario according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
为了解决热备份场景下地址冲突的问题, 本发明的实施例提供了一种热 备份场景下的地址分配方法。  In order to solve the problem of address conflict in a hot backup scenario, an embodiment of the present invention provides an address allocation method in a hot backup scenario.
BRAS 双机热备模式中, 用户通过接入网接入到汇聚设备, 汇聚设备双 上行到两台 BRAS, BRAS起网关作用, 终结用户 VLAN, 两台 BRAS设备 间通过虚拟路由冗余协议(Virtual Router Redundancy Protocol, VRRP )协商 主备关系。 两台 BRAS设备存在 1 : 1和 1+1两种工作方式。  In the BRAS dual-system hot standby mode, the user accesses the aggregation device through the access network, and the aggregation device doubles up to two BRASs. The BRAS acts as a gateway to terminate the user VLAN. The virtual routing redundancy protocol is used between the two BRAS devices. The Router Redundancy Protocol (VRRP) negotiates the master/slave relationship. There are two modes of operation for the two BRAS devices: 1 and 1 and 1+1.
例如, BRAS1与 BRAS2互为备份设备, 在双机热备模式下工作.在 1 : 1 工作方式中, 如果 BRAS1为主设备, 则 BRAS1承载用户业务, 而 BRAS2 作为备份设备, 只备份 BRAS1上的用户信息; 而在 1+1工作方式中, 对设定 的一个群组的用户而言, 如对一个备份组而言, BRAS1 为主设备, BRAS2 为备 殳备, 但对另一个备份组而言, BRAS2可以为主设备, BRAS2为备份 设备, 即正常工作时, BRAS1和 BRAS2均承载部分用户业务。 本发明的实 施例提供的热备份场景下的地址分配方法, 适用于上述任何一种工作方式。  For example, BRAS1 and BRAS2 are backup devices of each other and work in dual-system hot standby mode. In the 1:1 mode of operation, if BRAS1 is the master device, BRAS1 carries the user service, and BRAS2 acts as the backup device, and only the BRAS1 is backed up. User information; In the 1+1 working mode, for a group of users, for a backup group, BRAS1 is the master device, BRAS2 is the backup device, but for another backup group. In other words, BRAS2 can be the primary device and BRAS2 is the backup device. That is, when working normally, both BRAS1 and BRAS2 carry some user services. The address allocation method in the hot backup scenario provided by the embodiment of the present invention is applicable to any of the above working modes.
首先, 对本发明的实施例的应用场景进行介绍, 如图 1所示, 核心路由 器( CR ) 101下连接有互为备份设备的 BRAS102和 BRAS103 , BRAS 102和 BRAS 103共享同一个地址池; BRAS 102与 BRAS 103下联交换机设备 ( SW ) 104, 用户通过 SW104接入网络。  First, the application scenario of the embodiment of the present invention is introduced. As shown in FIG. 1, the core router (CR) 101 is connected with a BRAS 102 and a BRAS 103 which are mutually backup devices, and the BRAS 102 and the BRAS 103 share the same address pool; the BRAS 102 The switch device (SW) 104 is connected to the BRAS 103, and the user accesses the network through the SW 104.
下面结合附图, 对本发明的实施例进行介绍。  Embodiments of the present invention will be described below with reference to the accompanying drawings.
本发明实施例提供了一种热备份场景下的地址分配方法, 将互为备份设 备的一对 BRAS中的一个 BRAS作为主管理设备, 由该 BRAS完成对共享地 址池及备份设备的地址资源的管理, 使用该方法完成地址分配的过程如图 2 所示, 包括:  An embodiment of the present invention provides an address allocation method in a hot backup scenario, in which one BRAS of a pair of BRASs that are mutually backup devices is used as a primary management device, and the address resources of the shared address pool and the backup device are completed by the BRAS. Management, the process of using this method to complete the address allocation is shown in Figure 2, including:
步骤 201、 在热备份场景下的一对 BRAS间协商出主设备和备设备; 本步骤中, 在***初始化时, BRAS102与 BRAS103进行协商, 选出一 个 BRAS作为主设备, 由该设备负责对共享地址池的管理; 另一个 BRAS作 为备 殳备, 本发明实施例中, 以 BRAS102为主设备为例, 进行说明。 Step 201: Negotiating the master device and the standby device between a pair of BRASs in the hot backup scenario. In this step, when the system is initialized, the BRAS 102 negotiates with the BRAS 103 to select one. The BRAS is used as the master device, and the device is responsible for the management of the shared address pool. The other BRAS is used as the backup device. In the embodiment of the present invention, the BRAS 102 is the master device as an example.
可选的, 本步骤也可以由网络维护人员在***配置时完成, 指定一对互 为备 殳备的 BRAS中的主设备。  Optionally, this step can also be completed by the network maintenance personnel during system configuration, and a pair of primary devices in the BRAS that are mutually prepared are specified.
步骤 202、 BRAS管理共享地址池, 供所有用户上线使用;  Step 202: The BRAS manages the shared address pool for all users to go online.
本步骤中, BRAS 102管理共享地址池,共享地址池中的资源供 BRAS102 及 BRAS103共同使用, 在 BRAS102及 BRAS103上均存储有地址信息, 记 录着共享地址池中各个地址的使用情况。  In this step, the BRAS 102 manages the shared address pool, and the resources in the shared address pool are used by the BRAS 102 and the BRAS 103. The BRAS 102 and the BRAS 103 store address information, and record the usage of each address in the shared address pool.
本发明实施例中, 为共享地址池中的地址或地址段制定不同状态: 未分 配状态,表示该地址或地址段即未被 BRAS 102使用,也未被 BRAS 103使用; 本地分配状态,对于 BRAS102来说,该状态表示该地址或地址段被 BRAS102 使用, 对于 BRAS103来说, 该状态表示该地址或地址段被 BRAS 103使用; 远端申请中状态, 仅出现在主管理设备, 即 BRAS102的地址信息中纪录, 表 示该地址或地址段已决定分配给备份设备, 但尚未接收到备份设备成功获取 该地址或地址段的确认消息; 远端分配状态, 表示该地址或地址段已分配给  In the embodiment of the present invention, different states are defined for addresses or address segments in the shared address pool: an unassigned state indicates that the address or address segment is not used by the BRAS 102 and is not used by the BRAS 103; the local allocation state is for the BRAS 102. In this case, the status indicates that the address or address segment is used by the BRAS 102. For the BRAS 103, the status indicates that the address or address segment is used by the BRAS 103; the status of the remote application only appears on the primary management device, that is, the address of the BRAS 102. A record in the message indicates that the address or address segment has been assigned to the backup device, but has not received an acknowledgment message that the backup device successfully obtained the address or address segment; the remote allocation state indicates that the address or address segment has been assigned to
BRAS 103 , 对于 BRAS103 来说处于远端分配状态的地址或地址段已分配给 BRAS 102。 BRAS 103, an address or address segment in the remote allocation state for BRAS 103 has been assigned to BRAS 102.
步骤 203、 备份设备在本地可用地址资源数量低于地址下限值时, 向 BRAS发送地址申请请求, 请求所述 BRAS为所述备份设备分配地址资源; 本发明实施例中, 为备份设备上可用的地址资源数量制定两个阀值, 分 配为地址下限值及地址上限值, 用来描述当前备份设备上可用的地址资源数 量。 其中, 地址下限值需小于或等于地址上限值。  Step 203: When the number of locally available address resources is lower than the address lower limit, the backup device sends an address request request to the BRAS, requesting the BRAS to allocate an address resource to the backup device. In this embodiment, the backup device is available. The number of address resources is set to two thresholds, which are assigned as the lower address limit and the upper address limit, which are used to describe the number of address resources available on the current backup device. The lower limit of the address must be less than or equal to the upper limit of the address.
本步骤中, BRAS103 实时监测当前本地可用地址资源的数量, 当可用 地址资源数量低于地址下限值时, 表明当前可用地址资源不足, 此时, BRAS 103需要向 BRAS102发送地址申请请求, 请求获取地址资源。  In this step, the BRAS 103 monitors the current number of locally available address resources in real time. When the number of available address resources is lower than the lower limit of the address, it indicates that the current available address resources are insufficient. At this time, the BRAS 103 needs to send an address request request to the BRAS 102 to request acquisition. Address resource.
所述地址申请请求申请获取的地址资源, 可以是某一个或某几个地址, 也可以是一个地址段(如 D类地址) 。 步骤 204、BRAS接收备份设备的地址申请请求,根据所述地址申请请求, 从共享地址池中为所述备份设备分配地址资源, 将所述地址资源的状态设置 为远端申请中; The address resource obtained by the address request request may be one or several addresses, or may be an address segment (such as a class D address). Step 204: The BRAS receives an address request request of the backup device, and allocates an address resource to the backup device from the shared address pool according to the address request request, and sets the state of the address resource to a remote application.
本步骤中, BRAS 102接收步骤 203中 BRAS 103发送的地址申请请求, 为 BRAS103分配地址资源, 并将地址资源的状态设置为 "远端申请中" ; 进 一步的, 如果 BRAS103申请的是某一个或某几个地址, 则 BRAS102需要首 先确定这些地址的状态, 在这些地址的状态均为 "未分配" 时, 将这些地址 分配给 BRAS 103。  In this step, the BRAS 102 receives the address request sent by the BRAS 103 in step 203, allocates an address resource for the BRAS 103, and sets the status of the address resource to "remote application"; further, if the BRAS 103 applies for one or For a few addresses, the BRAS 102 needs to first determine the status of these addresses. When the status of these addresses is "unallocated", these addresses are assigned to the BRAS 103.
如果 BRAS103申请的某一个或某几个地址处于已被 BRAS102分配给其 他用户的 "本地分配" 状态, 或共享地址池中的地址耗尽, 没有可以分配给 BRAS 103的地址时, BRAS 102可以拒绝 BRAS 103的请求, 向 BRAS 103回 复否决消息。  If one or more of the addresses requested by BRAS 103 are in the "locally assigned" state that has been assigned to other users by BRAS 102, or the address in the shared address pool is exhausted, there is no address that can be assigned to BRAS 103, BRAS 102 can reject The request of the BRAS 103 replies to the BRAS 103 with a veto message.
步骤 205、 BRAS向所述备 ^殳备发送同意消息,在所述同意消息中携带 分配给该备份设备的地址资源信息;  Step 205: The BRAS sends an agreement message to the backup device, where the consent message carries address resource information allocated to the backup device.
本步骤中, BRAS102向 BRAS103发布同意消息, 在同意消息中携带分 配给 BRAS 103的地址资源的信息。  In this step, the BRAS 102 issues a consent message to the BRAS 103, which carries the information of the address resource assigned to the BRAS 103 in the consent message.
步骤 206、 备份设备根据所述同意消息, 将分配给该备份设备的地址资 源状态设置为未分配;  Step 206: The backup device sets, according to the consent message, an address resource status assigned to the backup device to be unassigned;
本步骤中, BRAS103接收 BRAS102发送的同意消息, 根据该同意消息, 将 BRAS102分配的地址资源的状态设置为 "未分配" , 即这些地址资源已交 由 BRAS103管理, 分配给其下的用户。  In this step, the BRAS 103 receives the consent message sent by the BRAS 102, and according to the consent message, sets the state of the address resource allocated by the BRAS 102 to "unallocated", that is, these address resources have been managed by the BRAS 103 and allocated to the users under it.
同时, BRAS103向 BRAS102发送确认消息, 表示已成功获取地址资源。 步骤 207、 BRAS接收所述备份设备反馈的确认消息,将所述地址资源的 状态设置为远端分配;  At the same time, the BRAS 103 sends an acknowledgement message to the BRAS 102 indicating that the address resource has been successfully obtained. Step 207: The BRAS receives an acknowledgement message fed back by the backup device, and sets a state of the address resource to a remote allocation.
本步骤中, BRAS 102接收 BRAS 103发送的确认消息,将分配给 BRAS 103 的地址资源的状态由 "远端分配中" 改变为 "远端分配" 。  In this step, the BRAS 102 receives the acknowledgment message sent by the BRAS 103, changing the state of the address resource allocated to the BRAS 103 from "remote allocation" to "remote allocation".
步骤 208、 备份设备接受用户的上线请求, 从所述地址资源中为所述用 户分配一个地址, 并将该地址的状态设置为本地分配; 本步骤中, BRAS103下有用户上线时, BRAS103从本地 "未分配"状态 的地址资源中, 选择一个地址分配给该用户, 此时, 对于 BRAS102来说, 该 地址的状态仍为 "远端分配" 。 Step 208: The backup device accepts the online request of the user, allocates an address to the user from the address resource, and sets the state of the address to a local allocation. In this step, when a user is online under the BRAS 103, the BRAS 103 selects an address from the local "unallocated" state address resource to the user. At this time, for the BRAS 102, the status of the address is still "remote allocation". " .
步骤 209、 如果状态为未分配的地址资源数量达到地址上限值, 则所述 备份设备向所述 BRAS申请释放部分地址资源;  Step 209: If the number of the unallocated address resources reaches the address upper limit, the backup device requests the BRAS to release part of the address resources.
本步骤中,如果 BRAS103监测到本地未分配的地址资源数量超过地址上 限值, 说明有相当一部分地址资源处于空闲状态, 而这部分地址资源在 BRAS102侧的状态为 "远端分配" , 即不能被 BRAS102利用, 为了避免资 源浪费, BRAS103将发起地址资源释放流程, 向 BRAS 102申请释放部分资 源, 将 BRAS103 侧该部分释放的地址资源的状态修改为 "远端分配" , 将 BRAS102侧该部分地址资源的状态爹改为 "未分配" 。  In this step, if the BRAS 103 detects that the number of unallocated address resources exceeds the upper address limit, it indicates that a considerable part of the address resources are in an idle state, and the status of the part of the address resources on the BRAS 102 side is "remote allocation", that is, Used by the BRAS 102, in order to avoid waste of resources, the BRAS 103 will initiate an address resource release procedure, requesting the BRAS 102 to release part of the resources, and modifying the state of the address resource released by the part of the BRAS 103 side to "remote allocation", and the partial address of the BRAS 102 side. The status of the resource is changed to "unallocated".
此外, 如果步骤 204 中, BRAS102发现共享地址池中没有可以分配给 BRAS 103的地址, 则 BRAS 102向 BRAS 103发送否决消息, 指示 BRAS 103 暂停申请地址; 由于 BRAS 102及 BRAS 103之间会进行信息同步, 将本地的 地址使用情况同步给对端, 故当 BRAS102 下的地址资源释放时, BRAS103 会得知这一情况, 再次启动向 BRAS 102申请地址。  In addition, if in step 204, the BRAS 102 finds that there is no address in the shared address pool that can be allocated to the BRAS 103, the BRAS 102 sends a veto message to the BRAS 103, instructing the BRAS 103 to suspend the application address; since the BRAS 102 and the BRAS 103 will perform information Synchronization, the local address usage is synchronized to the peer, so when the address resource under the BRAS 102 is released, the BRAS 103 will know this and start to apply for the address to the BRAS 102 again.
当主管理设备, 即 BRAS102发生设备级别异常时, BRAS103会将自身 设置为主管理设备, 由 BRAS 103对共享地址池进行管理; 当 BRAS103发现 BRAS 102 恢复后, 将本地的信息与 BRAS102 进行同步, 并在同步后恢复 BRAS102的主管理设备身份, 继续由 BRAS102管理共享地址池。  When the primary management device, that is, the device level abnormality occurs in the BRAS 102, the BRAS 103 sets itself as the primary management device, and the BRAS 103 manages the shared address pool; when the BRAS 103 finds that the BRAS 102 is restored, the local information is synchronized with the BRAS 102, and After the synchronization, the identity of the primary management device of the BRAS 102 is restored, and the shared address pool is continuously managed by the BRAS 102.
本发明的实施例还提供了一种 BRAS, 如图 3所示, 包括: An embodiment of the present invention further provides a BRAS, as shown in FIG. 3, including:
请求接收模块 301 , 用于接收地址申请请求;  a request receiving module 301, configured to receive an address request request;
资源管理模块 302, 用于根据所述请求接收模块 301接收的地址申请请 求, 从共享地址池中分配地址资源, 将所述地址资源的状态设置为远端申请 中;  The resource management module 302 is configured to allocate an address resource from the shared address pool according to the address request request received by the request receiving module 301, and set the state of the address resource to a remote application;
请求响应模块 303 , 用于发送同意消息, 在所述同意消息中携带所述资 源管理模块 302分配的地址资源信息。 进一步的, 所述请求响应模块 303 , 还用于在所述共享地址池中没有可 以分配的地址资源时, 发送否决消息, 通知暂时停止地址申请。 The request response module 303 is configured to send a consent message, where the address resource information allocated by the resource management module 302 is carried in the consent message. Further, the request response module 303 is further configured to send a veto message to notify the temporary stop address request when there is no address resource that can be allocated in the shared address pool.
进一步的, 上述 BRAS如图 4所示, 还包括:  Further, as shown in FIG. 4, the foregoing BRAS further includes:
请求发送模块 304 , 用于在本地可用地址资源数量低于地址下限值时, 向远端设备发送地址申请请求, 请求为本地分配地址资源;  The request sending module 304 is configured to send an address request request to the remote device when the number of locally available address resources is lower than the address lower limit, and request to allocate the address resource locally;
响应接收模块 305 , 用于接收响应所述请求发送模块 304发送的地址申 请请求的同意消息, 所述同意消息中携带有分配的地址资源信息;  The response receiving module 305 is configured to receive an agreement message in response to the address request request sent by the request sending module 304, where the consent message carries the allocated address resource information;
所述资源管理模块 302, 还用于根据所述响应接收模块 305接收的同意 消息, 将分配的地址资源状态设置为未分配。  The resource management module 302 is further configured to set the allocated address resource status to unassigned according to the consent message received by the response receiving module 305.
进一步的, 所述响应接收模块 305 , 还用于接收否决消息, 指示所述请 求发送模块 304暂时停止地址申请, 所述 BRAS如图 5所示, 还包括:  Further, the response receiving module 305 is further configured to receive a veto message, and the request sending module 304 temporarily stops the address request. The BRAS, as shown in FIG. 5, further includes:
信息同步模块 306 , 用于与远端同步共享地址池中的地址信息, 在所述 响应接收模块 305指示所述请求发送模块 304暂时停止地址申请后, 如果发 现所述共享地址池中有空闲的地址, 则指示所述请求发送模块 304继续发送 地址申请请求。  The information synchronization module 306 is configured to synchronously share address information in the address pool with the remote end. After the response receiving module 305 instructs the request sending module 304 to temporarily stop the address request, if the shared address pool is found to be idle. The address indicates that the request sending module 304 continues to send an address request request.
本发明的实施例还提供了一种热备份场景下的地址分配***, 该***如 图 6所示, 包括第一 BRAS601和第二 BRAS602, 所述第一 BRAS601与所述 第二 BRAS602工作在热备份场景下并互为备份设备; An embodiment of the present invention further provides an address allocation system in a hot backup scenario. As shown in FIG. 6, the system includes a first BRAS 601 and a second BRAS 602. The first BRAS 601 and the second BRAS 602 work in hot. Back up the backup devices in the backup scenario;
所述第一 BRAS601 , 用于在本地可用地址资源数量低于地址下限值时, 向所述第二 BRAS602发送地址申请请求, 请求所述第二 BRAS602为本地分 配地址资源,接收所述第二 BRAS602发送的同意消息, 所述同意消息中携带 有为所述第二 BRAS602分配的地址资源信息, 燕根据所述同意消息,将分配 给所述第二 BRAS602的地址资源状态设置为未分配;  The first BRAS 601 is configured to send an address request request to the second BRAS 602 when the number of locally available address resources is lower than an address lower limit, requesting the second BRAS 602 to locally allocate an address resource, and receive the second The consent message sent by the BRAS 602, the consent message carries the address resource information allocated for the second BRAS 602, and the yan sets the address resource status allocated to the second BRAS 602 to be unassigned according to the consent message;
所述第二 BRAS602, 用于接所述第一 BRAS601发送的地址申请请求, 根据所述地址申请请求, 从共享地址池中为所述第一 BRAS601 分配地址资 源,将所述地址资源的状态设置为远端申请中, 并向所述第一 BRAS601发送 同意消息, 在所述同意消息中携带分配给该第一 BRAS601的地址资源信息。 所述第一 BRAS601 , 还用于接受用户的上线请求, 从所述地址资源中为 所述用户分配一个地址, 并将该地址的状态设置为本地分配。 The second BRAS 602 is configured to receive an address request sent by the first BRAS 601, allocate an address resource to the first BRAS 601 from a shared address pool according to the address request, and set a status of the address resource. In the remote application, the consent message is sent to the first BRAS 601, and the address resource information allocated to the first BRAS 601 is carried in the consent message. The first BRAS 601 is further configured to accept a user's online request, assign an address to the user from the address resource, and set a status of the address to a local allocation.
所述第一 BRAS601 , 还用于如果用户下线, 将该用户占用的地址的状态 设置为未分配; 当所述状态为未分配的地址资源数量达到地址上限值时, 向 所述第二 BRAS602申请释放部分地址资源。  The first BRAS 601 is further configured to: if the user goes offline, set the state of the address occupied by the user to be unassigned; when the state is that the number of unallocated address resources reaches the address upper limit, to the second BRAS 602 applies to release some of the address resources.
上述 BRAS和热备份场景下的地址分配***, 可以与本发明的实施例提 供的一种热备份场景下的地址分配方法相结合, 在两个热备份场景下的 BRAS 中选定一个作为共享地址池主管理设备, 另一个作为备份设备, 在备 份设备需要为其下接入的用户分配地址时, 向作为主管理设备的 BRAS发出 地址申请请求, BRAS 为备份设备分配地址资源, 并在本地将分配给备份设 备的地址资源标记为远端分配, 避免了 BRAS将同样的地址分配给其下接入 的用户, 解决了热备份场景下地址冲突的问题。 The address allocation system in the BRAS and the hot backup scenario may be combined with the address allocation method in the hot backup scenario provided by the embodiment of the present invention, and one of the BRASs in the two hot backup scenarios is selected as the shared address. The pool master manages the device, and the other device functions as a backup device. When the backup device needs to assign an address to the user accessing it, the BRAS sends an address request to the BRAS as the primary management device. The BRAS allocates the address resource to the backup device and locally The address resource allocated to the backup device is marked as a remote allocation, which prevents the BRAS from assigning the same address to the users accessing it, and solves the problem of address conflict in the hot backup scenario.
本领域普通技术人员可以理解实现上述实施例方法携带的全部或部分步 骤是可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算 机可读存储介质中, 该程序在执行时, 包括方法实施例的步骤之一或其组合。 A person skilled in the art can understand that all or part of the steps carried by the method of the foregoing embodiment can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. , including one or a combination of the steps of the method embodiments.
另外, 在本发明各个实施例中的各功能单元可以釆用硬件的形式实现, 也可以釆用软件功能模块的形式实现。 所述集成的模块如果以软件功能模块 的形式实现并作为独立的产品销售或使用时, 也可以存储在一个计算机可读 取存储介质中。  In addition, each functional unit in each embodiment of the present invention may be implemented in the form of hardware, or may be implemented in the form of a software functional module. The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器, 磁盘或光盘等。  The above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变 化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 以权利要求所述的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性 本发明的实施例提供了一种热备份场景下的地址分配方法、装置及***, 在两个热备份场景下的 BRAS中选定一个作为共享地址池主管理设备, 另一 个作为备份设备, 在备份设备需要为其下接入的用户分配地址时, 向作为主 管理设备的 BRAS发出地址申请请求, BRAS为备份设备分配地址资源, 并 在本地将分配给备份设备的地址资源标记为远端分配, 避免了 BRAS将同样 的地址分配给其下接入的用户, 解决了热备份场景下地址冲突的问题。 Industrial applicability An embodiment of the present invention provides an address allocation method, apparatus, and system in a hot backup scenario. One of the BRASs in the two hot backup scenarios is selected as the shared address pool primary management device, and the other is used as the backup device. When the backup device needs to assign an address to the user to access it, the BRAS sends an address request to the BRAS as the primary management device. The BRAS allocates an address resource for the backup device and locally marks the address resource allocated to the backup device as the remote allocation. The BRAS is prevented from allocating the same address to the users accessing it, which solves the problem of address conflict in the hot backup scenario.

Claims

权 利 要 求 书 Claim
1、 一种热备份场景下的地址分配方法,其特征在于, 两个宽带远程接入 服务器(BRAS )工作在热备份场景下并互为备份设备, 该方法包括: An address allocation method in a hot backup scenario, in which two broadband remote access servers (BRASs) work in a hot backup scenario and are mutually backup devices, and the method includes:
BRAS接收其备份设备的地址申请请求;  The BRAS receives an address request request for its backup device;
所述 BRAS根据所述地址申请请求, 从共享地址池中为所述备份设备分 配地址资源, 将所述地址资源的状态设置为远端申请中; 以及  The BRAS allocates an address resource to the backup device from the shared address pool according to the address request, and sets the state of the address resource to a remote application;
所述 BRAS向所述备 ^殳备发送同意消息, 在所述同意消息中携带分配 给该备份设备的地址资源信息。  The BRAS sends a consent message to the backup device, where the consent message carries address resource information allocated to the backup device.
2、 根据权利要求 1所述的热备份场景下的地址分配方法,其中,在所述 BRAS接收其备份设备的地址申请请求的步骤之后, 所述方法还包括: The address allocation method in the hot backup scenario according to claim 1, wherein after the step of the BRAS receiving the address request request of the backup device, the method further includes:
如果所述共享地址池中没有可以分配给所述备份设备的地址资源, 则向 所述备份设备发送否决消息, 通知该备份设备暂时停止地址申请。  If there is no address resource that can be allocated to the backup device in the shared address pool, a veto message is sent to the backup device, and the backup device is notified to temporarily stop the address request.
3、 根据权利要求 1所述的热备份场景下的地址分配方法,其中,在所述 BRAS向所述备份设备发送同意消息的步骤之后, 所述方法还包括: The method of assigning an address in a hot backup scenario according to claim 1, wherein after the step of the BRAS sending a consent message to the backup device, the method further includes:
所述 BRAS接收所述备份设备反馈的确认消息, 将所述地址资源的状态 设置为远端分配。  The BRAS receives an acknowledgement message fed back by the backup device, and sets the state of the address resource to a remote allocation.
4、 一种热备份场景下的地址分配方法,其特征在于, 两个宽带远程接入 服务器(BRAS )工作在热备份场景下并互为备份设备, 该方法包括: An address allocation method in a hot backup scenario, wherein the two broadband remote access servers (BRASs) work in a hot backup scenario and are mutually backup devices, and the method includes:
备份设备在本地可用地址资源数量低于地址下限值时, 向 BRAS发送地 址申请请求, 请求所述 BRAS为所述备份设备分配地址资源;  When the number of locally available address resources is lower than the address lower limit value, the backup device sends an address request request to the BRAS, requesting the BRAS to allocate an address resource to the backup device;
所述备 殳备接收所述 BRAS发送的同意消息, 所述同意消息中携带有 分配给该备份设备的地址资源信息; 以及  Receiving, by the backup device, a consent message sent by the BRAS, where the consent message carries address resource information allocated to the backup device;
所述备份设备根据所述同意消息, 将分配给该备份设备的地址资源状态 设置为未分配。  The backup device sets the address resource status assigned to the backup device to be unassigned according to the consent message.
5、 根据权利要求 4所述的热备份场景下的地址分配方法,其中,在所述 备份设备根据所述同意消息, 将分配给该备份设备的地址资源状态设置为未 分配的步骤之后, 所述方法还包括: 5. The address allocation method in a hot backup scenario according to claim 4, wherein After the backup device sets the address resource status of the backup device to the unallocated step according to the consent message, the method further includes:
所述备份设备接受用户的上线请求, 从所述地址资源中为所述用户分配 一个地址, 并将该地址的状态设置为本地分配。  The backup device accepts a user's online request, assigns an address to the user from the address resource, and sets the state of the address to a local allocation.
6、 根据权利要求 4所述的热备份场景下的地址分配方法,所述方法还包 括: 6. The address allocation method in a hot backup scenario according to claim 4, the method further comprising:
如果用户下线, 将该用户占用的地址的状态设置为未分配; 以及 所述状态为未分配的地址资源数量达到地址上限值, 则所述备份设备向 所述 BRAS申请释放部分地址资源。  If the user goes offline, the status of the address occupied by the user is set to unassigned; and the status is that the number of unallocated address resources reaches the upper address limit, the backup device requests the BRAS to release part of the address resource.
7、 根据权利要求 4所述的热备份场景下的地址分配方法,其中,在所述 备份设备在本地地址资源低于地址下限值时, 向 BRAS发送地址申请请求的 步骤之后, 所述方法还包括: The address allocation method in the hot backup scenario according to claim 4, wherein after the step of the address device requesting the BRAS is sent to the BRAS when the backup device is lower than the address lower limit value, the method is Also includes:
所述备份设备接收所述 BRAS发送的否决消息,指示暂时停止地址申请。  The backup device receives the veto message sent by the BRAS, indicating that the address request is temporarily stopped.
8、 根据权利要求 4或 7所述的热备份场景下的地址分配方法,其中,在 所述备份设备接收所述 BRAS发送的否决消息, 指示暂时停止地址申请的步 骤之后, 所述方法还包括: The method for allocating addresses in a hot backup scenario according to claim 4 or 7, wherein after the step of receiving the veto message sent by the BRAS to indicate that the address request is temporarily stopped, the method further includes :
所述备份设备与所述 BRAS同步共享地址池中的地址信息; 以及 当所述共享地址池中有空闲的地址时, 所述备份设备继续向所述 BRAS 发送地址申请请求。  The backup device synchronously shares address information in the address pool with the BRAS; and when there is a free address in the shared address pool, the backup device continues to send an address request request to the BRAS.
9、 一种宽带远程接入服务器(BRAS ) , 其包括: 9. A broadband remote access server (BRAS) comprising:
请求接收模块(301 ) , 其设置为: 接收地址申请请求;  a request receiving module (301) configured to: receive an address request request;
资源管理模块(302 ) , 其设置为: 根据所述请求接收模块接收的地址申 请请求, 从共享地址池中分配地址资源, 将所述地址资源的状态设置为远端 申请中; 以及  The resource management module (302) is configured to: allocate an address resource from the shared address pool according to the address request request received by the request receiving module, and set a status of the address resource to a remote application;
请求响应模块(303 ) , 其设置为: 发送同意消息, 在所述同意消息中携 带所述资源管理模块分配的地址资源信息。 The request response module (303) is configured to: send a consent message, and carry the address resource information allocated by the resource management module in the consent message.
10、 根据权利要求 9所述的 BRAS, 其中, 10. The BRAS according to claim 9, wherein
所述请求响应模块( 303 )还设置为: 在所述共享地址池中没有可以分配 的地址资源时, 发送否决消息, 通知暂时停止地址申请。  The request response module (303) is further configured to: when there is no address resource that can be allocated in the shared address pool, send a veto message to notify the temporary stop address request.
11、 根据权利要求 9所述的 BRAS, 所述 BRAS还包括: 11. The BRAS of claim 9, the BRAS further comprising:
请求发送模块(304 ) , 其设置为: 在本地可用地址资源数量低于地址下 限值时, 向远端设备发送地址申请请求, 请求为本地分配地址资源; 以及 响应接收模块(305 ) , 其设置为: 接收响应所述请求发送模块发送的地 址申请请求的同意消息, 所述同意消息中携带有分配的地址资源信息;  The request sending module (304) is configured to: when the number of locally available address resources is lower than the address lower limit, send an address request request to the remote device, requesting to locally allocate the address resource; and responding to the receiving module (305), The method is configured to: receive an agreement message in response to the address request request sent by the request sending module, where the consent message carries the allocated address resource information;
所述资源管理模块 ( 302 )还设置为: 根据所述响应接收模块接收的同意 消息, 将分配的地址资源状态设置为未分配。  The resource management module (302) is further configured to: set the allocated address resource status to unassigned according to the consent message received by the response receiving module.
12、 根据权利要求 9所述的 BRAS, 其中, 12. The BRAS according to claim 9, wherein
所述响应接收模块(305 )还设置为: 接收否决消息, 指示所述请求发送 模块暂时停止地址申请;  The response receiving module (305) is further configured to: receive a veto message, and instruct the request sending module to temporarily stop the address request;
所述 BRAS还包括:  The BRAS also includes:
信息同步模块(306 ) ,其设置为: 与远端同步共享地址池中的地址信息, 在所述响应接收模块指示所述请求发送模块暂时停止地址申请后, 如果发现 所述共享地址池中有空闲的地址, 则指示所述请求发送模块继续发送地址申 请请求。  The information synchronization module (306) is configured to: synchronously share the address information in the address pool with the remote end, and after the response receiving module instructs the request sending module to temporarily stop the address request, if the shared address pool is found The idle address indicates that the request sending module continues to send an address request request.
13、 一种热备份场景下的地址分配***, 其包括第一宽带远程接入服务 器( BRAS ) ( 601 )和第二 BRAS ( 602 ) , 所述第一 BRAS ( 601 )与所述 第二 BRAS ( 602 )工作在热备份场景下并互为备份设备; 13. An address allocation system in a hot backup scenario, comprising a first broadband remote access server (BRAS) (601) and a second BRAS (602), the first BRAS (601) and the second BRAS ( 602 ) working in a hot backup scenario and as a backup device;
所述第一 BRAS ( 601 )设置为: 在本地可用地址资源数量低于地址下限 值时,向所述第二 BRAS( 602 )发送地址申请请求,请求所述第二 BRAS( 602 ) 为本地分配地址资源, 接收所述第二 BRAS ( 602 )发送的同意消息, 所述同 意消息中携带有为所述第二 BRAS ( 602 )分配的地址资源信息, 根据所述同 意消息, 将分配给所述第二 BRAS ( 602 ) 的地址资源状态设置为未分配; 所述第二 BRAS ( 602 )设置为: 接所述第一 BRAS ( 601 )发送的地址申 请请求 , 根据所述地址申请请求 , 从共享地址池中为所述第一 BRAS ( 601 ) 分配地址资源, 将所述地址资源的状态设置为远端申请中, 并向所述第一 BRAS( 601 )发送同意消息,在所述同意消息中携带分配给该第一 BRAS( 601 ) 的地址资源信息。 The first BRAS (601) is configured to: when the number of locally available address resources is lower than an address lower limit, send an address request request to the second BRAS (602), requesting the second BRAS (602) to be local Allocating an address resource, and receiving a consent message sent by the second BRAS (602), where the consent message carries address resource information allocated for the second BRAS (602), and according to the consent message, is allocated to the address The address resource status of the second BRAS (602) is set to be unassigned; the second BRAS (602) is set to: the address request sent by the first BRAS (601) Requesting, according to the address request request, allocating an address resource to the first BRAS (601) from the shared address pool, setting the state of the address resource to a remote application, and to the first BRAS ( 601) Send a consent message, where the consent message carries address resource information allocated to the first BRAS (601).
14、 如权利要求 13所述的热备份场景下的地址分配***, 其中, 所述第一 BRAS ( 601 )还设置为: 接受用户的上线请求, 从所述地址资 源中为所述用户分配一个地址, 并将该地址的状态设置为本地分配。  The address allocation system in the hot backup scenario of claim 13, wherein the first BRAS (601) is further configured to: accept an online request from a user, and allocate one for the user from the address resource. Address, and set the status of the address to local assignment.
15、 如权利要求 13所述的热备份场景下的地址分配***, 其中, 所述第一 BRAS ( 601 )还设置为: 如果用户下线, 将该用户占用的地址 的状态设置为未分配; 当所述状态为未分配的地址资源数量达到地址上限值 时, 向所述第二 BRAS ( 602 ) 申请释放部分地址资源。  The address allocation system in the hot backup scenario of claim 13, wherein the first BRAS (601) is further configured to: if the user goes offline, set the state of the address occupied by the user to be unassigned; When the status is that the number of unallocated address resources reaches the address upper limit value, the second BRAS (602) is requested to release part of the address resource.
PCT/CN2010/072595 2009-09-23 2010-05-11 Method, device and system for allocating addresses in hot standby scenario WO2011035586A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910178110.6 2009-09-23
CN2009101781106A CN102025475A (en) 2009-09-23 2009-09-23 Address allocation method, apparatus and system in hot backup scene

Publications (1)

Publication Number Publication Date
WO2011035586A1 true WO2011035586A1 (en) 2011-03-31

Family

ID=43795342

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/072595 WO2011035586A1 (en) 2009-09-23 2010-05-11 Method, device and system for allocating addresses in hot standby scenario

Country Status (2)

Country Link
CN (1) CN102025475A (en)
WO (1) WO2011035586A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064819B (en) * 2019-12-18 2022-07-29 杭州迪普科技股份有限公司 Address backup method and device
CN112104531B (en) * 2020-08-25 2022-08-30 新华三技术有限公司 Backup implementation method and device
CN113220448B (en) * 2021-04-15 2023-02-17 广州广哈通信股份有限公司 Dual-computer system and control method thereof
CN114039951A (en) * 2021-11-08 2022-02-11 北京天融信网络安全技术有限公司 Method, device and system for dynamically allocating address pool

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455563A (en) * 2003-06-19 2003-11-12 北京港湾网络有限公司 Method of distruting network protocol address of distributed wideband connecting-in authenticated node users
CN1585361A (en) * 2004-05-28 2005-02-23 港湾网络有限公司 Method for realizing addressing pool share between multiple IP-DSLM
CN1585363A (en) * 2004-05-28 2005-02-23 港湾网络有限公司 Method for distributing addressing section between DSLAM apparatus
WO2005050897A2 (en) * 2003-11-18 2005-06-02 Air Broadband Communications, Inc. Dhcp pool sharing mechanism in mobile environment
US7197549B1 (en) * 2001-06-04 2007-03-27 Cisco Technology, Inc. On-demand address pools

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7814232B2 (en) * 2003-03-28 2010-10-12 Cisco Technology, Inc. Network address translation with gateway load distribution
CN1561072A (en) * 2004-02-20 2005-01-05 港湾网络有限公司 Method for sharing user IP address pool
CN100421403C (en) * 2005-06-29 2008-09-24 华为技术有限公司 Identification insertion system and identification inserting method thereof
CN101043331A (en) * 2006-06-30 2007-09-26 华为技术有限公司 System and method for distributing address for network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7197549B1 (en) * 2001-06-04 2007-03-27 Cisco Technology, Inc. On-demand address pools
CN1455563A (en) * 2003-06-19 2003-11-12 北京港湾网络有限公司 Method of distruting network protocol address of distributed wideband connecting-in authenticated node users
WO2005050897A2 (en) * 2003-11-18 2005-06-02 Air Broadband Communications, Inc. Dhcp pool sharing mechanism in mobile environment
CN1585361A (en) * 2004-05-28 2005-02-23 港湾网络有限公司 Method for realizing addressing pool share between multiple IP-DSLM
CN1585363A (en) * 2004-05-28 2005-02-23 港湾网络有限公司 Method for distributing addressing section between DSLAM apparatus

Also Published As

Publication number Publication date
CN102025475A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
TWI724106B (en) Business flow control method, device and system between data centers
CN101330531B (en) Method for processing DHCP address allocation and DHCP relay
WO2011035588A1 (en) Address distribution method, device and system thereof
US10122679B2 (en) Method, relay agent, and system for acquiring internet protocol address in network
WO2015074396A1 (en) Automatic configuration method, device and system of software defined network
EP2654268B1 (en) Address allocation processing method and apparatus
JP4413965B2 (en) Load balancing communication device and load balancing management device
WO2012163007A1 (en) Method for solving internet protocol address allocation conflict and related device and system thereof
WO2011035587A1 (en) Method, apparatus, system for address management
CN102244690B (en) Address allocation method and system of dynamic host configuration protocol (DHCP) as well as client side and servers of same
WO2015021829A1 (en) Resource allocation method
WO2013078814A1 (en) Ip address allocation method and device
WO2010081401A1 (en) Video service system
WO2012013050A1 (en) Method and server used for information synchronization between master equipment and standby equipment
CN108429824B (en) Address allocation method and device
WO2012174893A1 (en) Dual-center disaster recovery-based switching method and device in iptv system
WO2009071009A1 (en) Method for discovering network element devices automatically, device and system
WO2013071765A1 (en) Method, device and system for distributing ip address for user terminal
WO2011035586A1 (en) Method, device and system for allocating addresses in hot standby scenario
CN102299932A (en) Backup method for DHCP (Dynamic Host Configuration Protocol) server and DHCP server
TW200301637A (en) Method for assigning setting information for connection to external network
WO2014056367A1 (en) Aggregation port id allocation method and device
CN115567486A (en) Lease synchronization method, device, equipment and medium in MLAG environment
CN111131445B (en) DHCP cluster scheduling method and DHCP cluster system
JP2013046176A (en) Communication system, router device, and router switchover method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10818280

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10818280

Country of ref document: EP

Kind code of ref document: A1