WO2012083669A1 - Method and apparatus for switching between primary-standby devices based on access gateway - Google Patents
Method and apparatus for switching between primary-standby devices based on access gateway Download PDFInfo
- Publication number
- WO2012083669A1 WO2012083669A1 PCT/CN2011/076512 CN2011076512W WO2012083669A1 WO 2012083669 A1 WO2012083669 A1 WO 2012083669A1 CN 2011076512 W CN2011076512 W CN 2011076512W WO 2012083669 A1 WO2012083669 A1 WO 2012083669A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- standby
- primary
- devices
- priority
- active
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000002159 abnormal effect Effects 0.000 claims abstract description 42
- 230000005856 abnormality Effects 0.000 claims abstract description 10
- 238000013507 mapping Methods 0.000 claims description 11
- 238000012544 monitoring process Methods 0.000 claims description 9
- 230000007704 transition Effects 0.000 abstract 1
- 238000007726 management method Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013523 data management Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
Definitions
- the present invention relates to the field of communications, and in particular to a method and apparatus for switching between primary and backup devices based on an access gateway (Access Gateway, AG for short).
- an access gateway Access Gateway, AG for short.
- BACKGROUND In an AG system, a system needs to have a main control board MP (Main Processor), which is responsible for planning and allocating system resources for various services.
- MP Main Processor
- NP Net Processor
- the AG service is divided into a Broadband service and a Narrow band service, and the types of system resources required for these two types of services are also different.
- broadband requires large data processing and storage
- narrowband requires high real-time performance of the system.
- this data requires high reliability. Therefore, the concept of master-slave needs to be introduced.
- the same MP is equipped with 2 blocks
- the same NP is equipped with two blocks
- two MPs are used for active and standby
- two NPs are used for active and standby.
- the primary device is responsible for allocating resource selection control logic.
- a primary object of the present invention is to provide a method and apparatus for switching between primary and backup devices based on an access gateway to solve at least the above problems.
- a primary backup device switching method based on an access gateway includes: configuring N standby devices for a primary device carrying a service, where N ⁇ l; When an abnormality occurs in the device, an available backup device is selected from the N standby devices; and the selected backup device is used to replace the primary device to carry the service.
- the step of configuring N standby devices for one primary device carrying the service includes: setting the primary device as a unit state, and setting each of the standby devices as a port state; in one of the above unit states and N above A mapping relationship is established between port states.
- the step of selecting an available spare device from the above N standby devices includes: selecting the above-mentioned available spare devices with the highest priority from among the N standby devices.
- the method further includes: configuring the priority of the N standby devices according to the sequence reported to the line card, where the priority of the foregoing standby device is reported first The level is higher than the priority of the above-mentioned standby device reported later.
- the method further includes: setting the primary device as a backup device, and setting a priority corresponding to the backup device to a lowest level priority.
- Determining whether the primary device is abnormal by one of the following steps: if the primary device is migrated from the available state to the unavailable state, it is determined that the primary device is abnormal; if the primary monitoring device is in the switching monitoring resource If the one or more resources are abnormal, it is determined that the primary device is abnormal; or if the switching command sent by the user is received, it is determined that the primary device is abnormal.
- the step of using the selected backup device to replace the foregoing primary device to carry the service includes: determining whether the active/standby switchover flag corresponding to the active/standby switchover is true; if true, the active/standby switchover is not completed, and the receiving is not completed.
- an access gateway-based primary backup device switching apparatus including: a configuration unit configured to configure N standby devices for one primary device carrying a service, where N ⁇ l; selecting a unit, configured to select an available spare device from the N standby devices when the primary device is abnormal; the switching unit is configured to use the selected backup device instead of the primary device to carry the above business.
- the configuration unit includes: a configuration module, configured to set the primary device to a unit state, and set each of the standby devices to a port state; and the mapping module is configured to be in one of the foregoing unit states and N of the foregoing port states Establish a mapping relationship.
- the selecting unit includes: a selecting module, configured to select the available spare device with the highest priority from the N standby devices.
- the configuration unit is further configured to: prior to selecting the available spare device with the highest priority among the N standby devices, configure the priority of the N standby devices according to the sequence reported to the line card, where the foregoing standby is reported first. The priority of the device is higher than the priority of the above-mentioned standby device reported later.
- FIG. 1 is a preferred flowchart of a method for switching a primary backup device based on an access gateway according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a primary backup device switching device based on an access gateway according to an embodiment of the present invention
- FIG. 3 is a flowchart of an NP booting active/standby allocation according to an embodiment of the present invention
- FIG. 4 is a flowchart of initiating a switching after a primary NP device is abnormal according to an embodiment of the present invention
- FIG. 6 is a flowchart of command initiation switching according to an embodiment of the present invention.
- FIG. 1 is a preferred flowchart of a method for switching a primary backup device based on an access gateway according to an embodiment of the present invention, which includes: S102. Configure N standby devices for the primary device that carries the service, where N ⁇ l
- the step of configuring N standby devices for one primary device carrying services includes: setting the primary devices to a unit state, and setting each of the standby devices to a port state. Establishing a mapping relationship between one of the Unit states and N of the Port states. In the preferred embodiment, the switching can be effectively performed by such a mapping relationship.
- the step of selecting one available backup device from the N standby devices may include, but is not limited to: selecting the available backup device with the highest priority from the N backup devices.
- the present invention can also select another available backup device from the N spare devices by using other strategies.
- the access gateway-based primary standby switching method according to the embodiment of the present invention further includes: following the sequence reported to the line card, before the selecting the available backup device with the highest priority from the N backup devices.
- the priority of the N standby devices is configured, where the priority of the standby device that is reported first is higher than the priority of the standby device that is reported later.
- the priorities are configured in the reported order, and a valid spare device can be better selected to replace the primary device.
- the access gateway-based primary backup device switching method when the selected backup device is used to replace the primary device to carry the service, further includes: setting the primary device as The standby device, and the priority corresponding to the standby device is set to the lowest priority.
- the primary device that is currently abnormal is set as the standby device with the lowest priority.
- the primary device is determined whether the primary device is abnormal by one of the following steps: if the primary device is migrated from an available state to an unavailable state, determining that the primary device is abnormal; if the primary device is If the one or more resources in the switching monitoring resource are abnormal, it is determined that the primary device is abnormal; or if the switching command sent by the user is received, it is determined that the primary device is abnormal.
- a variety of determinations are provided to enable the present invention to be applied to a variety of scenarios.
- the step of using the selected backup device to replace the primary device to carry the service includes: determining whether the active/standby switch flag corresponding to the active/standby switchover is true; if true, indicating that the active/standby switch is active If the switchover is not completed, the received heartbeat signal is not processed; if not, it indicates that the master/slave switchover is completed, and the received heartbeat signal is processed.
- the active/standby switchover is used to determine whether the active/standby switchover is complete, thereby performing different operations on the heartbeat signal, thereby improving the stability of the active/standby switchover.
- FIG. 2 is a schematic structural diagram of an access gateway-based primary backup device switching apparatus according to an embodiment of the present invention, which includes: a configuration unit 202 configured to configure N primary devices for one bearer service a backup device, wherein: N ⁇ 1; the selecting unit 204 is connected to the configuration unit 202, and is configured to select an available standby device from the N standby devices when the primary device is abnormal; the switching unit 206, Connected to the selection unit 204, arranged to use the selected spare device in place of the primary device to carry the service.
- the traditional dual-device mutual active and standby devices are expanded, and the primary device and the corresponding multiple backup devices are used to securely manage the device, thereby solving the related technologies in the active and standby devices.
- the configuration unit 202 includes: a configuration module, configured to set the primary device to a unit state, and set each of the standby devices to a port state; and a mapping module, configured to be in the one of the units A mapping relationship is established between the state and the N port states.
- the switching can be effectively performed by such a mapping relationship.
- the selecting unit 204 includes: a selecting module, configured to select the available standby device with the highest priority from the N standby devices.
- the selection unit in the preferred embodiment may also select another available backup device from the N spare devices by using other policies.
- the configuration unit 202 is further configured to configure the priority of the backup devices according to the sequence reported to the line card before selecting the available backup devices with the highest priority from the one of the backup devices.
- the priority of the standby device that is reported first is higher than the priority of the standby device that is reported later.
- the priorities are configured in the reported order, and a valid spare device can be better selected to replace the primary device.
- the configuration unit 202 sets the primary device as a backup device, and sets a priority corresponding to the backup device to a lowest level. Priority. In the preferred embodiment, the primary device that is currently abnormal is set as the standby device with the lowest priority.
- the access gateway-based primary standby switching device determines whether the primary device is abnormal by one of the following steps: if the primary device migrates from an available state to an unavailable state, Determining that the primary device is abnormal; if one or more of the resources of the switching monitoring resource on the primary device are abnormal, determining that the primary device is abnormal; or receiving the user The sent switching command determines that the primary device is abnormal.
- a variety of determinations are provided to enable the present invention to be applied to a variety of scenarios.
- the step of using the selected backup device to replace the primary device to carry the service includes: determining whether the active/standby switch flag corresponding to the active/standby switchover is true; if true, indicating The active/standby switchover is not completed, and the received heartbeat signal is not processed; if not, it indicates that the active/standby switchover is completed, and the received heartbeat signal is processed.
- the active/standby switchover is used to determine whether the active/standby switchover is complete, thereby performing different operations on the heartbeat signal, thereby improving the stability of the active/standby switchover.
- Embodiment 3 This embodiment provides an update alternative for hardware active and standby management.
- the original 4 original concepts of the main and the standby are expanded, and the active and standby devices are expanded from 1:1 (one main use and one standby) to 1: (- main use multiple standby), which enhances the system. Robustness makes the system more stable.
- 1: ⁇ device management can allow multiple backup devices, and the backup devices are managed in a priority manner. When the primary device is abnormal, the highest priority available device in the standby device is used as the primary device.
- N device management can implement logical data of Unit and Port: Unit (control unit); Port port resource, which is a sub-resource to which the unit belongs, is used to identify each device. If separate device states are used to indicate the active and standby states respectively, each service application and system application needs to query each device, which is too complicated and inefficient, so the control of Unit + Port is introduced when managing the standby device.
- Unit control unit
- Port port resource which is a sub-resource to which the unit belongs
- Unit indicates the total status of the devices as the master and standby devices, and the port status indicates the active and standby status of each device.
- N (1 master)
- NP network processor
- Port manages the device.
- the corresponding relationship is that one unit corresponds to N ports, and each port corresponds to one NP device, and multiple NP devices belong to one unit.
- the corresponding Unit and Port of each device are dynamically allocated on the (MP) main control board.
- the initial value is assigned to 1.
- the configured NP device dynamically allocates unoccupied Unit and Port resources, and then the main port of the port.
- the standby attributes are associated to be subordinate to the dynamically allocated Unit. After the line card is deleted, the active and standby ports and the association information with the unit are cleared, so that the Unit and Port resources are in the state of being dynamically allocated.
- the priority of the standby device is recorded in the Unit data. The priority can be configured and adjusted through commands.
- the initial priority is assigned in the order of 4 ⁇ on the line card.
- the priority of the standby device is assigned to the high priority.
- the priority of the last 4 ⁇ is decremented.
- the standby device upgrade policy is to use the highest priority available standby device.
- the standby device is abnormal, the priority of the standby device in the Unit data and the Port data is updated, the device priority list after the abnormal device node is moved forward, and the abnormal device is inserted into the link header, and the priority is reduced to the lowest.
- the NP line card side's own data management is managed by the Port method.
- This configuration is responsible for maintaining the configuration delivered by the MP main control board, including the active status, standby status, service status, and offline status.
- the master/slave switching method provided in this embodiment is as follows: After the NP is started, the initial port state is set to the MP, and then the MP determines the primary standby state of the NP according to the preemptive manner, that is, the port state of the NP is first reported to be the primary port. When the NP of the primary NP is abnormal (the abnormality at this time can be defined by the relevant application), the NP notifies the MP of the abnormal cause, and the MP determines that the standby can be switched.
- the MP initiates the master/slave state switchover, reassigns the configuration to the NP in the active/standby state, and switches the original primary service resource to the standby device to enable the service to run normally.
- the following describes the specific implementation method of the 1:N device, which is divided into the following steps:
- the initial port state of the NP is given to the MP, and then the MP allocates the active/standby state of the NP device according to the dynamically assigned control logic.
- the NP that reports the port state is allocated as the first in state of port is master, and the MP sends the primary data to the primary NP, and notifies the NP to update its state for the primary use, and then The primary NP starts to report the heartbeat for the MP to monitor; the NP of the last 4 ⁇ Port state is assigned as the second in state of port is slave, and the MP sends the standby data to the standby NP, notifying the The NP updates its own state to standby. Then, the standby NP starts to report the heartbeat (including the port primary standby status information) for monitoring by the MP.
- the MP checks the NP Port state migration process. If the standby device is migrated from the available state to the unavailable state, it only informs the service that the device is not available now, and the resource needs to be reselected from the active device. If the active device is migrated from the available state to the unavailable state, and the standby device is available at this time, the MP initiates the switching of the NP device, changes the primary standby state information of the NP Port data recorded on the MP, and sets the port state of the active device.
- the primary NP detection module is responsible for scanning whether the registered resources are normal, if one or more of these resources (Any case when all kinds of resources are abnormal)
- the active NP initiates a switching notification to notify the MP to perform switching (S501).
- the MP sets the switching timer.
- the timer timeout period is tentatively set to 5 seconds (the timeout period can be adjusted according to different hardware of the device), and the reason for the port switching and the switching flag are set, wherein the switching flag is used for The heartbeat is blocked (S502).
- the heartbeat of the NP of the unit it is determined whether the switching flag used for the port switching is true.
- the MP queries the standby NP for the standby switching condition (S503), and the standby NP sends the query result to the MP, for example, informing the MP standby NP that the switching condition is met (S504).
- the MP sends a configuration message to the standby NP to notify the NP switchover (S505).
- the switchover succeeds the timer and the switch flag are cancelled (S506), and then the standby NP reports the heartbeat (Port is mainly used) i MP (S507), 4 ⁇ heartbeat (Port is standby) i MP (S508) on the primary NP. If the switch fails (for example, the above-mentioned set switch timer expires, or the standby NP device is also unavailable or the resource is abnormal.
- the MP re-distributes the configuration to the primary NP and the standby NP, so as to restore to the port state before the switching (S509), and then, the primary NP has 4 ⁇ heartbeat (Port is mainly used) to the MP (S510), After the switchover detection timer is set, set the port active/standby state corresponding to the NP on the standby NP, and then reconfigure the new active/standby state. To NP, the NP is notified to update its own port status, and the heartbeat is reported to the MP as a response, and the MP starts monitoring the port status of the NP.
- Heartbeat is reported to the MP as a response
- this switching is manually initiated by the user (S601).
- the MP sets the switching timer.
- the timer expires for 5 seconds.
- the timeout period can be adjusted according to different hardware of the device), and the reason for the port switching and the switching flag are set, wherein the switching flag is used to block the heartbeat (S602).
- the switching flag used for the port switching is true. If true, the processing is not processed, so as to prevent the NP port processing from being disordered when the switching is not completed. .
- the MP queries the standby NP for the standby switching condition (S603), and the standby NP sends the query result to the MP, for example, informing the MP standby NP that the switching condition is met (S604).
- the MP sends a configuration message to the standby NP to notify the NP switchover (S605). If the switchover succeeds, the timer and the switch flag are cancelled (S606), and then the standby NP reports the heartbeat (Port is mainly used).
- the main NP is 4 ⁇ heartbeat (Port is standby) to MP (S608)th. If the switchover fails (for example, if the switchover timer is set to expire or the standby NP device is unavailable or the resource is abnormal), the MP re-delivers the configuration to the active NP and the standby NP to restore the port state before the switchover. (S609), then, the primary NP is 4 ⁇ heartbeat (Port is used for) to MP (S610), and the standby NP is 4 ⁇ (Port is standby) to MP (S610).
- the monitoring module corresponding to the NP Port on the MP determines the primary standby state of the port in the heartbeat message reported by the NP, if a dual-active or dual-standby conflict occurs.
- the configuration data is re-configured to change the active/standby status of the port currently reported to the NP device to prevent abnormalities on the service.
- the preferred embodiment has the following beneficial effects: The expansion of the management of the active and standby devices can be implemented on the basis of the standard equipment, and a convenient and practical solution is invented for the management functions of the primary and secondary devices.
- the active/standby management mechanism includes:
- PortState structure is given to the MP.
- the MP receives the PortState message on the NP, updates the Port state recorded in the UnitState, and assigns the active and standby states of the NP.
- the NP device After receiving the configuration message sent by the MP device, the NP device configures the NpPortState structure and then reports it. For the process, refer to Figure 3.
- the MP side periodically monitors whether the NP device is working normally. For the specific process, refer to FIG. 4 . As shown in FIG. 4, the MP side sets a 2-second NP device Port state detection cycle timer TIMER4 to poll all NP devices. If the primary NP does not report the heartbeat or reports that the port status is abnormal (for example, the heartbeat message is not received within 10 seconds), the primary NP is processed offline. If there is a standby NP, the MP queries the standby NP for the standby switching condition, and the standby NP ⁇ ! The result of the query is sent to the MP to inform the MP that the standby NP meets the switching condition.
- TIMER4 2-second NP device Port state detection cycle timer
- the MP Under the alternate NP-compliant switching condition, the MP sends a configuration message to the current primary NP and the standby NP to notify the NP switch. 4)
- the important resources registered by the software are regularly monitored. When the resources are abnormal or unavailable, the switching process is initiated. For the specific process, reference may be made to FIG. 5 and the description of FIG. 5 above.
- the NP notifies the MP to attempt to switch by sending an NP ChangeOver message. After receiving the message, the MP checks whether the standby device in the UnitState structure is available, and then performs the ascending operation. 5) Exception handling:
- the NP initiates a switchover, sets the switchover timer, and periodically checks whether the switchover is successful. If the switchover fails, the NP PortState state before the switchover is restored.
- the Ppmgt_checkreceive_proc( ) function detects whether there is an active device in the standby device list in the UnitState structure. If there is a notification, the device is downgraded to standby. For the specific process, see Figures 5 and 6.
- the Ppmgt_checkreceive_proc ( ) function selects the highest priority of the alternate device list.
- the present invention is applicable to devices requiring high stability, high reliability, and high efficiency in systems such as AG (Access Gateway Integrated Access Gateway), PON (Passive Optical Networks, Passive Optical Networks, including EPON, GPON, NG-PON) .
- AG Access Gateway Integrated Access Gateway
- PON Passive Optical Networks, Passive Optical Networks, including EPON, GPON, NG-PON
- the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
- they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Disclosed are a method and an apparatus for switching between primary-standby devices based on an access gateway, wherein the method includes: configuring N standby devices for one primary device bearing services, wherein; when abnormality occurs on the primary device, selecting an available standby device from the N standby devices; using the selected standby device to substitute for the primary device to bear the service. The present invention solves the instability problem due to the 1:1 relation between the primary device and the standby device in the related art, and enables smooth transitions of system resource and service application switch when the system is abnormal.
Description
基于接入网关的主备用设备切换方法和装置 技术领域 本发明涉及通信领域,具体而言,涉及一种基于接入网关( Access Gateway, 简称为 AG ) 的主备用设备切换方法和装置。 背景技术 在 AG系统中, 系统需要有主控板 MP ( Main Processor ), 负责对系统资 源进行规划和分配, 供各种业务运行。 同时也需要有各种用户版 NP ( Net Processor ) 负责给 MP提供所需资源, 以完成业务的分子操作。 The present invention relates to the field of communications, and in particular to a method and apparatus for switching between primary and backup devices based on an access gateway (Access Gateway, AG for short). BACKGROUND In an AG system, a system needs to have a main control board MP (Main Processor), which is responsible for planning and allocating system resources for various services. At the same time, various user versions of NP (Net Processor) are required to provide the MP with the necessary resources to complete the molecular operation of the service.
AG业务分为宽带 ( Broad band service )和窄带 ( Narrow band service ), 针 对这两种业务类型所需要的系统资源类型也各不相同。 如宽带需要大数据量的 处理和存储, 而窄带则对系统的实时性要求很高, 而这些数据同时又需要高可 靠性的保证, 因此需要引入主备 (Master-Slave ) 的概念。 相同的 MP 配备 2 块, 相同的 NP配备两块, 2块 MP互为主备, 2块 NP互为主备。 主用设备负 责分配资源的选择控制逻辑。 如果主用设备中有单板出现异常, 则放弃主用状 态, 切换为备用, 而原备用自动升为主用, 接管主用的控制逻辑和数据处理, 保证业务数据和资源使用的正确性,保证在极端情况下,业务应用的正常运行, 提高系统稳定性。 然而, 发明人发现相关技术中主备设备之间 1 : 1 的关系不够稳定, 针对 相关技术中不稳定的问题, 目前尚未提出有效的解决方案。 发明内容 本发明的主要目的在于提供一种基于接入网关的主备用设备切换方法和 装置, 以至少解决上述问题。 根据本发明的一个方面, 提供了一种基于接入网关的主备用设备切换方 法, 其包括: 为 1个承载业务的主用设备配置 N个备用设备, 其中, N≥l ; 当上述主用设备出现异常时, 从上述 N 个备用设备中选择一个可用的备用设 备; 使用所选择的备用设备来代替上述主用设备来承载上述业务。
为 1个承载业务的主用设备配置 N个备用设备的步骤包括:将上述主用设 备设置为单元状态, 并将每个上述备用设备设置为端口状态; 在 1个上述单元 状态与 N个上述端口状态之间建立映射关系。 从上述 N 个备用设备中选择一个可用的备用设备的步骤包括: 从上述 N 个备用设备中选择优先级最高的上述可用的备用设备。 从上述 N个备用设备中选择优先级最高的上述可用的备用设备之前,还包 括: 按照上报到线卡的顺序来配置上述 N个备用设备的优先级, 其中, 先上报 的上述备用设备的优先级高于后上报的上述备用设备的优先级。 使用所选择的备用设备来代替上述主用设备来承载上述业务时, 还包括: 将上述主用设备设置为备用设备, 并将该备用设备对应的优先级设置为最低级 别的优先级。 通过以下步骤之一判断上述主用设备是否出现异常: 若上述主用设备由可 用状态迁移到不可用状态, 则判断出上述主用设备出现异常; 若上述主用设备 上的倒换监控资源中的一种或多种资源出现异常, 则判断出上述主用设备出现 异常; 或者若接收到上述用户发送的倒换命令, 则判断出上述主用设备出现异 常。 使用所选择的备用设备来代替上述主用设备来承载上述业务的步骤包括: 判断主备倒换所对应的主备倒换标志是否为真; 若为真, 则表示上述主备倒换 未完成, 不对接收到的心跳信号进行处理; 若为否, 则表示上述主备倒换已完 成, 对接收到的心跳信号进行处理。 根据本发明的另一方面, 提供了一种基于接入网关的主备用设备切换装 置,其包括: 配置单元,设置为为 1个承载业务的主用设备配置 N个备用设备, 其中, N≥l ; 选择单元, 设置为当上述主用设备出现异常时, 从上述 N个备 用设备中选择一个可用的备用设备; 切换单元, 设置为使用所选择的备用设备 来代替上述主用设备来承载上述业务。 上述配置单元包括: 配置模块, 设置为将上述主用设备设置为单元状态, 并将每个上述备用设备设置为端口状态; 映射模块, 设置为在 1个上述单元状 态与 N个上述端口状态之间建立映射关系。
上述选择单元包括: 选择模块, 设置为从上述 N个备用设备中选择优先级 最高的上述可用的备用设备。 上述配置单元还设置为从上述 N 个备用设备中选择优先级最高的上述可 用的备用设备之前, 按照上报到线卡的顺序来配置上述 N 个备用设备的优先 级, 其中, 先上报的上述备用设备的优先级高于后上报的上述备用设备的优先 级。 在本发明中, 对传统的双设备互为主备进行了扩充, 以一个主用设备和对 应的多个备用设备来对设备进行安全管理, 从而解决了相关技术中主备设备之 间 1 : 1 的关系不够稳定的问题, 当系统异常时, 使系统资源和业务应用切换 能够平滑过渡。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不 当限定。 在附图中: 图 1是根据本发明实施例的基于接入网关的主备用设备切换方法的一种优 选流程图; 图 2是根据本发明实施例的基于接入网关的主备用设备切换装置的一种优 选结构图; 图 3 是根据本发明实施例的 NP启动主备分配的流程图; 图 4 是根据本发明实施例的主用 NP设备状态异常后发起倒换的流程图; 图 5 是根据本发明实施例的主用 NP重要资源异常的发起倒换的流程图; 图 6 是根据本发明实施例的命令发起倒换的流程图。 具体实施方式 实施例 1 图 1是根据本发明实施例的基于接入网关的主备用设备切换方法的一种优 选流程图, 其包括:
S 102, 为 1个承载业务的主用设备配置 N个备用设备, 其中, N≥l The AG service is divided into a Broadband service and a Narrow band service, and the types of system resources required for these two types of services are also different. For example, broadband requires large data processing and storage, while narrowband requires high real-time performance of the system. At the same time, this data requires high reliability. Therefore, the concept of master-slave needs to be introduced. The same MP is equipped with 2 blocks, the same NP is equipped with two blocks, two MPs are used for active and standby, and two NPs are used for active and standby. The primary device is responsible for allocating resource selection control logic. If there is an abnormality in the board of the active device, the primary state is abandoned and the switchover is standby, and the original standby automatically rises to the primary use, taking over the control logic and data processing of the primary use to ensure the correctness of service data and resource usage. Ensure the normal operation of business applications and improve system stability in extreme cases. However, the inventors have found that the relationship of 1:1 between the primary and secondary devices in the related art is not stable enough, and an effective solution has not been proposed for the problem of instability in the related art. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a method and apparatus for switching between primary and backup devices based on an access gateway to solve at least the above problems. According to an aspect of the present invention, a primary backup device switching method based on an access gateway is provided, which includes: configuring N standby devices for a primary device carrying a service, where N≥l; When an abnormality occurs in the device, an available backup device is selected from the N standby devices; and the selected backup device is used to replace the primary device to carry the service. The step of configuring N standby devices for one primary device carrying the service includes: setting the primary device as a unit state, and setting each of the standby devices as a port state; in one of the above unit states and N above A mapping relationship is established between port states. The step of selecting an available spare device from the above N standby devices includes: selecting the above-mentioned available spare devices with the highest priority from among the N standby devices. Before selecting the above-mentioned available backup device with the highest priority from the foregoing N backup devices, the method further includes: configuring the priority of the N standby devices according to the sequence reported to the line card, where the priority of the foregoing standby device is reported first The level is higher than the priority of the above-mentioned standby device reported later. When the selected backup device is used to replace the foregoing primary device to carry the service, the method further includes: setting the primary device as a backup device, and setting a priority corresponding to the backup device to a lowest level priority. Determining whether the primary device is abnormal by one of the following steps: if the primary device is migrated from the available state to the unavailable state, it is determined that the primary device is abnormal; if the primary monitoring device is in the switching monitoring resource If the one or more resources are abnormal, it is determined that the primary device is abnormal; or if the switching command sent by the user is received, it is determined that the primary device is abnormal. The step of using the selected backup device to replace the foregoing primary device to carry the service includes: determining whether the active/standby switchover flag corresponding to the active/standby switchover is true; if true, the active/standby switchover is not completed, and the receiving is not completed. The received heartbeat signal is processed; if not, it indicates that the above-mentioned active/standby switchover has been completed, and the received heartbeat signal is processed. According to another aspect of the present invention, an access gateway-based primary backup device switching apparatus is provided, including: a configuration unit configured to configure N standby devices for one primary device carrying a service, where N≥ l; selecting a unit, configured to select an available spare device from the N standby devices when the primary device is abnormal; the switching unit is configured to use the selected backup device instead of the primary device to carry the above business. The configuration unit includes: a configuration module, configured to set the primary device to a unit state, and set each of the standby devices to a port state; and the mapping module is configured to be in one of the foregoing unit states and N of the foregoing port states Establish a mapping relationship. The selecting unit includes: a selecting module, configured to select the available spare device with the highest priority from the N standby devices. The configuration unit is further configured to: prior to selecting the available spare device with the highest priority among the N standby devices, configure the priority of the N standby devices according to the sequence reported to the line card, where the foregoing standby is reported first. The priority of the device is higher than the priority of the above-mentioned standby device reported later. In the present invention, the traditional dual-device mutual active and standby devices are expanded, and the primary device and the corresponding multiple standby devices are used to securely manage the device, thereby solving the related technologies in the primary and secondary devices: The relationship between 1 is not stable enough. When the system is abnormal, the system resources and business application switching can be smoothly transitioned. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a preferred flowchart of a method for switching a primary backup device based on an access gateway according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a primary backup device switching device based on an access gateway according to an embodiment of the present invention; FIG. 3 is a flowchart of an NP booting active/standby allocation according to an embodiment of the present invention; FIG. 4 is a flowchart of initiating a switching after a primary NP device is abnormal according to an embodiment of the present invention; A flowchart of initiating switching of an active NP resource exception according to an embodiment of the present invention; FIG. 6 is a flowchart of command initiation switching according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS Embodiment 1 FIG. 1 is a preferred flowchart of a method for switching a primary backup device based on an access gateway according to an embodiment of the present invention, which includes: S102. Configure N standby devices for the primary device that carries the service, where N≥l
S 104, 当所述主用设备出现异常时, 从所述 N个备用设备中选择一个可用 的备用设备; S104. When an abnormality occurs in the primary device, select one available backup device from the N standby devices.
S 106, 使用所选择的备用设备来代替所述主用设备来承载所述业务。 在本优选的实施例中, 对传统的双设备互为主备进行了扩充, 以一个主用 设备和对应的多个备用设备来对设备进行安全管理, 从而解决了相关技术中主 备设备之间 1 : 1 的关系不够稳定的问题, 当系统异常时, 使系统资源和业务 应用切换平滑过渡。 优选的, 为 1个承载业务的主用设备配置 N个备用设备的步骤包括: 将所 述主用设备设置为 Unit (单元) 状态, 并将每个所述备用设备设置为 Port (端 口) 状态; 在 1个所述 Unit状态与 N个所述 Port状态之间建立映射关系。 在 本优选的实施例中, 通过这种映射关系可以有效地进行切换。 优选的,从所述 N个备用设备中选择一个可用的备用设备的步骤可以包括 但不限于此: 从所述 N个备用设备中选择优先级最高的所述可用的备用设备。 当然,本发明还可以釆用其它的策略从所述 N个备用设备中选择一个可用的备 用设备。 优选的,从所述 N个备用设备中选择优先级最高的所述可用的备用设备之 前, 根据本发明实施例的基于接入网关的主备用设备切换方法还包括: 按照上 报到线卡的顺序来配置所述 N个备用设备的优先级, 其中, 先上报的所述备用 设备的优先级高于后上报的所述备用设备的优先级。 在本优选的实施例中, 按 照上报的顺序来配置优先级, 能够更好的选择有效的备用设备来代替主用设 备。 优选的, 使用所选择的备用设备来代替所述主用设备来承载所述业务时, 根据本发明实施例的基于接入网关的主备用设备切换方法还包括: 将所述主用 设备设置为备用设备, 并将该备用设备对应的优先级设置为最低级别的优先 级。 在本优选的实施例中, 将当前出现异常的主用设备设置为优先级最低的备 用设备, 这样的机制使得下一次切换后代替主用设备的备用设备能够更好的满 足当前系统的需求。
优选的, 通过以下步骤之一判断所述主用设备是否出现异常: 若所述主用 设备由可用状态迁移到不可用状态, 则判断出所述主用设备出现异常; 若所述 主用设备上的倒换监控资源中的一种或多种资源出现异常, 则判断出所述主用 设备出现异常; 或者若接收到所述用户发送的倒换命令, 则判断出所述主用设 备出现异常。 在本优选的实施例中, 提供了多种的判断情况, 使得本发明能够 适用于多种场景。 优选的, 使用所选择的备用设备来代替所述主用设备来承载所述业务的步 骤包括: 判断主备倒换所对应的主备倒换标志是否为真; 若为真, 则表示所述 主备倒换未完成, 不对接收到的心跳信号进行处理; 若为否, 则表示所述主备 倒换已完成, 对接收到的心跳信号进行处理。 在本优选的实施例中, 通过主备 倒换标志来判断主备倒换是否完成, 从而对心跳信号执行不同的操作, 提高了 主备倒换的稳定性。 实施例 2 图 2是根据本发明实施例的基于接入网关的主备用设备切换装置的一种优 选结构图, 其包括: 配置单元 202 , 设置为为 1个承载业务的主用设备配置 N 个备用设备, 其中, N≥l ; 选择单元 204 , 与配置单元 202连接, 设置为当所 述主用设备出现异常时, 从所述 N个备用设备中选择一个可用的备用设备; 切 换单元 206, 与选择单元 204连接, 设置为使用所选择的备用设备来代替所述 主用设备来承载所述业务。 在本优选的实施例中, 对传统的双设备互为主备进行了扩充, 以一个主用 设备和对应的多个备用设备来对设备进行安全管理, 从而解决了相关技术中主 备设备之间 1 : 1 的关系不够稳定的问题, 当系统异常时, 使系统资源和业务 应用切换平滑过渡。 优选的, 所述配置单元 202包括: 配置模块, 设置为将所述主用设备设置 为 Unit状态, 并将每个所述备用设备设置为 Port状态; 映射模块, 设置为在 1 个所述 Unit状态与 N个所述 Port状态之间建立映射关系。 在本优选的实施例 中, 通过这种映射关系可以有效地进行切换。 优选的, 所述选择单元 204包括: 选择模块, 设置为从所述 N个备用设备 中选择优先级最高的所述可用的备用设备。 当然, 本优选实施例中的选择单元 还可以釆用其它的策略从所述 N个备用设备中选择一个可用的备用设备。
优选的,所述配置单元 202还设置为从所述 Ν个备用设备中选择优先级最 高的所述可用的备用设备之前,按照上报到线卡的顺序来配置所述 Ν个备用设 备的优先级, 其中, 先上报的所述备用设备的优先级高于后上报的所述备用设 备的优先级。 在本优选的实施例中, 按照上报的顺序来配置优先级, 能够更好 的选择有效的备用设备来代替主用设备。 优选的, 使用所选择的备用设备来代替所述主用设备来承载所述业务时, 配置单元 202将所述主用设备设置为备用设备, 并将该备用设备对应的优先级 设置为最低级别的优先级。 在本优选的实施例中, 将当前出现异常的主用设备 设置为优先级最低的备用设备, 这样的机制使得下一次切换后代替主用设备的 备用设备能够更好的满足当前系统的需求。 优选的, 根据本发明实施例的基于接入网关的主备用设备切换装置通过以 下步骤之一判断所述主用设备是否出现异常: 若所述主用设备由可用状态迁移 到不可用状态, 则判断出所述主用设备出现异常; 若所述主用设备上的倒换监 控资源中的一种或多种资源出现异常, 则判断出所述主用设备出现异常; 或者 若接收到所述用户发送的倒换命令, 则判断出所述主用设备出现异常。 在本优 选的实施例中, 提供了多种的判断情况, 使得本发明能够适用于多种场景。 优选的, 切换单元 206使用所选择的备用设备来代替所述主用设备来承载 所述业务的步骤包括: 判断主备倒换所对应的主备倒换标志是否为真; 若为真, 则表示所述主备倒换未完成, 不对接收到的心跳信号进行处理; 若为否, 则表 示所述主备倒换已完成,对接收到的心跳信号进行处理。在本优选的实施例中 , 通过主备倒换标志来判断主备倒换是否完成, 从而对心跳信号执行不同的操 作, 提高了主备倒换的稳定性。 实施例 3 本实施例为硬件主备管理提供一种更新替代方案。 在完成硬件设计之后, 可以随意增加主备异常检测条件, 而不需要更换或改版硬件。 此外, 在上述基 础上对主备原有的 4既念进行了扩充, 主备设备从 1 : 1 (一主用一备用)扩充到 1:Ν (—主用多备用), 增强了系统得健壮性, 使系统更加稳定。 在本实施例中, 1: Ν 设备管理可以允许有多个备用设备, 备用设备间釆 用优先级方式管理, 当主用设备出现异常时, 备用设备中优先级最高的可用设 备升为主用, 其余备用设备优先级依次提高, 原主用降为备用, 并且插入备用 设备优先级链表尾, 优先级降为最低。
在本实施例中, 1 : N设备管理可以釆用 Unit和 Port的逻辑数据实现: Unit (控制单元); Port端口资源, 是单元所属的子资源, 用于标识每个设备。 如果用单独的设备状态来分别表示主备状态, 这样每次业务应用和系统应 用要对每个设备进行查询, 太过复杂而且效率也很低, 所以对备设备管理时引 入 Unit + Port的控制逻辑, 将互为主备的设备抽象为一个 Unit, Unit表示互为 主备设备总状态, 而 Port状态表示每一个设备自己的主备状态, 方便了应用, 实现了 1 : N ( 1个主用多个备用)设备的管理, 同时能够直接对互为主备的设 备进行管理, 使业务能够很轻松的实现数据同步、 流量的负荷分担和异常后业 务的切换。 对于 AG中 NP ( net processor ) 类设备 1 : N主备的数据管理釆用 Unit、S106, using the selected backup device to replace the primary device to carry the service. In the preferred embodiment, the traditional dual-device mutual active and standby devices are expanded, and the primary device and the corresponding multiple backup devices are used to securely manage the device, thereby solving the related technologies in the active and standby devices. The problem that the relationship between 1: 1 is not stable enough, when the system is abnormal, the system resources and business applications switch smoothly. Preferably, the step of configuring N standby devices for one primary device carrying services includes: setting the primary devices to a unit state, and setting each of the standby devices to a port state. Establishing a mapping relationship between one of the Unit states and N of the Port states. In the preferred embodiment, the switching can be effectively performed by such a mapping relationship. Preferably, the step of selecting one available backup device from the N standby devices may include, but is not limited to: selecting the available backup device with the highest priority from the N backup devices. Of course, the present invention can also select another available backup device from the N spare devices by using other strategies. Preferably, the access gateway-based primary standby switching method according to the embodiment of the present invention further includes: following the sequence reported to the line card, before the selecting the available backup device with the highest priority from the N backup devices The priority of the N standby devices is configured, where the priority of the standby device that is reported first is higher than the priority of the standby device that is reported later. In the preferred embodiment, the priorities are configured in the reported order, and a valid spare device can be better selected to replace the primary device. Preferably, when the selected backup device is used to replace the primary device to carry the service, the access gateway-based primary backup device switching method according to the embodiment of the present invention further includes: setting the primary device as The standby device, and the priority corresponding to the standby device is set to the lowest priority. In the preferred embodiment, the primary device that is currently abnormal is set as the standby device with the lowest priority. Such a mechanism enables the backup device that replaces the primary device to better meet the requirements of the current system after the next handover. Preferably, it is determined whether the primary device is abnormal by one of the following steps: if the primary device is migrated from an available state to an unavailable state, determining that the primary device is abnormal; if the primary device is If the one or more resources in the switching monitoring resource are abnormal, it is determined that the primary device is abnormal; or if the switching command sent by the user is received, it is determined that the primary device is abnormal. In the preferred embodiment, a variety of determinations are provided to enable the present invention to be applied to a variety of scenarios. Preferably, the step of using the selected backup device to replace the primary device to carry the service includes: determining whether the active/standby switch flag corresponding to the active/standby switchover is true; if true, indicating that the active/standby switch is active If the switchover is not completed, the received heartbeat signal is not processed; if not, it indicates that the master/slave switchover is completed, and the received heartbeat signal is processed. In the preferred embodiment, the active/standby switchover is used to determine whether the active/standby switchover is complete, thereby performing different operations on the heartbeat signal, thereby improving the stability of the active/standby switchover. Embodiment 2 FIG. 2 is a schematic structural diagram of an access gateway-based primary backup device switching apparatus according to an embodiment of the present invention, which includes: a configuration unit 202 configured to configure N primary devices for one bearer service a backup device, wherein: N≥1; the selecting unit 204 is connected to the configuration unit 202, and is configured to select an available standby device from the N standby devices when the primary device is abnormal; the switching unit 206, Connected to the selection unit 204, arranged to use the selected spare device in place of the primary device to carry the service. In the preferred embodiment, the traditional dual-device mutual active and standby devices are expanded, and the primary device and the corresponding multiple backup devices are used to securely manage the device, thereby solving the related technologies in the active and standby devices. The problem that the relationship between 1: 1 is not stable enough, when the system is abnormal, the system resources and business applications switch smoothly. Preferably, the configuration unit 202 includes: a configuration module, configured to set the primary device to a unit state, and set each of the standby devices to a port state; and a mapping module, configured to be in the one of the units A mapping relationship is established between the state and the N port states. In the preferred embodiment, the switching can be effectively performed by such a mapping relationship. Preferably, the selecting unit 204 includes: a selecting module, configured to select the available standby device with the highest priority from the N standby devices. Of course, the selection unit in the preferred embodiment may also select another available backup device from the N spare devices by using other policies. Preferably, the configuration unit 202 is further configured to configure the priority of the backup devices according to the sequence reported to the line card before selecting the available backup devices with the highest priority from the one of the backup devices. The priority of the standby device that is reported first is higher than the priority of the standby device that is reported later. In the preferred embodiment, the priorities are configured in the reported order, and a valid spare device can be better selected to replace the primary device. Preferably, when the selected backup device is used to replace the primary device to carry the service, the configuration unit 202 sets the primary device as a backup device, and sets a priority corresponding to the backup device to a lowest level. Priority. In the preferred embodiment, the primary device that is currently abnormal is set as the standby device with the lowest priority. Such a mechanism enables the backup device that replaces the primary device to better meet the requirements of the current system after the next handover. Preferably, the access gateway-based primary standby switching device according to the embodiment of the present invention determines whether the primary device is abnormal by one of the following steps: if the primary device migrates from an available state to an unavailable state, Determining that the primary device is abnormal; if one or more of the resources of the switching monitoring resource on the primary device are abnormal, determining that the primary device is abnormal; or receiving the user The sent switching command determines that the primary device is abnormal. In the preferred embodiment, a variety of determinations are provided to enable the present invention to be applied to a variety of scenarios. Preferably, the step of using the selected backup device to replace the primary device to carry the service includes: determining whether the active/standby switch flag corresponding to the active/standby switchover is true; if true, indicating The active/standby switchover is not completed, and the received heartbeat signal is not processed; if not, it indicates that the active/standby switchover is completed, and the received heartbeat signal is processed. In the preferred embodiment, the active/standby switchover is used to determine whether the active/standby switchover is complete, thereby performing different operations on the heartbeat signal, thereby improving the stability of the active/standby switchover. Embodiment 3 This embodiment provides an update alternative for hardware active and standby management. After the hardware design is completed, you can optionally increase the primary and secondary exception detection conditions without replacing or modifying the hardware. In addition, on the basis of the above, the original 4 original concepts of the main and the standby are expanded, and the active and standby devices are expanded from 1:1 (one main use and one standby) to 1: (- main use multiple standby), which enhances the system. Robustness makes the system more stable. In this embodiment, 1: Ν device management can allow multiple backup devices, and the backup devices are managed in a priority manner. When the primary device is abnormal, the highest priority available device in the standby device is used as the primary device. The priority of the remaining standby devices is increased in turn, the original primary usage is reduced to standby, and the standby device priority chain is inserted in the footer, and the priority is reduced to the lowest. In this embodiment, 1: N device management can implement logical data of Unit and Port: Unit (control unit); Port port resource, which is a sub-resource to which the unit belongs, is used to identify each device. If separate device states are used to indicate the active and standby states respectively, each service application and system application needs to query each device, which is too complicated and inefficient, so the control of Unit + Port is introduced when managing the standby device. Logic, abstracting the devices that are mutually active and standby into one unit, Unit indicates the total status of the devices as the master and standby devices, and the port status indicates the active and standby status of each device. This facilitates the application and implements 1: N (1 master) With the management of multiple standby devices, you can directly manage devices that are active and standby, enabling the service to easily implement data synchronization, traffic load balancing, and abnormal traffic switching. For the NP (net processor) class device 1 in the AG: N, the active and standby data management uses Unit,
Port对设备进行管理。 对应关系为 1个 Unit对应 N个 Port, 每个 Port对应一 个 NP设备, 多个 NP设备同属于一个 Unit的方式。 每个设备对应的 Unit、 Port 在 ( MP ) 主控板上是动态进行分配的, 起始 值分配值为 1 , 配置的 NP设备动态分配未占用的 Unit和 Port资源, 然后将其 Port的主备属性关联起来, 使其从属于动态分配好的 Unit。 当线卡删除后清除 主备 Port以及和 Unit的关联信息, 使 Unit, Port资源重新处于可以动态分配 的状态。 备用设备优先级记录在 Unit 数据中, 优先级是可以通过命令配置和调整 的, 初始优先级按照线卡上 4艮的顺序进行分配, 先上 4艮的备用设备优先级就分 配为高优先级, 后上 4艮的优先级递减。 当主用设备异常发生后, 备用设备升主 策略是釆用优先级最高的可用备用设备升主。 当备用设备异常时, 更新 Unit数据和 Port数据中备用设备的优先级, 异 常设备节点后的设备优先级链表前移,异常设备插入链表尾,优先级降为最低。 Port manages the device. The corresponding relationship is that one unit corresponds to N ports, and each port corresponds to one NP device, and multiple NP devices belong to one unit. The corresponding Unit and Port of each device are dynamically allocated on the (MP) main control board. The initial value is assigned to 1. The configured NP device dynamically allocates unoccupied Unit and Port resources, and then the main port of the port. The standby attributes are associated to be subordinate to the dynamically allocated Unit. After the line card is deleted, the active and standby ports and the association information with the unit are cleared, so that the Unit and Port resources are in the state of being dynamically allocated. The priority of the standby device is recorded in the Unit data. The priority can be configured and adjusted through commands. The initial priority is assigned in the order of 4艮 on the line card. The priority of the standby device is assigned to the high priority. The priority of the last 4 递 is decremented. When the primary device exception occurs, the standby device upgrade policy is to use the highest priority available standby device. When the standby device is abnormal, the priority of the standby device in the Unit data and the Port data is updated, the device priority list after the abnormal device node is moved forward, and the abnormal device is inserted into the link header, and the priority is reduced to the lowest.
NP线卡侧自己的数据管理釆用 Port方式进行管理。 该结构负责维护 MP 主控板下发的配置, 包括主用状态、 备用状态、 可以提供服务状态和离线状态 等信息。 本实施例所提供的主备切换方法是: NP启动后向 MP上 4艮初始的 Port状 态, 然后 MP根据先入为主的方式决定 NP的主备用状态, 即先上报 NP的 Port 状态分配为主用。 当处于主用的 NP出现异常时 (此时的异常可以由相关应用 进行定义), NP将异常原因通知 MP, MP在判断备用可以倒换的条件下, 由
MP发起主备状态切换, 重新分配主备状态下配置到 NP, 并切换原来主用的业 务资源到备用, 使业务能够正常运行。 下面描述一下 1 :N设备具体的实现方法, 分成以下几个步 4聚实现: The NP line card side's own data management is managed by the Port method. This configuration is responsible for maintaining the configuration delivered by the MP main control board, including the active status, standby status, service status, and offline status. The master/slave switching method provided in this embodiment is as follows: After the NP is started, the initial port state is set to the MP, and then the MP determines the primary standby state of the NP according to the preemptive manner, that is, the port state of the NP is first reported to be the primary port. When the NP of the primary NP is abnormal (the abnormality at this time can be defined by the relevant application), the NP notifies the MP of the abnormal cause, and the MP determines that the standby can be switched. The MP initiates the master/slave state switchover, reassigns the configuration to the NP in the active/standby state, and switches the original primary service resource to the standby device to enable the service to run normally. The following describes the specific implementation method of the 1:N device, which is divided into the following steps:
(一) 在 NP启动时: 如图 3所示, NP上 4艮初始 Port状态给 MP, 然后 MP才艮据动态分配的控制 逻辑分配 NP设备的主备状态。 优选的, 先上报 Port状态的 NP被分配为主用 ( first in state of port is master ), 并且 MP下发主用数据配置给该主用 NP, 通 知该 NP更新自己的状态为主用, 然后, 该主用 NP开始上报心跳以供 MP进 行监控; 后上 4艮 Port 态的 NP被分配为备用 ( second in state of port is slave ), 并且 MP下发备用数据配置给该备用 NP, 通知该 NP更新自己的状态为备用, 然后, 该备用 NP开始上报心跳 (包含 Port主备用状态信息) 以供 MP进行监 控。 (1) At the time of NP startup: As shown in Figure 3, the initial port state of the NP is given to the MP, and then the MP allocates the active/standby state of the NP device according to the dynamically assigned control logic. Preferably, the NP that reports the port state is allocated as the first in state of port is master, and the MP sends the primary data to the primary NP, and notifies the NP to update its state for the primary use, and then The primary NP starts to report the heartbeat for the MP to monitor; the NP of the last 4 艮 Port state is assigned as the second in state of port is slave, and the MP sends the standby data to the standby NP, notifying the The NP updates its own state to standby. Then, the standby NP starts to report the heartbeat (including the port primary standby status information) for monitoring by the MP.
(二) MP监控模块发现 NP Port状态发生迁移时: (2) The MP monitoring module finds that when the NP Port status is migrated:
MP检查 NP Port状态迁移过程, 如果是备用设备由可用态迁移到不可用, 则只通知业务此设备现在不可用, 需从主用设备上重新选择资源。 如果是主用 设备由可用状态迁移到不可用状态, 而备用设备此时可用, 则 MP发起 NP设 备的倒换, 改变 MP上记录的 NP Port数据的主备用状态信息, 将主用设备的 Port状态设置为不可用, 将备用设备的 Port状态设置为主用, 重新下发配置给 NP, 通知其倒换并更新 NP上 Port状态变更为主用, NP立即上 4艮心兆给 MP, MP 收到后作为倒换成功的应答, 开始对新的主用设备进行监控, 如果收不到 倒换成功应答 ( NP上报的心跳 Port状态始终为备用), 则一直下发配置直到收 到倒换成功为止 ( NP上报心跳 Port状态为主用)。 倒换成功后切换所有资源到新的主用设备, 保证运行业务和新业务的正常 运行。 (三) NP上资源异常时: 如图 5所示, NP上的倒换监控资源是可以注册的, 注册后主用 NP检测模 块负责扫描这些注册资源是否正常, 如果这些资源中的一种或几种 (多种资源 全部异常时才触发的情况) 出现异常时, 主用 NP发起倒换通知, 通知 MP进 行倒换 ( S501 )。
MP在收到通知后先设置倒换定时器, 优选的, 定时器超时时间暂定 5秒 (超时时间可依设备硬件不同进行调整), 并且设置 Port倒换原因和倒换标志, 其中, 倒换标志用于屏蔽心跳 (S502 )。 优选的, 在处理此 Unit的 NP的心跳 时, 判断用于上述 Port倒换的倒换标志是否为真, 若为真, 则不处理, 以便防 止在倒换未完成的情况下, NP的 Port处理出现紊乱。 然后, MP向备用 NP查询备机倒换条件 ( S503 ), 备用 NP将查询结果发 功给 MP, 例如, 告知 MP备用 NP符合倒换条件 ( S504 )。 在备用 NP符合倒 换条件下, MP向该备用 NP发送配置消息以通知 NP倒换 ( S505 )„ 若倒换成功, 则取消定时器和倒换标志(S506 ), 然后, 备用 NP上报心跳 ( Port为主用)i MP ( S507 ),主用 NP上 4艮心跳( Port为备用)i MP ( S508 )。 若倒换失败 (例如, 上述设置的倒换定时器超时, 或备用 NP设备也处于 不可用或资源异常状态), 则 MP重新下发配置给主用 NP和备用 NP, 以便恢 复到倒换前的 Port状态 (S509 ), 然后, 主用 NP上 4艮心跳 (Port为主用) 给 MP ( S510 ), 备用 NP上 4艮心兆 ( Port为备用) 给 MP ( S510 ) 优选的,在设置完倒换检测定时器后, 置 MP上对应 NP的 Port主备状态, 然后把新的主备状态重新下配置到 NP, 通知 NP更新自己的 Port状态, 上报 心兆给 MP作为应答, MP开始监控 NP的 Port状态。 The MP checks the NP Port state migration process. If the standby device is migrated from the available state to the unavailable state, it only informs the service that the device is not available now, and the resource needs to be reselected from the active device. If the active device is migrated from the available state to the unavailable state, and the standby device is available at this time, the MP initiates the switching of the NP device, changes the primary standby state information of the NP Port data recorded on the MP, and sets the port state of the active device. Set to be unavailable, set the port status of the standby device as the primary, re-issue the configuration to the NP, notify it to switch and update the port status change on the NP for the primary use, and the NP immediately sends the 4th heart to the MP, and the MP receives Then, as a response to the successful switchover, the new active device is monitored. If the switchover success response is not received (the heartbeat port status reported by the NP is always standby), the configuration is sent until the switchover is successful. The heartbeat Port status is mainly used). After the switchover is successful, all resources are switched to the new active device to ensure the normal operation of the running service and the new service. (3) When the resources on the NP are abnormal: As shown in Figure 5, the switching monitoring resources on the NP can be registered. After registration, the primary NP detection module is responsible for scanning whether the registered resources are normal, if one or more of these resources (Any case when all kinds of resources are abnormal) When an abnormality occurs, the active NP initiates a switching notification to notify the MP to perform switching (S501). After receiving the notification, the MP sets the switching timer. Preferably, the timer timeout period is tentatively set to 5 seconds (the timeout period can be adjusted according to different hardware of the device), and the reason for the port switching and the switching flag are set, wherein the switching flag is used for The heartbeat is blocked (S502). Preferably, when the heartbeat of the NP of the unit is processed, it is determined whether the switching flag used for the port switching is true. If true, the processing is not processed, so as to prevent the NP port processing from being disordered when the switching is not completed. . Then, the MP queries the standby NP for the standby switching condition (S503), and the standby NP sends the query result to the MP, for example, informing the MP standby NP that the switching condition is met (S504). After the standby NP meets the switching condition, the MP sends a configuration message to the standby NP to notify the NP switchover (S505). If the switchover succeeds, the timer and the switch flag are cancelled (S506), and then the standby NP reports the heartbeat (Port is mainly used) i MP (S507), 4 艮 heartbeat (Port is standby) i MP (S508) on the primary NP. If the switch fails (for example, the above-mentioned set switch timer expires, or the standby NP device is also unavailable or the resource is abnormal. Status), the MP re-distributes the configuration to the primary NP and the standby NP, so as to restore to the port state before the switching (S509), and then, the primary NP has 4 艮 heartbeat (Port is mainly used) to the MP (S510), After the switchover detection timer is set, set the port active/standby state corresponding to the NP on the standby NP, and then reconfigure the new active/standby state. To NP, the NP is notified to update its own port status, and the heartbeat is reported to the MP as a response, and the MP starts monitoring the port status of the NP.
(四) 命令发起的倒换: 如图 6所示, 这种倒换由用户远程手动发起 ( S601 ), MP在收到用户命令 之后先设置倒换定时器, 优选的, 定时器超时时间暂定 5秒(超时时间可依设 备硬件不同进行调整), 并且设置 Port倒换原因和倒换标志, 其中, 倒换标志 用于屏蔽心跳 (S602 )。 优选的, 在处理此 Unit的 NP的心跳时, 判断用于上 述 Port倒换的倒换标志是否为真, 若为真, 则不处理, 以便防止在倒换未完成 的情况下, NP的 Port处理出现紊乱。 然后, MP向备用 NP查询备机倒换条件 ( S603 ), 备用 NP将查询结果发 功给 MP, 例如, 告知 MP备用 NP符合倒换条件 ( S604 )。 在备用 NP符合倒 换条件下, MP向该备用 NP发送配置消息以通知 NP倒换 ( S605 )„ 若倒换成功, 则取消定时器和倒换标志(S606 ), 然后, 备用 NP上报心跳 ( Port为主用)给 MP ( S607 ),主用 NP上 4艮心跳 ( Port为备用)给 MP ( S608 )„
若倒换失败 (例如, 上述设置的倒换定时器超时, 或备用 NP设备也处于 不可用或资源异常状态), 则 MP重新下发配置给主用 NP和备用 NP, 以便恢 复到倒换前的 Port状态 (S609 ), 然后, 主用 NP上 4艮心跳 (Port为主用) 给 MP ( S610 ), 备用 NP上 4艮心兆 ( Port为备用) 给 MP ( S610 )。 (五) 异常情况的处理: 当 NP设备发生双主用或双备用时, MP上对应 NP Port的监控模块判断 NP上报的心跳消息中 Port的主备用状态, 如果出现双主用或双备用冲突时, 重新下配置数据, 修改当前上报 NP设备中 Port的主备状态, 防止业务上发生 异常。 本优选的实施例具有以下有益效果: 可以在标准设备^ I架的基础上实现对 主备设备管理的扩充, 为主备设备管理功能发明一种方便实用的解决方案。 在 对系统中稳定性较高功能相同的设备, 只需配置为主备模式, 就可以在业务和 数据流量负荷分担的同时, 最大限度地保证系统得稳定性。 以下结合附图描述对 AG单板 1 :N主备管理的典型实例。 如图 3-6所示, 根据本发明优选实施例的主备管理机制包括: (4) Command-initiated switching: As shown in Figure 6, this switching is manually initiated by the user (S601). After receiving the user command, the MP sets the switching timer. Preferably, the timer expires for 5 seconds. (The timeout period can be adjusted according to different hardware of the device), and the reason for the port switching and the switching flag are set, wherein the switching flag is used to block the heartbeat (S602). Preferably, when the heartbeat of the NP of the unit is processed, it is determined whether the switching flag used for the port switching is true. If true, the processing is not processed, so as to prevent the NP port processing from being disordered when the switching is not completed. . Then, the MP queries the standby NP for the standby switching condition (S603), and the standby NP sends the query result to the MP, for example, informing the MP standby NP that the switching condition is met (S604). After the standby NP meets the switching condition, the MP sends a configuration message to the standby NP to notify the NP switchover (S605). If the switchover succeeds, the timer and the switch flag are cancelled (S606), and then the standby NP reports the heartbeat (Port is mainly used). ) to MP (S607), the main NP is 4 艮 heartbeat (Port is standby) to MP (S608) „ If the switchover fails (for example, if the switchover timer is set to expire or the standby NP device is unavailable or the resource is abnormal), the MP re-delivers the configuration to the active NP and the standby NP to restore the port state before the switchover. (S609), then, the primary NP is 4 艮 heartbeat (Port is used for) to MP (S610), and the standby NP is 4 艮 (Port is standby) to MP (S610). (5) Handling of abnormal conditions: When the NP device is dual-active or dual-standby, the monitoring module corresponding to the NP Port on the MP determines the primary standby state of the port in the heartbeat message reported by the NP, if a dual-active or dual-standby conflict occurs. The configuration data is re-configured to change the active/standby status of the port currently reported to the NP device to prevent abnormalities on the service. The preferred embodiment has the following beneficial effects: The expansion of the management of the active and standby devices can be implemented on the basis of the standard equipment, and a convenient and practical solution is invented for the management functions of the primary and secondary devices. In a system with the same high stability and stability in the system, you only need to configure the active/standby mode to ensure the stability of the system while balancing the traffic and data traffic. A typical example of the main board management of the AG board 1:N is described below with reference to the accompanying drawings. As shown in FIG. 3-6, the active/standby management mechanism according to the preferred embodiment of the present invention includes:
1 ) 如图 3所示, NP初始状态下上 4艮 PortState结构给 MP, MP收到 NP 上 4艮的 PortState消息, 更新 UnitState中所记录的 Port状态, 分配该 NP的主 备状态。 1) As shown in Figure 3, in the initial state of the NP, the PortState structure is given to the MP. The MP receives the PortState message on the NP, updates the Port state recorded in the UnitState, and assigns the active and standby states of the NP.
2 ) NP设备收到 MP设备下发的配置消息后, 配置 NpPortState这个结构然 后开始上报, 流程请参考图 3。 2) After receiving the configuration message sent by the MP device, the NP device configures the NpPortState structure and then reports it. For the process, refer to Figure 3.
3 ) MP侧定时监测 NP设备是否工作正常, 其具体过程可以参考附图 4。 如图 4所示, MP侧设置 2秒的 NP设备 Port状态检测循环定时器 TIMER4 , 轮询所有 NP设备。 如果主用 NP无心跳上报或者上报 Port状态异常 (例如, 连续 10秒钟内未收到心跳消息), 将该主用 NP进行离线处理。 如果存在备用 NP, 则 MP向备用 NP查询备机倒换条件, 备用 NP ^!夺查询结果发功给 MP, 以告知 MP备用 NP符合倒换条件。 在备用 NP符合倒换条件下, MP分别向当 前的主用 NP和备用 NP发送配置消息以通知 NP倒换。
4 ) 定时监测软件注册好的重要资源, 当资源异常或不可用时, 发起倒换 流程, 具体过程可以参考附图 5以及上述关于附图 5的描述。 在本优选的实施 例中, NP通过发送 NP ChangeOver消息通知 MP尝试倒换, MP收到消息后 检查 UnitState结构中的备用设备是否有可用的, 有则进行升主操作。 5 ) 异常处理: 3) The MP side periodically monitors whether the NP device is working normally. For the specific process, refer to FIG. 4 . As shown in FIG. 4, the MP side sets a 2-second NP device Port state detection cycle timer TIMER4 to poll all NP devices. If the primary NP does not report the heartbeat or reports that the port status is abnormal (for example, the heartbeat message is not received within 10 seconds), the primary NP is processed offline. If there is a standby NP, the MP queries the standby NP for the standby switching condition, and the standby NP ^! The result of the query is sent to the MP to inform the MP that the standby NP meets the switching condition. Under the alternate NP-compliant switching condition, the MP sends a configuration message to the current primary NP and the standby NP to notify the NP switch. 4) The important resources registered by the software are regularly monitored. When the resources are abnormal or unavailable, the switching process is initiated. For the specific process, reference may be made to FIG. 5 and the description of FIG. 5 above. In the preferred embodiment, the NP notifies the MP to attempt to switch by sending an NP ChangeOver message. After receiving the message, the MP checks whether the standby device in the UnitState structure is available, and then performs the ascending operation. 5) Exception handling:
1. NP发起倒换,设置倒换定时器,定时监测是否倒换成功,如果倒换失败, 则恢复倒换前 NP PortState状态。 1. The NP initiates a switchover, sets the switchover timer, and periodically checks whether the switchover is successful. If the switchover fails, the NP PortState state before the switchover is restored.
2.存在多主用和无主用的情况, 当设备已经是主用的情况下, Ppmgt_checkreceive_proc ( ) 函数检测 UnitState结构中备用设备链表是否存在主用状态的设备, 如果存在通知此设备 降级为备用, 具体过程可以参见图 5和 6。 当 UnitState [Unitno]. state == Unit_Stb_Used, Ppmgt_checkreceive_proc ( ) 函数选取备用设备链表中优先级最高的升主。 通过以上步骤实现对 AG NP 1: N主备管理, 方案简便可靠, 填补了通讯领 域针对设备可靠性和稳定性, 1 :N主备管理方式的空白。 本发明适用于在 AG ( Access Gateway 综合接入网关), PON ( Passive Optical Networks, 无源光网络, 其包括 EPON, GPON, NG-PON ) 等系统要 求高稳定、 高可靠、 和高效率的设备。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以 用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多 个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码 来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并且在某些 情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者将它们分别 制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电 路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领 域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之 内。
2. There are multiple active and non-active situations. When the device is already active, the Ppmgt_checkreceive_proc( ) function detects whether there is an active device in the standby device list in the UnitState structure. If there is a notification, the device is downgraded to standby. For the specific process, see Figures 5 and 6. When UnitState [Unitno]. state == Unit_Stb_Used, the Ppmgt_checkreceive_proc ( ) function selects the highest priority of the alternate device list. Through the above steps, the AG NP 1: N active/standby management is implemented, and the solution is simple and reliable. It fills the gap in the communication field for equipment reliability and stability, and the 1:N active/standby management mode. The present invention is applicable to devices requiring high stability, high reliability, and high efficiency in systems such as AG (Access Gateway Integrated Access Gateway), PON (Passive Optical Networks, Passive Optical Networks, including EPON, GPON, NG-PON) . Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.
Claims
权 利 要 求 书 一种基于接入网关的主备用设备切换方法, 包括: A method for switching between primary and backup devices based on an access gateway, including:
为 1个承载业务的主用设备配置 N个备用设备, 其中, N > 2 当所述主用设备出现异常时, 从所述 N个备用设备中选择一个可用 的备用设备; Configuring N standby devices for the primary device that carries the service, where N > 2, when the primary device is abnormal, select one available backup device from the N standby devices;
使用所选择的备用设备来代替所述主用设备来承载所述业务。 根据权利要求 1所述的方法, 其中, 为 1个承载业务的主用设备配置 N 个备用设备的步骤包括: The selected backup device is used instead of the primary device to carry the service. The method according to claim 1, wherein the step of configuring N standby devices for one primary device carrying the service includes:
将所述主用设备设置为单元状态, 并将每个所述备用设备设置为端 口状态; Setting the primary device to a unit state, and setting each of the standby devices to a port state;
在 1个所述单元状态与 N个所述端口状态之间建立映射关系。 根据权利要求 1所述的方法, 其中, 从所述 N个备用设备中选择一个可 用的备用设备的步骤包括: A mapping relationship is established between one of the unit states and N of the port states. The method according to claim 1, wherein the step of selecting an available spare device from the N spare devices comprises:
从所述 N个备用设备中选择优先级最高的所述可用的备用设备。 根据权利要求 3所述的方法, 其中, 从所述 N个备用设备中选择优先级 最高的所述可用的备用设备之前, 还包括: Selecting the available backup device with the highest priority from the N spare devices. The method according to claim 3, wherein before selecting the available backup device with the highest priority from the N standby devices, the method further includes:
按照上报到线卡的顺序来配置所述 N个备用设备的优先级, 其中, 先上报的所述备用设备的优先级高于后上报的所述备用设备的优先级。 根据权利要求 4所述的方法, 其中, 使用所选择的备用设备来代替所述 主用设备来^载所述业务时, 还包括: The priority of the N standby devices is configured according to the sequence reported to the line card, wherein the priority of the standby device that is reported first is higher than the priority of the standby device that is reported later. The method according to claim 4, wherein when the selected backup device is used instead of the active device to carry the service, the method further includes:
将所述主用设备设置为备用设备, 并将该备用设备对应的优先级设 置为最低级别的优先级。 根据权利要求 1所述的方法, 其中, 通过以下步骤之一判断所述主用设 备是否出现异常: The primary device is set as a standby device, and the priority corresponding to the standby device is set to the lowest priority. The method according to claim 1, wherein the abnormality of the main device is determined by one of the following steps:
若所述主用设备由可用状态迁移到不可用状态, 则判断出所述主用 设备出现异常;
若所述主用设备上的倒换监控资源中的一种或多种资源出现异常, 则判断出所述主用设备出现异常; 或者 If the active device is migrated from an available state to an unavailable state, determining that the primary device is abnormal; If an abnormality occurs in one or more resources of the switching monitoring resource on the active device, determining that the primary device is abnormal; or
若接收到所述用户发送的倒换命令, 则判断出所述主用设备出现异 常。 If the switching command sent by the user is received, it is determined that the primary device is abnormal.
7. 根据权利要求 1所述的方法, 其中, 使用所选择的备用设备来代替所述 主用设备来承载所述业务的步骤包括: 7. The method according to claim 1, wherein the step of using the selected backup device to replace the primary device to carry the service comprises:
判断主备倒换所对应的主备倒换标志是否为真; Determine whether the active/standby switch flag corresponding to the active/standby switchover is true.
若为真, 则表示所述主备倒换未完成, 不对接收到的心跳信号进行 处理; If true, the active/standby switchover is not completed, and the received heartbeat signal is not processed.
若为否, 则表示所述主备倒换已完成, 对接收到的心跳信号进行处 理。 If not, it indicates that the active/standby switchover has been completed, and the received heartbeat signal is processed.
8. —种基于接入网关的主备用设备切换装置, 包括: 8. The primary and secondary device switching device based on the access gateway, comprising:
配置单元, 设置为为 1个承载业务的主用设备配置 N个备用设备, 其中, N > 2 The configuration unit is configured to configure N standby devices for one primary device carrying the service, where N > 2
选择单元, 设置为当所述主用设备出现异常时, 从所述 N个备用设 备中选择一个可用的备用设备; Selecting a unit, configured to select an available spare device from the N spare devices when an abnormality occurs in the primary device;
切换单元, 设置为使用所选择的备用设备来代替所述主用设备来承 载所述业务。 A switching unit is arranged to use the selected spare device in place of the primary device to carry the service.
9. 根据权利要求 8所述的装置, 其中, 所述配置单元包括: 9. The device according to claim 8, wherein the configuration unit comprises:
配置模块, 设置为将所述主用设备设置为单元状态, 并将每个所述 备用设备设置为端口状态; a configuration module, configured to set the primary device to a unit state, and set each of the standby devices to a port state;
映射模块, 设置为在 1个所述单元状态与 N个所述端口状态之间建 立映射关系。 The mapping module is configured to establish a mapping relationship between one of the unit states and N of the port states.
10. 根据权利要求 8所述的装置, 其中, 所述选择单元包括: 10. The apparatus according to claim 8, wherein the selecting unit comprises:
选择模块, 设置为从所述 N个备用设备中选择优先级最高的所述可 用的备用设备。 The selection module is configured to select the available backup device with the highest priority from the N spare devices.
11. 根据权利要求 10 所述的装置, 其中, 所述配置单元还设置为从所述 N 个备用设备中选择优先级最高的所述可用的备用设备之前, 按照上报到
线卡的顺序来配置所述 N个备用设备的优先级, 其中, 先上报的所述备 用设备的优先级高于后上报的所述备用设备的优先级。
The device according to claim 10, wherein the configuration unit is further configured to report to the available backup device with the highest priority from the N backup devices, according to reporting The priority of the N backup devices is configured in the order of the line cards, wherein the priority of the standby device that is reported first is higher than the priority of the standby device that is reported later.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106057946A CN102025551A (en) | 2010-12-23 | 2010-12-23 | Method and device for switching master device to backup device based on access gateway |
CN201010605794.6 | 2010-12-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012083669A1 true WO2012083669A1 (en) | 2012-06-28 |
Family
ID=43866443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/076512 WO2012083669A1 (en) | 2010-12-23 | 2011-06-28 | Method and apparatus for switching between primary-standby devices based on access gateway |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102025551A (en) |
WO (1) | WO2012083669A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107846294A (en) * | 2016-09-19 | 2018-03-27 | 北京京东尚科信息技术有限公司 | A kind of active and standby service switch method and device |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025551A (en) * | 2010-12-23 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for switching master device to backup device based on access gateway |
CN104601350A (en) * | 2013-10-30 | 2015-05-06 | 中兴通讯股份有限公司 | Automatic disaster-tolerant switching method and device |
CN103634312A (en) * | 2013-11-26 | 2014-03-12 | 广州晶锐信息技术有限公司 | Device management method for realizing multi-audio fast synchrony based on audio sharing |
CN103701519B (en) * | 2013-12-18 | 2016-05-04 | 烽火通信科技股份有限公司 | The standby usage decision method of EPON |
WO2015123893A1 (en) * | 2014-02-24 | 2015-08-27 | 华为技术有限公司 | Device switching method and device |
CN106249585A (en) * | 2016-09-14 | 2016-12-21 | 国网辽宁省电力有限公司锦州供电公司 | The electric power payment active/standby changing method of machine based on string of binary characters |
CN107105337B (en) * | 2017-02-27 | 2020-07-24 | 深圳市卓翼科技股份有限公司 | Wireless multimedia playing method and device |
CN107369345B (en) * | 2017-08-31 | 2019-11-22 | 韩端国际教育科技(深圳)有限公司 | A kind of Internet of Things teaching platform and its control method |
CN109240816B (en) * | 2018-08-30 | 2020-11-10 | 世纪龙信息网络有限责任公司 | System scheme switching method and device, computer equipment and storage medium |
CN111343520A (en) * | 2020-02-27 | 2020-06-26 | 通鼎互联信息股份有限公司 | PON uplink data transmission method, system and device and PON system |
CN111757065A (en) * | 2020-07-02 | 2020-10-09 | 广州博冠智能科技有限公司 | Method and device for automatically switching lens, storage medium and monitoring camera |
CN111953372A (en) * | 2020-07-27 | 2020-11-17 | 交通运输部南海航海保障中心广州通信中心 | VHF transceiver switcher |
CN113645650B (en) * | 2021-07-09 | 2024-06-04 | 三维通信股份有限公司 | Processing method, system, electronic device and storage medium for active-standby switching |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325433A (en) * | 2008-07-14 | 2008-12-17 | 中兴通讯股份有限公司 | Veneer protection system and method for implementing veneer rearrangement |
CN101605051A (en) * | 2009-07-16 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of main and standby rearranging method and device of realizing business on the control board |
CN101667927A (en) * | 2009-09-16 | 2010-03-10 | 杭州华三通信技术有限公司 | Method and device for rapidly restoring service |
CN101882097A (en) * | 2010-06-18 | 2010-11-10 | 福建星网锐捷网络有限公司 | Main control board, embedded system and backup method for embedded system |
CN102025551A (en) * | 2010-12-23 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for switching master device to backup device based on access gateway |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6202170B1 (en) * | 1998-07-23 | 2001-03-13 | Lucent Technologies Inc. | Equipment protection system |
CN101145801B (en) * | 2007-08-02 | 2011-01-19 | 中兴通讯股份有限公司 | Method for service board switching processing under 1:N board protection |
-
2010
- 2010-12-23 CN CN2010106057946A patent/CN102025551A/en active Pending
-
2011
- 2011-06-28 WO PCT/CN2011/076512 patent/WO2012083669A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325433A (en) * | 2008-07-14 | 2008-12-17 | 中兴通讯股份有限公司 | Veneer protection system and method for implementing veneer rearrangement |
CN101605051A (en) * | 2009-07-16 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of main and standby rearranging method and device of realizing business on the control board |
CN101667927A (en) * | 2009-09-16 | 2010-03-10 | 杭州华三通信技术有限公司 | Method and device for rapidly restoring service |
CN101882097A (en) * | 2010-06-18 | 2010-11-10 | 福建星网锐捷网络有限公司 | Main control board, embedded system and backup method for embedded system |
CN102025551A (en) * | 2010-12-23 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for switching master device to backup device based on access gateway |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107846294A (en) * | 2016-09-19 | 2018-03-27 | 北京京东尚科信息技术有限公司 | A kind of active and standby service switch method and device |
CN107846294B (en) * | 2016-09-19 | 2021-01-26 | 北京京东尚科信息技术有限公司 | Main/standby service switching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102025551A (en) | 2011-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012083669A1 (en) | Method and apparatus for switching between primary-standby devices based on access gateway | |
RU2507703C2 (en) | Resource pooling in electronic board cluster switching centre server | |
US10938710B2 (en) | Protection switching method and system, and network device | |
RU2517373C2 (en) | Method for switching node main/standby controllers based on content delivery network and corresponding content delivery network | |
CN104811328B (en) | virtual network resource management method and device | |
CN101183984B (en) | Network management system, management method and equipment | |
WO2015074396A1 (en) | Automatic configuration method, device and system of software defined network | |
WO2015146355A1 (en) | Update management system and update management method | |
CN103583063A (en) | System and method for failover recovery at geo-redundant gateways | |
CN103888277A (en) | Gateway disaster recovery backup method, apparatus and system | |
CN101150439A (en) | A method, system and device for realizing active/standby switching | |
CN105515812A (en) | Fault processing method of resources and device | |
EP3117315A1 (en) | Management of resource allocation in a mobile telecommunication network | |
WO2014029308A1 (en) | Resource allocation method and device | |
CN101110776A (en) | Backup method, backup device and backup system for data service | |
EP3618350B1 (en) | Protection switching method, device and system | |
CN113742173A (en) | Multi-device cluster control method, device main control device, and readable storage medium | |
CN101039263B (en) | Method for processing node overload of core network and mobile switch equipment and communication system | |
CN101167307B (en) | Dynamically self-adaptive distributed resource management system and method | |
WO2021254466A1 (en) | Method, apparatus and system for configuring edge side device | |
CN106534758B (en) | Conference backup method and device | |
US9015518B1 (en) | Method for hierarchical cluster voting in a cluster spreading more than one site | |
US10749744B2 (en) | Enhanced performance of a telecommunications network comprising at least one group of pooled mobility management entities | |
EP1712067B1 (en) | A method, apparatus and system of organizing servers | |
EP3117589A1 (en) | Management of resource allocation in a mobile telecommunication network |
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: 11850409 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: 11850409 Country of ref document: EP Kind code of ref document: A1 |