Method, apparatus, system and storage medium for user migration

CN116938693BActive Publication Date: 2026-09-18HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210370140.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2026-09-18
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

然而,这种迁移方式可能导致用户资源分配不均,或某些终端掉线,使这些终端的业务中断

Benefits of technology

[0064] Since the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, if users in the second temperature backup group on the first UP device are migrated to at least one other member of the second temperature backup group first, then when migrating users in the first temperature backup group on the first UP device, the other at least one member of the first temperature backup group may not have enough free capacity to accommodate the users in the first temperature backup group on the first UP device. Therefore, in the vBNG system provided in this application, after the CP device determines the users in the first temperature backup group and the second temperature backup group on the first UP device, based on the fact that the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, it first migrates the users in the first temperature backup group on the first UP device to at least one other member of the first temperature backup group, which can successfully migrate the users in the first temperature backup group on the first UP device. In this way, user disconnection can be avoided, service interruption can be prevented, and the user distribution on each UP device can be evenly distributed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116938693B_ABST
    Figure CN116938693B_ABST
Patent Text Reader

Abstract

The application discloses a user migration method, device, system and storage medium, and belongs to the communication field. The method is applied to a CP device in a vBNG system, the vBNG system further comprises a plurality of UP devices, the plurality of UP devices comprises a first UP device, and the method comprises the following steps: the CP device determines users corresponding to a first warm backup group and users corresponding to a second warm backup group on the first UP device, the first warm backup group and the second warm backup group are warm backup groups in the vBNG system, and the first UP device joins the first warm backup group and the second warm backup group; based on the number of members of the first warm backup group being less than or equal to the number of members of the second warm backup group, the users corresponding to the first warm backup group on the first UP device are migrated to at least one other member in the first warm backup group, and the at least one other member in the first warm backup group does not comprise the first UP device. The application can avoid user disconnection and service interruption of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and in particular to a method, apparatus, system, and storage medium for user migration. Background Technology

[0002] A broadband gateway access system employing a control plane (CP) and user plane (UP) separation scheme typically includes a CP device and multiple UP devices. The CP device can manage these multiple UP devices.

[0003] In this system, after authenticating the terminal via the Remote Authentication Dial-in-User Service (RADIUS) server, the CP device can control the terminal to connect to the network from the first UP device among multiple UP devices. That is, the first UP device can forward services belonging to the terminal to connect it to the network. To improve the stability of service transmission, multiple UP devices in the broadband gateway access system can form a warm backup group. When one UP in the warm backup group fails, the terminal device accessing the network via that UP can migrate to another UP in the warm backup group, and the other UPs can continue to transmit services for the terminal.

[0004] In practical applications, broadband gateway access systems may have multiple warm standby groups, and the same UP can join different warm standby groups. When multiple warm standby groups of a UP fail simultaneously, terminals corresponding to different warm standby groups are typically migrated according to the failure time sequence of their respective warm standby groups. However, this migration method may lead to uneven distribution of user resources or some terminals going offline, causing service interruptions for these terminals. Summary of the Invention

[0005] This application provides a method, apparatus, system, and storage medium for user migration to prevent user disconnection and service interruption. The technical solution is as follows:

[0006] Firstly, this application provides a user migration method applied to a control plane (CP) device in a Virtual Broadband Access Gateway (vBNG) system. The vBNG system further includes multiple user plane (UP) devices, including a first UP device. In the method, the CP device identifies users corresponding to a first warm backup group and a second warm backup group on the first UP device as users to be migrated. The first and second warm backup groups are warm backup groups within the vBNG system. The first UP device joins both the first and second warm backup groups. Based on the fact that the number of members in the first warm backup group is less than or equal to the number of members in the second warm backup group, the CP device migrates users corresponding to the first warm backup group on the first UP device to at least one other member within the first warm backup group. The at least one other member within the first warm backup group does not include the first UP device.

[0007] Since the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, if users in the second temperature backup group on the first UP device are migrated to at least one other member of the second temperature backup group first, then when migrating users in the first temperature backup group on the first UP device, the other at least one member of the first temperature backup group may not have enough free capacity to accommodate the users in the first temperature backup group on the first UP device. Therefore, given that the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, the CP device should first migrate users in the first temperature backup group on the first UP device to at least one other member of the first temperature backup group. This ensures the successful migration of users in the first temperature backup group on the first UP device. This avoids user disconnection, prevents service interruption, and ensures a more even distribution of users across the UP devices.

[0008] In one possible implementation, after the CP device migrates users corresponding to the first temperature backup group on the first UP device to at least one other member within the first temperature backup group, the CP device migrates users corresponding to the second temperature backup group on the first UP device to at least one other member within the second temperature backup group. The first UP device is not among the at least one other member within the second temperature backup group. Since the number of members in the second temperature backup group is greater than the number of members in the first temperature backup group, after migrating the users corresponding to the first temperature backup group on the first UP device, at least one other member of the second temperature backup group often has sufficient free capacity to accommodate the users corresponding to the second temperature backup group on the first UP device, thus enabling the successful migration of the users corresponding to the second temperature backup group on the first UP device.

[0009] In another possible implementation, the number of members in the first temperature backup group is equal to the number of members in the second temperature backup group. The CP device determines that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device. Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, if users corresponding to the second temperature backup group on the first UP device are migrated first, and then users corresponding to the first temperature backup group on the first UP device are migrated, it is possible that users corresponding to the first temperature backup group on the first UP device will fail to migrate successfully, resulting in user disconnection. However, if users corresponding to the first temperature backup group on the first UP device are migrated first, and then users corresponding to the second temperature backup group on the first UP device are migrated successfully, avoiding user disconnection.

[0010] In another possible implementation, the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, where the second UP device is the member with the largest idle capacity among at least one other member of the first temperature backup group. Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, if users corresponding to the first temperature backup group on the first UP device are not migrated first, but instead users corresponding to the second temperature backup group on the first UP device are migrated first, there may not be enough idle capacity to accommodate the users corresponding to the first temperature backup group, leading to user outages. However, in this application, the larger the number of users corresponding to the first temperature backup group, the earlier the migration order of the first temperature backup group, thus ensuring that users corresponding to the first temperature backup group are migrated first and preventing user outages.

[0011] In another possible implementation, the number of members in the first warm backup group is equal to the number of members in the second warm backup group. The CP device determines that the number of users corresponding to the first warm backup group on the first UP device is less than the number of users corresponding to the second warm backup group on the first UP device. This way, even when the number of users corresponding to the first warm backup group on the first UP device is less than the number of users corresponding to the second warm backup group on the first UP device, the users corresponding to the first warm backup group on the first UP device can be migrated first, and then the users corresponding to the second warm backup group on the first UP device can be migrated, improving migration flexibility.

[0012] In another possible implementation, the number of users corresponding to the second warm backup group on the first UP device is less than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the second warm backup group. Since the number of users corresponding to the second warm backup group on the first UP device is less than the idle capacity of the second UP device, and the number of users corresponding to the first warm backup group on the first UP device is less than the number of users corresponding to the second warm backup group on the first UP device, it indicates that the remaining idle capacity of other members in each warm backup group is sufficient. In this application, users corresponding to the first warm backup group on the first UP device can be migrated first, and then users corresponding to the second warm backup group on the first UP device can be migrated, improving the flexibility of migration.

[0013] In another possible implementation, the number of members in the first warm backup group is less than the number of members in the second warm backup group. The CP device identifies the users corresponding to the M warm backup groups on the first UP device as users to be migrated, where M is an integer greater than or equal to 2. The M warm backup groups are warm backup groups in the vBNG system, and the first UP device joins the M warm backup groups. The CP device sorts the M warm backup groups in ascending order of the number of members, and migrates the users corresponding to the M warm backup groups on the first UP device to at least one other member within the M warm backup groups according to the sorting result. The at least one other member within the M warm backup groups does not include the first UP device. Since M is greater than or equal to 2, for multiple warm backup groups experiencing concentrated failures of the first UP device, the migration order of each warm backup group can be determined based on the number of members in each warm backup group. Migrating based on the migration order of each warm backup group can avoid user disconnection.

[0014] In another possible implementation, the members of the warm backup group in the vBNG system include the UP device, the interface within the UP device, or the single board within the UP device.

[0015] In one possible implementation, the CP device receives an anomaly report from the first UP device. This anomaly report includes identification information for a first temperature backup group and a second temperature backup group. Based on the identification information of the first and second temperature backup groups, the CP device determines the users corresponding to the first and second temperature backup groups on the first UP device as users to be migrated.

[0016] In one possible implementation, the CP device detects a fault in the first UP device, determines that each temperature backup group on the first UP device is abnormal, and the temperature backup groups on the first UP device include both the first temperature backup group and the second temperature backup group being abnormal. The user corresponding to the first temperature backup group and the user corresponding to the second temperature backup group on the first UP device are determined to be the user to be migrated.

[0017] Secondly, this application provides a user migration method. The method is applied to a control plane (CP) device in a Virtual Broadband Access Gateway (vBNG) system. The vBNG system also includes multiple user plane (UP) devices, including a first UP device. In the method, the CP device identifies users corresponding to M warm backup groups on the first UP device as users to be migrated, where M is an integer greater than or equal to 2. These M warm backup groups are warm backup groups within the vBNG system, and the first UP device joins one of these M warm backup groups. The CP device sorts the M warm backup groups in ascending order of the number of members, and according to the sorting result, migrates the users corresponding to the M warm backup groups on the first UP device to at least one other member within the M warm backup groups. The first UP device is not included in the at least one other member within the M warm backup groups.

[0018] The CP device sorts the M warm backup groups in ascending order of member count and migrates users corresponding to these M warm backup groups on the first UP device to at least one other member within each M warm backup group. Therefore, the fewer members a warm backup group has, the higher the priority the CP device has in migrating users corresponding to that warm backup group on the first UP device, ensuring successful migration. Conversely, for warm backup groups with more members, the CP device migrates users later, but since these warm backup groups typically have more free capacity to accommodate users corresponding to those warm backup groups on the first UP device, this also ensures successful migration. This approach avoids user disconnections, prevents service interruptions, and ensures a more even distribution of users across the UP devices.

[0019] Thirdly, this application provides a user migration method applied to a control plane (CP) device in a Virtual Broadband Access Gateway (vBNG) system. The vBNG system further includes multiple user plane (UP) devices, including a first UP device. In the method, based on the fact that the number of users corresponding to a first warm backup group on the first UP device is greater than the number of users corresponding to a second warm backup group on the first UP device, the CP device first migrates users corresponding to the first warm backup group on the first UP device to at least one other member within the first warm backup group, and then migrates users corresponding to the second warm backup group on the first UP device to at least one other member within the second warm backup group. Wherein, the first and second warm backup groups are warm backup groups in the vBNG system; the first UP device joins both the first and second warm backup groups; at least one other member within the first warm backup group does not include the first UP device; and at least one other member within the second warm backup group does not include the first UP device.

[0020] Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, if the users corresponding to the second temperature backup group on the first UP device are migrated first, then the users corresponding to the first temperature backup group on the first UP device may fail to migrate, resulting in user disconnection. However, if the users corresponding to the first temperature backup group on the first UP device are migrated first, then the users corresponding to the second temperature backup group on the first UP device are migrated successfully, avoiding user disconnection, preventing service interruption, and ensuring a more even distribution of users across the UP devices.

[0021] In one possible implementation, the number of members in the first temperature backup group is equal to the number of members in the second temperature backup group. When the number of members in the first temperature backup group equals the number of members in the second temperature backup group, if the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, the CP device first migrates the users corresponding to the first temperature backup group, and then migrates the users corresponding to the second temperature backup group. This ensures successful migration of users corresponding to the first temperature backup group and the second temperature backup group on the first UP device, preventing user disconnection, preventing service interruption, and ensuring a more even distribution of users across the UP devices.

[0022] In another possible implementation, the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, where the second UP device is the member with the largest idle capacity among at least one other member of the first temperature backup group. Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, if users corresponding to the first temperature backup group on the first UP device are not migrated first, but instead users corresponding to the second temperature backup group on the first UP device are migrated first, there may not be enough idle capacity to accommodate the users corresponding to the first temperature backup group, leading to user outages. However, in this application, the larger the number of users corresponding to the first temperature backup group, the earlier the migration order of the first temperature backup group, thus ensuring that users corresponding to the first temperature backup group are migrated first and preventing user outages.

[0023] Fourthly, this application provides a user migration apparatus, which is a device in a Virtual Broadband Access Gateway (vBNG) system. The vBNG system further includes multiple User Plane (UP) devices, including a first UP device. The apparatus includes a determining unit and a migration unit.

[0024] The determining unit is used to determine that the users corresponding to the first warm backup group and the second warm backup group on the first UP device are users to be migrated, the first warm backup group and the second warm backup group are warm backup groups in the vBNG system, and the first UP device is added to the first warm backup group and the second warm backup group.

[0025] The migration unit is used to migrate users corresponding to the first temperature backup group on the first UP device to at least one other member in the first temperature backup group based on the fact that the number of members in the first temperature backup group is less than or equal to the number of members in the second temperature backup group. The at least one other member in the first temperature backup group does not include the first UP device.

[0026] Since the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, if the migration unit first migrates users from the second temperature backup group on the first UP device to at least one other member of the second temperature backup group, then when the migration unit migrates users from the first temperature backup group on the first UP device, it may result in insufficient free capacity in at least one other member of the first temperature backup group to accommodate the users from the first temperature backup group on the first UP device. Therefore, based on the fact that the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, the migration unit first migrates users from the first temperature backup group on the first UP device to at least one other member of the first temperature backup group, which ensures successful migration of users from the first temperature backup group on the first UP device. This avoids user disconnection, prevents service interruption, and ensures a more even distribution of users across the UP devices.

[0027] In one possible implementation, the migration unit is further configured to migrate, after the CP device has migrated the users corresponding to the first temperature backup group on the first UP device to at least one other member within the first temperature backup group, the users corresponding to the second temperature backup group on the first UP device to at least one other member within the second temperature backup group, where the first UP device is not among the at least one other member. Since the number of members corresponding to the second temperature backup group is greater than the number of members corresponding to the first temperature backup group, after the migration unit has migrated the users corresponding to the first temperature backup group on the first UP device, at least one other member of the second temperature backup group often has sufficient free capacity to accommodate the users corresponding to the second temperature backup group on the first UP device, thus enabling the successful migration of the users corresponding to the second temperature backup group on the first UP device.

[0028] In another possible implementation, the number of members in the first temperature backup group is equal to the number of members in the second temperature backup group. The determining unit is also used to determine that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device. Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, if the migration unit migrates the users corresponding to the second temperature backup group on the first UP device first, and then migrates the users corresponding to the first temperature backup group on the first UP device, it is possible that the users corresponding to the first temperature backup group on the first UP device will fail to migrate successfully, resulting in user disconnection. However, if the migration unit migrates the users corresponding to the first temperature backup group on the first UP device first, and then migrates the users corresponding to the second temperature backup group on the first UP device, the migration of the users corresponding to the first temperature backup group and the users corresponding to the second temperature backup group on the first UP device can be successful, avoiding user disconnection.

[0029] In another possible implementation, the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, where the second UP device is the member with the largest idle capacity among at least one other member of the first temperature backup group. Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, if users corresponding to the first temperature backup group on the first UP device are not migrated first, but instead users corresponding to the second temperature backup group on the first UP device are migrated first, there may not be enough idle capacity to accommodate the users corresponding to the first temperature backup group, leading to user outages. However, in this application, the larger the number of users corresponding to the first temperature backup group, the earlier the migration order of the first temperature backup group, thus ensuring that users corresponding to the first temperature backup group are migrated first and preventing user outages.

