Address allocation method, device and system
By implementing the address allocation request mechanism from the CP device to the second CP device in the broadband access system, the problem of being unable to access when the channel between the UP device and the CP device fails is solved, ensuring normal access of the client device and improving business stability. and flexibility in address pool planning.
Patent Information
- Application Number
- CN202310202554.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
In the Broadband Remote Access Server (BRAS), when the channel between the UP device and the CP device fails, if the switching threshold condition is not reached, the switching cannot be triggered, causing the UP device to be unable to access the client device, affecting business stability.
By sending an address allocation request to the second CP device in the CP device, it is ensured that even if there is a channel failure between the UP device and the second CP device, the address can still be obtained and the network address is assigned to the client device, and the UP device can be switched independently to Avoid affecting the service status of other UP devices.
This ensures that client devices can access the network normally, avoids channel failures from affecting the business status of other devices in the UP backup group, improves the flexibility of address pool planning, and reduces the impact of the upgrade process on the business.
Smart Images

Figure CN118540305A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an address allocation method, device and system. Background Art
[0002] A broadband remote access server (BRAS) is an access gateway for broadband network applications, which can be deployed in a manner of separating the control plane (CP) and the user plane (UP). A BRAS deployed in a manner of separating the CP and the UP (i.e., CU separation) can include a CP device and multiple UP devices.
[0003] In order to improve reliability, a CP disaster recovery group is generally deployed in a BRAS with CU separation. The CP disaster recovery group can include two CP devices that are mutually active and standby. Each CP device manages at least one UP backup group, which shares an address pool. The CP device can allocate private network addresses to connected client devices from the address pool.
[0004] If the channel between a 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 switching threshold condition of the CP device is not reached, the switching will not be triggered. At this time, the UP device with the channel failure between it and the CP device will not be able to achieve access to client devices. Summary of the invention
[0005] The present application provides an address allocation method, device 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.
[0006] In a first aspect, an address allocation method is provided, which is applied to a first CP device in a broadband access system in which CP and UP are separated, and the broadband access system also includes 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 of a first client device accessed from the first UP device. Afterwards, the first CP device 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.
[0007] Based on the solution provided by the present application, even if the channel between the first UP device and the second CP device fails, the first CP device can obtain the first address from the second CP device, and allocate a network address to the client device that is online from the first UP device based on the first address. Thus, it is ensured that the client device on the first UP device can access the network normally.
[0008] In the scenario where the UP backup group to which the first UP device belongs includes multiple UP devices, after the channel between the first UP device and the second CP device fails, the solution provided by the present application supports the first UP device to switch to the first CP device alone to continue to go online. This can avoid affecting the normal status of the services of other UP devices in the UP backup group.
[0009] Optionally, the first UP device may correspond to the 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 of the first address pool and the second CP device being a primary 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.
[0010] In the solution provided in 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 devices, 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 address allocation 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.
[0011] Optionally, the first CP device may be a primary CP device of the first UP device. Accordingly, after receiving the dial-up request of the first client device, the first UP device may directly send the dial-up request to the first CP device.
[0012] 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 accessed from the first UP device, the method may further include: sending a switching indication message to the first UP device. The switching indication 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.
[0013] In the solution provided in the present 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. The first UP device can then send the dialing request received from the first client device to the first CP device based on the switching instruction message.
[0014] Optionally, the process of the first CP device sending a switching indication message to the first UP device may include: sending a switching indication 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 indication message to the first UP device based on completion of upgrading the first CP device.
[0015] Among them, the first CP device can determine the channel failure between the second CP device and the first UP device based on the fault indication message sent by the second CP device. And the first CP device can determine that its upgrade is complete based on the status information configured by the controller or operation and maintenance personnel. In the scenario of CP device upgrade, the solution provided by this application can achieve fine-grained upgrades according to a single UP, so there is no need to plan additional fine-grained address pools for the upgrade, which effectively improves the flexibility of address pool planning.
[0016] Optionally, the method may further include: based on the first client device going offline from the first UP device, sending an address release message to the second CP device, where the address release message is used to instruct the second CP device to release the first address.
[0017] Since the second CP device is the main CP device of the first address pool, the second CP device needs to release the first address. Moreover, after the second CP device releases the first address, the first address can be allocated to other client devices or other UP devices.
[0018] 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.
[0019] 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.
[0020] 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. Furthermore, when the address resources of 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 again.
[0021] Optionally, 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 may be a primary CP device of the second address pool. The method may further include: allocating 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.
[0022] 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.
[0023] Optionally, the address allocation request and the first address may be transmitted based on a user datagram protocol (UDP) or a transmission control protocol (TCP).
[0024] 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.
[0025] 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. That is, 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.
[0026] 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.
[0027] It is understandable that the address release message sent by the first CP device may also include a message type field, and the message type field may be used to indicate that the address release message is a message requesting to release 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.
[0028] In a second aspect, another address allocation method is provided, which is applied to a second CP device in a broadband access system in which CP and UP are separated, and the broadband access system also includes a first CP device and a first UP device. The method includes: receiving an address allocation request sent by the first CP device, 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. Thereafter, based on the address allocation request, an allocated first address is sent to the first CP device, and the first address is used for the first CP device to allocate a network address to the first client device.
[0029] Optionally, the first UP device corresponds to the first address pool. The process in which the second CP device sends 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.
[0030] 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.
[0031] 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.
[0032] Optionally, before receiving the address allocation request sent by the first CP device, the method may further include: sending a switching indication message to the first UP device, the switching indication message being used to instruct the primary CP device of the first UP device to switch from the second CP device to the first CP device.
[0033] In the solution provided in the present application, if the second CP device determines that it is downgraded to a 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, a switching indication message may be sent to the first UP device.
[0034] In a third aspect, another address allocation method is provided, which is applied to a broadband access system with CP and UP separated, the system comprising a first CP device, a second CP device and a 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 of a first client device accessed 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.
[0035] 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 sends an address allocation request to the second CP device based on the fact that it is a backup CP device of the first address pool and the second CP device is the main CP device of the first address pool. 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 sends 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 main CP device of the first address pool.
[0036] Optionally, the method may further include: based on the first CP device being the active CP device, the first UP device sends a dialing request of the first client device to the first CP device.
[0037] Optionally, the method may further include: the first CP device or the second CP device sends a switching indication message to the first UP device, where the switching indication 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.
[0038] Optionally, the method may further include: 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; and the second CP device releases the first address based on the address release message.
[0039] 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.
[0040] 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.
[0041] 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 aspect or the second aspect.
[0042] In a fifth 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: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the address allocation method provided in the first aspect or the second aspect when executing the computer program.
[0043] 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 aspect or the second aspect.
[0044] In a seventh aspect, a computer-readable storage medium is provided, in which instructions are stored, and the instructions are executed by a processor to implement the address allocation method provided in the first aspect or the second aspect above.
[0045] 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 aspect or the second aspect.
[0046] In a ninth aspect, a client device access system is provided, the system comprising: a first CP device, a second CP device and a first UP device, wherein the first CP device is used to implement the address allocation method provided in the first aspect, and the second CP device is used to implement the address allocation method provided in the second aspect.
[0047] In a tenth aspect, a chip is provided, which can be used to implement the address allocation method provided in the first aspect or the second aspect.
[0048] In summary, the present application provides an address allocation method, device and system. In the solution provided in the present application, after the first CP device receives the dial-up request of the first client device connected from the first UP device, it can request the second CP device to allocate the first address, and allocate a network address to the first client device based on the first address. Based on this, even if the channel between the first UP device and the second CP device fails, the first CP device can obtain the first address from the second CP device, and allocate a network address to the client device online from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a schematic diagram of a dual-CP disaster recovery scenario provided in an embodiment of the present application;
[0050] Figure 2 is a schematic diagram of another dual-CP disaster recovery scenario provided in an embodiment of the present application;
[0051] Figure 3 It is a schematic diagram of the structure of a broadband access system provided by an embodiment of the present application;
[0052] Figure 4 is a flow chart of an address allocation method provided in an embodiment of the present application;
[0053] Figure 5 is a flow chart of another address allocation method provided in an embodiment of the present application;
[0054] Figure 6 is a schematic diagram of the structure of another broadband access system provided in an embodiment of the present application;
[0055] Figure 7 This is a schematic diagram of a message structure of an address allocation request provided in an embodiment of the present application;
[0056] Figure 8 It is a structural diagram of an option field in an address allocation request provided by an embodiment of the present application;
[0057] Fig. 9 It is a structural diagram of an option field in another address allocation request provided in an embodiment of the present application;
[0058] Fig.10 This is a structural diagram of an option field in another address allocation request provided in an embodiment of the present application;
[0059] Fig.11 This 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] Fig.12 is a structural schematic diagram of a first CP device provided in an embodiment of the present application;
[0061] Fig.13 is a structural schematic diagram of a second CP device provided in an embodiment of the present application;
[0062] Fig.14 It is a structural diagram of a network device provided in an embodiment of the present application;
[0063] Fig.15 It is a structural diagram of another network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The address allocation method, device and system provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0065] With the development of software defined network (SDN) technology and network function virtualization (NFV) technology, the metropolitan area network has evolved from the traditional network-centric architecture to the data center-centric network architecture. Traditional network element equipment has also evolved from specialization to generalization. The evolution of traditional network element equipment from specialization to generalization mainly solves two decoupling issues: the decoupling of control and forwarding, and the decoupling of software and hardware.
[0066] BRAS, also known as broadband network gateway (BNG), is a traditional broadband access gateway device that is very important in user broadband access services and scenarios. The main requirements for BNG devices in user access are user authentication, access control, and traffic scheduling. With the emergence of various Internet services, the number of user sessions supported by BNG devices is constantly increasing, the user access bandwidth is constantly increasing, and especially the requirements for BNG devices to provide external service openness and programmability are getting higher and higher. Based on these factors, BNG devices implement the decoupling of control and forwarding, as well as the decoupling of software and hardware based on the SDN / NFV architecture.
[0067] With the development of network technology, BNG has gradually evolved into a virtual BNG (vBNG), which is deployed in a CU-separated manner and includes a CP device and multiple UP devices. The vBNG is also called a separated BNG (disaggregatedBNG, DBNG). Among them, the CP device is also called a CP plane, which can be implemented and centrally deployed using cloud technology. For example, the CP device can be centrally deployed in a regional data center (RDC) computer room, that is, a 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), as well as to uniformly manage multiple UP devices. 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 a UP plane, which serves as the user plane of the vBNG, and is used to forward service messages based on user entries issued by the CP device.
[0068] It is understandable that the UP device can also be called a forwarding plane device, so CU separation can also be called forwarding and control separation, that is, forwarding and control separation. A system deployed in this CU separation manner is also called a CU-separated broadband gateway access system, or a forwarding and control-separated broadband gateway access system.
[0069] In order to improve reliability, broadband gateway access systems are generally deployed with CP disaster recovery backup. Figure 1 As shown, the dual CP disaster recovery scenario generally includes two CP devices, CP1 and CP2, which can manage multiple disaster recovery groups (DGs). Each CP device has a unique active / standby status in each disaster recovery group, and the active / standby status of the CP device can be different for different disaster recovery groups.
[0070] 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.
[0071] As a possible example, the CP device can allocate addresses within the statically configured network segment from the local address pool to client devices on a single UP device. Alternatively, UP devices in a disaster recovery group (i.e., a UP backup group) can share an address pool. Each local address pool must be bound to a specified UP device, and the addresses in the address pool can only be used by the UP device.
[0072] 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 exclusively use a subnet segment, or a UP backup group can share a subnet segment to achieve the function of improving address utilization.
[0073] It is understandable that in a dual-CP disaster recovery scenario, 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, the UP devices that allocate addresses from the address pool must also belong to the same disaster recovery group, that is, based on CP1 as the primary and CP2 as the backup. Accordingly, when deploying the network, it is necessary to manually plan the address pool or network segment based on the disaster recovery group.
[0074] Example, reference Figure 1, assuming that address pool 1, address pool 2, and address pool 3 are all based on CP1, and address pool 4, address pool 5, and address pool 6 are all based on CP2. Accordingly, UP1 that allocates addresses from address pool 1, UP2 that allocates addresses from address pool 1 and address pool 2, and UP3 that allocates addresses from address pool 2 and address pool 3 also belong to the same disaster recovery group, which shares a large network segment, and CP1 is the primary and CP2 is the backup. Similarly, UP4 that allocates addresses from address pools 4 to 6, UP5 that allocates addresses from address pools 4 and 5, and UP6 that allocates addresses from address pool 6 belong to another disaster recovery group, which shares a large network segment, and CP2 is the primary and CP1 is the backup.
[0075] Alternatively, refer to Figure 2 UP1 and UP2 belong to the disaster recovery group DG1 and share an address pool or a large network segment. The disaster recovery group DG1 uses CP1 as the primary and CP2 as the backup. UP3 and UP4 belong to the disaster recovery group DG2 and share an address pool or a large network segment. The disaster recovery group DG2 uses CP1 as the backup and CP2 as the primary. UPn-1 and UPn belong to the disaster recovery group DGN and share an address pool or a large network segment. The disaster recovery group DGN uses CP1 as the primary and CP2 as the backup.
[0076] 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 the disaster recovery group to which UP1 belongs are normal and the switching threshold of the CP device is not reached, the switching of the CP device will not be triggered. In other words, the main CP device of the disaster recovery group will not be switched from CP1 to CP2. At this time, due to the failure of the channel between UP1 and CP1, UP1 will not be able to access new client devices. If the switching of the CP device is forcibly triggered in this scenario, the client devices on other normal UP devices in the disaster recovery group will also be switched, resulting in damage to normal services.
[0077] In a dual-CP disaster recovery scenario, if an old CP device is upgraded to a new version of the CP device, all UP devices that share an address pool or a large network segment need to be upgraded together and switched to the new version of the CP device. In this upgrade method, if the address pool or network segment granularity is large, that is, the number of UP devices sharing an address pool or a large network segment is large, it will take too long for the UP device to upgrade and switch, and the business impact will be large. Therefore, this upgrade scenario brings great difficulty to address pool planning, that is, the address pool granularity cannot be too large.
[0078] Figure 3 Schematic diagram of a CU-separated broadband access system provided in an embodiment of the present application. Figure 3As shown, 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, Figure 3 The system shown includes three UP devices UP1 to UP3. The three UP devices can share the same address pool 1, and the address pool 1 is mainly composed of the first CP device CP1 and the second CP device CP2 as a backup.
[0079] The CP device, as the control plane of vBNG, is used to process the user dial-up protocol and interact with the authentication server to perform authentication, billing and authorization of the client device. After the client device passes the authentication, the CP device can send the user entry information to the corresponding UP device.
[0080] The multiple UP devices in the broadband access system serve as the user plane of the vBNG, and are used to send the dial-up protocol messages of the client devices to the CP devices through the service channel for processing when the client devices are online. After processing, the CP devices send down the user table items, and the UP devices receive the user table items sent by the CP devices, and generate the forwarding table items of the client devices locally to perform relevant service policy execution and traffic forwarding, and publish routes externally.
[0081] It is understandable 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 a UP device to implement forwarding of layer 2 messages. The client device may be a residential gateway (RGW), a personal computer (PC), a mobile phone, a laptop, or a customer premises equipment (CPE).
[0082] The present application embodiment provides an address allocation method, which can be applied to Figure 3 The CU separation broadband access system shown in FIG. Figure 4 As shown, the address allocation method provided in the embodiment of the present application includes:
[0083] 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 accessed from a first UP device.
[0084] In the embodiment of the present application, the first CP device may receive a dial-up request from the first client device connected from the first UP device. 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.
[0085] 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.
[0086] As another possible example, the first CP device may be a backup CP device of the first UP device, and the second CP device may be the primary CP device of the first UP device. Furthermore, when the first CP device detects that it needs to be upgraded to a new primary CP device of the first UP device, it may send a switching indication message to the first UP device to indicate that the primary CP device of the first UP device is switched from the second CP device to the first CP device. Accordingly, the first UP device may send the dial-up request of the first client device received by it to the first CP device based on the switching indication message.
[0087] 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 a new active CP device of the first UP device.
[0088] Step 102: The second CP device sends the allocated first address to the first CP device based on the address allocation request.
[0089] After receiving the address allocation request sent by 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 can be an address segment.
[0090] Step 103: The first CP device allocates a network address to the first client device based on the first address.
[0091] 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.
[0092] 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 to the first client device from the address segment.
[0093] In summary, the embodiment of the present application provides an address allocation method, whereby after the first CP device receives a dial-up request from the first client device connected from the first UP device, it can request the second CP device to allocate the first address, and allocate a network address to the first client device based on the first address. Based on this, even if the channel between the first UP device and the second CP device fails, the first CP device can obtain the first address from the second CP device, and allocate a network address to the client device connected from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0094] For a scenario where the UP backup group to which the first UP device belongs includes multiple UP devices and the channel between the first UP device and the second CP device fails, the method provided in the embodiment of the present application supports the first UP device to switch to the first CP device alone to continue to go online. Thus, the normal status of the services of other UP devices in the UP backup group can be avoided from being affected.
[0095] In the CP device upgrade scenario, since the first CP device (i.e., the upgraded CP device) can apply to the second CP device for address allocation for the client device on the first UP device, the individual switching of the UP devices in the same backup group can be achieved. Since each UP device in the backup group can be switched to the first CP device one by one, and the switching process of each UP device will not affect the normal operation of the services in other UP devices, it is possible to avoid the switching process from causing too much impact on the services.
[0096] Since the UP devices are switched one by one, the broadband access system does not need to plan a fine-grained address pool for the UP backup group for upgrading and switching. Accordingly, the address pool shared by the UP backup group can be larger, or multiple UP backup groups can share the same address pool. This effectively improves the flexibility of address pool planning.
[0097] The present application embodiment provides another address allocation method, which can be applied to Figure 3 The CU separation broadband access system shown in FIG. Figure 5 As shown, the address allocation method provided in the embodiment of the present application includes:
[0098] Step 201: A first CP device sends a switching instruction message to a first UP device.
[0099] In an embodiment of the present application, the first CP device may be a backup UP device of the first UP device, and the second CP device is the primary UP device of the first UP device. If the first CP device needs to be upgraded to the primary CP device of the first UP device, a switching indication message may be sent to the first UP device. The switching indication message may be used to indicate that the primary CP device of the first UP device is switched from the second CP device to the first CP device.
[0100] In the first possible scenario, if the first CP device detects a channel failure between the second CP device and the first UP device, it can determine that it needs to be upgraded to the primary CP device of the first UP device, and send a switching indication message to the first UP device. For example, after the second CP device detects a channel failure between it and the first UP device, it can send a fault indication message to the first CP device. The first CP device can then determine the channel failure between the second CP device and the first UP device based on the fault indication message.
[0101] In the second possible scenario, after the first CP device is upgraded (for example, upgraded to a new version of the CP device), it can be determined that it needs to be upgraded to the primary CP device of the first UP device, and a switching indication message is sent to the first UP device. For example, the first CP device can determine that its upgrade is complete based on the primary and backup status information configured by the controller or the operation and maintenance personnel.
[0102] Optionally, in step 201, the second CP device may also send a switching indication message to the first UP device. That is, if the second CP device determines that it needs to be downgraded to a backup CP device of the first UP device, and the first CP device can be upgraded to a master CP device of the first UP device, the second CP device may send a switching indication message to the first UP device. For example, after determining that the upgrade of the first CP device is complete, the second CP device may determine that the first CP device can be upgraded to master, and the second CP device needs to be downgraded to backup, and may send a switching indication message to the first UP device.
[0103] Step 202: The first UP device sends a dial-up request of the first client device to the first CP device.
[0104] After receiving the switching instruction message sent by the first CP device, the first UP device can determine that its main CP device has been updated to the first CP device. Based on this, the first UP device can send the received dialing request of the first client device to the first CP device.
[0105] It is understandable that in the first possible scenario described above, the first UP device can also actively detect whether the channel between it and the second CP device is faulty. Moreover, after detecting the channel failure between it and the second CP device, the first UP device can directly send the dial-up request received by the first client device to the first CP device without receiving the switching instruction message sent by the first CP device. Accordingly, the first CP device does not need to sense whether the channel between the second CP device and the first UP device is faulty, and thus does not need to send a switching instruction message to the first UP device.
[0106] Example, reference Figure 3 , assuming that the first UP device is UP1, the first CP device is CP1, and the second CP device is CP2. After the channel between UP1 and CP2 fails, CP1 can be upgraded to the main CP device of UP1, and UP1 can then send a dial-up request of the first client device to CP1. Or, refer to Figure 6 After the upgrade is completed, CP1 can be upgraded to the main CP device of UP1, and UP1 can then send a dial-up request of the first client device to CP1.
[0107] It can also be understood that in the above 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 a new version and switched to the first CP device.
[0108] 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.
[0109] 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. In addition, the first address pool can be shared by the backup group to which the first UP device belongs, and the backup group to which the first UP device belongs may include one or more UP devices. The primary and backup states of the first CP device for the first address pool may 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.
[0110] In an embodiment of the present application, if the first CP device determines that it is a backup CP device of the first address pool, and the second CP device is the primary CP device of 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 the first address from the first address pool corresponding to the first UP device.
[0111] It is understandable that, for a scenario where the first CP device and the 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 other dimensions, such as an identifier of the UP backup group to which the first UP device belongs, or may be an identifier of the first address pool.
[0112] 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.
[0113] As a possible example, the address allocation request may carry the first address requested by the first CP device. That is, the first CP device may determine the first address it needs 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.
[0114] As another possible example, the address allocation request may carry the type of the first address requested by the first CP device. The type of the first address may be a single address or an address segment, and the single address or the address segment may be an IPv4 or IPv6 address. Accordingly, the type of the first address 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.
[0115] 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.
[0116] It is understandable that if the first CP device receives the dial-up request sent by 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 the dial-up request sent by 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 request a new address segment from the second CP device again.
[0117] In the 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.
[0118] Figure 7 Schematic diagram of a message structure of an address allocation request provided in an embodiment of the present application. Figure 7 As shown, 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 may be 1. The transaction ID field may be used to carry the identifier of this address request transaction, and its length may be 3 bytes. The allocation ID field may be used to carry the allocation identifier indicating the first address pool, and the allocation identifier may 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 may be used to carry the first address requested by the first CP device, or the first address type, and the type of the first address may 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 can be understood 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 options field.
[0119] If the first address requested by the first CP device is a single IPv4 address, then Figure 8 As shown, the option field may include: an option code field, an option length field, and an address field. Among them, the option code field can be used to indicate that the first address requested by the first CP device is a single IPv4 address, that is, OPTION_IPV4 address (OPTION_IPV4ADDR). For example, the value of the option code field can be 1. The option length field is used to indicate the length of the address field. For example, its value can be 4, that is, the length of the address field can be 4 bytes. The address field is used to carry the first address requested by the first CP device, that is, 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 can be a preset default value, for example, it can be all 0.
[0120] If the first address requested by the first CP device is an IPv4 address segment, then Fig. 9As shown, 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 IPv4 address segment, that is, OPTION_IPV4 prefix (OPTION_IPV4PREFIX). For example, the value of the option code field can 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 can be 5, that is, the length is 5 bytes. The prefix length field is used to indicate the length of the IPV4 prefix, that is, the mask length of the IPv4 address segment. The prefix field is used to carry the first address requested by the first CP device, that is, the IPv4 address segment specified by the first CP device. If the first CP device does not specify the IPv4 address segment, the value of the prefix field can be a preset default value, for example, it can be all 0.
[0121] If the first address requested by the first CP device is a single IPv6 address, then Fig.10 As shown, the option field may include: an option code field, an option length field, and an address field. Among them, the option code field can be used to indicate that the first address requested by the first CP device is a single IPv6 address, that is, OPTION_IPV6 address (OPTION_IPV6ADDR). For example, the value of the option code field can be 3. The option length field is used to indicate the length of the address field. For example, its value can be 16, that is, 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 can be a preset default value, for example, it can be all 0s.
[0122] If the first address requested by the first CP device is an IPv6 address segment, then Fig.11 As shown, 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 the IPv6 address segment, the value of the prefix field can be a preset default value, for example, it can be all 0.
[0123] Step 204: The second CP device allocates a first address from the first address pool based on the address allocation request.
[0124] 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.
[0125] It is understandable that if the address allocation request carries the first address specified by the first CP device, and the first address has not been 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 has been occupied, the second CP device can allocate other available addresses from the first address pool as the first address. Among them, 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.
[0126] If the address allocation request carries the type of the first address, the second CP device may allocate the 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 an IPv6 address segment.
[0127] Step 205: The second CP device sends the first address to the first CP device.
[0128] After allocating the first address, the second CP device can send the first address to the first CP device. For example, the second CP device can send the first address through the disaster recovery channel between it and the first CP device, and the second CP device can transmit the first address based on UDP or TCP.
[0129] Optionally, the second CP device may send a response message carrying the first address to the first CP device. The format of the response message may also refer to Figure 7 , that is, the format of the response message can be the same as the message format of the address allocation request. It can be understood that the value of the message type field and the value of the transaction identifier field in the response message can be the same as the value in the address allocation request. In addition, the option field of the response message can carry the first address allocated by the second CP device.
[0130] For example, if the first address allocated by the second CP device is a single IPv4 address, refer to Figure 7 and Figure 8, the option field in the response message can carry the single IPv4 address. If the first address allocated by the second CP device is an IPv6 address segment, refer to Figure 7 and Fig.11 , the option field in the response message can carry an IPv6 prefix, that is, the IPv6 address segment.
[0131] Step 206: The first CP device allocates a network address to the first client device based on the first address.
[0132] After the first CP device receives the first address assigned by the second CP device, it 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 the address segment.
[0133] It is understandable that the first CP device may send the network address to the first UP device, and the first UP device may further send the network address to the first client device, thereby allocating the network address to the first client device.
[0134] 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.
[0135] It is also understandable 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 of a certain UP device, the main CP device of other UP devices remains unchanged. For example, refer to Figure 6 UP1, UP2 and UP3 share address pool 1, and CP2 is used 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.
[0136] Step 207: The first CP device receives a dial-up request from a second client device accessed from a second UP device.
[0137] 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.
[0138] As a possible example, the first CP device may be a primary CP device of the second UP device. Accordingly, after receiving the dial-up request of the second client device, the second UP device may directly send the dial-up request to the first CP device.
[0139] As another possible example, the first CP device may be a backup CP device of the second UP device, and the second CP device is the primary CP device of the second UP device. Furthermore, if the first CP device determines that it needs to be upgraded to the primary CP device of the second UP device, a switching indication message may be sent to the second UP device. Alternatively, if the second CP device determines that it is downgraded to a backup CP device of the second UP device, a switching indication message may be sent to the second UP device. The first UP device may then send a dial-up request of the second client device to the first CP device based on the switching indication message.
[0140] Step 208: The first CP device allocates a network address to the second client device from the second address pool based on the fact that it is the master CP device of the second address pool.
[0141] If the first CP device receives the dial-up request of the second client device sent by the second UP device, the first CP device may directly allocate a network address to the second client device from the second address pool based on the fact that the first CP device is the master CP device of the second address pool.
[0142] Step 209: The second CP device receives a dial-up request from a third client device accessed from a third UP device.
[0143] In the embodiment of the present application, the broadband access system may further include a third UP device, and the third UP device 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.
[0144] Since the second CP device is the main CP device of the third UP device, after receiving the dial-up request of the third client device, the third UP device may send the dial-up request to the second CP device.
[0145] Example, reference Figure 6Assuming that the third UP device is UP2 or UP3, UP1, UP2 and UP3 share address pool 1. Moreover, CP2 is the main UP device of UP2 and UP3, then after receiving the dial-up request of the client device, UP2 and UP3 can send the dial-up request to CP2.
[0146] Step 210: The second CP device allocates a network address to the third client device from the first address pool based on the fact that it is the master CP device of the first address pool.
[0147] After receiving the dial-up request of 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 the fact that it is the master CP device of the first address pool. Figure 6 CP2 can directly allocate network addresses from address pool 1 to client devices connected to UP2 or UP3.
[0148] Optionally, the broadband access system may further include a fourth UP device, which also corresponds to the first address pool, that is, the first UP device and the fourth UP device may share the first address pool. In addition, the first CP device is the primary CP device of the fourth UP device. It is understandable that, for the scenario where the first CP device is the backup CP device of the first UP device, the fourth UP device and the first UP device belong to different backup groups.
[0149] Since the first CP device is the main CP device of 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 of 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 a backup CP device of the first address pool and the second CP device is the main CP device of 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 main CP device of 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.
[0150] Example, reference Figure 3, assuming that the fourth UP device is UP2 or UP3, UP1, UP2 and UP3 share address pool 1. Moreover, UP1 belongs to a backup group, in which CP2 is the main CP device and CP1 is the backup CP device. UP2 and UP3 belong to another backup group, in which CP1 is the main CP device and CP2 is the backup CP device. Accordingly, if UP2 and UP3 receive a dial-up request from a client device, both can send the dial-up request to CP1. CP1 can then request a second address from CP2, and based on the second address allocated by CP2, allocate a network address to the client device on UP2 or UP3.
[0151] 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.
[0152] In an embodiment of the present application, after the first CP device detects that the first client device is offline from the first UP device, it can also send an address release message to the second CP device. The address release message is used to instruct the second CP device to release its allocated first address. Optionally, the first CP device can send the address release message through the disaster recovery channel between it and the second CP device, and the first CP device can transmit the address release message based on UDP or TCP.
[0153] It is understandable 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.
[0154] Step 212: The second CP device releases the first address based on the address release message.
[0155] After receiving the address release message sent by the first CP device, the second CP device can release the first address allocated by it. Correspondingly, the first address can be allocated to other client devices or other UP devices.
[0156] It can be understood 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 main 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.
[0157] The embodiment of the present application provides an address allocation method, in which 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 allocate a network address to the first client device based on the first address. Based on this, even if the channel between the first UP device and the second CP device fails, the first CP device can obtain the first address from the second CP device, and allocate a network address to the client device connected from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0158] Furthermore, in the CP device upgrade scenario, since the first CP device (i.e., the upgraded CP device) can apply to the second CP device for address allocation for the client device on the first UP device, it is possible to implement separate switching of UP devices in the same backup group. That is, each UP device in the backup group can be switched to the first CP device one by one. Since the switching time required for a single UP device is short, it is possible to avoid excessive impact on the business during the switching process.
[0159] Since the UP devices are switched one by one, the broadband access system does not need to plan a fine-grained address pool for the UP backup group for upgrading and switching. Accordingly, the address pool shared by the UP backup group can be larger, or multiple UP backup groups can share the same address pool. This effectively improves the flexibility of address pool planning.
[0160] Fig.12 is a schematic diagram of a structure of a first CP device provided in an embodiment of the present application. The first CP device can be applied to, for example, Figure 3 or Figure 6 The CU-separated broadband access system shown in FIG. 1 can implement the steps performed by the first CP device in the above method embodiment. Fig.12As shown, the first CP device includes:
[0161] The sending module 301 is used to send an address allocation request to the second CP device based on a dial-up request of the first client device accessed from the first UP device. The function of the sending module 301 can be realized by referring to the relevant description of step 101 in the above method embodiment.
[0162] The receiving module 302 is used to receive the first address allocated by the second CP device based on the address allocation request. The function of the receiving module 302 can be realized by referring to the relevant description of step 102 and step 205 in the above method embodiment.
[0163] The allocation module 303 is used 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 relevant descriptions of step 103 and step 206 in the above method embodiment.
[0164] Optionally, the first UP device corresponds to the first address pool, and the sending module 301 can be used 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 of the first address pool and the second CP device is a master CP device of the first address pool. The address allocation request is used to instruct the second CP device to allocate the first address from the first address pool. The functional implementation of the sending module 301 can also refer to the relevant description of step 202 and step 203 in the above method embodiment.
[0165] Optionally, the first CP device may be a master CP device of the first UP device.
[0166] Optionally, the sending module 301 may also be used to send a switching indication message to the first UP device before sending an address allocation request to the second CP device based on a dial-up request of the first client device accessed from the first UP device. The switching indication message is used to indicate that the primary CP device of the first UP device is switched from the second CP device to the first CP device. The functional implementation of the sending module 301 may also refer to the relevant description of step 201 in the above method embodiment.
[0167] Optionally, the sending module 301 may be configured to send a switching indication message to the first UP device based on a channel failure between the second CP device and the first UP device; or, based on completion of an upgrade of the first CP device, send a switching indication message to the first UP device.
[0168] Optionally, the sending module 301 can also be used to send an address release message to the second CP device based on the first client device going offline from the first UP device, and the address release message is used to instruct the second CP device to release the first address. The function of the sending module 301 can also refer to the relevant description of step 211 in the above method embodiment.
[0169] Optionally, the first address is a network address assigned to the first client device.
[0170] Optionally, the first address is an address segment allocated to the first UP device. Accordingly, the allocation module 303 can be used to allocate a network address to the first client device from the address segment.
[0171] Optionally, 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 allocation module 303 can also be used to allocate 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. The functional implementation of the allocation module 303 can also refer to the relevant description of step 207 and step 208 in the above method embodiment.
[0172] Optionally, the address allocation request and the first address may be transmitted based on UDP or TCP.
[0173] Optionally, the address allocation request carries the first address, or the address allocation request carries the type of the first address.
[0174] Optionally, the type of the first address includes an IPv4 address, an IPv4 prefix, an IPv6 address or an IPv6 prefix.
[0175] 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.
[0176] In summary, the embodiment of the present application provides a first CP device, which, after 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 allocate a network address to the first client device based on the first address. Based on this, even if the channel between the first UP device and the second CP device fails, the first CP device can obtain the first address from the second CP device, and allocate a network address to the client device connected from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0177] Furthermore, in the CP device upgrade scenario, since the first CP device (i.e., the upgraded CP device) can apply to the second CP device for address allocation for the client device on the first UP device, it is possible to implement separate switching of UP devices in the same backup group. That is, each UP device in the backup group can be switched to the first CP device one by one. Since the switching time required for a single UP device is short, it is possible to avoid excessive impact on the business during the switching process.
[0178] Since the UP devices are switched one by one, the broadband access system does not need to plan a fine-grained address pool for the UP backup group for upgrading and switching. Accordingly, the address pool shared by the UP backup group can be larger, or multiple UP backup groups can share the same address pool. This effectively improves the flexibility of address pool planning.
[0179] Fig.13 is a schematic diagram of the structure of a second CP device provided in an embodiment of the present application. The second CP device can be applied to, for example, Figure 3 or Figure 6 The CU-separated broadband access system shown in FIG. 1 can implement the steps performed by the second CP device in the above method embodiment. Fig.13 As shown, the second CP device includes:
[0180] The receiving module 401 is used to receive the address allocation request sent by the first CP device, which is sent by the first CP device based on the dial-up request of the first client device accessed from the first UP device. The function of the receiving module 401 can refer to the relevant description of step 101 and step 203 in the above method embodiment.
[0181] The sending module 402 is used to send the allocated first address to the first CP device based on the address allocation request, and the first address is used for the first CP device to allocate a network address to the first client device. The function of the sending module 402 can refer to the relevant description of step 102 and step 205 in the above method embodiment.
[0182] Optionally, the first UP device corresponds to the first address pool, and the sending module 402 can be used to send the first address allocated from the first address pool to the first CP device based on the address allocation request and the second CP device being the master CP device of the first address pool. The function of the sending module 402 can also refer to the relevant description of step 204 in the above method embodiment.
[0183] Optionally, the receiving module 401 can also be used to receive 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 function of the receiving module 401 can also refer to the relevant description of step 211 in the above method embodiment.
[0184] And, if Fig.13 As shown, the second CP device may further include:
[0185] The release module 403 is used to release the first address based on the address release message. The function of the release module 403 can be realized by referring to the relevant description of step 212 in the above method embodiment.
[0186] 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.
[0187] Optionally, the sending module 402 may also be used to send a switching indication message to the first UP device before the receiving module 401 receives the address allocation request sent by the first CP device. The switching indication 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.
[0188] In summary, the embodiment of the present application provides a second CP device, which, after receiving the address allocation request sent by the first CP device, can send the allocated first address to the first CP device, so that the first CP device can allocate a network address to the first client device based on the first address. Based on this, even if the channel between the first UP device and the second CP device fails, the first CP device can obtain the first address from the second CP device and allocate a network address to the client device that goes online from the first UP device, thereby ensuring that the client device on the first UP device can access the network normally.
[0189] It should be understood that the first CP device and the second CP device provided in the embodiment of the present application can be implemented with an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), and the above-mentioned 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-mentioned method embodiment can also be implemented by software. When the address allocation method provided in the above-mentioned method embodiment is implemented by software, the first CP device and the second CP device may include a software module for implementing the above-mentioned method.
[0190] Fig.14 is a schematic diagram of the structure of a network device provided in an embodiment of the present application. The network device can be applied to Figure 3 or Figure 6 The broadband access system shown in FIG. 1 may be a first CP device or a second CP device in the system. Fig.14 The network device includes: a processor 501, a memory 502, a network interface 503 and a bus 504.
[0191] The memory 502 stores a computer program 5021, which is used to implement various application functions. The processor 501 is used to execute the computer program 5021 to implement the method applied to the CP device provided by the above method embodiment. For example, the processor 501 is used to execute the computer program 5021 to implement the above method embodiment. Fig.12 or Fig.13 The functions of each module in the CP device are shown.
[0192] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), ASIC, FPGA, graphics processing unit (GPU), 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.
[0193] The memory 502 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (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 (DRRAM).
[0194] There may be multiple network interfaces 503, and the network interfaces 503 are used to realize communication connection with other devices (which may be wired or wireless). 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.
[0195] The bus 504 is used to connect the processor 501, the memory 502 and the network interface 503. In addition to the data bus, the bus 504 may also include a power bus, a control bus and a status signal bus, etc. However, for the sake of clarity, various buses are marked as bus 504 in the figure.
[0196] Among them, if the network device is a first CP device, the processor 501 can be used to send an address allocation request to the second CP device through the network interface 503 based on the dial-up request of the first client device accessed from the first UP device, and receive the first address allocated by the second CP device based on the address allocation request. Afterwards, a network address is allocated to the first client device based on the first address. For the detailed processing process of the processor 501, please refer to the steps performed by the first CP device in the above method embodiment, which will not be repeated here.
[0197] If the network device is a second CP device, the processor 501 can be used to receive an address allocation request sent by the first CP device through the network interface 503, and the address allocation request is sent by the first CP device based on the dial-up request of the first client device accessed from the first UP device. Afterwards, based on the address allocation request, the allocated first address is sent to the first CP device through the network interface 503, and the first address is used for the first CP device to allocate a network address to the first client device. For the detailed processing process of the processor 501, please refer to the steps performed by the second CP device in the above method embodiment, which will not be repeated here.
[0198] Fig.15 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 Figure 3 or Figure 6 The broadband access system shown in FIG. 1 may be a first CP device or a second CP device in the system. Fig.15 As shown, the network device may include: a main control board 601 and at least one interface board (interface board is also called line card or service board), for example Fig.15 The interface board 602 and the interface board 603 are shown in FIG. In the case of multiple interface boards, the network device may further include a switching network board 604, and the switching network board 604 is used to complete data exchange between the interface boards.
[0199] The main control board 601 is also called the main processing unit (MPU) or the route processor card. The main control board 601 is used to complete functions such as system management, equipment maintenance and protocol processing. There are mainly three types of functional units on the main control board 601: system management control unit, system clock unit and system maintenance unit. The main control board 601 includes: a central processing unit 6011 and a memory 6012.
[0200] Interface boards 602 and 603 are also called line processing unit (LPU), line card or service board. The interface board is used to provide various service interfaces and realize message forwarding. Among them, the service interfaces provided by the interface board may include: packet over SONET / SDH (POS) interface, gigabit Ethernet (GE) interface and asynchronous transfer mode (ATM) interface, etc. Among them, 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 through the system bus to achieve intercommunication. Fig.15 As shown, the interface board 602 includes one or more central processors 6021. The central processor 6021 is used to control and manage the interface board 602 and communicate with the central processor 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 messages by searching the forwarding table entries stored in the memory 6024. The memory 6024 can also be used to store program codes.
[0201] The interface board 602 further includes one or more physical interface cards 6023 , which are used to receive messages sent by the previous hop node and send processed messages to the next hop node according to the instruction of the central processor 6021 .
[0202] Furthermore, it is understandable that Fig.15 The central processor 6021 and / or the network processor 6022 in the interface board 602 may be dedicated hardware or chips, such as ASIC, to implement the above functions, which is the so-called forwarding plane using dedicated hardware or chip processing. In another embodiment, the central processor 6021 and / or the network processor 6022 may also use a general-purpose processor, such as a general-purpose CPU, to implement the above-described functions.
[0203] In addition, it should be understood that the main control board 601 may have one or more boards, and when there are more boards, they may include a main control board and a standby control board. There may be one or more interface boards, and the stronger the data processing capability of the network device, the more interface boards are provided. Fig.15As shown, the network device includes an interface board 602 and an interface board 603. When a distributed forwarding mechanism is adopted, the structure of the interface board 603 is substantially the same as that of the interface board 602, and the operations on the interface board 603 are substantially similar to those on the interface board 602, and for the sake of brevity, they are not 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.
[0204] In a centralized forwarding architecture, the network device may not need a switching network board 604, and the interface board is responsible for processing the service data of the entire system. Therefore, the data access and processing capabilities of a distributed architecture network device are greater than those of a centralized architecture network device. Which architecture is used depends on the specific networking deployment scenario, and no limitation is made here.
[0205] 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 disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory 6024 in the interface board 602 can be independent and connected to the central processor 6021 through a communication bus; or, the memory 6024 can also be integrated with the central processor 6021. The memory 6012 in the main control board 601 can be independent and connected to the central processor 6011 through a communication bus; or, the memory 6012 can also be integrated with the central processor 6011.
[0206] The program code stored in the memory 6024 is controlled by the central processor 6021 for execution, and the program code stored in the memory 6012 is controlled by the central processor 6011 for execution. The central processor 6021 and / or the central processor 6011 can implement the method provided by the first CP device or the second CP device in the above method embodiment by executing the program code. The program code stored in the memory 6024 and / or the memory 6012 may include one or more software units, and the one or more software units may be Fig.12 or Fig.13 The functional modules shown.
[0207] 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 networks (WLAN), etc.
[0208] Optionally, Figure 12 to Figure 14 The device shown can also be used Fig.15 The structure shown is implemented.
[0209] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the instructions are executed by a processor, the processor executes the steps performed by the first CP device or the second CP device in the above method embodiment.
[0210] The embodiment of the present application also provides a computer program product including instructions. When the instructions are executed on a processor, the processor executes the steps executed by the first CP device or the second CP device in the above method embodiment.
[0211] The present application also provides a CU-separated broadband access system, which includes a first CP device, a second CP device and a first UP device. The first CP device and the second CP device can be used to implement the address allocation method provided in the above method embodiment. In addition, the structure of the first CP device can refer to Fig.12 , Fig.14 or Fig.15 The structure of the second CP device can refer to Figures 13 to 15 Any of the accompanying drawings.
[0212] Optionally, the broadband access system may further include a second UP device, the second UP device corresponds to a second address pool, that is, the backup group to which the second UP device belongs shares the second address pool. In addition, the first CP device may be a primary CP device of the second address pool, and the second CP device may be a backup CP device of the second address pool.
[0213] Optionally, the broadband access system may further include a third UP device, and the third UP device 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.
[0214] 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. That is, the third UP device shares the same address pool with the first UP device, but belongs to a different UP backup group. It can be seen from this that the primary and backup states of the CP device in a certain UP backup group may be different from the primary and backup states in the address pool shared by the UP backup group.
[0215] A person 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 instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0216] 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 "plurality" refers to two or more. The term "and / or" in this application is merely a description of the association relationship of associated objects, indicating that three relationships may 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 before and after are in an "or" relationship.
[0217] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope 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
Cited By
Address allocation method, electronic device, storage medium, and program product
WO2026077281A1
