Address allocation method, apparatus and system
In the broadband access system, the CP device sends an address allocation request to the second CP device, which solves the access problem caused by channel failure between the UP device and the CP device, ensures normal access of the client device, and improves the flexibility of address pool planning. sex.
Patent Information
- Application Number
- PCT/CN2023/136301
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-23
- Filing Date
- 2023-12-05
- Publication Date
- 2024-08-29
AI Technical Summary
In the Broadband Remote Access Server (BRAS), when the channel failure between the UP device and the CP device does not reach the switching threshold condition, the CP device switching cannot be triggered, causing the UP device to be unable to access the client device, affecting business stability.
By implementing the CP device to receive the dialing request from the UP device and sending an address allocation request to the second CP device, it is ensured that even if there is a channel failure between the UP device and the second CP device, the first CP device can obtain the address and provide the client with the address. The terminal device allocates a network address and supports independent switching of UP devices to avoid affecting the services of other UP devices.
This ensures that client devices can normally access the network, avoids business damage to other devices in the UP backup group, improves the flexibility of address pool planning, and reduces the business impact during upgrades.
Smart Images

Figure CN2023136301_29082024_PF_FP_ABST
Abstract
Description
Address allocation method, device and system
[0001] This application claims priority to Chinese patent application No. 202310202554.9, filed on February 23, 2023, entitled “Address Allocation Method, Device and System,” the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to an address allocation method, device and system. Background Art
[0003] A broadband remote access server (BRAS) is an access gateway for broadband network applications. It can be deployed with a separate control plane (CP) and user plane (UP). A BRAS deployed with separate CP and UP (i.e., CU separation) can include a CP device and multiple UP devices.
[0004] To improve reliability, a BRAS with separate CUs typically deploys a CP disaster recovery group, which consists of two CP devices that serve as master and backup for each other. Each CP device manages at least one UP backup group, which share an address pool from which the CP device can assign private network addresses to connected client devices.
[0005] If the channel between an UP device in the UP backup group and the CP device fails, while the channels between other UP devices and the CP device are normal and the CP device's switchover threshold is not reached, switchover will not be triggered. In this case, the UP device with the failed channel to the CP device will not be able to connect to client devices.
[0006] Summary of the Invention
[0007] The present application provides an address allocation method, apparatus, and system, which can solve the technical problem that when a channel between a UP device and a CP device fails and a switching threshold condition of the CP device is not met, the UP device cannot access the client device.
[0008] In a first aspect, an address allocation method is provided. The method is applied to a first CP device in a broadband access system with separate CP and UP devices. The broadband access system also includes a second CP device and the first UP device. The method comprises: the first CP device sends an address allocation request to the second CP device based on a dial-up request from a first client device accessing the system from the first UP device. The first CP device then receives a first address allocated by the second CP device based on the address allocation request and allocates a network address to the first client device based on the first address.
[0009] With the solution provided by this application, even if the channel between the first UP device and the second CP device fails, the first CP device can still obtain the first address from the second CP device and, based on the first address, assign a network address to a client device that has logged on from the first UP device. This ensures that the client device on the first UP device can access the network normally.
[0010] In scenarios where a first UP device belongs to a UP backup group that includes multiple UP devices, if the channel between the first UP device and the second CP device fails, the solution provided by this application allows the first UP device to independently switch to the first CP device to continue going online. This avoids affecting the normal service status of other UP devices in the UP backup group.
[0011] Optionally, the first UP device may correspond to a first address pool, and the process of the first CP device sending an address allocation request to the second CP device may include: based on the first CP device being a backup CP device for the first address pool and the second CP device being a primary CP device for the first address pool, sending the address allocation request to the second CP device. The address allocation request is used to instruct the second CP device to allocate the first address from the first address pool.
[0012] In the solution provided by the present application, the first CP device and the second CP device can share an address pool, and the address pool can distinguish the primary and backup roles according to the CP device, that is, each CP device has a certain primary and backup status in the address pool. Among them, the CP device in the primary state (that is, the primary CP device) can manage the address pool and allocate addresses from the address pool. The CP device in the backup state (that is, the backup CP device) can apply to the primary CP device for allocation of addresses from the address pool. That is, a pair of disaster recovery CP devices can share an address pool or a large network segment, and the UP device can request a network address across CP devices.
[0013] Optionally, the first CP device may be a primary CP device of the first UP device. Accordingly, after receiving the dial-up request from the first client device, the first UP device may directly send the dial-up request to the first CP device.
[0014] Optionally, before the first CP device sends an address allocation request to the second CP device based on the dial-up request of the first client device connected from the first UP device, the method may further include: sending a switching instruction message to the first UP device. The switching instruction message is used to instruct the primary CP device of the first UP device to switch from the second CP device to the first CP device.
[0015] In the solution provided in this application, if the first CP device determines that it needs to be upgraded to the primary CP device of the first UP device, it can send a switching instruction message to the first UP device. Based on the switching instruction message, the first UP device can then send the dial-up request received from the first client device to the first CP device.
[0016] Optionally, the process of the first CP device sending a switching instruction message to the first UP device may include: sending a switching instruction message to the first UP device based on a channel failure between the second CP device and the first UP device; or sending a switching instruction message to the first UP device based on completion of an upgrade of the first CP device.
[0017] The first CP device can determine a channel failure between the second CP device and the first UP device based on a fault indication message sent by the second CP device. Furthermore, the first CP device can determine that its upgrade is complete based on status information configured by the controller or operation and maintenance personnel. In the CP device upgrade scenario, the solution provided in this application enables fine-grained upgrades per individual UP, eliminating the need to plan additional fine-grained address pools for the upgrade, effectively improving the flexibility of address pool planning.
[0018] Optionally, the method may further include: sending an address release message to the second CP device based on the first client device going offline from the first UP device, where the address release message is used to instruct the second CP device to release the first address.
[0019] Since the second CP device is the master CP device of the first address pool, the second CP device needs to release the first address. After the second CP device releases the first address, the first address can be allocated to other client devices or other UP devices.
[0020] Optionally, the first address may be a network address assigned to the first client device. That is, the second CP device may send a single network address to the first CP device, and the first CP device may directly assign the single network address to the first client device.
[0021] Optionally, the first address may be an address segment allocated to the first UP device. Accordingly, the process of the first CP device allocating a network address to the first client device based on the first address may include: allocating a network address to the first client device from the address segment.
[0022] In the scenario where the first address is an address segment, upon receiving a subsequent dial-up request from a client device connected to the first UP device, the first CP device can directly allocate a network address from the address segment to the client device without further requesting an address from the second CP device. Furthermore, when the address resources in the address segment allocated by the second CP device are exhausted, the first CP device can request a new address segment from the second CP device.
[0023] Optionally, the broadband access system may further include a second UP device, the second UP device corresponding to a second address pool, and the first CP device may be a primary CP device for the second address pool. The method may further include: allocating a network address from the second address pool to the second client device based on a dial-up request from a second client device accessing from the second UP device.
[0024] Since the first CP device is the master CP device of the second address pool, the first CP device can directly allocate a network address to the second client device from the second address pool.
[0025] Optionally, the address allocation request and the first address may both be transmitted based on a user datagram protocol (UDP) or a transmission control protocol (TCP).
[0026] Optionally, the address allocation request carries the first address, that is, the first CP device may directly request the second CP device for a specified network address or address segment. Alternatively, the address allocation request may carry the type of the first address.
[0027] The type of the first address may include an Internet Protocol version 4 (IPv4) address, an IPv4 prefix, an Internet Protocol version 6 (IPv6) address, or an IPv6 prefix. In other words, the type of the first address may be a single IPv4 address, an IPv4 address segment, a single IPv6 address, or an IPv6 address segment.
[0028] Optionally, the address allocation request sent by the first CP device may further include a message type field, where the message type field is used to indicate that the address allocation request is a message requesting address allocation.
[0029] It is understood that the address release message sent by the first CP device may also include a message type field, which may be used to indicate that the address release message is a message requesting the release of an address. For example, the value of the message type field in the address allocation request may be 1, and the value of the message type field in the address release message may be 2.
[0030] In a second aspect, another address allocation method is provided, applied to a second CP device in a broadband access system with separate CP and UP devices. The broadband access system also includes a first CP device and a first UP device. The method comprises: receiving an address allocation request from the first CP device, the address allocation request being sent by the first CP device in response to a dial-up request from a first client device accessing the system from the first UP device. Then, based on the address allocation request, an allocated first address is sent to the first CP device. The first address is used by the first CP device to allocate a network address to the first client device.
[0031] Optionally, the first UP device corresponds to the first address pool. The process of the second CP device sending the allocated first address to the first CP device based on the address allocation request may include: based on the address allocation request and the second CP device being the master CP device of the first address pool, sending the first address allocated from the first address pool to the first CP device.
[0032] Optionally, the method may further include: receiving an address release message sent by the first CP device, the address release message being sent by the first CP device based on the first client device going offline from the first UP device, and then releasing the first address based on the address release message.
[0033] Optionally, the first address may be a network address assigned to the first client device, or the first address may be an address segment assigned to the first UP device.
[0034] Optionally, before receiving the address allocation request sent by the first CP device, the method may further include: sending a switching instruction message to the first UP device, where the switching instruction message is used to instruct the primary CP device of the first UP device to switch from the second CP device to the first CP device.
[0035] In the solution provided in this application, if the second CP device determines that it is downgraded to the backup CP device of the first UP device and the first CP device is upgraded to the active CP device of the first UP device, it can send a switching instruction message to the first UP device.
[0036] In a third aspect, another address allocation method is provided for a broadband access system with separate CP and UP devices. The system includes a first CP device, a second CP device, and a first UP device. The method includes: the first CP device sends an address allocation request to the second CP device based on a dial-up request from a first client device accessing the system from the first UP device. The second CP device sends an allocated first address to the first CP device based on the address allocation request. The first CP device allocates a network address to the first client device based on the first address.
[0037] Optionally, the first UP device corresponds to the first address pool. The process of the first CP device sending an address allocation request to the second CP device may include: the first CP device, based on the fact that it is a backup CP device for the first address pool and the second CP device is the master CP device for the first address pool, sending the address allocation request to the second CP device. Correspondingly, the process of the second CP device sending the allocated first address to the first CP device based on the address allocation request may include: the second CP device, based on the address allocation request and the fact that the second CP device is the master CP device for the first address pool, sending the first address allocated from the first address pool to the first CP device.
[0038] Optionally, the method may further include: the first UP device sending a dialing request of the first client device to the first CP device based on the first CP device being the active CP device.
[0039] Optionally, the method may further include: the first CP device or the second CP device sending a switching instruction message to the first UP device, where the switching instruction message is used to instruct the primary CP device of the first UP device to switch from the second CP device to the first CP device.
[0040] Optionally, the method may further include: the first CP device sending an address release message to the second CP device based on the first client device going offline from the first UP device; and the second CP device releasing the first address based on the address release message.
[0041] Optionally, the broadband access system may further include a second UP device, which corresponds to a second address pool; the method may further include: the first CP device allocates a network address to the second client device from the second address pool based on a dial-up request of a second client device accessed from the second UP device, and the first CP device is the main CP device of the second address pool.
[0042] Optionally, the broadband access system may further include a third UP device, which corresponds to the first address pool; the method may further include: the second CP device allocates a network address to the third client device from the first address pool based on a dial-up request of a third client device accessed from the third UP device, and the second CP device is the main CP device of the first address pool.
[0043] In a fourth aspect, a network device is provided, which may be a first CP device or a second CP device in a CU-separated broadband access system. The network device includes at least one module, which may be used to implement the address allocation method provided in the first or second aspect.
[0044] In a fifth aspect, a network device is provided. This network device can be a first CP device or a second CP device in a broadband access system with CU separation. The network device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the address allocation method provided in the first or second aspect.
[0045] In a sixth aspect, a network device is provided, which may be a first CP device or a second CP device in a CU-separated broadband access system. The network device may include: a main control board and an interface board, which may be used to implement the address allocation method provided in the first or second aspect.
[0046] In a seventh aspect, a computer-readable storage medium is provided, in which instructions are stored. The instructions are executed by a processor to implement the address allocation method provided in the first aspect or the second aspect above.
[0047] In an eighth aspect, a computer program product comprising instructions is provided. When the instructions are executed on a processor, the processor executes the address allocation method provided in the first or second aspect above.
[0048] In a ninth aspect, a client device access system is provided, comprising: a first CP device, a second CP device, and a first UP device, wherein the first CP device is configured to implement the address allocation method provided in the first aspect, and the second CP device is configured to implement the address allocation method provided in the second aspect.
[0049] In a tenth aspect, a chip is provided, which can be used to implement the address allocation method provided in the first or second aspect above.
[0050] In summary, the present application provides an address allocation method, apparatus, and system. In the solution provided herein, after a first CP device receives a dial-up request from a first client device connected from a first UP device, it can request a second CP device to allocate a first address, and then allocate a network address to the first client device based on the first address. This allows the first CP device to obtain the first address from the second CP device and allocate a network address to a client device connected from the first UP device, even if the channel between the first UP device and the second CP device fails. This ensures that the client device on the first UP device can access the network normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] FIG1 is a schematic diagram of a dual-CP disaster recovery scenario provided by an embodiment of the present application;
[0052] FIG2 is a schematic diagram of another dual-CP disaster recovery scenario provided by an embodiment of the present application;
[0053] FIG3 is a schematic structural diagram of a broadband access system provided in an embodiment of the present application;
[0054] FIG4 is a flow chart of an address allocation method provided in an embodiment of the present application;
[0055] FIG5 is a flowchart of another address allocation method provided in an embodiment of the present application;
[0056] FIG6 is a schematic structural diagram of another broadband access system provided in an embodiment of the present application;
[0057] FIG7 is a schematic diagram of a message structure of an address allocation request provided in an embodiment of the present application;
[0058] FIG8 is a schematic diagram of the structure of an option field in an address allocation request provided in an embodiment of the present application;
[0059] FIG9 is a schematic diagram of the structure of an option field in another address allocation request provided in an embodiment of the present application;
[0060] 10 is a schematic diagram of the structure of an option field in another address allocation request provided in an embodiment of the present application;
[0061] 11 is a schematic diagram of the structure of an option field in another address allocation request provided in an embodiment of the present application;
[0062] FIG12 is a schematic structural diagram of a first CP device provided in an embodiment of the present application;
[0063] FIG13 is a schematic structural diagram of a second CP device provided in an embodiment of the present application;
[0064] FIG14 is a schematic diagram of the structure of a network device provided in an embodiment of the present application;
[0065] FIG15 is a schematic structural diagram of another network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] The following describes in detail the address allocation method, device, and system provided in the embodiments of the present application with reference to the accompanying drawings.
[0067] With the development of software-defined networking (SDN) and network functions virtualization (NFV) technologies, metropolitan area networks (MANs) are evolving from a traditional network-centric architecture to one centered around data centers. Traditional network elements are also evolving from specialized to general-purpose. This evolution primarily addresses two decoupling issues: control and forwarding, and software and hardware.
[0068] BRAS, also known as the Broadband Network Gateway (BNG), is a traditional broadband access gateway device that plays a crucial role in user broadband access services and scenarios. The primary requirements for BNG devices in user access are user authentication, access control, and traffic scheduling. With the emergence of a wide range of internet services, the number of user sessions supported by BNG devices is increasing, as is the user access bandwidth. In particular, the demand for BNG devices to provide external service exposure and programmability is growing. To address these factors, BNG devices, based on the SDN / NFV architecture, achieve decoupling of control and forwarding, as well as software and hardware.
[0069] With the development of network technology, BNG has gradually evolved into virtual BNG (vBNG). This vBNG is deployed in a CU-separated manner and includes a CP device and multiple UP devices. This vBNG is also called a disaggregated BNG (DBNG). Among them, the CP device is also called the CP plane, which can be implemented and centrally deployed using cloud technology. For example, the CP device can be centrally deployed in the regional data center (RDC) computer room, that is, the core computer room. The CP device serves as the control plane of the vBNG and is used to control and manage client devices (also known as users) and unified management of multiple UP devices. The multiple UP devices of the vBNG are deployed in a distributed or pooled manner. For example, multiple UP devices can form a UP pool and can be dispersedly deployed in different aggregation computer rooms, that is, edge computer rooms. The UP device can also be called the UP plane. It serves as the user plane of the vBNG and is used to forward service messages based on the user table entries issued by the CP device.
[0070] It is understood that UP devices can also be called forwarding plane devices, so CU separation can also be called forwarding and control separation, that is, forwarding and control separation. A system deployed using this CU separation approach is also called a CU-separated broadband gateway access system, or a forwarding and control-separated broadband gateway access system.
[0071] To improve reliability, broadband gateway access systems typically deploy CP disaster recovery backups. As shown in Figure 1, a dual-CP disaster recovery scenario typically includes two CP devices, CP1 and CP2, capable of managing multiple disaster recovery groups (DGs). Each CP device has a unique primary / backup status within each DG, and the primary / backup status can vary for different DGs.
[0072] If the CP device is in the master state in a disaster recovery group, that is, the CP device is the primary CP device of the disaster recovery group, the CP device can act as a dynamic host configuration protocol (DHCP) server to allocate network addresses to client devices connected from the disaster recovery group.
[0073] As one possible example, a CP device can allocate addresses within a statically configured network segment from a local address pool to client devices on a single UP device. Alternatively, UP devices within a disaster recovery group (i.e., a UP backup group) can share an address pool. Each local address pool must be bound to a specific UP device, and addresses within the pool can only be used by that UP device.
[0074] As another possible example, the CP device can dynamically allocate subnet segments from a large network segment to different UP devices. Each UP device can have a dedicated subnet segment, or a UP backup group can share a subnet segment to improve address utilization.
[0075] Understandably, in a dual-CP disaster recovery scenario, the two CP devices cannot share an address pool; that is, CP devices do not support address allocation across disaster recovery groups. For example, if an address pool (or large network segment) is based on CP1 as the primary and CP2 as the backup, then UP devices assigned addresses from this address pool must also belong to the same disaster recovery group, with CP1 as the primary and CP2 as the backup. Accordingly, when deploying the network, it is necessary to manually plan address pools or network segments based on the disaster recovery group.
[0076] For example, referring to Figure 1, assume that address pools 1, 2, and 3 all use CP1 as the primary node, and address pools 4, 5, and 6 all use CP2 as the primary node. Accordingly, UP1, which allocates addresses from address pool 1, UP2, which allocates addresses from both address pools 1 and 2, and UP3, which allocates addresses from both address pools 2 and 3, also belong to the same disaster recovery group. This disaster recovery group shares a large network segment, and CP1 is the primary node, with CP2 as the backup node. Similarly, UP4, which allocates addresses from address pools 4 to 6, UP5, which allocates addresses from both address pools 4 and 5, and UP6, which allocates addresses from address pool 6, belong to another disaster recovery group. This disaster recovery group shares a large network segment, and CP2 is the primary node, with CP1 as the backup node.
[0077] Alternatively, referring to Figure 2, UP1 and UP2 belong to disaster recovery group DG1 and share an address pool or a large network segment. CP1 serves as the primary node and CP2 as the backup node. UP3 and UP4 belong to disaster recovery group DG2 and share an address pool or a large network segment. CP1 serves as the backup node and CP2 serves as the primary node. UPn-1 and UPn belong to disaster recovery group DGN and share an address pool or a large network segment. CP1 serves as the primary node and CP2 serves as the backup node.
[0078] In a dual-CP disaster recovery scenario, if the channel between CP1 and UP1 fails, while the channels between CP1 and other UP devices in UP1's disaster recovery group are functioning normally and the CP switchover threshold is not met, CP switchover will not be triggered. In other words, the primary CP device in the disaster recovery group will not switch from CP1 to CP2. In this case, due to the channel failure between UP1 and CP1, UP1 will not be able to connect to new client devices. If a forced CP switchover is triggered in this scenario, client devices on other functioning UP devices in the disaster recovery group will also switch over, disrupting normal services.
[0079] In a dual-CP disaster recovery scenario, if an older CP device is upgraded to a newer CP version, all Up devices sharing the same address pool or large network segment must be upgraded and switched to the newer CP version. In this upgrade scenario, if the address pool or network segment granularity is large (i.e., if a large number of Up devices share the same address pool or large network segment), Up device upgrades and switchovers will take a long time, significantly impacting services. Therefore, this upgrade scenario presents significant challenges in address pool planning, requiring a limited granularity.
[0080] Figure 3 is a structural diagram of a CU-separated broadband access system provided in an embodiment of the present application. As shown in Figure 3, the broadband access system may include a first CP device CP1 and a second CP device CP2, and multiple UP devices. The multiple UP devices may share the same address pool or large network segment. Alternatively, the multiple UP devices may be divided into multiple backup groups (also called disaster recovery groups), each backup group may share an address pool or large network segment, and the address pools or large network segments shared by different backup groups may be different. For example, the system shown in Figure 3 includes three UP devices, UP1 to UP3, and the three UP devices may share the same address pool 1, and the address pool 1 is based on the first CP device CP1 and the second CP device CP2 as a backup.
[0081] The CP device, as the control plane of the vBNG, processes the user dialup protocol and interacts with the authentication server to perform client device authentication, billing, and authorization. After the client device passes authentication, the CP device sends the user entry information to the corresponding UP device.
[0082] The multiple UP devices in this broadband access system function as the user plane of the vBNG. When a client device comes online, they forward dial-up protocol packets from the client device through a service channel to the CP device for processing. After processing, the CP device issues a user entry. The UP device receives the user entry from the CP device and locally generates a forwarding entry for the client device. This allows the UP device to enforce service policies, forward traffic, and advertise routes.
[0083] It is understood that the broadband access system may further include an access device, which may be a SW or an OLT. The access device may be used to aggregate client devices to the UP device to implement Layer 2 message forwarding. The client device may be a residential gateway (RGW), a personal computer (PC), a mobile phone, a laptop, or customer premises equipment (CPE).
[0084] The embodiment of the present application provides an address allocation method, which can be applied to a broadband access system with CU separation, such as that shown in Figure 3. As shown in Figure 4, the address allocation method provided in the embodiment of the present application includes:
[0085] Step 101: A first CP device sends an address allocation request to a second CP device based on a dial-up request from a first client device accessing from a first UP device.
[0086] In an embodiment of the present application, the first CP device may receive a dial-up request from the first client device connected to the first UP device, and based on the dial-up request, the first CP device may send an address allocation request to the second CP device to request the second CP device to allocate an address.
[0087] As a possible example, the first CP device may be a master CP device of the first UP device. Accordingly, the first UP device may directly send the received dial-up request of the first client device to the first CP device.
[0088] As another possible example, the first CP device may be a backup CP device for the first UP device, and the second CP device may be the primary CP device for the first UP device. Furthermore, upon detecting that it needs to be upgraded to become the new primary CP device for the first UP device, the first CP device may send a switch instruction message to the first UP device, instructing the first UP device to switch from the second CP device to the first CP device as the primary CP device. Accordingly, the first UP device may forward the dial-up request received from the first client device to the first CP device based on the switch instruction message.
[0089] For example, if the first CP device detects a channel failure between the first UP device and the second CP device, or after the first CP device is upgraded, it can be determined that it can be upgraded to become the new master CP device of the first UP device.
[0090] Step 102: The second CP device sends the allocated first address to the first CP device based on the address allocation request.
[0091] After receiving the address allocation request from the first CP device, the second CP device can allocate a first address to the first CP device and send the first address to the first CP device. For example, the second CP device can allocate the first address from the address pool or large network segment corresponding to the first UP device. The first address can be a single IP address or an address segment.
[0092] Step 103: The first CP device allocates a network address to the first client device based on the first address.
[0093] After receiving the first address assigned by the second CP device, the first CP device can assign a network address to the first client device based on the first address. The network address can be a private network address, such as a private network IPv4 or IPv6 address.
[0094] If the first address allocated by the second CP device is a single IP address, the first CP device can directly allocate the first address to the first client device. If the first address allocated by the second CP device is an address segment, the first CP device can allocate a network address from the address segment to the first client device.
[0095] In summary, the embodiments of the present application provide an address allocation method. After a first CP device receives a dial-up request from a first client device connected from a first UP device, it can request a second CP device to allocate a first address, and then allocate a network address to the first client device based on the first address. This allows the first CP device to obtain the first address from the second CP device even if a fault occurs in the channel between the first UP device and the second CP device, and to allocate a network address to a client device connected from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0096] In a scenario where a first UP device belongs to a UP backup group that includes multiple UP devices and the path between the first UP device and the second CP device fails, the method provided in this embodiment of the application allows the first UP device to independently switch to the first CP device to continue going online. This avoids affecting the normal service status of other UP devices in the UP backup group.
[0097] In a CP device upgrade scenario, the first CP device (i.e., the upgraded CP device) can independently request address allocation from the second CP device for client devices on the first UP device. This allows for individual switching of UP devices within the same backup group. Each UP device in the backup group can be switched to the first CP device one by one, and the switching process for each UP device does not affect the normal operation of services on other UP devices, thus preventing the switching process from significantly impacting services.
[0098] Because UP devices are switched one by one, the broadband access system no longer needs to plan fine-grained address pools for UP backup groups to facilitate upgrades and switchovers. Consequently, the address pool shared by UP backup groups can be larger, or multiple UP backup groups can share the same address pool. This effectively increases the flexibility of address pool planning.
[0099] The embodiment of the present application provides another address allocation method, which can be applied to a broadband access system with CU separation, such as that shown in Figure 3. As shown in Figure 5, the address allocation method provided in the embodiment of the present application includes:
[0100] Step 201: A first CP device sends a switching instruction message to a first UP device.
[0101] In this embodiment of the present application, the first CP device can be a backup UP device for the first UP device, and the second CP device can be the primary UP device for the first UP device. If the first CP device needs to be upgraded to the primary CP device for the first UP device, it can send a switch instruction message to the first UP device. The switch instruction message can be used to instruct the primary CP device of the first UP device to switch from the second CP device to the first CP device.
[0102] In the first possible scenario, if the first CP device detects a fault in the channel between the second CP device and the first UP device, it may determine that it needs to be upgraded to the primary CP device for the first UP device and send a switch instruction message to the first UP device. For example, after detecting a fault in the channel between the second CP device and the first UP device, the second CP device may send a fault indication message to the first CP device. Based on the fault indication message, the first CP device may then determine that the channel between the second CP device and the first UP device is faulty.
[0103] In the second possible scenario, after the first CP device completes its upgrade (e.g., to a new version of the CP device), it may determine that it needs to be upgraded to the primary CP device for the first UP device and send a switch instruction message to the first UP device. For example, the first CP device may determine that its upgrade is complete based on the primary and backup status information configured by the controller or operation and maintenance personnel.
[0104] Optionally, in step 201, the second CP device may also send a handover instruction message to the first UP device. Specifically, if the second CP device determines that it needs to be downgraded to a backup CP device for the first UP device and that the first CP device can be upgraded to the primary CP device for the first UP device, the second CP device may send a handover instruction message to the first UP device. For example, after determining that the first CP device has been upgraded, the second CP device may determine that the first CP device can be upgraded to the primary CP device and that the second CP device needs to be downgraded to a backup CP device, and may then send a handover instruction message to the first UP device.
[0105] Step 202: The first UP device sends the dial-up request of the first client device to the first CP device.
[0106] After receiving the switching instruction message sent by the first CP device, the first UP device can determine that its primary CP device has been updated to the first CP device. Based on this, the first UP device can send the dial request received from the first client device to the first CP device.
[0107] It is understood that in the first possible scenario described above, the first UP device can also proactively detect whether the channel between it and the second CP device is faulty. Furthermore, upon detecting a channel fault between it and the second CP device, the first UP device can directly transmit the dial-up request received from the first client device to the first CP device, without needing to receive a handover instruction message from the first CP device. Accordingly, the first CP device does not need to detect whether the channel between the second CP device and the first UP device is faulty, and thus does not need to transmit a handover instruction message to the first UP device.
[0108] For example, referring to Figure 3 , assume that the first UP device is UP1, the first CP device is CP1, and the second CP device is CP2. After a failure in the channel between UP1 and CP2, CP1 can be upgraded to become UP1's primary CP device, and UP1 can then send a dial-up request for the first client device to CP2. Alternatively, referring to Figure 6 , after the upgrade is complete, CP1 can be upgraded to become UP1's primary CP device, and UP1 can then send a dial-up request for the first client device to CP2.
[0109] It can also be understood that in the second possible scenario, after the first UP device determines based on the switching indication message that the upgrade of the first CP device is complete, it can also be upgraded to the new version and switched to the first CP device.
[0110] Step 203: The first CP device sends an address allocation request to the second CP device based on the fact that the first CP device is a backup CP device of the first address pool and the second CP device is an active CP device of the first address pool.
[0111] The first CP device is pre-configured with a first address pool corresponding to the first UP device. The first CP device and the second CP device can share the first address pool, and the two CP devices have different primary and backup states for the address pool. Furthermore, the first address pool can be shared by a backup group to which the first UP device belongs, and the backup group to which the first UP device belongs can include one or more UP devices. The primary and backup states of the first CP device for the first address pool can be the same as or different from the primary and backup states of the first CP device for the backup group to which the first UP device belongs.
[0112] In an embodiment of the present application, if the first CP device determines that it is a backup CP device for the first address pool and the second CP device is the primary CP device for the first address pool, an address allocation request may be sent to the second CP device. The address allocation request is used to instruct the second CP device to allocate a first address from the first address pool corresponding to the first UP device.
[0113] It is understandable that, in a scenario where a first CP device and a second CP device share multiple address pools, the address allocation request may carry an allocation identifier (assign-identify) for indicating the first address pool, so that the second CP device can allocate the first address from the first address pool corresponding to the first UP device based on the allocation identifier. The allocation identifier may be an identifier of the first UP device, or may be an identifier of another dimension, such as an identifier of the UP backup group to which the first UP device belongs, or an identifier of the first address pool.
[0114] Optionally, the first CP device may send the address allocation request through a disaster recovery channel between the first CP device and the second CP device, and the address allocation request may be transmitted based on UDP or TCP.
[0115] As one possible example, the address allocation request may include the first address requested by the first CP device. That is, the first CP device may determine its desired first address in advance and request the specified first address from the second CP device. The first address may be a single address or an address segment. The single address may be an IPv4 or IPv6 address, and the address segment may be an IPv4 or IPv6 address segment.
[0116] As another possible example, the address allocation request may include the type of the first address requested by the first CP device. The first address type may be a single address or an address segment, and both the single address and the address segment may be an IPv4 or IPv6 address. Accordingly, the first address type may include: an IPv4 address, an IPv4 prefix, an IPv6 address, or an IPv6 prefix. The IPv4 or IPv6 prefix indicates a request for an address segment.
[0117] As another possible example, the address allocation request may not need to carry the first address or the type of the first address. Accordingly, the second CP device may randomly allocate the first address, or the second CP device may allocate the first address based on its configured address allocation policy.
[0118] It is understood that if the first CP device receives a dial-up request from the first UP device for the first time (i.e., when the first client device in the first UP device is detected to be online), it can request an address segment from the second CP device. Alternatively, when the first CP device receives a dial-up request from the first UP device and detects that the address segment resources allocated by the second CP device have been exhausted (i.e., when all addresses in the address segment have been allocated), it can again request a new address segment from the second CP device.
[0119] In an embodiment of the present application, the address allocation request may further include a message type field, and the message type field may be used to indicate that the address allocation request is a message requesting address allocation.
[0120] Figure 7 is a schematic diagram of the message structure of an address allocation request provided in an embodiment of the present application. As shown in Figure 7, the address allocation request may include a message type field, a transaction ID field, an allocation ID field, and an options field. Among them, the message type field is used to indicate that the address allocation request is used to request an address. For example, the value of the message type field can be 1. The transaction ID field can be used to carry the identifier of this address request transaction, and its length can be 3 bytes. The allocation ID field can be used to carry the allocation identifier indicating the first address pool. The allocation identifier can be the identifier of the first UP device or the identifier of the backup group to which the first UP device belongs. The options field can be used to carry the first address requested by the first CP device, or the first address type. The type of the first address can include: a single IPv4 address (OPTION_IPV4ADDR), a single IPv6 address (OPTION_IPV6ADDR), an IPv4 address segment (OPTION_IPV4PREFIX), and an IPv6 address segment (OPTION_IPV6PREFIX). It is understandable that if the address allocation request sent by the first CP device does not need to carry the first address or the type of the first address, the address allocation request may not include the option field.
[0121] If the first address requested by the first CP device is a single IPv4 address, as shown in FIG8 , the option field may include: an option code field, an option length field, and an address field. The option code field may be used to indicate that the first address requested by the first CP device is a single IPv4 address, namely, OPTION_IPV4 address (OPTION_IPV4ADDR). For example, the value of the option code field may be 1. The option length field is used to indicate the length of the address field. For example, its value may be 4, i.e., the length of the address field may be 4 bytes. The address field is used to carry the first address requested by the first CP device, i.e., the IPv4 address specified by the first CP device. If the first CP device does not specify an IPv4 address, the value of the address field may be a preset default value, such as all 0s.
[0122] If the first address requested by the first CP device is an IPv4 address segment, as shown in FIG9 , the option field may include: an option code field, an option length field, a prefix length field, and a prefix field. The option code field is used to indicate that the first address requested by the first CP device is an IPv4 address segment, namely, OPTION_IPV4 prefix (OPTION_IPV4PREFIX). For example, the value of the option code field may be 2. The option length field is used to indicate the length of the prefix length field and the prefix field. For example, its value may be 5, i.e., a length of 5 bytes. The prefix length field is used to indicate the length of the IPv4 prefix, i.e., the mask length of the IPv4 address segment. The prefix field is used to carry the first address requested by the first CP device, i.e., the IPv4 address segment specified by the first CP device. If the first CP device does not specify an IPv4 address segment, the value of the prefix field may be a preset default value, such as all 0s.
[0123] If the first address requested by the first CP device is a single IPv6 address, as shown in Figure 10, the option field may include: an option code field, an option length field, and an address field. The option code field may be used to indicate that the first address requested by the first CP device is a single IPv6 address, namely, OPTION_IPV6 address (OPTION_IPV6ADDR). For example, the value of the option code field may be 3. The option length field is used to indicate the length of the address field. For example, its value may be 16, indicating that the length of the address field is 16 bytes. The address field is used to carry the IPv6 address requested by the first CP device. If the first CP device does not specify an IPv6 address, the value of the address field may be a preset default value, such as all 0s.
[0124] If the first address requested by the first CP device is an IPv6 address segment, as shown in Figure 11, the option field may include: an option code field, an option length field, a prefix length field, and a prefix field. Among them, the option code field is used to indicate that the first address requested by the first CP device is an IPv6 address segment, that is, OPTION_IPV6 prefix (OPTION_IPV6PREFIX). For example, the value of the option code field can be 4. The option length field is used to indicate the length of the prefix length field and the prefix field. For example, its value can be 17, that is, the length is 17 bytes. The prefix length field is used to indicate the length of the IPV6 prefix, that is, the mask length of the IPv6 address segment. The prefix field is used to carry the IPv6 address segment requested by the first CP device. If the first CP device does not specify an IPv6 address segment, the value of the prefix field can be a preset default value, for example, it can be all 0s.
[0125] Step 204: The second CP device allocates a first address from the first address pool based on the address allocation request.
[0126] In the embodiment of the present application, after receiving the address allocation request sent by the first CP device, the second CP device may allocate the first address from the first address pool based on the fact that it is the master CP device of the first address pool.
[0127] It is understandable that if the address allocation request carries the first address specified by the first CP device and the first address is not occupied, the second CP device can directly allocate the first address. If the address specified by the first CP device carried in the address allocation request is occupied, the second CP device can allocate other available addresses from the first address pool as the first address. The first UP device can correspond to one or more address pools. If the first UP device corresponds to multiple address pools, the first address pool can be an address pool with available addresses in the multiple address pools.
[0128] If the address allocation request carries the type of the first address, the second CP device may allocate a first address of the corresponding type from the first address pool. For example, if the type of the first address carried in the address allocation request is a single IPv4 address, the first address allocated by the first CP device from the first address pool may be a single IPv4 address. If the type of the first address carried in the address allocation request is an IPv6 address segment, the first address allocated by the first CP device from the first address pool may be a single IPv6 address segment.
[0129] Step 205: The second CP device sends the first address to the first CP device.
[0130] After allocating the first address, the second CP device may send the first address to the first CP device. For example, the second CP device may send the first address via a disaster recovery channel between the second CP device and the first CP device, and the second CP device may transmit the first address based on UDP or TCP.
[0131] Optionally, the second CP device may send a response message carrying the first address to the first CP device. The format of this response message can also be similar to that of the address allocation request message, as shown in Figure 7 . It is understood that the values of the message type field and the transaction identifier field in the response message can be the same as those in the address allocation request. Furthermore, the options field of the response message can carry the first address allocated by the second CP device.
[0132] For example, if the first address allocated by the second CP device is a single IPv4 address, then with reference to Figures 7 and 8, the options field in the response message may carry the single IPv4 address. If the first address allocated by the second CP device is an IPv6 address segment, then with reference to Figures 7 and 11, the options field in the response message may carry the IPv6 prefix, i.e., the IPv6 address segment.
[0133] Step 206: The first CP device allocates a network address to the first client device based on the first address.
[0134] After receiving the first address assigned by the second CP device, the first CP device can assign a network address to the first client device based on the first address. If the first address is a single IP address, the first CP device can directly assign the first address to the first client device. That is, the first address is the network address assigned to the first client device. If the first address is an address segment assigned to the first UP device, the first CP device can assign a network address to the first client device from within the address segment.
[0135] It is understandable that the first CP device may send the network address to the first UP device, and the first UP device may then send the network address to the first client device, thereby allocating the network address to the first client device.
[0136] It can also be understood that, for the scenario where the first address is an address segment, after the first CP device subsequently receives a dial-up request from a client device accessing from the first UP device, it can directly allocate a network address to the client device from the address segment without requesting an address from the second CP device.
[0137] It can also be understood that in the scenario of CP device upgrade, multiple UP devices sharing the same address pool or large network segment can be switched to the new version of CP device one by one. That is, during the switching process of a certain UP device, the primary CP device of other UP devices remains unchanged. For example, referring to Figure 6, UP1, UP2, and UP3 share address pool 1, and all use CP2 as the primary CP device. During the process of UP1 upgrading and switching to the new version of CP1, the primary CP devices of UP2 and UP3 remain unchanged, that is, the client devices on UP2 and UP3 still access the network from CP2. After the upgrade and switching of UP1 is completed, UP2 and UP3 can be upgraded and switched in turn. For example, CP1 or CP2 can instruct UP2 and UP3 to upgrade and switch in turn.
[0138] Step 207: The first CP device receives a dial-up request from the second client device connected to the second UP device.
[0139] In an embodiment of the present application, the broadband access system may further include a second UP device. The second UP device corresponds to a second address pool, and the first CP device is a primary CP device of the second address pool. The first CP device may also receive a dial-up request from a second client device sent by the second UP device.
[0140] As a possible example, the first CP device may be the primary CP device of the second UP device. Accordingly, after receiving the dial-up request from the second client device, the second UP device may directly send the dial-up request to the first CP device.
[0141] As another possible example, the first CP device may be a backup CP device for a second UP device, and the second CP device may be the primary CP device for the second UP device. Furthermore, if the first CP device determines that it needs to be upgraded to the primary CP device for the second UP device, it may send a handover instruction message to the second UP device. Alternatively, if the second CP device determines that it needs to be downgraded to the backup CP device for the second UP device, it may send a handover instruction message to the second UP device. Based on the handover instruction message, the second UP device may then send a dial-up request from the second client device to the first CP device.
[0142] Step 208: The first CP device allocates a network address from the second address pool to the second client device based on the fact that it is the master CP device of the second address pool.
[0143] If the first CP device receives the dial-up request of the second client device sent by the second UP device, it can directly allocate a network address to the second client device from the second address pool based on being the master CP device of the second address pool.
[0144] Step 209: The second CP device receives a dial-up request from a third client device connected to the third UP device.
[0145] In this embodiment of the present application, the broadband access system may further include a third UP device, which also corresponds to the first address pool. That is, the first UP device and the second UP device may share the first address pool. Furthermore, the primary CP device of the third UP device may be the second CP device.
[0146] Since the second CP device is the primary CP device of the third UP device, the third UP device may send the dial-up request to the second CP device after receiving the dial-up request from the third client device.
[0147] For example, referring to Figure 6, assuming that the third UP device is UP2 or UP3, UP1, UP2, and UP3 share address pool 1. In addition, CP2 is the primary UP device for UP2 and UP3. Then, upon receiving a dial-up request from a client device, UP2 and UP3 can both send the dial-up request to CP2.
[0148] Step 210: The second CP device allocates a network address from the first address pool to the third client device based on the fact that it is the master CP device of the first address pool.
[0149] After receiving the dial-up request from the third client device sent by the third UP device, the second CP device can directly allocate a network address to the third client device from the first address pool based on its status as the primary CP device in the first address pool. For example, referring to Figure 6, CP2 can directly allocate a network address from address pool 1 to a client device connected to UP2 or UP3.
[0150] Optionally, the broadband access system may further include a fourth UP device, which also corresponds to the first address pool. That is, the first and fourth UP devices may share the first address pool. Furthermore, the first CP device serves as the primary CP device for the fourth UP device. It will be appreciated that, in scenarios where the first CP device serves as a backup CP device for the first UP device, the fourth UP device and the first UP device belong to different backup groups.
[0151] Because the first CP device is the primary CP device for the fourth UP device, the fourth UP device can send the dial-up request to the first CP device after receiving the dial-up request from the client device. The first CP device can send an address allocation request to the second CP device based on the fact that it is the backup CP device for the first address pool and the second CP device is the primary CP device for the first address pool. After receiving the address allocation request, the second CP device can allocate a second address from the first address pool based on the fact that it is the primary CP device for the first address pool and send the second address to the first CP device. The first CP device can then allocate a network address to the client device on the fourth UP device based on the second address.
[0152] For example, referring to Figure 3 , assume that the fourth UP device is UP2 or UP3, and that UP1, UP2, and UP3 share address pool 1. Furthermore, UP1 belongs to a backup group with CP2 as the primary CP device and CP1 as the backup CP device. UP2 and UP3 belong to another backup group with CP1 as the primary CP device and CP2 as the backup CP device. Accordingly, upon receiving a dial-up request from a client device, UP2 and UP3 can both send the dial-up request to CP1. CP1 can then request a second address from CP2 and, based on the second address assigned by CP2, assign a network address to the client device on UP2 or UP3.
[0153] Step 211: The first CP device sends an address release message to the second CP device based on the first client device going offline from the first UP device.
[0154] In this embodiment of the present application, after the first CP device detects that the first client device has gone offline from the first UP device, it may also send an address release message to the second CP device. This address release message is used to instruct the second CP device to release its allocated first address. Optionally, the first CP device may send this address release message via the disaster recovery channel between it and the second CP device, and the first CP device may transmit this address release message based on UDP or TCP.
[0155] It is understood that the message format of the address release message can be the same as the message format of the address allocation request. For example, the address release message also includes a message type field, and the message type field can be used to indicate that the address release message is used to request the release of an address. In addition, the value of the message type field in the address release message is different from the value in the address allocation request. For example, the value of the message type field in the address release message can be 2. The transaction identifier field in the address release message is used to carry the identifier of this address release transaction. The option field of the address release message is used to carry the first address to be released.
[0156] Step 212: The second CP device releases the first address based on the address release message.
[0157] After receiving the address release message sent by the first CP device, the second CP device can release the first address allocated by it. Accordingly, the first address can be allocated to other client devices or other UP devices.
[0158] It is understandable that the order of the steps of the address allocation method provided in the embodiment of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the situation. For example, if the first CP device is the primary CP device of the first UP device, the above step 201 can be deleted. Alternatively, after the first UP device detects a channel failure between it and the second CP device, it can directly send a dial-up request of the client device to the first CP device without the instruction of the first CP device. Accordingly, the above step 201 can be deleted according to the situation. Alternatively, the above steps 207 and 208 can be deleted according to the situation, or can be executed before step 206. Alternatively, the above steps 209 and 210 can be deleted according to the situation, or can be executed before step 208. Alternatively, the above steps 211 and 212 can be deleted according to the situation, or can be executed before step 210.
[0159] This embodiment of the present application provides an address allocation method. After a first CP device receives a dial-up request from a first client device connected from a first UP device, it can request a second CP device to allocate a first address. The method then allocates a network address to the first client device based on the first address. This method allows the first CP device to obtain the first address from the second CP device even if the channel between the first UP device and the second CP device fails, and to allocate a network address to a client device connected from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0160] Furthermore, in a CP device upgrade scenario, since the first CP device (i.e., the upgraded CP device) can independently request address allocation from the second CP device for client devices on the first UP device, individual UP device handovers within the same backup group are possible. In other words, each UP device within the backup group can be individually handed over to the first CP device. Because the handover of a single UP device takes a shorter time, the handover process can be minimized from significantly impacting services.
[0161] Because UP devices are switched one by one, the broadband access system no longer needs to plan fine-grained address pools for UP backup groups to facilitate upgrades and switchovers. Consequently, the address pool shared by UP backup groups can be larger, or multiple UP backup groups can share the same address pool. This effectively increases the flexibility of address pool planning.
[0162] FIG12 is a schematic diagram of the structure of a first CP device provided in an embodiment of the present application. The first CP device can be applied to a broadband access system with CU separation, such as that shown in FIG3 or FIG6 , and can implement the steps performed by the first CP device in the above method embodiment. As shown in FIG12 , the first CP device includes:
[0163] The sending module 301 is configured to send an address allocation request to the second CP device based on a dial-up request from the first client device accessing the first UP device. The implementation of the sending module 301 can refer to the description of step 101 in the above method embodiment.
[0164] The receiving module 302 is configured to receive the first address allocated by the second CP device based on the address allocation request. The implementation of the functions of the receiving module 302 can refer to the description of steps 102 and 205 in the above method embodiment.
[0165] The allocation module 303 is configured to allocate a network address to the first client device based on the first address. The implementation of the functions of the allocation module 303 can refer to the description of steps 103 and 206 in the above method embodiment.
[0166] Optionally, the first UP device corresponds to the first address pool, and the sending module 301 can be configured to send an address allocation request to the second CP device based on the fact that the first CP device is a backup CP device for the first address pool and the second CP device is the primary CP device for the first address pool. The address allocation request is configured to instruct the second CP device to allocate a first address from the first address pool. The implementation of the functions of the sending module 301 can also refer to the description of steps 202 and 203 in the above-mentioned method embodiment.
[0167] Optionally, the first CP device may be a master CP device of the first UP device.
[0168] Optionally, the sending module 301 may also be configured to send a handover instruction message to the first UP device before sending an address allocation request to the second CP device based on a dial-up request from the first client device connected from the first UP device. The handover instruction message is used to instruct the first UP device to switch its primary CP device from the second CP device to the first CP device. For further implementation of the functions of the sending module 301, reference may be made to the description of step 201 in the above method embodiment.
[0169] Optionally, the sending module 301 may be configured to send a switching instruction message to the first UP device based on a channel failure between the second CP device and the first UP device; or send a switching instruction message to the first UP device based on completion of an upgrade of the first CP device.
[0170] Optionally, the sending module 301 may also be configured to send an address release message to the second CP device based on the first client device going offline from the first UP device. The address release message is used to instruct the second CP device to release the first address. The implementation of the functions of the sending module 301 may also refer to the description of step 211 in the above method embodiment.
[0171] Optionally, the first address is a network address assigned to the first client device.
[0172] Optionally, the first address is an address segment allocated to the first UP device. Accordingly, the allocation module 303 may be configured to allocate a network address to the first client device from the address segment.
[0173] Optionally, the broadband access system further includes a second UP device, the second UP device corresponding to a second address pool, and the first CP device serving as the primary CP device for the second address pool. The allocation module 303 may also be configured to allocate a network address from the second address pool to a second client device accessing from the second UP device based on a dial-up request from the second client device. The functionality of the allocation module 303 may also be implemented with reference to the description of steps 207 and 208 in the aforementioned method embodiment.
[0174] Optionally, the address allocation request and the first address may be transmitted based on UDP or TCP.
[0175] Optionally, the address allocation request carries the first address, or the address allocation request carries the type of the first address.
[0176] Optionally, the type of the first address includes an IPv4 address, an IPv4 prefix, an IPv6 address or an IPv6 prefix.
[0177] Optionally, the address allocation request includes a message type field, and the message type field is used to indicate that the address allocation request is a message requesting address allocation.
[0178] In summary, embodiments of the present application provide a first CP device that, upon receiving a dial-up request from a first client device connected from a first UP device, can request a second CP device to allocate a first address, and then allocate a network address to the first client device based on the first address. Consequently, even if the channel between the first UP device and the second CP device fails, the first CP device can still obtain the first address from the second CP device and allocate a network address to a client device connected from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0179] Furthermore, in a CP device upgrade scenario, since the first CP device (i.e., the upgraded CP device) can independently request address allocation from the second CP device for client devices on the first UP device, individual UP device handovers within the same backup group are possible. In other words, each UP device within the backup group can be individually handed over to the first CP device. Because the handover of a single UP device takes a shorter time, the handover process can be minimized from significantly impacting services.
[0180] Because UP devices are switched one by one, the broadband access system no longer needs to plan fine-grained address pools for UP backup groups to facilitate upgrades and switchovers. Consequently, the address pool shared by UP backup groups can be larger, or multiple UP backup groups can share the same address pool. This effectively increases the flexibility of address pool planning.
[0181] FIG13 is a schematic diagram of the structure of a second CP device provided in an embodiment of the present application. This second CP device can be applied to a broadband access system with CU separation, such as that shown in FIG3 or FIG6 , and can implement the steps performed by the second CP device in the above method embodiment. As shown in FIG13 , the second CP device includes:
[0182] Receiving module 401 is configured to receive an address allocation request sent by the first CP device based on a dial-up request from a first client device connected to the first UP device. The implementation of the functions of receiving module 401 can refer to the description of steps 101 and 203 in the above method embodiment.
[0183] The sending module 402 is configured to send the allocated first address to the first CP device based on the address allocation request. The first address is used by the first CP device to allocate a network address to the first client device. The implementation of the functions of the sending module 402 can refer to the description of steps 102 and 205 in the above method embodiment.
[0184] Optionally, the first UP device corresponds to a first address pool, and the sending module 402 may be configured to send the first address allocated from the first address pool to the first CP device based on the address allocation request and the fact that the second CP device is the master CP device of the first address pool. The functionality of the sending module 402 may also be implemented with reference to the description of step 204 in the above method embodiment.
[0185] Optionally, the receiving module 401 may also be configured to receive an address release message sent by the first CP device, the address release message being sent by the first CP device based on the first client device going offline from the first UP device. The implementation of the functions of the receiving module 401 may also refer to the description of step 211 in the above method embodiment.
[0186] Furthermore, as shown in FIG13 , the second CP device may further include:
[0187] The release module 403 is configured to release the first address based on the address release message. The implementation of the function of the release module 403 can refer to the description of step 212 in the above method embodiment.
[0188] Optionally, the first address is a network address assigned to the first client device, or the first address is an address segment assigned to the first UP device.
[0189] Optionally, the sending module 402 may be further configured to send a switching instruction message to the first UP device before the receiving module 401 receives the address allocation request sent by the first CP device. The switching instruction message is used to instruct the primary CP device of the first UP device to switch from the second CP device to the first CP device.
[0190] In summary, the embodiments of the present application provide a second CP device that, upon receiving an address allocation request from a first CP device, can send an allocated first address to the first CP device, so that the first CP device can assign a network address to a first client device based on the first address. Consequently, even if the channel between the first UP device and the second CP device fails, the first CP device can still obtain the first address from the second CP device and assign a network address to a client device that has logged on from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0191] It should be understood that the first CP device and the second CP device provided in the embodiments of the present application can be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. In addition, the address allocation method provided in the above method embodiment can also be implemented by software. When the address allocation method provided in the above method embodiment is implemented by software, the first CP device and the second CP device can include a software module for implementing the above method.
[0192] Figure 14 is a schematic diagram of the structure of a network device provided in an embodiment of the present application. This network device can be applied to a broadband access system such as that shown in Figure 3 or Figure 6, and can be a first CP device or a second CP device in the system. Referring to Figure 14, the network device includes a processor 501, a memory 502, a network interface 503, and a bus 504.
[0193] Memory 502 stores a computer program 5021 for implementing various application functions. Processor 501 is configured to execute computer program 5021 to implement the method provided in the above method embodiment for a CP device. For example, processor 501 is configured to execute computer program 5021 to implement the functions of the various modules in the CP device shown in FIG. 12 or FIG. 13 .
[0194] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), ASICs, FPGAs, graphics processing units (GPUs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0195] The memory 502 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0196] There may be multiple network interfaces 503, and the network interfaces 503 are used to implement communication connections (which may be wired or wireless) with other devices. In the embodiment of the present application, the network interface 503 is used to send and receive messages. The other devices may be devices such as terminals, servers, VMs, or other network devices.
[0197] Bus 504 is used to connect processor 501, memory 502, and network interface 503. In addition to a data bus, bus 504 may also include a power bus, a control bus, and a status signal bus. However, for clarity, various buses are labeled as bus 504 in the figure.
[0198] If the network device is a first CP device, the processor 501 may be configured to send an address allocation request to the second CP device via the network interface 503 based on a dial-up request from a first client device connected from the first UP device, and receive a first address allocated by the second CP device based on the address allocation request. Subsequently, a network address is allocated to the first client device based on the first address. The detailed processing of the processor 501 is described in detail with reference to the steps performed by the first CP device in the aforementioned method embodiment, and will not be further described here.
[0199] If the network device is a second CP device, the processor 501 may be configured to receive, via the network interface 503, an address allocation request from the first CP device. The address allocation request is sent by the first CP device based on a dial-up request from a first client device connected from the first UP device. Based on the address allocation request, the processor 501 may then transmit an allocated first address to the first CP device via the network interface 503. The first address is used by the first CP device to allocate a network address to the first client device. The detailed processing of the processor 501 is described in detail with reference to the steps performed by the second CP device in the aforementioned method embodiment, and will not be further described here.
[0200] FIG15 is a schematic diagram of the structure of another network device provided in an embodiment of the present application. The network device can be applied to a broadband access system such as that shown in FIG3 or FIG6 , and can be the first CP device or the second CP device in the system. As shown in FIG15 , the network device may include: a main control board 601 and at least one interface board (an interface board is also called a line card or a service board), for example, FIG15 shows an interface board 602 and an interface board 603. In the case of multiple interface boards, the network device may further include a switching network board 604, which is used to complete data exchange between the interface boards.
[0201] The main control board 601, also known as the main processing unit (MPU) or route processor card, is used to perform functions such as system management, device maintenance, and protocol processing. It primarily includes three functional units: a system management and control unit, a system clock unit, and a system maintenance unit. It includes a central processing unit 6011 and memory 6012.
[0202] Interface boards 602 and 603, also known as line processing units (LPUs), line cards, or service boards, provide various service interfaces and facilitate message forwarding. These interfaces may include packet over SONET / SDH (POS) interfaces, Gigabit Ethernet (GE) interfaces, and asynchronous transfer mode (ATM) interfaces. SONET refers to synchronous optical network, and SDH refers to synchronous digital hierarchy. The main control board 601, interface board 602, and interface board 603 are connected to the system backplane via a system bus for interoperability. As shown in Figure 15, the interface board 602 includes one or more central processing units (CPUs) 6021. The CPUs 6021 control and manage the interface board 602 and communicate with the CPU 6011 on the main control board 601. The memory 6024 on the interface board 602 is used to store forwarding table entries, and the network processor 6022 can forward packets by searching the forwarding table entries stored in the memory 6024. The memory 6024 can also be used to store program codes.
[0203] The interface board 602 further includes one or more physical interface cards 6023 , which are configured to receive messages sent by a previous-hop node and send processed messages to a next-hop node according to instructions from the central processor 6021 .
[0204] Furthermore, it is understood that the central processor 6021 and / or network processor 6022 in the interface board 602 in FIG. 15 may be dedicated hardware or chips, such as an ASIC, to implement the aforementioned functions. This implementation is commonly referred to as utilizing dedicated hardware or chips for the forwarding plane. In other embodiments, the central processor 6021 and / or network processor 6022 may also be a general-purpose processor, such as a general-purpose CPU, to implement the aforementioned functions.
[0205] It should also be understood that there may be one or more main control boards 601, and when there are multiple boards, they may include a primary main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. As shown in Figure 15, the network device includes an interface board 602 and an interface board 603. When a distributed forwarding mechanism is adopted, the structure of interface board 603 is substantially the same as that of interface board 602, and the operations on interface board 603 are substantially similar to those on interface board 602. For the sake of brevity, they will not be described in detail. When the network device has multiple interface boards, the multiple interface boards can communicate with each other through one or more switching network boards 604, and load sharing and redundant backup can be achieved to provide large-capacity data exchange and processing capabilities.
[0206] In a centralized forwarding architecture, the network device may not require the switching network board 604; the interface board handles the entire system's service data processing. Therefore, network devices with a distributed architecture have greater data access and processing capabilities than those with a centralized architecture. The specific architecture to be used depends on the specific network deployment scenario and is not limited here.
[0207] In the embodiment of the present application, the memory 6012 and the memory 6024 can be ROM or other types of static storage devices that can store static information and instructions, or RAM or other types of dynamic storage devices that can store information and instructions, or EEPROM, compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these. The memory 6024 in the interface board 602 can be independent and connected to the central processing unit 6021 via a communication bus; or, the memory 6024 can also be integrated with the central processing unit 6021. The memory 6012 in the main control board 601 can be independent and connected to the central processing unit 6011 via a communication bus; or, the memory 6012 can also be integrated with the central processing unit 6011.
[0208] The program code stored in memory 6024 is controlled for execution by the central processing unit 6021, and the program code stored in memory 6012 is controlled for execution by the central processing unit 6011. The central processing unit 6021 and / or the central processing unit 6011 can implement the method provided by the first CP device or the second CP device in the above-mentioned method embodiment by executing the program code. The program code stored in memory 6024 and / or memory 6012 may include one or more software units, which may be the functional modules shown in Figure 12 or Figure 13.
[0209] In the embodiment of the present application, the physical interface card 6023 can be a device using any transceiver type for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0210] Optionally, the devices shown in FIG. 12 to FIG. 14 may also be implemented using the structure shown in FIG. 15 .
[0211] An embodiment of the present application further provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a processor, the processor executes the steps performed by the first CP device or the second CP device in the above method embodiment.
[0212] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a processor, causes the processor to execute the steps performed by the first CP device or the second CP device in the above method embodiment.
[0213] The present application also provides a CU-separated broadband access system, comprising a first CP device, a second CP device, and a first UP device. The first and second CP devices can be used to implement the address allocation method provided in the above method embodiment. The structure of the first CP device can refer to Figures 12, 14, or 15, and the structure of the second CP device can refer to any of Figures 13 to 15.
[0214] Optionally, the broadband access system may further include a second UP device, the second UP device corresponding to the second address pool, i.e., the backup group to which the second UP device belongs shares the second address pool. Furthermore, the first CP device may be the primary CP device of the second address pool, and the second CP device may be the backup CP device of the second address pool.
[0215] Optionally, the broadband access system may further include a third UP device, which also corresponds to the first address pool. That is, the first UP device and the second UP device may share the first address pool. Furthermore, the primary CP device of the third UP device may be the second CP device. For example, the third UP device and the first UP device may belong to the same UP backup group.
[0216] Optionally, the broadband access system may further include a fourth UP device, which shares the first address pool with the first UP device. The first CP device may be a backup CP device for the first address pool, and the second CP device may be a primary CP device for the first address pool. Furthermore, the first CP device may be a backup CP device for the first UP device and may be a primary CP device for the fourth UP device. The second CP device may be a primary CP device for the first UP device and may be a backup CP device for the fourth UP device. In other words, the third UP device and the first UP device share the same address pool but belong to different UP backup groups. Therefore, the primary and backup status of a CP device in a UP backup group may be different from the primary and backup status in the address pool shared by the UP backup group.
[0217] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0218] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "at least one" refers to one or more, and "a plurality" refers to two or more. The term "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects are in an "or" relationship.
[0219] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the concepts and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. An address allocation method, characterized in that: A first CP device applied to a broadband access system in which a control plane CP and a user plane UP are separated, wherein the broadband access system further comprises a second CP device and a first UP device; and the method comprises: Sending an address allocation request to the second CP device based on a dial-up request from a first client device accessed from the first UP device; receiving a first address allocated by the second CP device based on the address allocation request; Based on the first address, a network address is assigned to the first client device.
2. The method according to claim 1, characterized in that The first UP device corresponds to a first address pool, and the sending an address allocation request to the second CP device includes: Based on the fact that the first CP device is a backup CP device of the first address pool and the second CP device is an active CP device of the first address pool, sending an address allocation request to the second CP device; The address allocation request is used to instruct the second CP device to allocate the first address from the first address pool.
3. The method according to claim 1 or 2, characterized in that: The first CP device is a master CP device of the first UP device.
4. The method according to any one of claims 1 to 3, characterized in that: Before sending the address allocation request to the second CP device based on the dial-up request of the first client device accessed from the first UP device, the method further includes: A switching instruction message is sent to the first UP device, where the switching instruction message is used to instruct a primary CP device of the first UP device to switch from the second CP device to the first CP device.
5. The method according to claim 4, characterized in that The sending a switching instruction message to the first UP device includes: Based on a channel failure between the second CP device and the first UP device, sending a switching instruction message to the first UP device; Alternatively, based on the completion of upgrading the first CP device, a switching indication message is sent to the first UP device.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Based on the first client device going offline from the first UP device, an address release message is sent to the second CP device, where the address release message is used to instruct the second CP device to release the first address.
7. The method according to any one of claims 1 to 6, characterized in that: The first address is a network address assigned to the first client device.
8. The method according to any one of claims 1 to 6, characterized in that: The first address is an address segment allocated to the first UP device; Allocating a network address to the first client device based on the first address includes: A network address is assigned to the first client device from the address segment.
9. The method according to any one of claims 1 to 8, characterized in that: The broadband access system further includes a second UP device, the second UP device corresponds to a second address pool, and the first CP device is a primary CP device of the second address pool; the method further includes: Based on a dial-up request of a second client device accessed from the second UP device, a network address is allocated to the second client device from the second address pool.
10. The method according to any one of claims 1 to 9, characterized in that: The address allocation request and the first address are transmitted based on the User Datagram Protocol UDP or the Transmission Control Protocol TCP.
11. The method according to any one of claims 1 to 10, characterized in that: The address allocation request carries the first address, or the address allocation request carries the type of the first address.
12. The method according to claim 11, characterized in that The type of the first address includes an Internet Protocol version 4 IPv4 address, an IPv4 prefix, an Internet Protocol version 6 IPv6 address or an IPv6 prefix.
13. The method according to any one of claims 1 to 12, characterized in that: The address allocation request includes a message type field, and the message type field is used to indicate that the address allocation request is a message requesting address allocation.
14. An address allocation method, characterized in that: A second CP device applied to a broadband access system in which a control plane CP and a user plane UP are separated, wherein the broadband access system further comprises a first CP device and a first UP device; and the method comprises: receiving an address allocation request sent by the first CP device, where the address allocation request is sent by the first CP device based on a dial-up request of a first client device accessed from the first UP device; Based on the address allocation request, an allocated first address is sent to the first CP device, where the first address is used by the first CP device to allocate a network address to the first client device.
15. The method according to claim 14, characterized in that The first UP device corresponds to a first address pool, and sending the allocated first address to the first CP device based on the address allocation request includes: Based on the address allocation request and the fact that the second CP device is a master CP device of the first address pool, a first address allocated from the first address pool is sent to the first CP device.
16. The method according to claim 14 or 15, characterized in that The method further comprises: receiving an address release message sent by the first CP device, where the address release message is sent by the first CP device based on the first client device going offline from the first UP device; The first address is released based on the address release message.
17. The method according to any one of claims 14 to 16, characterized in that: The first address is a network address assigned to the first client device, or the first address is an address segment assigned to the first UP device.
18. The method according to any one of claims 14 to 17, characterized in that: Before receiving the address allocation request sent by the first CP device, the method further includes: A switching instruction message is sent to the first UP device, where the switching instruction message is used to instruct a primary CP device of the first UP device to switch from the second CP device to the first CP device.
19. An address allocation method, characterized in that: A broadband access system applied to a separation of a control plane CP and a user plane UP, the system comprising a first CP device, a second CP device and a first UP device; the method comprising: The first CP device sends an address allocation request to the second CP device based on a dial-up request of a first client device accessed from the first UP device; The second CP device sends the allocated first address to the first CP device based on the address allocation request; The first CP device allocates a network address to the first client device based on the first address.
20. The method according to claim 19, characterized in that The first UP device corresponds to a first address pool; and the first CP device sends an address allocation request to the second CP device, including: The first CP device sends an address allocation request to the second CP device based on the fact that the first CP device is a backup CP device of the first address pool and the second CP device is an active CP device of the first address pool; The second CP device sends the allocated first address to the first CP device based on the address allocation request, including: The second CP device sends the first address allocated from the first address pool to the first CP device based on the address allocation request and that the second CP device is a master CP device of the first address pool.
21. The method according to claim 19 or 20, characterized in that The method further comprises: The first UP device sends a dialing request of the first client device to the first CP device based on the first CP device being the active CP device.
22. The method according to any one of claims 19 to 21, characterized in that: The method further comprises: The first CP device or the second CP device sends a switching instruction message to the first UP device, where the switching instruction message is used to instruct the primary CP device of the first UP device to switch from the second CP device to the first CP device.
23. The method according to any one of claims 19 to 22, characterized in that: The method further comprises: The first CP device sends an address release message to the second CP device based on the first client device going offline from the first UP device; The second CP device releases the first address based on the address release message.
24. The method according to any one of claims 19 to 23, characterized in that: The broadband access system further includes a second UP device, and the second UP device corresponds to a second address pool; and the method further includes: The first CP device allocates a network address from the second address pool to the second client device based on a dial-up request from the second client device accessed from the second UP device and the first CP device being a master CP device of the second address pool.
25. The method according to any one of claims 19 to 24, characterized in that: The broadband access system further includes a third UP device, and the third UP device corresponds to the first address pool; and the method further includes: The second CP device allocates a network address from the first address pool to the third client device based on a dial-up request from a third client device accessed from the third UP device and the second CP device being a master CP device of the first address pool.
26. A network device, characterized in that: The network device comprises: a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the processor implements the method according to any one of claims 1 to 18 when executing the computer program.
27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a processor, the processor is enabled to execute the method according to any one of claims 1 to 18.
28. A computer program product comprising instructions, characterized in that The instructions are executed by a processor to implement the method according to any one of claims 1 to 18.
29. A chip, characterized in that: The chip is used to implement the method according to any one of claims 1 to 18.
30. A broadband access system, characterized in that: The system comprises: a first control plane CP device, a second CP device and a first user plane UP device; The first CP device is used to implement the method according to any one of claims 1 to 10, and the second CP device is used to implement the method according to any one of claims 11 to 18.
Citation Information
Patent Citations
Access control method and device
CN114079586A
Communication method and related equipment
CN114079613A
Backup implementation method and device
CN114095342A
Method and device for controlling user to be online, forwarding plane network element and medium
CN115051970A
Address allocation method, device, equipment, system and storage medium
CN115225611A
Cited By
Management device and management method of public cloud network segments
TWI941407B
Communication methods and broadband access server device
WO2026124113A1