[0030] In another possible implementation, the number of members in the first warm backup group is equal to the number of members in the second warm backup group. The determining unit is also used to determine that the number of users corresponding to the first warm backup group on the first UP device is less than the number of users corresponding to the second warm backup group on the first UP device. In this way, when the number of users corresponding to the first warm backup group on the first UP device is less than the number of users corresponding to the second warm backup group on the first UP device, the migration unit can migrate the users corresponding to the first warm backup group on the first UP device first, and then migrate the users corresponding to the second warm backup group on the first UP device, improving the flexibility of the migration.

[0031] In another possible implementation, the number of users corresponding to the second warm backup group on the first UP device is less than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the second warm backup group. Since the number of users corresponding to the second warm backup group on the first UP device is less than the idle capacity of the second UP device, and the number of users corresponding to the first warm backup group on the first UP device is less than the number of users corresponding to the second warm backup group on the first UP device, it indicates that the remaining idle capacity of other members in each warm backup group is sufficient. In this application, the migration unit can first migrate the users corresponding to the first warm backup group on the first UP device, and then migrate the users corresponding to the second warm backup group on the first UP device, thereby improving the flexibility of migration.

[0032] In another possible implementation, the number of members in the first warm backup group is less than the number of members in the second warm backup group. A determining unit is used to determine the users corresponding to the M warm backup groups on the first UP device as users to be migrated, where M is an integer greater than or equal to 2. The M warm backup groups are warm backup groups in the vBNG system, and the first UP device is added to the M warm backup groups. A migration unit is used to sort the M warm backup groups in ascending order of the number of members, and according to the sorting result, migrate the users corresponding to the M warm backup groups on the first UP device to at least one other member within the M warm backup groups. The at least one other member within the M warm backup groups does not include the first UP device. Since M is greater than or equal to 2, for multiple warm backup groups experiencing concentrated failures of the first UP device, the migration order of each warm backup group can be determined based on the number of members in each warm backup group. Migrating based on the migration order of each warm backup group can avoid user disconnection.

[0033] In another possible implementation, the members of the warm backup group in the vBNG system include the UP device, the interface within the UP device, or the single board within the UP device.

[0034] In one possible implementation, the apparatus further includes a receiving unit for receiving an anomaly report from the first UP device, the anomaly report including identification information of a first temperature backup group and identification information of a second temperature backup group. A determining unit is also included, based on the identification information of the first temperature backup group and the second temperature backup group, to determine the users corresponding to the first temperature backup group and the second temperature backup group on the first UP device as users to be migrated.

[0035] In one possible implementation, the device further includes a sensing unit and a determining unit, used to sense a fault in the first UP device, determine that each temperature backup group on the first UP device is abnormal, the temperature backup groups on the first UP device include both the first temperature backup group and the second temperature backup group being abnormal, and determine that the user corresponding to the first temperature backup group and the user corresponding to the second temperature backup group on the first UP device are users to be migrated.

[0036] Fifthly, this application provides a user migration apparatus, which is a device in a Virtual Broadband Access Gateway (vBNG) system. The vBNG system further includes multiple User Plane (UP) devices, including a first UP device. The apparatus includes a determining unit and a migration unit.

[0037] The determining unit is used to determine that the users corresponding to the M warm backup groups on the first UP device are users to be migrated, where M is an integer greater than or equal to 2, and the M warm backup groups are warm backup groups in the vBNG system. The first UP device joins the M warm backup groups.

[0038] The migration unit is used to sort the M warm backup groups in ascending order of the number of members, and according to the sorting result, migrate the users corresponding to the M warm backup groups on the first UP device to at least one other member in the M warm backup groups. The at least one other member in the M warm backup groups does not include the first UP device.

[0039] The migration unit sorts the M warm backup groups in ascending order of the number of members, and then migrates the users corresponding to the M warm backup groups on the first UP device to at least one other member within those M warm backup groups in turn. Therefore, the fewer members a warm backup group has, the higher the migration unit prioritizes migrating the users corresponding to that warm backup group on the first UP device, ensuring successful migration. Conversely, for warm backup groups with more members, the migration unit migrates the users corresponding to that warm backup group on the first UP device later, but since there are often more other members besides those on the first UP device, there is usually more free capacity to accommodate the users corresponding to that warm backup group on the first UP device, also ensuring successful migration. This avoids user disconnection, prevents service interruption, and ensures a more even distribution of users across the UP devices.

[0040] Sixthly, this application provides a user migration apparatus, wherein the apparatus is a device in a Virtual Broadband Access Gateway (vBNG) system, the vBNG system further comprising multiple User Plane (UP) devices, the multiple UP devices including a first UP device. The apparatus includes a migration unit, configured to, based on the fact that the number of users corresponding to a first warm backup group on the first UP device is greater than the number of users corresponding to a second warm backup group on the first UP device, first migrate the users corresponding to the first warm backup group on the first UP device to at least one other member within the first warm backup group, and then migrate the users corresponding to the second warm backup group on the first UP device to at least one other member within the second warm backup group. Wherein, the first warm backup group and the second warm backup group are warm backup groups in the vBNG system, the first UP device joins the first warm backup group and the second warm backup group, and at least one other member within the first warm backup group does not include the first UP device, and at least one other member within the second warm backup group does not include the first UP device.

[0041] Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, if the migration unit migrates the users corresponding to the second temperature backup group on the first UP device first, and then migrates the users corresponding to the first temperature backup group on the first UP device, it is possible that the users corresponding to the first temperature backup group on the first UP device will fail to migrate successfully, resulting in user disconnection. However, if the migration unit migrates the users corresponding to the first temperature backup group on the first UP device first, and then migrates the users corresponding to the second temperature backup group on the first UP device, the migration of the users corresponding to the first temperature backup group and the second temperature backup group on the first UP device can be successful, avoiding user disconnection, preventing service interruption, and ensuring a more even distribution of users across the UP devices.

[0042] In one possible implementation, the number of members in the first temperature backup group is equal to the number of members in the second temperature backup group. When the number of members in the first temperature backup group equals the number of members in the second temperature backup group, if the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, the CP device first migrates the users corresponding to the first temperature backup group, and then migrates the users corresponding to the second temperature backup group. This ensures successful migration of users corresponding to the first temperature backup group and the second temperature backup group on the first UP device, preventing user disconnection, preventing service interruption, and ensuring a more even distribution of users across the UP devices.

[0043] In another possible implementation, the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, where the second UP device is the member with the largest idle capacity among at least one other member of the first temperature backup group. Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, if users corresponding to the first temperature backup group on the first UP device are not migrated first, but instead users corresponding to the second temperature backup group on the first UP device are migrated first, there may not be enough idle capacity to accommodate the users corresponding to the first temperature backup group, leading to user outages. However, in this application, the larger the number of users corresponding to the first temperature backup group, the earlier the migration order of the first temperature backup group, thus ensuring that users corresponding to the first temperature backup group are migrated first and preventing user outages.

[0044] In a seventh aspect, this application provides a control plane (CP) device, which is a device in a virtual broadband access gateway (vBNG) system. The CP device includes a processor and a memory. The processor and the memory are interconnected via an internal connection. The memory stores a program, and the processor executes the program in the memory, causing the CP device to perform the method described in the first aspect or any possible implementation thereof.

[0045] Eighthly, this application provides a control plane (CP) device, which is a device in a virtual broadband access gateway (vBNG) system. The vBNG system also includes multiple user plane (UP) devices, including a first UP device. The CP device includes a main control board and an interface board. The main control board includes a first processor and a first memory. The interface board includes a second processor, a second memory, and an interface card. The main control board and the interface board are coupled.

[0046] The first memory can be used to store program code, and the first processor is used to call the program code in the first memory to perform the following operations: determine the users corresponding to the first warm backup group and the second warm backup group on the first UP device as users to be migrated, the first warm backup group and the second warm backup group are warm backup groups in the vBNG system, and the first UP device joins the first warm backup group and the second warm backup group.

[0047] The second memory can be used to store program code, and the second processor is used to call the program code in the second memory to trigger the interface card to perform the following operation: based on the fact that the number of members in the first temperature backup group is less than or equal to the number of members in the second temperature backup group, the user corresponding to the first temperature backup group on the first UP device is migrated to at least one other member in the first temperature backup group, wherein the at least one other member in the first temperature backup group does not include the first UP device.

[0048] In one possible implementation, an inter-process communication (IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate with each other through the IPC channel.

[0049] Ninthly, this application provides a control plane (CP) device, which is a device in a virtual broadband access gateway (vBNG) system. The CP device includes a processor and a memory. The processor and the memory are interconnected via an internal connection. The memory stores a program, and the processor executes the program in the memory, enabling the CP device to perform the method of the second aspect.

[0050] In a tenth aspect, this application provides a control plane (CP) device, which is a device in a virtual broadband access gateway (vBNG) system. The vBNG system also includes multiple user plane (UP) devices, including a first UP device. The CP device includes a main control board and an interface board. The main control board includes a first processor and a first memory. The interface board includes a second processor, a second memory, and an interface card. The main control board and the interface board are coupled.

[0051] The first memory can be used to store program code. The first processor is used to call the program code in the first memory to perform the following operations: determine the users corresponding to the M warm backup groups on the first UP device as users to be migrated, where M is an integer greater than or equal to 2, the M warm backup groups are warm backup groups in the vBNG system, and the first UP device joins the M warm backup groups.

[0052] The second memory can be used to store program code, and the second processor is used to call the program code in the second memory to trigger the interface card to perform the following operations: sort the M warm backup groups in ascending order of the number of members, and according to the sorting result, migrate the users corresponding to the M warm backup groups on the first UP device to at least one other member in the M warm backup groups in turn. The at least one other member in the M warm backup groups does not include the first UP device.

[0053] In one possible implementation, an inter-process communication (IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate with each other through the IPC channel.

[0054] Eleventhly, this application provides a control plane (CP) device, which is a device in a virtual broadband access gateway (vBNG) system. The CP device includes a processor and a memory. The processor and the memory are interconnected via an internal connection. The memory stores a program, and the processor executes the program in the memory, enabling the CP device to perform the methods described in the third aspect or any possible implementation thereof.

[0055] In a twelfth aspect, this application provides a control plane (CP) device, which is a device in a virtual broadband access gateway (vBNG) system. The vBNG system also includes multiple user plane (UP) devices, including a first UP device. The CP device includes a main control board and an interface board. The main control board includes a first processor and a first memory. The interface board includes a second processor, a second memory, and an interface card. The main control board and the interface board are coupled.

[0056] The first memory can be used to store program code, and the first processor is used to call the program code in the first memory to perform the following operations: based on the fact that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, first migrate the users corresponding to the first temperature backup group on the first UP device to at least one other member in the first temperature backup group, and then migrate the users corresponding to the second temperature backup group on the first UP device to at least one other member in the second temperature backup group.

[0057] The second memory can be used to store program code, and the second processor is used to call the program code in the second memory to trigger the interface card to perform related operations.

[0058] In one possible implementation, an inter-process communication (IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate with each other through the IPC channel.

[0059] In a thirteenth aspect, this application provides a computer program product comprising a computer program stored in a computer-readable storage medium, and the computer program being loaded by a processor to implement the first aspect, the second aspect, the third aspect, any possible implementation of the first aspect, or any possible implementation of the third aspect.

[0060] In a fourteenth aspect, this application provides a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute the methods described in the first aspect, the second aspect, the third aspect, any possible implementation of the first aspect, or any possible implementation of the third aspect.

[0061] In a fifteenth aspect, this application provides a chip including a memory and a processor. The memory is used to store computer instructions, and the processor is used to call and execute the computer instructions from the memory to perform the methods described in the first aspect, the second aspect, the third aspect, any possible implementation of the first aspect, or any possible implementation of the third aspect.

[0062] In a sixteenth aspect, this application provides a Virtual Broadband Access Gateway (vBNG) system, the system comprising a control plane (CP) device and multiple user plane (UP) devices, the multiple UP devices including a first UP device. The CP device is used to implement the methods described in the first aspect, the second aspect, the third aspect, any possible implementation of the first aspect, or any possible implementation of the third aspect.

[0063] For example, a CP device is used to determine that the users corresponding to the first warm backup group and the second warm backup group on the first UP device are users to be migrated. The first warm backup group and the second warm backup group are warm backup groups in the vBNG system. The first UP device joins the first warm backup group and the second warm backup group. Based on the fact that the number of members in the first warm backup group is less than or equal to the number of members in the second warm backup group, the users corresponding to the first warm backup group on the first UP device are migrated to at least one other member in the first warm backup group. The at least one other member in the first warm backup group does not include the first UP device.

[0064] Since the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, if users in the second temperature backup group on the first UP device are migrated to at least one other member of the second temperature backup group first, then when migrating users in the first temperature backup group on the first UP device, the other at least one member of the first temperature backup group may not have enough free capacity to accommodate the users in the first temperature backup group on the first UP device. Therefore, in the vBNG system provided in this application, after the CP device determines the users in the first temperature backup group and the second temperature backup group on the first UP device, based on the fact that the number of members in the first temperature backup group is less than the number of members in the second temperature backup group, it first migrates the users in the first temperature backup group on the first UP device to at least one other member of the first temperature backup group, which can successfully migrate the users in the first temperature backup group on the first UP device. In this way, user disconnection can be avoided, service interruption can be prevented, and the user distribution on each UP device can be evenly distributed. Attached Figure Description

[0065] Figure 1 This is a schematic diagram of the structure of a vBNG system provided in an embodiment of this application;

[0066] Figure 2 This is a schematic diagram of another vBNG system provided in an embodiment of this application;

[0067] Figure 3 This is a schematic diagram of another vBNG system provided in an embodiment of this application;

[0068] Figure 4 This is a flowchart of a user migration method provided in this application embodiment;

[0069] Figure 5 This is a flowchart of another user migration method provided in an embodiment of this application;

[0070] Figure 6 This is an example diagram of a user migration provided in an embodiment of this application;

[0071] Figure 7 This is an example diagram of another user migration provided in the embodiments of this application;

[0072] Figure 8 This is an example diagram of another user migration provided in the embodiments of this application;

[0073] Figure 9 This is an example diagram of another user migration provided in the embodiments of this application;

[0074] Figure 10 This is an example diagram of another user migration provided in the embodiments of this application;

[0075] Figure 11 This is an example diagram of another user migration provided in the embodiments of this application;

[0076] Figure 12 This is a schematic diagram of a user migration device provided in an embodiment of this application;

[0077] Figure 13 This is a schematic diagram of another user migration device structure provided in an embodiment of this application;

[0078] Figure 14 This is a schematic diagram of the structure of a CP device provided in an embodiment of this application;

[0079] Figure 15 This is a schematic diagram of another CP device provided in an embodiment of this application;

[0080] Figure 16This is a schematic diagram of another CP device provided in an embodiment of this application;

[0081] Figure 17 This is a schematic diagram of another CP device provided in an embodiment of this application. Detailed Implementation

[0082] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.

[0083] A Broadband Remote Access Server (BRAS) is an access gateway for broadband network applications, also known as a Broadband Network Gateway (BNG). A Virtual BNG (vBNG) is one implementation of a BRAS, deployed with separate CP (Content Provider) and UP (User Provider) devices (CU separation), hence it can also be called a CU-separated BRAS. Multiple UP devices are deployed distributed across the network, each acting as the user plane of the BNG (or vBNG). This UP device forwards service packets based on user entries issued by the CP devices and implements traffic policies based on technologies such as Quality of Service (QoS) and Access Control Lists (ACLs). The CP device can be implemented using cloud technology and centrally deployed, acting as the control plane of the BNG (or vBNG). This control plane manages and controls users (also known as terminals) and provides unified management of multiple UP devices. For example, the CP device is primarily responsible for user onboarding, configuration distribution, and user entry information. In this context, the UP device can also be called a forwarding plane device; therefore, CU separation can also be called forwarding and control separation, or forwarding-control separation. Systems deployed using this CU separation method are also called CU-separated broadband gateway access systems, or forwarding-control separated broadband gateway access systems.

[0084] See Figure 1 This application provides a schematic diagram of the structure of a vBNG system 100. (See attached diagram.) Figure 1 As shown, the vBNG system 100 may include at least one CP device 101 and multiple UP devices 102.

[0085] "At least one" refers to one or more, and "multiple" refers to two or more. Figure 1The following diagram illustrates a single CP device 101. This CP device 101 is typically deployed in the operator's data center (DC) room, also known as the core data center. The various UP devices 102 can be distributed across different aggregation data centers, also known as edge data centers. Each UP device 102 establishes a communication connection with the CP device 101, and each UP device 102 can establish a communication connection with at least one user 104 and perform data exchange through a first forwarding device 103 (e.g., a forwarding device in a Layer 2 broadcast domain).

[0086] For each UP device 102, the UP device 102 establishes a communication connection with the second forwarding device 105 and interacts with the second forwarding device 105 for data exchange. For example, for a server 106 used to provide services, the second forwarding device 105 can forward service messages sent by the server 106 to the user 104 to the UP device 102, and the UP device 102 receives the service messages and forwards them to the user 104.

[0087] In some embodiments, user 104 is also referred to as user equipment, which can be a terminal device such as a residential gateway (RGW), mobile phone, laptop, or desktop computer. The first forwarding device 103 connected to user 104 can also be referred to as an access node (AN), which can be a switch (SW), optical line terminal (OLT), or digital subscriber line access multiplexer (DSLAM), etc.

[0088] In some embodiments, the first forwarding device 103 can not only forward packets in the Layer 2 broadcast domain, but also isolate user 104 using a Virtual Extensible Local Area Network (VXLAN) or QinQ. QinQ (802.1Q-in-802.1Q) is a technology for extending the space of a Virtual Local Area Network (VLAN), also known as stacked VLAN technology.

[0089] In some embodiments, for a second forwarding device 105 communicating with UP device 102, the second forwarding device 105 is closer to server 106 than UP device 102. Optionally, the second forwarding device 105 is a core router (CR) or a leaf node, etc.

[0090] Continue to refer to Figure 1 The vBNG system 100 may also include an authentication server 107. The authentication server 107 may be a RADIUS server. The authentication server 107 supports authentication, authorization, and accounting (AAA) protocols. Figure 1 As shown, the authentication server 107 establishes a communication connection with the CP device 101. After the CP device 101 completes the interaction with the user 104 through one of the multiple UP devices 102 via dial-up protocol messages (also known as access protocol messages), it sends an authentication request for the user 104 to the authentication server 107. For ease of explanation, this one UP device is referred to as the target UP device.

[0091] Authentication server 107 authenticates user 104, and after successful authentication, assigns an address to user 104 and sends an authentication response carrying that address to CP device 101. Upon receiving this authentication response, CP device 101 can distribute user entry information for user 104 to the target UP device. The target UP device can then generate a forwarding table entry for user 104 locally based on this user entry information, execute relevant service policies and forward traffic, and publish user 104's route externally. User 104 can then access the network through the target UP device. In other words, user 104 can access the network through the target UP device, or it can be understood as user 104 being able to go online from the target UP device.

[0092] In this embodiment, the CP device 101 may include multiple virtual machines (VMs) deployed on a physical server. Each UP device 102 may be a physical UP (pUP) device or a virtual UP (vUP) device; for example, the UP device 102 may be a VM deployed on a physical server. The CP device 101 is capable of managing multiple pUP devices and / or multiple vUP devices.

[0093] The CP device 101 and each UP device 102 can be connected via a service interface, a management interface, and / or a control interface. This service interface, also known as the control packet redirection interface (CPRi), is typically a VXLAN interface, such as a VXLAN generic protocol extension (VXLAN-GPE) interface. After receiving packets (such as access protocol packets and service packets) from user 104, UP device 102 can forward them to CP device 101 for processing via this service interface.

[0094] The management interface (Mi) is generally a network configuration protocol (NETCONF) interface. CP device 101 can use this management interface to send configurations to each UP device 102, and each UP device 102 can use this management interface to report its operating status to CP device 101.

[0095] This control interface, also known as the state control interface (SCi), is typically a control plane and user plane separated protocol (CUSP) interface. For example, after CP device 101 processes the dial-up protocol message sent by user 104 and completes user 104's online process, it can use this control interface to send the user entry information corresponding to user 104 to the target UP device. The user entry information corresponding to user 104 is also called a session entry, and it generally includes user information, virtual MAC address, routing information, and / or Quality of Service (QoS) information. This user information includes user 104's address and / or user account information, and the virtual MAC address is the address of a specific interface on the target UP device from which user 104 went online.

[0096] In the vBNG system 100 with separate CUs, the UP devices 102 managed by the CP device 101 can form a UP pool. Furthermore, to improve the reliability of the vBNG system 100, multiple different warm backup groups are configured within it. For any UP device in the vBNG system 100, that UP device may be joined to different warm backup groups. Each warm backup group comprises N+1 members, where N is an integer greater than or equal to 1.

[0097] The following are two types of warm backup groups, namely the first and second warm backup groups.

[0098] For the first type of warm backup group, the members of this warm backup group are UP devices, that is, the N+1 members of this warm backup group are N+1 UP devices. For any UP device in this warm backup group, some users online on this UP device correspond to this warm backup group.

[0099] When the UP device fails or the warm backup group on the UP device fails, for the N other UP devices in the warm backup group besides the UP device, some users corresponding to the warm backup group on the UP device are migrated to at least one other UP device in the warm backup group, so that these users can continue to be online on at least one other UP device, thereby improving the reliability of the vBNG system 100.

[0100] For example, see Figure 2 Assume that vBNG system 100 includes UP device 1, UP device 2, UP device 3, and UP device 4. Six warm backup groups are configured in vBNG system 100, namely warm backup group S1, warm backup group S2, warm backup group S3, warm backup group S4, warm backup group S5, and warm backup group S6. Warm backup group S1 is a 1+1 warm backup group, including UP device 1 and UP device 2. Warm backup groups S2 and S3 are both 2+1 warm backup groups, with warm backup group S2 including UP device 1, UP device 2, and UP device 4, and warm backup group S3 including UP device 1, UP device 2, UP device 3, and UP device 4. Warm backup groups S4, S5, and S6 are all 3+1 warm backup groups, each including UP device 1, UP device 2, UP device 3, and UP device 4.

[0101] Users online on UP device 1 include at least one user corresponding to warm backup group S1, at least one user corresponding to warm backup group S2, at least one user corresponding to warm backup group S3, at least one user corresponding to warm backup group S4, at least one user corresponding to warm backup group S5, and at least one user corresponding to warm backup group S6. Similarly, UP devices 2, UP devices 3, and UP devices 4 all include users corresponding to different warm backup groups, which will not be listed here. For users corresponding to warm backup group S1 on UP device 1, in the event of a failure of UP device 1 or a failure of warm backup group S1 on UP device 1, these users can be migrated to UP device 2 within warm backup group S1, allowing them to continue being online on UP device 2.

[0102] In some embodiments, the CP device 101 stores a first mapping relationship, which describes the mapping relationship between a warm backup group, its members, and the users corresponding to that warm backup group on those members. Optionally, the first mapping relationship stores the identification information of the warm backup group, the identification information of its members, and the identification information of the users. That is, each record in the first mapping relationship includes the identification information of a warm backup group, the identification information of a member of that warm backup group, and the identification information of the user corresponding to that warm backup group on that member. Here, the member is a UP device, and optionally, the identification information of the member includes the device identifier of the UP device.

[0103] For example, referring to the first correspondence shown in Table 1 below, the first record (record number 1) in the first correspondence shown in Table 1 includes the identification information "S1" of the warm backup group S1, the device identifier "UP1" of UP device 1 within the warm backup group S1, and the identification information of the 5K users corresponding to the warm backup group S1 on UP device 1. The second record (record number 2) in the first correspondence shown in Table 1 includes the identification information "S1" of the warm backup group S1, the device identifier "UP2" of UP device 2 within the warm backup group S1, and the identification information of the 8K users corresponding to the warm backup group S1 on UP device 2. The warm backup group S1 includes two members, UP device 1 and UP device 2. The contents of each of the other records in the first correspondence shown in Table 1 will not be listed individually.

[0104] Table 1

[0105]

[0106] In some embodiments, for any record in the first correspondence that includes user identification information, when the user completes the online process with the CP device 101, the CP device 101 adds the user's identification information to that record. For example, for a user in the first record of the first correspondence shown in Table 1, when the user completes the online process with the CP device 101, the user goes online from the UP device 1, the CP device 101 assigns the user to the warm backup group S1 on the UP device 1, retrieves the first record from the first correspondence shown in Table 1 that includes the identification information "S1" of the warm backup group S1 and the device identifier "UP1" of the UP device 1, and adds the user's identification information to the first record.

[0107] For the second type of warm backup group, the members of this warm backup group are interfaces within the UP devices. Optionally, the N+1 members of this warm backup group are N+1 interfaces, each of which is an interface within one of the N+1 UP devices. For any UP device containing an interface in this warm backup group, the users on that UP device corresponding to this warm backup group include users who are online on that interface.

[0108] When the UP device fails or the warm backup group on the UP device fails (i.e., the interface fails), for N other interfaces in the warm backup group besides the interface, users online on the interface in the UP device are migrated to at least one other interface in the warm backup group, so that users online on the interface can continue to be online on at least one other interface, thereby improving the reliability of the vBNG system 100.

[0109] For example, see Figure 3The vBNG system 100 includes UP device 1, UP device 2, UP device 3, and UP device 4. Six warm backup groups are configured in the vBNG system 100, namely warm backup group S1, warm backup group S2, warm backup group S3, warm backup group S4, warm backup group S5, and warm backup group S6. Warm backup group S1 is a 1+1 warm backup group, including interface 11 in UP device 1 and interface 21 in UP device 2. Warm backup groups S2 and S3 are both 2+1 warm backup groups. Warm backup group S2 includes interface 12 in UP device 1, interface 22 in UP device 2, and interface 41 in UP device 4; warm backup group S3 includes interface 13 in UP device 1, interface 23 in UP device 2, and interface 31 in UP device 3. Warm backup groups S4, S5, and S6 are all 3+1 warm backup groups. Warm backup group S4 includes interface 14 in UP device 1, interface 24 in UP device 2, interface 32 in UP device 3, and interface 42 in UP device 4. Warm backup group S5 includes interface 15 in UP device 1, interface 25 in UP device 2, interface 33 in UP device 3, and interface 43 in UP device 4. Warm backup group S6 includes interface 16 in UP device 1, interface 26 in UP device 2, interface 34 in UP device 3, and interface 44 in UP device 4. For users corresponding to warm backup group S6 on UP device 1 (users online on interface 16), in the event of a failure of UP device 1 or a failure of warm backup group S6 on UP device 1 (interface 16 failure), users online on interface 16 in UP device 1 can be migrated to interface 26 in UP device 2, interface 34 in UP device 3, and / or interface 44 in UP device 4 within warm backup group S6. Thus, multiple users who are online on interface 16 can continue to be online on interface 26 in UP device 2, interface 34 in UP device 3, and / or interface 44 in UP device 4.

[0110] In some embodiments, the CP device 101 stores a second mapping relationship, which describes the mapping relationship between a warm backup group, its members, and users who come online on those members. The members are interfaces within the UP device. Optionally, the second mapping relationship stores the identification information of the warm backup group, the identification information of its members, and the identification information of users who come online on those members. The identification information of the members includes the device identifier of the UP device and the interface identifier of the interface. That is, each record in the second mapping relationship includes the identification information of a warm backup group, the device identifier of a UP device within that warm backup group, the interface identifier of the interface corresponding to the warm backup group on the UP device, and the identification information of users who come online on the interface.

[0111] For example, referring to the second correspondence shown in Table 2 below, the first record (record number 1) in the second correspondence shown in Table 2 includes the identification information "S1" of the warm backup group S1, the device identifier "UP1" of UP device 1 within the warm backup group S1, the interface identifier "IF11" of interface 11, and the identification information of 5K users online on interface 11. The second record (record number 2) in the second correspondence shown in Table 2 includes the identification information "S1" of the warm backup group S1, the device identifier "UP2" of UP device 2 within the warm backup group S1, the interface identifier "IF21" of interface 21, and the identification information of 8K users online on interface 21. The warm backup group S1 includes two members: interface 11 of UP device 1 and interface 21 of UP device 2. The contents of each of the other records in the second correspondence shown in Table 2 will not be listed individually.

[0112] Table 2

[0113]

[0114] In some embodiments, for any record in the second correspondence that includes user identification information, when the user completes the online process with the CP device 101, the CP device 101 adds the user's identification information to that record. For example, for a user in the first record of the second correspondence shown in Table 2, when the user completes the online process with the CP device 101, the user goes online from interface 11 of the UP device 1. The CP device 101 retrieves the first record from the second correspondence shown in Table 2, which includes the device identifier "UP1" of the UP device 1 and the interface identifier "IF11" of the interface 11, and adds the user's identification information to the first record.

[0115] The above lists two types of warm backup groups. Of course, there may be other types of warm backup groups, such as those whose members might be individual boards within the UP device. Other types of warm backup groups will not be listed or explained in detail here.

[0116] For ease of explanation, any UP device 102 in the vBNG system 100 is referred to as the first UP device.

[0117] In some embodiments, the first UP device detects multiple warm backup groups that have failed within a specified time period and sends an anomaly report to the CP device 101. This anomaly report includes the identification information of each detected warm backup group and the time of failure for each warm backup group. Currently, the CP device 101 receives this anomaly report, determines the user corresponding to each warm backup group on the first UP device based on the identification information of each warm backup group, and migrates the user corresponding to each warm backup group on the first UP device to at least one other member within each warm backup group based on the order of failure times of each warm backup group. The at least one other member within each warm backup group does not include the first UP device.

[0118] In some embodiments, the first UP device periodically detects multiple warm backup groups that have failed within a specified period. The specified period is the current period. At the end of the current period, the first UP device detects multiple warm backup groups that have failed within the current period and sends an anomaly report to the CP device 101, including the identification information of the multiple warm backup groups and the time of the failure. Optionally, the specified period length is 200ms, 300ms, or 400ms, etc.

[0119] In some embodiments, when a first UP device malfunctions, a CP device 101 detects the malfunction, determines the users corresponding to each warm backup group on the first UP device, and determines the migration order of each warm backup group on the first UP device. Based on the migration order of each warm backup group, the CP device 101 migrates the users corresponding to each warm backup group on the first UP device to at least one other member within each warm backup group, wherein the at least one other member within each warm backup group does not include the first UP device.

[0120] In some embodiments, currently, the CP device 101 randomly determines the migration order of each warm backup group on the first UP device. Alternatively, the CP device 101 saves the configuration order of each warm backup group when configuring each warm backup group on the first UP device, and when the CP device 101 detects a fault in the first UP device, it uses the configuration order of each warm backup group as the migration order of each warm backup group.

[0121] When migrating users corresponding to the warm backup group on the first UP device, the aforementioned CP device 101 may cause uneven distribution of user resources, or cause some users to go offline, resulting in service interruption for these users.

[0122] For example, see Figure 2In the case where the warm backup group is the first type of warm backup group described above, it is assumed that warm backup group S1 and warm backup group S2 on UP device 2 fail during the current period, and the failure time of warm backup group S2 is earlier than the failure time of warm backup group S1. Also, it is assumed that the remaining free capacity on UP device 1 is 9K, the remaining free capacity on UP device 3 is 8K, and the remaining free capacity on UP device 4 is 8K.

[0123] At the end of the current cycle, UP device 2 sends an anomaly report to CP device 101. This anomaly report includes the identifier "S1" for warm backup group S1 and the identifier "S2" for warm backup group S2. CP device 101 receives this anomaly alarm information and, based on the identifier "S1" for warm backup group S1 and the device identifier "UP2" for UP device 2, retrieves the 8K users corresponding to warm backup group S1 on UP device 2 from the first correspondence shown in Table 1. Based on the identifier "S2" for warm backup group S2 and the device identifier "UP2" for UP device 2, it retrieves the 3K users corresponding to warm backup group S2 on UP device 2 from the first correspondence shown in Table 1.

[0124] CP device 101 first obtains the identification information of other members of warm backup group S2, excluding UP device 2, from the first correspondence shown in Table 1, based on the identification information "S2" of warm backup group S2. The identification information of these other members is "UP1" and "UP4". Based on the identification information "UP1" and "UP4", it is determined that the other members included in warm backup group S2 are UP device 1 and UP device 4. Based on the load balancing strategy, the 3K users corresponding to warm backup group S2 on UP device 2 are migrated to UP device 1 and UP device 4, that is, 1.5K users are migrated to UP device 1 and 1.5K users are migrated to UP device 4. After the 3K users corresponding to warm backup group S2 on UP device 2 are migrated, the remaining free capacity of UP device 1 is 7.5K and the remaining free capacity of UP device 4 is 6.5K.

[0125] Then, CP device 101 first obtains the identification information of other members in warm backup group S1, excluding UP device 2, from the first correspondence shown in Table 1, based on the identification information "S1" of warm backup group S1. The identification information of these other members is "UP1". Based on the identification information "UP1" of these other members, it is determined that the other members included in warm backup group S1 are UP device 1. Since UP device 1 has 7.5K of remaining free capacity, for the 8K users corresponding to warm backup group S1 on UP device 2, only 7.5K users on UP device 2 can be migrated to UP device 1, while the remaining 0.5K users cannot be migrated and will be disconnected, resulting in service interruption for these 0.5K users. In addition, UP device 4 has 6.5K of remaining free capacity, while UP device 1 has 0 of remaining free capacity, so the user distribution is uneven.

[0126] For example, see Figure 3 In the case where the warm backup group is the second type of warm backup group mentioned above, it is assumed that warm backup group S1 and warm backup group S2 on UP device 2 fail during the current cycle (i.e., interface 21 and interface 22 of UP device 2 fail), and the failure time of warm backup group S2 is earlier than the failure time of warm backup group S1.

[0127] It should be noted that the remaining free capacity of an interface on the UP device is equal to the remaining free capacity of the board on which that interface resides. Each interface on that board shares the remaining free resources on that board, therefore the remaining free capacity of each interface on that board is equal to the remaining free capacity of the board itself. For example, see... Figure 3 Interfaces 11 and 12 on UP device 1 are located on the same board. The remaining free capacity of both interface 11 and interface 12 is equal to the remaining free capacity of the board. Assuming the remaining free capacity of the board is 9K, that is, the remaining free capacity of both interface 11 and interface 12 is equal to 9K. Also assume that the remaining free capacity of interface 41 on UP device 4 is 8K.

[0128] At the end of the current cycle, UP device 2 sends an anomaly report to CP device 101. This anomaly report includes the identifier "S1" of warm backup group S1 and the identifier "S2" of warm backup group S2. CP device 101 receives this anomaly alarm information and, based on the identifier "S1" of warm backup group S1 and the device identifier "UP2" of UP device 2, retrieves the record containing the identifier "S1" of warm backup group S1 and the device identifier "UP2" of UP device 2 from the second correspondence shown in Table 2. The retrieved record is the second record with serial number 2 in Table 2. Based on the second record, 8K users online on interface 22 of UP device 2 are identified. Based on the identifier "S2" of warm backup group S2 and the device identifier "UP2" of UP device 2, the record containing the identifier "S2" of warm backup group S2 and the device identifier "UP2" of UP device 2 is retrieved from the second correspondence shown in Table 2. The obtained record is the fourth record with serial number 4 in Table 2. Based on the fourth record, 3K users are identified as being online on interface 22 of UP device 2.

[0129] CP device 101 first obtains the identification information of other members in warm backup group S2, excluding interface 22 of UP device 2, from the second correspondence shown in Table 2, based on the identification information "S2" of warm backup group S2. The identification information of these other members is "UP1, IF12" and "UP4, IF41". Based on the identification information "UP1, IF12" and "UP4, IF41", it is determined that the other members included in warm backup group S2 are interface 21 of UP device 1 and interface 41 of UP device 4. Based on the load balancing strategy, the 3K users online on interface 22 in UP device 2 are migrated to interface 12 in UP device 1 and interface 41 in UP device 4, that is, 1.5K users are migrated to interface 12 of UP device 1 and 1.5K users are migrated to interface 41 of UP device 4. After migrating the 3,000 users who came online on interface 22 in UP device 2, the remaining free capacity of interface 11 in UP device 1 is 7.5K, and the remaining free capacity of interface 41 in UP device 4 is 6.5K.

[0130] Then, CP device 101 first obtains the identification information of other members in warm backup group S1, excluding interface 21 of UP device 2, from the first correspondence shown in Table 2, based on the identification information "S1" of warm backup group S1. The identification information of these other members is "UP1, IF11". Based on the identification information "UP1, IF11", it is determined that the other members included in warm backup group S1 are interface 11 of UP device 1. Since the remaining free capacity of interface 11 of UP device 1 is 7.5K, for the 8K users online on interface 21 of UP device 2, only 7.5K users online on interface 21 of UP device 2 can be migrated to interface 11 of UP device 1. The remaining 0.5K users cannot be migrated and will be offline, resulting in service interruption for these 0.5K users.

[0131] In the examples listed above, the failure of warm backup groups S1 and S2 on UP device 2 is used as an example. Similarly, if UP device 2 fails, user disconnections will also occur when CP device 101 migrates users in the current manner. Currently, CP device 101 randomly determines the migration order of the six warm backup groups on UP device 2, or CP device 101 uses the configuration order of these six warm backup groups as the migration order. If the migration order of warm backup group S2 is earlier than the migration order of warm backup group S1, the aforementioned user disconnection phenomenon will occur.

[0132] Currently, when CP device 101 migrates users corresponding to the warm backup groups on UP device 2, it may cause some users corresponding to the warm backup groups on UP device 2 to go offline. In this embodiment, to solve this problem, CP device 101 determines the migration order of the warm backup groups on UP device 2 based on information such as the number of members in the warm backup groups on UP device 2 and / or the number of users corresponding to the warm backup groups on UP device 2. Migrating users corresponding to the warm backup groups on UP device 2 based on this migration order can effectively solve the problem. The detailed implementation process of CP device 101 migrating users will be described in detail in subsequent embodiments and will not be described in detail here.

[0133] See Figure 4 This application provides a user migration method 400, which is applied to... Figure 1 , Figure 2 or Figure 3 The vBNG system 100 shown includes a CP device, which includes a plurality of UP devices, including a first UP device. The method 400 includes the following steps.

[0134] Step 401: The CP device determines that the users corresponding to the first warm backup group and the second warm backup group on the first UP device are users to be migrated. The first warm backup group and the second warm backup group are warm backup groups in the vBNG system. The first UP device joins the first warm backup group and the second warm backup group.

[0135] The CP device can identify users to be migrated in two situations, namely the first situation and the second situation.

[0136] In the first scenario, all M warm backup groups in the first UP device fail simultaneously, where M is an integer greater than or equal to 2. These M warm backup groups are warm backup groups in the vBNG system, including the first warm backup group and the second warm backup group. The first UP device sends an anomaly report to the CP device, which includes the identification information of each of the M warm backup groups. Based on the identification information of each warm backup group, the CP device determines the user corresponding to each warm backup group on the first UP device as the user to be migrated.

[0137] The term "centralized failure of the M warm backup groups" refers to the failure of the M warm backup groups within a specified time period. For example, the first UP device periodically detects the faulty warm backup groups on the first UP device, the specified time period is the current period, and the M warm backup groups are the warm backup groups that the first UP device detects as having failed within the current period.

[0138] In some embodiments, the first UP device sends anomaly report information to the CP device through a status control interface. For example, the status control interface is a CUSP interface, and the first UP device sends anomaly report information to the CP device through the CUSP interface.

[0139] In some embodiments, the CP device stores a first mapping relationship, which stores the identification information of a warm backup group, the identification information of a member, and the identification information of the user corresponding to that warm backup group on that member. The member is a UP device, and the identification information of the member includes the device identifier of the UP device. After receiving an anomaly report, the CP device retrieves the user corresponding to the first warm backup group on the first UP device from the first mapping relationship based on the identification information of the first warm backup group and the device identifier of the first UP device. Similarly, based on the identification information of a second warm backup group and the device identifier of the first UP device, it retrieves the user corresponding to the second warm backup group on the first UP device from the first mapping relationship. This process determines the user corresponding to the first warm backup group and the user corresponding to the second warm backup group on the first UP device as the user to be migrated.

[0140] In some embodiments, the CP device stores a second mapping relationship, which stores the identification information of the warm backup group, the identification information of its members, and the identification information of users who have logged in on those members. The member is an interface within the UP device, and the identification information of the member includes the device identifier of the UP device and the interface identifier of the interface. After receiving an anomaly report, the CP device, based on the identification information of the first warm backup group and the device identifier of the first UP device, retrieves the users who have logged in on the interfaces within the first UP device from the second mapping relationship. The interface within the first UP device is a member of the first warm backup group, and the users who have logged in on that interface are the users corresponding to the first warm backup group on the first UP device. Similarly, based on the identification information of the second warm backup group and the device identifier of the first UP device, the CP device retrieves the users who have logged in on the interfaces within the first UP device from the second mapping relationship. The interface within the first UP device is a member of the second warm backup group, and the users who have logged in on that interface are the users corresponding to the second warm backup group on the first UP device. This process determines the users corresponding to the first and second warm backup groups on the first UP device as users to be migrated.

[0141] The identification information of the M warm backup groups in the anomaly report information received by the CP device may also include the identification information of other warm backup groups besides the first and second warm backup groups. The users corresponding to the first warm backup group on the first UP device are determined in the same way as those corresponding to the second warm backup group on the first UP device.

[0142] In the second scenario, if the first UP device malfunctions, the CP device can detect the malfunction and obtain the temperature backup groups on the first UP device. Assume the first UP device contains M temperature backup groups. The CP device determines that the users corresponding to these M temperature backup groups on the first UP device are the users to be migrated. These M temperature backup groups include the first temperature backup group and the second temperature backup group.

[0143] In some embodiments, the CP device stores a first correspondence. Based on the device identifier of the first UP device, the CP device obtains each warm backup group on the first UP device and the user corresponding to each warm backup group on the first UP device from the first correspondence, that is, it obtains M warm backup groups and the user corresponding to each of the M warm backup groups on the first UP device.

[0144] In some embodiments, the CP device stores a second correspondence. Based on the device identifier of the first UP device, the CP device obtains M interfaces in the first UP device and the users online on each of the M interfaces in the first UP device from the second correspondence. Each interface corresponds to a warm backup group, thus obtaining M warm backup groups, and the users corresponding to each of the M warm backup groups on the first UP device.

[0145] Step 402: Based on the fact that the number of members in the first warm backup group is less than or equal to the number of members in the second warm backup group, the CP device migrates the users corresponding to the first warm backup group on the first UP device to at least one other member of the first warm backup group. The at least one other member of the first warm backup group does not include the first UP device.

[0146] In step 402, the CP device obtains the migration order of each of the M warm backup groups based on the number of members in the M warm backup groups. The smaller the number of members in a warm backup group, the earlier the migration order of that warm backup group. Therefore, when the number of members in the first warm backup group is less than the number of members in the second warm backup group, the CP device first migrates the users corresponding to the first warm backup group on the first UP device to at least one other member of the first warm backup group.

[0147] In step 402, there may be multiple warm backup groups with the same number of members among the M warm backup groups. For each warm backup group among the multiple warm backup groups, the CP device obtains the migration order corresponding to each warm backup group based on the number of users corresponding to each warm backup group on the first UP device.

[0148] In some embodiments, the CP device selects the warm backup group with the largest number of users from among the plurality of warm backup groups as the target warm backup group, and selects the second UP device with the largest free capacity from the other members of the target warm backup group excluding the first UP device. If the number of users corresponding to the target warm backup group on the first UP device is greater than or equal to the free capacity of the second UP device, the CP device sorts each warm backup group on the first UP device in descending order of the number of users corresponding to each warm backup group, thus obtaining the migration order of each warm backup group. If the number of users corresponding to the target warm backup group on the first UP device is less than the free capacity of the second UP device, the CP device sorts each warm backup group on the first UP device in ascending order of the number of users corresponding to each warm backup group, thus obtaining the migration order of each warm backup group.

[0149] For example, suppose the multiple warm backup groups include a first warm backup group and a second warm backup group, meaning the number of members in the first warm backup group is equal to the number of members in the second warm backup group. The CP device can migrate users using methods one through three as follows.

[0150] Method 1: The number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device. The number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device. The second UP device is the member with the largest idle capacity among at least one other member in the first temperature backup group. The CP device determines that the migration order of the first temperature backup group is earlier than the migration order of the second temperature backup group. Therefore, the CP device first migrates the users corresponding to the first temperature backup group on the first UP device to at least one other member of the first temperature backup group.

[0151] In this scenario, the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device. Furthermore, the number of users corresponding to the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device. Since the second UP device has the largest idle capacity among at least one other member of the first temperature backup group, none of the other members of the first temperature backup group have sufficient idle capacity to accommodate the users corresponding to the first temperature backup group on the first UP device. If the users corresponding to the second temperature backup group on the first UP device are migrated first, and then the users corresponding to the first temperature backup group on the first UP device are migrated, some users corresponding to the first temperature backup group on the first UP device may experience disconnection. However, in step 402, when the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, the CP device migrates the users corresponding to the first temperature backup group on the first UP device first, and then migrates the users corresponding to the second temperature backup group on the first UP device. This ensures successful migration of the users corresponding to the first temperature backup group and the second temperature backup group on the first UP device, preventing user disconnection and service interruption.

[0152] Method 2: The number of users corresponding to the first temperature backup group on the first UP device is less than the number of users corresponding to the second temperature backup group on the first UP device, and the number of users corresponding to the second temperature backup group on the first UP device is less than the idle capacity of the second UP device. The second UP device is the member with the largest idle capacity among at least one other member in the second temperature backup group. The CP device determines that the migration order of the first temperature backup group is earlier than the migration order of the second temperature backup group. Therefore, the CP device first migrates the users corresponding to the first temperature backup group on the first UP device to at least one other member of the first temperature backup group.

[0153] Method 3: Based on the fact that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, the CP device first migrates the users corresponding to the first temperature backup group on the first UP device to at least one other member in the first temperature backup group, and then migrates the users corresponding to the second temperature backup group on the first UP device to at least one other member in the second temperature backup group.

[0154] After the CP device migrates the user corresponding to the first warm backup group on the first UP device to at least one other member of the first warm backup group, the CP device also performs the following step 403.

[0155] Step 403: The CP device migrates the user corresponding to the second temperature backup group on the first UP device to at least one other member in the second temperature backup group, where the first UP device is not included in the at least one other member in the second temperature backup group.

[0156] In some embodiments, for M warm backup groups on the first UP device, the CP device migrates the users corresponding to the M warm backup groups on the first UP device to at least one other member within the M warm backup groups based on the migration order among the M warm backup groups. The at least one other member within the M warm backup groups does not include the first UP device.

[0157] In this embodiment, since the number of members corresponding to the first temperature backup group is less than the number of members corresponding to the second temperature backup group, if users corresponding to the second temperature backup group on the first UP device are migrated to at least one other member of the second temperature backup group first, it may result in insufficient free capacity in the other at least one member of the first temperature backup group to accommodate the users corresponding to the first temperature backup group on the first UP device. Therefore, when the number of members corresponding to the first temperature backup group is less than the number of members corresponding to the second temperature backup group, the CP device first migrates the users corresponding to the first temperature backup group on the first UP device to at least one other member of the first temperature backup group, which can successfully migrate the users corresponding to the first temperature backup group on the first UP device. Since the number of members corresponding to the second temperature backup group is greater than the number of members corresponding to the first temperature backup group, after migrating the users corresponding to the first temperature backup group on the first UP device, at least one other member of the second temperature backup group may still have sufficient free capacity to accommodate the users corresponding to the second temperature backup group on the first UP device, thereby enabling successful migration of the users corresponding to the second temperature backup group on the first UP device. This can minimize user disconnection, prevent service interruption, and ensure a more even distribution of users across UP devices.

[0158] for Figure 4 The method 400 shown in this application embodiment provides a user migration method 500, see method 400. Figure 5Method 500 is an example of method 400. Method 500 is applied to... Figure 1 , Figure 2 or Figure 3 The vBNG system 100 shown includes a CP device, which includes a plurality of UP devices, including a first UP device. The method 500 includes the following steps.

[0159] Step 501: The CP device determines the M warm backup groups on the first UP device and determines the users corresponding to the M warm backup groups on the first UP device as users to be migrated, where M is an integer greater than or equal to 2.

[0160] In some embodiments, the CP device implements step 501 in the following first and second cases. Wherein, the first and second cases are respectively related to the above-described... Figure 4 The first and second cases described in step 401 of method 400 are the same. The first and second cases will be explained in detail below.

[0161] In the first scenario, the CP device receives an anomaly alarm message from the first UP device. This alarm message includes the identification information of M warm backup groups, specifically the identification information of the warm backup groups that have experienced a centralized failure on the first UP device. The M warm backup groups that have experienced a centralized failure on the first UP device are included in this alarm message. Based on the identification information of these M warm backup groups, the CP device determines the user corresponding to each of the M warm backup groups on the first UP device.

[0162] For ease of explanation, any one of the M warm backup groups will be referred to as the first warm backup group. The following lists the methods the CP device uses to determine the user corresponding to the first warm backup group on the first UP device, specifically the first and second methods. Of course, the CP device may also use other methods to determine the user corresponding to the first warm backup group on the first UP device, which will not be listed here.

[0163] In the first method, the CP device includes a first correspondence relationship, where each member of the M warm backup groups is a UP device. Based on the identification information of the first warm backup group and the device identification of the first UP device, the CP device obtains the identification information of the user corresponding to the first warm backup group on the first UP device from the first correspondence relationship, and determines the user corresponding to the first warm backup group on the first UP device based on the identification information of the user corresponding to the first warm backup group on the first UP device.

[0164] For example, see Figure 2Suppose that UP device 2 detects faults in warm backup groups S1, S2, and S3 during the current cycle, meaning that a concentrated fault has occurred in warm backup groups S1, S2, and S3. UP device 2 sends an anomaly report to CP device, which includes the identifier "S1" for warm backup group S1, the identifier "S2" for warm backup group S2, and the identifier "S3" for warm backup group S3.

[0165] The CP device stores the first correspondence as shown in Table 1. Based on the identification information "S1" of the warm backup group S1 and the device identifier "UP2" of the UP device 2, the CP device obtains the identification information of 8K users corresponding to the warm backup group S1 on the UP device 2 from the first correspondence shown in Table 1. Based on the identification information of these 8K users, the CP device determines the 8K users corresponding to the warm backup group S1 on the UP device 2.

[0166] The CP device retrieves the identification information of 3K users corresponding to the warm backup group S2 on UP device 2 from the first correspondence shown in Table 1, based on the identification information "S2" of the warm backup group S2 and the device identifier "UP2" of UP device 2. Based on the identification information of these 3K users, the 3K users corresponding to the warm backup group S2 on UP device 2 are determined.

[0167] Furthermore, the CP device, based on the identification information "S3" of the warm backup group S3 and the device identifier "UP2" of the UP device 2, obtains the identification information of 2K users corresponding to the warm backup group S3 on the UP device 2 from the first correspondence shown in Table 1. Based on the identification information of these 2K users, the 2K users corresponding to the warm backup group S3 on the UP device 2 are determined.

[0168] In some embodiments, the anomaly report information may include identification information of Z warm backup groups, where Z is an integer greater than or equal to M, and the M warm backup groups are warm backup groups among the Z warm backup groups that satisfy a first specified relationship.

[0169] In some embodiments, the CP device selects M warm backup groups from the Z warm backup groups as follows: The CP device obtains the identification information of each member in the first warm backup group from a first correspondence based on the identification information of the first warm backup group, and obtains the identification information of each member in the second warm backup group from the first correspondence based on the identification information of the second warm backup group. Each member in the first warm backup group and each member in the second warm backup group are UP devices, and the identification information of the members includes the device identifier of the UP device. The first and second warm backup groups are any two different warm backup groups among the Z warm backup groups. Based on the device identifiers of other UP devices in the first warm backup group (excluding the first UP device) and other UP devices in the second warm backup group (excluding the first UP device), the CP device determines whether there are identical UP devices between the other UP devices in the first warm backup group (excluding the first UP device) and the other UP devices in the second warm backup group (excluding the first UP device). If identical UP devices are determined to exist, the CP device concludes that the first and second warm backup groups satisfy a first specified relationship and selects the first and second warm backup groups.

[0170] For any other warm backup group not selected from the Z warm backup groups, the CP device determines whether the other warm backup group satisfies the first specified relationship with any selected warm backup group, as described above. If the other warm backup group satisfies the first specified relationship with any selected warm backup group, then the other warm backup group is selected. The CP device repeats the above operation to select M warm backup groups from the Z warm backup groups.

[0171] Since the first temperature backup group and the second temperature backup group satisfy the first designated relationship, the CP device may migrate some users corresponding to the first temperature backup group on the first UP device and some users corresponding to the second temperature backup group on the first UP device to the same UP device. Therefore, the CP device needs to control the migration order between the first temperature backup group and the second temperature backup group to avoid the problem of some users dropping out and uneven user distribution due to insufficient free capacity of the UP device when migrating users.

[0172] In some embodiments, for unselected ZM warm backup groups, the CP device may use the failure order among the ZM warm backup groups as the migration order of the ZM warm backup groups, or the CP device may randomly determine the migration order of the ZM warm backup groups. This simplifies the computational complexity of obtaining the migration order of the ZM warm backup groups and reduces the consumption of computing resources.

[0173] For example, see Figure 2The CP device receives an anomaly report from the UP device 2. This anomaly report includes the identification information "S1" of warm backup group S1, the identification information "S2" of warm backup group S2, and the identification information "S3" of warm backup group S3. Based on the identification information "S1" of warm backup group S1, the CP device obtains the device identifier "UP1" of UP device 1 and the device identifier "UP2" of UP device 2 in warm backup group S1 from the first correspondence shown in Table 1. Based on the identification information "S2" of warm backup group S2, the CP device obtains the device identifier "UP1" of UP device 1, the device identifier "UP2" of UP device 2, and the device identifier "UP4" of UP device 4 in warm backup group S2 from the first correspondence shown in Table 1. The CP device determines, based on the device identifier "UP1" of UP device 1 (excluding UP device 2) in warm backup group S1, and the device identifiers "UP1" and "UP4" of UP device 1 and UP device 4 (excluding UP device 2) in warm backup group S2, that there is a common UP device 1 among the other UP devices (excluding UP device 2) in warm backup group S1 and warm backup group S2. Therefore, the CP device selects warm backup group S1 and warm backup group S2, and warm backup group S1 and warm backup group S2 satisfy the first specified relationship. Following the same method, the CP device determines that warm backup group S3 satisfies the first specified relationship with the selected warm backup group S1, and also satisfies the first specified relationship with the selected warm backup group S2, and therefore also selects warm backup group S3.

[0174] In the second method, the CP device includes a second correspondence relationship. Each member of the M warm backup groups is an interface within the UP device. The member's identification information includes the UP device's device identifier and the interface identifier of the interface corresponding to the warm backup group on that UP device. Based on the identification information of the first warm backup group and the device identifier of the first UP device, the CP device obtains the interface corresponding to the first warm backup group within the first UP device and the identification information of the user online on that interface from the second correspondence relationship. Based on the identification information of the user online on that interface, the CP device determines that the user online on that interface is the user corresponding to the first warm backup group on the first UP device.

[0175] For example, see Figure 3 Suppose that UP device 2 detects faults in warm backup groups S1, S2, and S3 during the current cycle, meaning that a concentrated fault has occurred in warm backup groups S1, S2, and S3. UP device 2 sends an anomaly report to CP device, which includes the identifier "S1" for warm backup group S1, the identifier "S2" for warm backup group S2, and the identifier "S3" for warm backup group S3.

[0176] The CP device stores the second correspondence as shown in Table 2. Based on the identification information "S1" of the warm backup group S1 and the device identifier "UP2" of the UP device 2, the CP device obtains the interface 21 corresponding to the warm backup group S1 on the UP device 2 and the identification information of the 8K users online on interface 21 from the second correspondence shown in Table 2. Based on the identification information of the 8K users, the CP device determines the 8K users corresponding to the warm backup group S1 on the UP device 2.

[0177] The CP device, based on the identification information "S2" of the warm backup group S2 and the device identifier "UP2" of the UP device 2, obtains the interface 22 corresponding to the warm backup group S2 on the UP device 2 and the identification information of the 3K users online on interface 22 from the second correspondence shown in Table 2. Based on the identification information of the 3K users, the 3K users corresponding to the warm backup group S2 on the UP device 2 are determined.

[0178] Furthermore, based on the identification information "S3" of the warm backup group S3 and the device identifier "UP2" of the UP device 2, the CP device obtains the interface 23 corresponding to the warm backup group S3 on the UP device 2 and the identification information of the 2K users online on interface 23 from the second correspondence shown in Table 2. Based on the identification information of the 2K users, the 2K users corresponding to the warm backup group S3 on the UP device 2 are determined.

[0179] In some embodiments, the anomaly report information may include identification information of Z warm backup groups, where Z is an integer greater than or equal to M, and the M warm backup groups are warm backup groups among the Z warm backup groups that satisfy the second specified relationship.

[0180] In some embodiments, the CP device selects M warm backup groups from the Z warm backup groups as follows: The CP device obtains the identification information of each member in the first warm backup group from a second correspondence based on the identification information of the first warm backup group, and obtains the identification information of each member in the second warm backup group from the second correspondence based on the identification information of the second warm backup group. Each member in the warm backup group is an interface within the UP device, and the identification information of the member includes the device identifier of the UP device and the interface identifier of the interface on the UP device corresponding to the warm backup group. The first warm backup group and the second warm backup group are any two different warm backup groups among the Z warm backup groups.

[0181] For each member in the first temperature backup group (excluding the interface within the first UP device) and each member in the second temperature backup group (excluding the interface within the first UP device), the CP device determines, based on the identification information of the other members in the first and second temperature backup groups, whether there are two members located on the same board within the same UP device, and these two members are two interfaces. If there are two members on the same board within the same UP device, the CP device determines that the first and second temperature backup groups satisfy the second specified relationship and selects the first and second temperature backup groups.

[0182] For any other warm backup group not selected from the Z warm backup groups, the CP device determines whether the other warm backup group satisfies the second specified relationship with any selected warm backup group, as described above. If the other warm backup group satisfies the second specified relationship with any selected warm backup group, then the other warm backup group is selected. The CP device repeats the above operation to select M warm backup groups from the Z warm backup groups.

[0183] Because the first and second temperature backup groups satisfy the second specified relationship, the CP device may migrate some users corresponding to the first temperature backup group and some users corresponding to the second temperature backup group on the first UP device to two interfaces on the same board within the same UP device. Since these two interfaces share the remaining idle resources of the board, the CP device needs to control the migration order between the first and second temperature backup groups to minimize the risk of user disconnection and uneven user distribution due to insufficient idle capacity on the board of the UP device during user migration.

[0184] In some embodiments, for unselected ZM warm backup groups, the CP device may use the failure order among the ZM warm backup groups as the migration order of the ZM warm backup groups, or the CP device may randomly determine the migration order of the ZM warm backup groups. This simplifies the computational complexity of determining the migration order of the ZM warm backup groups and reduces the consumption of computing resources.

[0185] For example, see Figure 3The CP device receives an anomaly report from the UP device 2. This anomaly report includes the identifiers "S1" for warm backup group S1, "S2" for warm backup group S2, and "S3" for warm backup group S3. Based on the identifier "S1" for warm backup group S1, the CP device retrieves the identifiers of two members in warm backup group S1 from the second correspondence shown in Table 2. These two members are member S11 and member S12. The identifier of member S11 is "UP1, IF11", meaning that the identifier of member S11 includes the device identifier "UP1" of UP device 1 and the interface identifier "IF11" of interface 11. The identifier of member S12 is "UP2, IF21", meaning that the identifier of member S12 includes the device identifier "UP2" of UP device 2 and the interface identifier "IF21" of interface 21. Based on the identification information "S2" of the warm backup group S2, the identification information of three members in the warm backup group S2 is obtained from the second correspondence shown in Table 2. These three members are member S21, member S22, and member S23. The identification information of member S21 is "UP1, IF12", that is, the identification information of member S21 includes the device identifier "UP1" of UP device 1 and the interface identifier "IF12" of interface 12. The identification information of member S22 is "UP2, IF2", that is, the identification information of member S22 includes the device identifier "UP2" of UP device 2 and the interface identifier "IF22" of interface 22. The identification information of member S23 is "UP4, IF41", that is, the identification information of member S23 includes the device identifier "UP4" of UP device 4 and the interface identifier "IF41" of interface 41.

[0186] In warm backup group S1, the members other than interface 21 in UP device 2 include member S11 (interface 11 of UP device 1). In warm backup group S2, the members other than interface 22 in UP device 2 include member S21 (interface 12 of UP device 2) and member S23 (interface 41 of UP device 4). Based on the identification information "UP1, IF11" of other members in warm backup group S1, and the identification information "UP1, IF12" and "UP4, IF41" of other members in warm backup group S2, the CP device determines that member S11 in warm backup group S1 and member S21 in warm backup group S2 are located on the same board of UP device 1. Therefore, the CP device selects warm backup group S1 and warm backup group S2, and warm backup group S1 and warm backup group S2 satisfy the above-mentioned second designation relationship.

[0187] In the second scenario, the CP device detects a fault in the first UP device and retrieves the warm backup groups on the first UP device based on its device identifier, resulting in M ​​warm backup groups. The CP device then identifies the users corresponding to these M warm backup groups on the first UP device.

[0188] In some embodiments, the CP device stores a first mapping relationship, and the members of the warm backup group are UP devices. Based on the device identifier of the first UP device, the CP device obtains the identifier information of the warm backup group on the first UP device and the identifier information of the user corresponding to the warm backup group on the first UP device from the first mapping relationship. Based on the identifier information of the user corresponding to the warm backup group on the first UP device, the CP device determines the user to be migrated corresponding to the warm backup group on the first UP device.

[0189] For example, see Figure 2 Assuming that the CP device senses a fault in the UP device 2, the CP device stores the first correspondence as shown in Table 1. Based on the device identifier "UP2" of UP device 2, the CP device obtains the identifier information "S1" of warm backup group S1 on UP device 2 and the identifier information of 8K users corresponding to warm backup group S1 on UP device 2, the identifier information "S2" of warm backup group S2 on UP device 2 and the identifier information of 3K users corresponding to warm backup group S2 on UP device 2, the identifier information "S3" of warm backup group S3 on UP device 2 and the identifier information of 2K users corresponding to warm backup group S3 on UP device 2, the identifier information "S4" of warm backup group S4 on UP device 2 and the identifier information of 1K users corresponding to warm backup group S4 on UP device 2, the identifier information "S5" of warm backup group S5 on UP device 2 and the identifier information of 2K users corresponding to warm backup group S5 on UP device 2, and the identifier information "S1" of warm backup group S6 on UP device 2 and the identifier information of 9K users corresponding to warm backup group S6 on UP device 2 from the first correspondence shown in Table 1.

[0190] In some embodiments, the CP device stores a second mapping relationship, where the members of the warm backup group are interfaces within the UP device. Based on the device identifier of the first UP device, the CP device obtains the identifier information of the warm backup group on the first UP device and the identifier information of the users online on the interface corresponding to that warm backup group on the first UP device from the second mapping relationship. Based on the identifier information of the users online on that interface, the CP device determines the user corresponding to that warm backup group on the first UP device.

[0191] For example, see Figure 3Assuming the CP device detects a fault in UP device 2, the CP device maintains the second correspondence shown in Table 2. Based on the device identifier "UP2" of UP device 2, the CP device retrieves the identifier information "S1" of the warm backup group S1 on UP device 2 and the identifier information of 8K users online on interface 21 corresponding to the warm backup group S1 on UP device 2, the identifier information "S2" of the warm backup group S2 on UP device 2 and the identifier information of 3K users online on interface 22 corresponding to the warm backup group S2 on UP device 2, and the identifier information "S3" of the warm backup group S3 on UP device 2 and the identifier information of the interface 22 corresponding to the warm backup group S3 on UP device 2. The identification information of 2,000 users online on port 23, the identification information "S4" of warm backup group S4 on UP device 2 and the identification information of 1,000 users online on interface 24 corresponding to warm backup group S4 on UP device 2, the identification information "S5" of warm backup group S5 on UP device 2 and the identification information of 2,000 users online on interface 25 corresponding to warm backup group S5 on UP device 2, and the identification information "S6" of warm backup group S6 on UP device 2 and the identification information of 9,000 users online on interface 26 corresponding to warm backup group S6 on UP device 2.

[0192] In some embodiments, the first UP device has Z warm backup groups, and the CP device selects M warm backup groups from the Z warm backup groups. For details of the selection process, please refer to the selection process described in the first case above, and it will not be described in detail here.

[0193] Step 502: The CP device obtains the migration order of each warm backup group based on the number of members in each of the M warm backup groups.

[0194] In step 502, the CP device obtains the migration order of each warm backup group through the following operations 5021-5025, which are respectively.

[0195] 5021: For the M warm backup groups, the CP device will group warm backup groups with an equal number of members into a warm backup group set.

[0196] Each warm backup group in the same warm backup group set has the same number of members. For ease of explanation, for any two warm backup group sets, we will refer to them as the first warm backup group set and the second warm backup group set, respectively. The first warm backup group set includes N warm backup groups, and the second warm backup group set includes Q warm backup groups. Each warm backup group in the first warm backup group set has X members, and each warm backup group in the second warm backup group set has Y members. X and Y are not equal, N and Q are both integers greater than or equal to 1, and X and Y are both integers greater than 1.

[0197] For example, suppose there are M warm backup groups, including warm backup groups S1, S2, S3, S4, S5, and S6 on UP device 2. Warm backup group S1 has 2 members, warm backup groups S2 and S3 each have 3 members, and warm backup groups S4, S5, and S6 each have 4 members. Therefore, the six warm backup groups on UP device 2 can be divided into three warm backup group sets: warm backup group set 1, warm backup group set 2, and warm backup group set 3. Warm backup group set 1 includes warm backup group S1, warm backup group set 2 includes warm backup groups S2 and S3, and warm backup group set 3 includes warm backup groups S4, S5, and S6.

[0198] 5022: When X is less than Y, the CP device determines that the migration order of the M warm backup groups in the first warm backup group set is earlier than the migration order of the Q warm backup groups in the second warm backup group set.

[0199] For warm backup groups in the first warm backup group set with fewer members, the CP device can prioritize migrating users corresponding to each warm backup group in the first warm backup group set on the first UP device. For warm backup groups in the second warm backup group set with more members, the CP device can migrate users corresponding to each warm backup group in the second warm backup group set on the first UP device later. Since the number of members in each warm backup group in the first warm backup group set is smaller, migrating users in the first warm backup group set on the first UP device first can maximize the success rate of user migration. Since the number of members in each warm backup group in the second warm backup group set on the first UP device is larger, migrating users in the second warm backup group set on the first UP device can be completed simultaneously. This avoids user disconnections and fully utilizes the resources on the UP device.

[0200] The migration order among the N warm backup groups in the first warm backup group set, and the migration order among the Q warm backup groups in the second warm backup group set, can be obtained through the following 5023 operation.

[0201] For example, warm backup group S1 in warm backup group set 1 has 2 members; warm backup group S2 and warm backup group S3 in warm backup group set 2 both have 3 members; and warm backup group S4, warm backup group S5, and warm backup group S6 in warm backup group set 3 all have 4 members. Therefore, the migration order of warm backup group S1 in warm backup group set 1 is earlier than the migration order of warm backup group S2 and warm backup group S3 in warm backup group set 2. The migration order of warm backup group S2 and warm backup group S3 in warm backup group set 2 is earlier than the migration order of warm backup group S4, warm backup group S5, and warm backup group S6 in warm backup group set 3. In other words, warm backup group S1 has the earliest migration order.

[0202] Next, follow these steps to obtain the migration order between warm backup groups S2 and S3 in warm backup group set 2, and the migration order between warm backup groups S4, S5 and S6 in warm backup group set 3.

[0203] 5023: For N warm backup groups in the first warm backup group set, the CP device selects a target warm backup group from these N warm backup groups. Among these N warm backup groups, the target warm backup group on the first UP device has the largest number of users.

[0204] For example, for warm backup groups S2 and S3 in the warm backup group set 2 above, warm backup group S2 on UP device 2 corresponds to 3K users, and warm backup group S3 on UP device 2 corresponds to 2K users. Therefore, warm backup group S2 on UP device 2 corresponds to the largest number of users, and CP device selects warm backup group S2 as the target warm backup group.

[0205] For example, regarding warm backup groups S4, S5, and S6 in the warm backup group set 3 mentioned above, warm backup group S4 on UP device 2 corresponds to 1K users, warm backup group S5 on UP device 2 corresponds to 2K users, and warm backup group S6 on UP device 2 corresponds to 9K users. Therefore, warm backup group S6 on UP device 2 corresponds to the largest number of users, and CP device selects warm backup group S6 as the target warm backup group.

[0206] 5024: The CP device obtains the free capacity of the second UP device, which is the member with the largest free capacity among the other members in the target temperature backup besides the first UP device.

[0207] In some embodiments, the members of the target temperature backup group are UP devices. The CP device may record the remaining free capacity of each UP device in the target temperature backup group, or the CP device may query the remaining free capacity of each of the other UP devices in the target temperature backup group (excluding the first UP device). Based on the free capacity of each of the other UP devices, the CP device selects the UP device with the largest free capacity as the second UP device.

[0208] For example, see Figure 6 For the selected target temperature backup group S2, the other members in the target temperature backup group S2 besides UP device 2 include UP device 1 and UP device 4. UP device 1 has 9K of remaining free capacity, and UP device 4 has 8K of remaining free capacity. Therefore, the CP device selects UP device 1, which has the largest free capacity, as the second UP device.

[0209] For example, for the selected target temperature backup group S6, the other members in the target temperature backup group S6 besides UP device 2 include UP device 1, UP device 3, and UP device 4. UP device 1 has 9K of remaining free capacity, UP device 3 has 8K of remaining free capacity, and UP device 4 has 8K of remaining free capacity. Therefore, the CP device selects UP device 1, which has the largest free capacity, as the second UP device.

[0210] In some embodiments, the members of the target temperature backup group are interfaces within the UP devices, and the free capacity of the second UP device includes the free capacity of the interface corresponding to the target temperature backup group on the second UP device. For each UP device in the target temperature backup group other than the first UP device, the CP device may record the remaining free capacity of the interface corresponding to the target temperature backup group on each of the other UP devices, or the CP device may query the remaining free capacity of the interface corresponding to the target temperature backup group on each of the other UP devices. The CP device selects the UP device with the largest free capacity of the interface corresponding to the target temperature backup group as the second UP device.

[0211] For example, see Figure 7 For the selected target temperature backup group S2, the other UP devices in the target temperature backup group S2 besides UP device 2 include UP device 1 and UP device 4. The remaining free capacity of interface 12 corresponding to the target temperature backup group S2 on UP device 1 is 9K, and the remaining free capacity of interface 41 corresponding to the target temperature backup group S2 on UP device 4 is 8K. Therefore, the CP device selects UP device 1, which has the largest free capacity of the interface, as the second UP device.

[0212] For example, for the selected target temperature backup group S6, the other members of the target temperature backup group S6, excluding interface 26 of UP device 2, include interface 16 of UP device 1, interface 34 of UP device 3, and interface 44 of UP device 4. The remaining free capacity of interface 16 corresponding to target temperature backup group S6 on UP device 1 is 9K, the remaining free capacity of interface 34 corresponding to target temperature backup group S6 on UP device 3 is 8K, and the remaining free capacity of interface 44 corresponding to target temperature backup group S6 on UP device 4 is 8K. Therefore, the CP device selects UP device 1, which has the largest free capacity of its interface, as the second UP device.

[0213] 5025: The CP device obtains the migration order between the N-temperature backup groups based on the number of users corresponding to the target temperature backup group on the first UP device and the idle capacity of the second UP device.

[0214] In some embodiments, in 5025, when the number of users corresponding to the target warm backup group on the first UP device is greater than or equal to the idle capacity of the second UP device, the CP device sorts the N warm backup groups in descending order of the number of users corresponding to each warm backup group on the first UP device to obtain the migration order between the warm backup groups.

[0215] In this scenario, when the number of users corresponding to the target warm backup group on the first UP device is greater than or equal to the idle capacity of the second UP device, the larger the number of users corresponding to a certain warm backup group on the first UP device (for example, the warm backup group with the largest number of users on the first UP device has more users than other warm backup groups on the first UP device), the more users will be. If users corresponding to the warm backup group on the first UP device are not migrated first, but instead users corresponding to other warm backup groups on the first UP device are migrated first, other members of that warm backup group besides the first UP device may not have enough spare capacity to accommodate the users corresponding to that warm backup group on the first UP device, resulting in user disconnection. However, in this embodiment, prioritizing the migration of users corresponding to the warm backup group on the first UP device can minimize user disconnection.

[0216] For example, see Figure 6For warm backup groups S4, S5, and S6 in the aforementioned warm backup group set 3, the number of users to be migrated corresponding to the target warm backup group S6 on UP device 2 is 9K, which is equal to the idle capacity of UP device 1, which is 9K. Therefore, CP device sorts the warm backup groups S4, S5, and S6 according to the number of users corresponding to warm backup group S4 (1K), warm backup group S5 (2K), and warm backup group S6 (9K) on UP device 2. The migration order of warm backup group S6 is earlier than that of warm backup group S5, and the migration order of warm backup group S5 is earlier than that of warm backup group S4.

[0217] In some embodiments, in 5025, when the number of users corresponding to the target warm backup group on the first UP device is less than the idle capacity of the second UP device, the CP device sorts the N warm backup groups in ascending order of the number of users corresponding to each warm backup group on the first UP device to obtain the migration order between the warm backup groups.

[0218] For example, see Figure 6 For warm backup groups S2 and S3 in the aforementioned warm backup group set 2, the number of users to be migrated corresponding to the target warm backup group S2 on UP device 2 (3K) is less than the idle capacity of UP device 1 (9K). Therefore, the CP device sorts the warm backup groups S2 and S3 according to the number of users corresponding to warm backup group S2 (3K) and warm backup group S3 (2K) on UP device 2, resulting in the migration order of warm backup group S3 being earlier than that of warm backup group S2. Therefore, the migration order of warm backup group S1 is earlier than that of warm backup group S3, the migration order of warm backup group S3 is earlier than that of warm backup group S2, the migration order of warm backup group S2 is earlier than that of warm backup group S6, the migration order of warm backup group S6 is earlier than that of warm backup group S5, and the migration order of warm backup group S5 is earlier than that of warm backup group S4. Figure 7 In the example shown, the migration order of the six warm backup groups obtained by the same method as above is S1, S3, S2, S6, S5, S4.

[0219] Step 503: Based on the migration order of each warm backup group, the CP device migrates the users corresponding to each warm backup group on the first UP device to at least one other member of each warm backup group, wherein the at least one other member of each warm backup group does not include the first UP device.

[0220] For example, see Figure 6The members of the warm backup group are UP devices. The users on UP device 2 are migrated according to the following operations (1)-(6). (1): The CP device migrates 8K users corresponding to the warm backup group S1 on UP device 2 to UP device 1 of the warm backup group S1. After the migration of the 8K users, the remaining free capacity of UP device 1 is 1K. (2): The CP device migrates 1K users corresponding to the warm backup group S3 on UP device 2 to UP device 1 of the warm backup group S1, and migrates the remaining 1K users corresponding to the warm backup group S3 on UP device 2 to UP device 3 of the warm backup group S3. After the migration of the 2K users corresponding to the warm backup group S3 on UP device 2, the remaining free capacity of UP device 1 is 0, and the remaining free capacity of UP device 3 is 7K. (3): The CP device migrates 3,000 users corresponding to warm backup group S2 on UP device 2 to UP device 4 of warm backup group S4. After migrating the 3,000 users corresponding to warm backup group S2 on UP device 2, UP device 4 has 5,000 free capacity remaining. (4): The CP device migrates 4,000 users corresponding to warm backup group S6 on UP device 2 to UP device 3 of warm backup group S6, and migrates the remaining 5,000 users corresponding to warm backup group S6 on UP device 2 to UP device 4 of warm backup group S6. After migrating the 9,000 users corresponding to warm backup group S6 on UP device 2, UP device 3 has 3,000 free capacity remaining, and UP device 4 has 0,000 free capacity remaining. (5): The CP device migrates 2,000 users corresponding to warm backup group S5 on UP device 2 to UP device 3 of warm backup group S5. After migrating the 2,000 users corresponding to warm backup group S5 on UP device 2, UP device 3 has 1,000 free capacity remaining. (6): The CP device will migrate the 1K users corresponding to the warm backup group S4 on the UP device 2 to the UP device 3 of the warm backup group S4.

[0221] For example, see Figure 7 The members of the warm backup group are the interfaces within the UP device. Users on UP device 2 are migrated according to the following operations (A)-(E). Operation (A): The CP device migrates the 8K users online on interface 21 corresponding to the warm backup group S1 on UP device 2 to interface 11 of UP device 1 in the warm backup group S1. Interface 11 and interface 12 share the resources of the same board on UP device 1. Therefore, after migrating the 8K users online on interface 21 corresponding to the warm backup group S1 on UP device 2, the remaining free capacity of interface 12 is 1K.

[0222] Operation (B): For the 2,000 users online on interface 23 of the warm backup group S3 on UP device 2, the other members of the warm backup group S3 besides interface 23 in UP device 2 include interface 13 in UP device 1 and interface 31 in UP device 3. Based on the load balancing strategy, 1,000 users online on interface 23 are migrated to interface 13 in UP device 1, and the remaining 1,000 users online on interface 23 are migrated to interface 31 in UP device 3. After migrating the 2,000 users online on interface 23, the remaining free capacity of interface 13 in UP device 1 decreases by 1,000, and the remaining free capacity of interface 31 in UP device 3 decreases by 1,000.

[0223] See Figure 8 Operation (C): For the 3K users online on interface 22 corresponding to the warm backup group S2 on UP device 2, the other members of the warm backup group S2 besides interface 22 in UP device 2 include interface 12 in UP device 1 and interface 41 in UP device 4. Interface 12 has 1K of remaining free capacity. Therefore, the CP device migrates the 1K users online on interface 22 to interface 12 in UP device 1, and migrates the remaining 2K users online on interface 22 to interface 41 in UP device 4. After migrating the 3K users online on interface 22, the remaining free capacity of interface 12 in UP device 1 is 0, and the remaining free capacity of interface 41 in UP device 4 decreases by 2K.

[0224] See Figure 9 Operation (D): For the 9,000 users online on interface 26 corresponding to the warm backup group S6 on UP device 2, the other members of the warm backup group S6 besides interface 26 in UP device 2 include interface 16 in UP device 1, interface 34 in UP device 3, and interface 44 in UP device 4. Based on the load balancing strategy, the 9,000 users online on interface 26 are migrated to interface 16 of UP device 1, interface 34 of UP device 3, and interface 44 of UP device 4. Specifically, 3,000 users are migrated to interface 13 of UP device 1, 3,000 users are migrated to interface 34 of UP device 3, and 3,000 users are migrated to interface 44 of UP device 4. After the migration of the 9,000 users online on interface 26, the remaining free capacity of interface 16 of UP device 1 decreases by 3,000, the remaining free capacity of interface 34 of UP device 3 decreases by 3,000, and the remaining free capacity of interface 44 of UP device 4 decreases by 3,000.

[0225] See Figure 10Operation (E): For the 2,000 users online on interface 25 of the warm backup group S5 on UP device 2, the other members of the warm backup group S5 besides interface 25 in UP device 2 include interface 15 in UP device 1, interface 33 in UP device 3, and interface 43 in UP device 4. Based on the load balancing strategy, the 2,000 users online on interface 25 are migrated to interface 15 of UP device 1, interface 33 of UP device 3, and interface 43 of UP device 4. Specifically, 0.6K users are migrated to interface 15 of UP device 1, 0.6K users are migrated to interface 33 of UP device 3, and 0.8K users are migrated to interface 43 of UP device 4. After migrating the 2,000 users online on interface 25, the remaining free capacity of interface 15 of UP device 1 decreases by 0.6K, the remaining free capacity of interface 33 of UP device 3 decreases by 0.6K, and the remaining free capacity of interface 43 of UP device 4 decreases by 0.8K.

[0226] See Figure 11 Operation (F): For the 1,000 users online on interface 24 corresponding to the warm backup group S4 on UP device 2, the other members of the warm backup group S4 besides interface 24 in UP device 2 include interface 14 in UP device 1, interface 32 in UP device 3, and interface 42 in UP device 4. Based on the load balancing strategy, the 1,000 users online on interface 24 are migrated to interface 14 of UP device 1, interface 32 of UP device 3, and interface 42 of UP device 4. Specifically, 0.3,000 users are migrated to interface 14 of UP device 1, 0.3,000 users are migrated to interface 32 of UP device 3, and 0.4,000 users are migrated to interface 42 of UP device 4. After the 1,000 users online on interface 24 are migrated, the remaining free capacity of interface 14 of UP device 1 decreases by 0.3, the remaining free capacity of interface 32 of UP device 3 decreases by 0.3, and the remaining free capacity of interface 42 of UP device 4 decreases by 0.4,000.

[0227] In this embodiment, since the number of members corresponding to the first temperature backup group is less than the number of members corresponding to the second temperature backup group, if users corresponding to the second temperature backup group on the first UP device are migrated to at least one other member of the second temperature backup group first, it may result in insufficient free capacity in the other at least one member of the first temperature backup group to accommodate the users corresponding to the first temperature backup group on the first UP device. Therefore, when the number of members corresponding to the first temperature backup group is less than the number of members corresponding to the second temperature backup group, the CP device first migrates the users corresponding to the first temperature backup group on the first UP device to at least one other member of the first temperature backup group, which can successfully migrate the users corresponding to the first temperature backup group on the first UP device. Since the number of members corresponding to the second temperature backup group is greater than the number of members corresponding to the first temperature backup group, after migrating the users corresponding to the first temperature backup group on the first UP device, at least one other member of the second temperature backup group may still have sufficient free capacity to accommodate the users corresponding to the second temperature backup group on the first UP device, thereby enabling successful migration of the users corresponding to the second temperature backup group on the first UP device. This can minimize user disconnection, prevent service interruption, and ensure a more even distribution of users across UP devices. Alternatively, if the number of members in the first temperature backup group is equal to the number of members in the second temperature backup group, and the number of users in the first temperature backup group on the first UP device is greater than the number of users in the second temperature backup group on the first UP device, the CP device selects the second UP device with the largest idle capacity from the other members in the first temperature backup group (excluding the first UP device). When the number of users in the first temperature backup group on the first UP device is greater than the idle capacity of the second UP device, the CP device first migrates the users in the first temperature backup group on the first UP device, and then migrates the users in the second temperature backup group on the first UP device. This approach can minimize user disconnections, prevent service interruptions, and ensure a more even distribution of users across the UP devices.

[0228] See Figure 12 This application provides a user migration device 1200, which is applied to a Virtual Broadband Access Gateway (vBNG) system. The vBNG system further includes multiple user plane UP devices, including a first UP device. The device 1200 is deployed in a system such as... Figure 1 , Figure 2 or Figure 3 The device 1200 is deployed on the CP device in the vBNG system 100 shown. Figure 4 The method shown is applied to the CP device or Figure 5 The CP device of the method 500 shown. The device 1200 includes:

[0229] The determining unit 1201 is used to determine that the user corresponding to the first warm backup group and the user corresponding to the second warm backup group on the first UP device are users to be migrated. The first warm backup group and the second warm backup group are warm backup groups in the vBNG system. The first UP device is added to the first warm backup group and the second warm backup group.

[0230] Migration unit 1202 is used to migrate users corresponding to the first temperature backup group on the first UP device to at least one other member in the first temperature backup group based on the number of members in the first temperature backup group being less than or equal to the number of members in the second temperature backup group. The at least one other member in the first temperature backup group does not include the first UP device.

[0231] Optionally, for the detailed implementation process of determining the user to be migrated by unit 1201, see [link to documentation]. Figure 4 In step 401 of method 400 shown, or Figure 5 The details of step 501 in method 500 shown will not be explained in detail here.

[0232] Optionally, for details of the migration unit 1202 migrating the user corresponding to the first warm backup group on the first UP device, please refer to [link / reference]. Figure 4 In step 402 of method 400 shown, or Figure 5 The details of step 503 in method 500 shown will not be explained in detail here.

[0233] Optionally, the migration unit 1202 is further configured to migrate, after migrating the user corresponding to the first temperature backup group on the first UP device to at least one other member in the first temperature backup group, the user corresponding to the second temperature backup group on the first UP device to at least one other member in the second temperature backup group, wherein the at least one other member in the second temperature backup group does not include the first UP device.

[0234] Optionally, for details on the migration process of the migration unit 1202 to migrate the user corresponding to the second warm backup group on the first UP device, please refer to [link / reference]. Figure 4 In step 403 of method 400 shown, or Figure 5 The details of step 503 in method 500 shown will not be explained in detail here.

[0235] Optionally, the number of members in the first warm backup group is equal to the number of members in the second warm backup group.

[0236] The determining unit 1201 is also used to determine that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device.

[0237] Optionally, for the detailed implementation process of determining unit 1201 that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, please refer to [link to documentation]. Figure 4 In step 402 of method 400 shown, or Figure 5 The details of step 502 in method 500 shown will not be explained in detail here.

[0238] Optionally, the number of users corresponding to the first warm backup group on the first UP device is greater than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the first warm backup group.

[0239] Optionally, the number of members in the first warm backup group is equal to the number of members in the second warm backup group.

[0240] The determining unit 1201 is used to determine that the number of users corresponding to the first temperature backup group on the first UP device is less than the number of users corresponding to the second temperature backup group on the first UP device.

[0241] Optionally, for the detailed implementation process of determining unit 1201 that the number of users corresponding to the first temperature backup group on the first UP device is less than the number of users corresponding to the second temperature backup group on the first UP device, please refer to [link to documentation]. Figure 4 In step 402 of method 400 shown, or Figure 5 The details of step 502 in method 500 shown will not be explained in detail here.

[0242] Optionally, the number of users corresponding to the second warm backup group on the first UP device is less than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the second warm backup group.

[0243] Optionally, the number of members in the first warm backup group is less than the number of members in the second warm backup group.

[0244] The determining unit 1201 is used to determine that the users corresponding to the M warm backup groups on the first UP device are users to be migrated, where M is an integer greater than or equal to 2, the M warm backup groups are warm backup groups in the vBNG system, and the first UP device joins the M warm backup groups.

[0245] Migration unit 1202 is used to sort the M warm backup groups in ascending order of the number of members, and migrate the users corresponding to the M warm backup groups on the first UP device to at least one other member in the M warm backup groups according to the sorting result. The at least one other member in the M warm backup groups does not include the first UP device.

[0246] Optionally, for the detailed implementation process of determining the user to be migrated by unit 1201, see [link to documentation]. Figure 4 In step 401 of method 400 shown, or Figure 5 The details of step 501 in method 500 shown will not be explained in detail here.

[0247] Optionally, for the detailed implementation process of migration unit 1202 sorting the M warm backup groups in ascending order of the number of members, see [link to documentation]. Figure 5 The details of step 502 in method 500 shown will not be explained in detail here.

[0248] Optionally, the migration unit 1202 migrates users corresponding to the M warm backup groups on the first UP device to at least one other member within the M warm backup groups in sequence according to the sorting result. For a detailed implementation process, please refer to [link to documentation]. Figure 5 The details of step 503 in method 500 shown will not be explained in detail here.

[0249] In this embodiment, since the number of members corresponding to the first temperature backup group is less than the number of members corresponding to the second temperature backup group, if users corresponding to the second temperature backup group on the first UP device are migrated to at least one other member of the second temperature backup group first, it may result in insufficient free capacity for the other at least one member of the first temperature backup group to accommodate users corresponding to the first temperature backup group on the first UP device. Therefore, when the number of members corresponding to the first temperature backup group is less than the number of members corresponding to the second temperature backup group, the migration unit migrates users corresponding to the first temperature backup group on the first UP device to at least one other member of the first temperature backup group first, thus successfully migrating users corresponding to the first temperature backup group on the first UP device. This avoids user disconnection, prevents service interruption, and ensures a more even distribution of users across all UP devices.

[0250] See Figure 13 This application provides a user migration device 1300, which is applied in a Virtual Broadband Access Gateway (vBNG) system. The vBNG system further includes multiple user plane UP devices, including a first UP device. The device 1300 is deployed in a system such as... Figure 1 , Figure 2 or Figure 3 The device 1300 is deployed on the CP device in the vBNG system 100 shown. Figure 4 The method shown is applied to the CP device or Figure 5 The CP device of the method 500 shown. The device 1300 includes:

[0251] Migration unit 1301 is configured to, based on the fact that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, first migrate the users corresponding to the first temperature backup group on the first UP device to at least one other member within the first temperature backup group, and then migrate the users corresponding to the second temperature backup group on the first UP device to at least one other member within the second temperature backup group.

[0252] The first temperature backup group and the second temperature backup group are temperature backup groups in the vBNG system. The first UP device is added to the first temperature backup group and the second temperature backup group. At least one other member in the first temperature backup group does not include the first UP device, and at least one other member in the second temperature backup group does not include the first UP device.

[0253] Optionally, for details on the migration process of the migration unit 1301 to migrate the user corresponding to the first warm backup group on the first UP device, please refer to [link / reference]. Figure 4 In step 402 of method 400 shown, or Figure 5 The details of step 503 in method 500 shown will not be explained in detail here.

[0254] Optionally, for details on the migration process of the migration unit 1301 to migrate the user corresponding to the second warm backup group on the first UP device, please refer to [link / reference]. Figure 4 In step 403 of method 400 shown, or Figure 5 The details of step 503 in method 500 shown will not be explained in detail here.

[0255] Optionally, the number of members in the first warm backup group is equal to the number of members in the second warm backup group.

[0256] Optionally, the number of users corresponding to the first warm backup group on the first UP device is greater than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the first warm backup group.

[0257] In this embodiment, since the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, if the migration unit migrates the users corresponding to the second temperature backup group on the first UP device first, and then migrates the users corresponding to the first temperature backup group on the first UP device, it is possible that the users corresponding to the first temperature backup group on the first UP device will fail to migrate successfully, resulting in user disconnection. However, if the migration unit migrates the users corresponding to the first temperature backup group on the first UP device first, and then migrates the users corresponding to the second temperature backup group on the first UP device, the migration unit can successfully migrate the users corresponding to the first temperature backup group and the users corresponding to the second temperature backup group on the first UP device, avoiding user disconnection, preventing service interruption, and ensuring a more even distribution of users across the UP devices.

[0258] See Figure 14 This application provides a schematic diagram of a CP device 1400. The CP device 1400 can be any of the CP devices provided in the above embodiments; for example, the CP 1400 is... Figure 1 , Figure 2 or Figure 3 The CP device in the vBNG system 100 shown, Figure 4 The CP device in method 400 shown or Figure 5 The CP device in method 500 shown. The CP device 1400 includes at least one processor 1401, internal connections 1402, memory 1403, and at least one transceiver 1404.

[0259] The CP device 1400 is a hardware-structured device that can be used to implement... Figure 12 The functional modules in the device 1200. For example, those skilled in the art will conceive of them. Figure 12 The determination unit 1201 and migration unit 1202 in the illustrated device 1200 can be implemented by the processor 1401 calling the code in the memory 1403.

[0260] The CP device 1400 can also be used to implement the functions of the CP device in any of the above embodiments.

[0261] The processor 1401 described above may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of programs according to the present application.

[0262] The aforementioned internal connection 1402 may include a pathway for transmitting information between the aforementioned components. The internal connection 1402 may be a single board or a bus, etc.

[0263] The aforementioned transceiver 1404 is used for communicating with other devices or communication networks.

[0264] The aforementioned memory 1403 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or it may be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0265] The memory 1403 stores the application code that executes the solution of this application, and its execution is controlled by the processor 1401. The processor 1401 executes the application code stored in the memory 1403, and cooperates with at least one transceiver 1404, thereby enabling the CP device 1400 to realize the functions of the method of this patent.

[0266] In a specific implementation, as one embodiment, the processor 1401 may include one or more CPUs, for example... Figure 14 CPU0 and CPU1 in the CPU.

[0267] In a specific implementation, as one example, the CP device 1400 may include multiple processors, for example... Figure 14 Processors 1401 and 1407 are mentioned. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).

[0268] See Figure 15This application provides a schematic diagram of a CP device 1500. The CP device 1500 can be any of the CP devices provided in the above embodiments; for example, the CP 1500 is... Figure 1 , Figure 2 or Figure 3 The CP device in the vBNG system 100 shown, Figure 4 The CP device in method 400 shown or Figure 5 The CP device in method 500 shown. The CP device 1500 includes at least one processor 1501, internal connections 1502, memory 1503, and at least one transceiver 1504.

[0269] The CP device 1500 is a hardware-structured device that can be used to implement... Figure 13 The functional modules in the device 1300. For example, those skilled in the art will conceive of them. Figure 13 The migration unit 1301 in the illustrated device 1300 can be implemented by the at least one processor 1501 calling code in the memory 1503.

[0270] The CP device 1500 can also be used to implement the functions of the CP device in any of the above embodiments.

[0271] The processor 1501 described above may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0272] The aforementioned internal connection 1502 may include a pathway for transmitting information between the aforementioned components. The internal connection 1502 may be a single board or a bus, etc.

[0273] The aforementioned transceiver 1504 is used for communicating with other devices or communication networks.

[0274] The aforementioned memory 1503 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0275] The memory 1503 stores the application code that executes the solution of this application, and its execution is controlled by the processor 1501. The processor 1501 executes the application code stored in the memory 1503, and cooperates with at least one transceiver 1504, thereby enabling the CP device 1500 to implement the functions of the method of this patent.

[0276] In a specific implementation, as one example, the processor 1501 may include one or more CPUs, for example... Figure 15 CPU0 and CPU1 in the CPU.

[0277] In a specific implementation, as one example, the CP device 1500 may include multiple processors, for example... Figure 15 Processors 1501 and 1507 are mentioned. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).

[0278] See Figure 16 , Figure 16 A schematic diagram of the structure of a CP device 1600 provided in an exemplary embodiment of this application is shown. Optionally, the CP device 1600 is a CP device of any of the above embodiments. For example, the CP device 1600 is... Figure 1 , Figure 2 or Figure 3 The CP device 101 in the vBNG system 100 shown Figure 4 The CP device in method 400 shown Figure 5 The CP device in method 500 shown Figure 12 The device 1200 shown or Figure 14 The CP device 1400 shown. In other words, the above... Figure 4 Method 400 or shown Figure 5 The CP device in method 500 shown can be used through Figure 16 The CP device 1600 shown is implemented.

[0279] like Figure 16 As shown, the CP device 1600 includes: a main control board 1601 and an interface board 1602.

[0280] The main control board 1601, also known as the main processing unit (MPU) or route processor card, is used to control and manage the various components in the CP device 1600, including route calculation, device management, device maintenance, and protocol processing functions. The main control board 1601 includes a central processing unit 16011 and a memory 16012.

[0281] Interface board 1602, also known as line processing unit (LPU), linecard, or service board, provides various service interfaces and enables packet forwarding. Service interfaces include, but are not limited to, Ethernet interfaces, POS (Packet over SONET / SDH) interfaces, etc., with Ethernet interfaces including, for example, Flexible Ethernet Clients (FlexE Clients). Interface board 1602 includes: a central processing unit 16021, a network processor 16022, a forwarding table entry memory 16023, and a physical interfacecard (PIC) 16024.

[0282] The central processing unit 16021 on the interface board 1602 is used to control and manage the interface board 1602 and communicate with the central processing unit 16011 on the main control board 1601.

[0283] The network processor 16022 is used to implement packet forwarding processing. The network processor 16022 can be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented using an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). Specifically, the network processor 16022 forwards received packets based on the forwarding table stored in the forwarding table entry memory 16023. If the destination address of the packet is the address of the CP device 1600, the packet is sent to the CPU (such as the central processing unit 16021) for processing; if the destination address of the packet is not the address of the CP device 1600, the next hop and outgoing interface corresponding to the destination address are looked up in the forwarding table according to the destination address, and the packet is forwarded to the outgoing interface corresponding to the destination address. Uplink packet processing may include: packet ingress interface processing, forwarding table lookup; downlink packet processing may include: forwarding table lookup, etc. In some embodiments, the central processing unit may also perform the functions of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that the forwarding chip is not required in the interface board.

[0284] The physical interface card 16023 is used to implement physical layer interfacing functions. Raw traffic enters the interface board 1602 through this card, and processed packets are sent out from the physical interface card 1602. The physical interface card 16023, also known as a daughter card, can be installed on the interface board 1602. It is responsible for converting photoelectric signals into packets, performing validity checks on the packets, and forwarding them to the network processor 16022 for processing. In some embodiments, the central processing unit can also perform the functions of the network processor 16022, such as implementing software forwarding based on a general-purpose CPU, thus eliminating the need for the network processor 16022 in the physical interface card 16023.

[0285] Optionally, the CP device 1600 includes multiple interface boards. For example, the CP device 1600 also includes an interface board 1603, which includes a central processing unit 16031, a network processor 16032, a forwarding table entry memory 16033, and a physical interface card 16034. The functions and implementation methods of the components in the interface board 1603 are the same as or similar to those in the interface board 1602, and will not be described in detail here.

[0286] Optionally, the CP device 1600 also includes a switching fabric board 1604. The switching fabric board 1604 can also be referred to as a switch fabric unit (SFU). When the CP device 1600 has multiple interface boards, the switching fabric board 1604 is used to complete data exchange between the interface boards. For example, interface boards 1602 and 1603 can communicate through the switching fabric board 1604.

[0287] The main control board 1601 and the interface board 1602 are coupled. For example, the main control board 1601, interface boards 1602 and 1603, and the switching network board 1604 are interconnected via a system bus and the system backplane. In one possible implementation, an inter-process communication (IPC) channel is established between the main control board 1601 and the interface board 1602, and the main control board 1601 and the interface board 1602 communicate with each other through the IPC channel.

[0288] Logically, the CP device 1600 includes a control plane and a forwarding plane. The control plane includes a main control board 1601 and a central processing unit (CPU), while the forwarding plane includes various components that perform forwarding, such as a forwarding table entry memory 16023, a physical interface card 16024, and a network processor 16022. The control plane performs functions such as router operation, generating forwarding tables, processing signaling and protocol messages, and configuring and maintaining the device's status. The control plane distributes the generated forwarding tables to the forwarding plane. In the forwarding plane, the network processor 16022 uses the forwarding tables distributed by the control plane to look up and forward messages received by the physical interface card 16024. The forwarding tables distributed by the control plane can be stored in the forwarding table entry memory 16023. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same device.

[0289] It's worth noting that there may be one or more main control boards (1601), including a primary and a backup main control board. There may also be one or more interface boards; the stronger the data processing capability of the CP device 1600, the more interface boards it provides. Each interface board may also have one or more physical interface cards. There may be no switching network board (1604), or there may be one or more; multiple boards can share the load for redundancy and backup. In a centralized forwarding architecture, the CP device 1600 may not need a switching network board, as the interface boards handle the entire system's business data processing. In a distributed forwarding architecture, the CP device 1600 can have at least one switching network board (1604), which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of a distributed architecture CP device 1600 are greater than those of a centralized architecture device. Alternatively, the CP device 1600 can also be a single board, without a switching network board. The functions of the interface board and the main control board are integrated on this one board. In this case, the central processing unit on the interface board and the central processing unit on the main control board can be combined into one central processing unit to execute the combined functions. This type of device has lower data exchange and processing capabilities (e.g., low-end switches or routers). The specific architecture adopted depends on the specific network deployment scenario, and no restrictions are imposed here.

[0290] See Figure 17 , Figure 17 A schematic diagram of the structure of a CP device 1700 provided in an exemplary embodiment of this application is shown. Optionally, the CP device 1700 is a CP device of any of the above embodiments. For example, the CP device 1700 is... Figure 1 , Figure 2 or Figure 3 The CP device 101 in the vBNG system 100 shown Figure 4 The CP device in method 400 shown Figure 5 The CP device in method 500 shown Figure 13 The device 1300 shown or Figure 15 The CP device 1500 shown. In other words, the above... Figure 4 Method 400 or shown Figure 5 The CP device in method 500 shown can be used through Figure 17 The CP device 1700 shown is implemented.

[0291] like Figure 17 As shown, the CP device 1700 includes: a main control board 1701 and an interface board 1702.

[0292] The main control board 1701, also known as the main processing unit (MPU) or route processor card, is used to control and manage the various components in the CP device 1700, including route calculation, device management, device maintenance, and protocol processing functions. The main control board 1701 includes a central processing unit 17011 and a memory 17012.

[0293] Interface board 1702, also known as a line processing unit (LPU), linecard, or service board, provides various service interfaces and enables packet forwarding. Service interfaces include, but are not limited to, Ethernet interfaces, POS (Packet over SONET / SDH) interfaces, etc., with Ethernet interfaces including, for example, Flexible Ethernet Clients (FlexE Clients). Interface board 1702 includes: a central processing unit 17021, a network processor 17022, a forwarding table entry memory 17023, and a physical interface card (PIC) 17024.

[0294] The central processing unit 17021 on the interface board 1702 is used to control and manage the interface board 1702 and communicate with the central processing unit 17011 on the main control board 1701.

[0295] Network processor 17022 is used to implement packet forwarding processing. Network processor 17022 can be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented using an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). Specifically, network processor 17022 forwards received packets based on the forwarding table stored in forwarding table entry memory 17023. If the destination address of the packet is the address of CP device 1700, the packet is sent to the CPU (such as central processing unit 17021) for processing; if the destination address of the packet is not the address of CP device 1700, the next hop and outgoing interface corresponding to the destination address are looked up in the forwarding table according to the destination address, and the packet is forwarded to the outgoing interface corresponding to the destination address. Uplink packet processing may include: packet ingress interface processing, forwarding table lookup; downlink packet processing may include: forwarding table lookup, etc. In some embodiments, the central processing unit may also perform the functions of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that the forwarding chip is not required in the interface board.

[0296] Physical interface card 17023 is used to implement physical layer interfacing functions. Raw traffic enters interface board 1702 through this card, and processed packets are sent out from physical interface card 1702. Physical interface card 17023, also known as a daughter card, can be installed on interface board 1702. It is responsible for converting photoelectric signals into packets, performing validity checks on the packets, and forwarding them to network processor 17022 for processing. In some embodiments, the central processing unit can also perform the functions of network processor 17022, such as implementing software forwarding based on a general-purpose CPU, thus eliminating the need for network processor 17022 in physical interface card 17023.

[0297] Optionally, the CP device 1700 includes multiple interface boards. For example, the CP device 1700 also includes an interface board 1703, which includes a central processing unit 17031, a network processor 17032, a forwarding table entry memory 17033, and a physical interface card 17034. The functions and implementation methods of each component in the interface board 1703 are the same as or similar to those of the interface board 1702, and will not be described in detail here.

[0298] Optionally, the CP device 1700 also includes a switching fabric board 1704. The switching fabric board 1704 can also be referred to as a switch fabric unit (SFU). When the CP device 1700 has multiple interface boards, the switching fabric board 1704 is used to complete data exchange between the interface boards. For example, interface boards 1702 and 1703 can communicate via the switching fabric board 1704.

[0299] The main control board 1701 and interface board 1702 are coupled. For example, the main control board 1701, interface boards 1702 and 1703, and the switching network board 1704 are interconnected via a system bus and connected to the system backplane. In one possible implementation, an inter-process communication (IPC) channel is established between the main control board 1701 and interface board 1702, and the main control board 1701 and interface board 1702 communicate with each other through the IPC channel.

[0300] Logically, the CP device 1700 includes a control plane and a forwarding plane. The control plane includes a main control board 1701 and a central processing unit (CPU), while the forwarding plane includes various components that perform forwarding, such as a forwarding table entry memory 17023, a physical interface card 17024, and a network processor 17022. The control plane performs functions such as router operation, generating forwarding tables, processing signaling and protocol messages, and configuring and maintaining the device's status. The control plane distributes the generated forwarding tables to the forwarding plane. In the forwarding plane, the network processor 17022 uses the forwarding tables distributed by the control plane to look up and forward messages received by the physical interface card 17024. The forwarding tables distributed by the control plane can be stored in the forwarding table entry memory 17023. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same device.

[0301] It's worth noting that there may be one or more main control boards (1701), including a primary and a backup main control board. There may also be one or more interface boards; the stronger the data processing capability of the CP device 1700, the more interface boards it provides. Each interface board may also have one or more physical interface cards. There may be no switching network board (1704), or there may be one or more; multiple boards can share the load for redundancy and backup. In a centralized forwarding architecture, the CP device 1700 may not need a switching network board, as the interface boards handle the entire system's business data processing. In a distributed forwarding architecture, the CP device 1700 can have at least one switching network board (1704), which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of a distributed architecture CP device 1700 are greater than those of a centralized architecture device. Alternatively, the CP device 1700 can also be a single board, without a switching network board. The functions of the interface board and the main control board are integrated on this one board. In this case, the central processing unit on the interface board and the central processing unit on the main control board can be combined into one central processing unit to execute the combined functions. This type of device has lower data exchange and processing capabilities (e.g., low-end switches or routers). The specific architecture adopted depends on the specific network deployment scenario, and no restrictions are imposed here.

[0302] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0303] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for user migration, characterized in that, The method is applied to the control plane (CP) device in a virtual broadband access gateway (vBNG) system, wherein the vBNG system further includes multiple user plane (UP) devices, and the multiple UP devices include a first UP device. The method includes: The CP device determines that the users corresponding to the first warm backup group and the second warm backup group on the first UP device are users to be migrated. The first warm backup group and the second warm backup group are warm backup groups in the vBNG system. The first UP device joins the first warm backup group and the second warm backup group. Based on the fact that the number of members in the first temperature backup group is less than or equal to the number of members in the second temperature backup group, the CP device will migrate the user corresponding to the first temperature backup group on the first UP device to at least one other member in the first temperature backup group, wherein the at least one other member in the first temperature backup group does not include the first UP device.

2. The method as described in claim 1, characterized in that, After the CP device migrates the user corresponding to the first warm backup group on the first UP device to at least one other member within the first warm backup group, the method further includes: The CP device migrates the user corresponding to the second temperature backup group on the first UP device to at least one other member in the second temperature backup group, where the first UP device is not included in the at least one other member in the second temperature backup group.

3. The method as described in claim 1 or 2, characterized in that, The number of members in the first warm backup group is equal to the number of members in the second warm backup group, and the method further includes: The CP device determines that the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device.

4. The method as described in claim 3, characterized in that, The number of users corresponding to the first warm backup group on the first UP device is greater than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the first warm backup group.

5. The method as described in claim 1 or 2, characterized in that, The number of members in the first warm backup group is equal to the number of members in the second warm backup group, and the method further includes: The CP device determines that the number of users corresponding to the first temperature backup group on the first UP device is less than the number of users corresponding to the second temperature backup group on the first UP device.

6. The method as described in claim 5, characterized in that, The number of users corresponding to the second warm backup group on the first UP device is less than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the second warm backup group.

7. The method as described in claim 1 or 2, characterized in that, The number of members in the first temperature backup group is less than the number of members in the second temperature backup group. The CP device determines the users corresponding to the first warm backup group and the second warm backup group on the first UP device as users to be migrated, including: The CP device determines that the users corresponding to the M warm backup groups on the first UP device are users to be migrated, where M is an integer greater than or equal to 2, and the M warm backup groups are warm backup groups in the vBNG system. The first UP device joins the M warm backup groups. The step of migrating users corresponding to the first warm backup group on the first UP device to at least one other member within the first warm backup group, based on the fact that the number of members in the first warm backup group is less than or equal to the number of members in the second warm backup group, includes: The CP device sorts the M warm backup groups in ascending order of the number of members, and according to the sorting result, migrates the users corresponding to the M warm backup groups on the first UP device to at least one other member in the M warm backup groups. The at least one other member in the M warm backup groups does not include the first UP device.

8. The method as described in claim 1, 2, 4 or 6, characterized in that, The warm backup group in the vBNG system includes UP devices, interfaces within UP devices, or single boards within UP devices.

9. A method for user migration, characterized in that, The method is applied to the control plane (CP) device in a virtual broadband access gateway (vBNG) system, wherein the vBNG system further includes multiple user plane (UP) devices, and the multiple UP devices include a first UP device. The method includes: Since the number of users corresponding to the first temperature backup group on the first UP device is greater than the number of users corresponding to the second temperature backup group on the first UP device, the CP device first migrates the users corresponding to the first temperature backup group on the first UP device to at least one other member within the first temperature backup group, and then migrates the users corresponding to the second temperature backup group on the first UP device to at least one other member within the second temperature backup group. Wherein, the first temperature backup group and the second temperature backup group are temperature backup groups in the vBNG system, the first UP device is added to the first temperature backup group and the second temperature backup group, at least one other member in the first temperature backup group does not include the first UP device, and at least one other member in the second temperature backup group does not include the first UP device.

10. The method as described in claim 9, characterized in that, The number of members in the first temperature backup group is equal to the number of members in the second temperature backup group.

11. The method as described in claim 10, characterized in that, The number of users corresponding to the first warm backup group on the first UP device is greater than the idle capacity of the second UP device, and the second UP device is the member with the largest idle capacity among at least one other member in the first warm backup group.

12. A user migration device, characterized in that, The device includes: A processor and a memory, the memory for storing a program, the processor for executing the program in the memory, such that the apparatus performs the method as described in any one of claims 1-8.

13. A user migration device, characterized in that, The device includes: A processor and a memory, the memory for storing a program, the processor for executing the program in the memory, such that the apparatus performs the method as described in any one of claims 9-11.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 11.

15. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 11.

16. A virtual broadband access gateway (vBNG) system, characterized in that, The system includes a control plane (CP) device and multiple user plane (UP) devices. The CP device is used to perform the method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Message feedback method and device

    CN106685818A

  • Charging method and device

    CN109391475A