Address allocation method and apparatus, and storage medium

By maintaining a set of addresses to be allocated and a network access coefficient mechanism in the BRAS device, the problem of terminals being unable to obtain a fixed IP address during access is solved, thus achieving reasonable IP address allocation and resource management.

CN116366605BActive Publication Date: 2026-05-19CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2023-02-22
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, Broadband Access Servers (BRAS) dynamically assign different IP addresses when a terminal disconnects and reconnects, making it impossible to provide a fixed IP address for the terminal.

Method used

By maintaining a set of addresses to be allocated in the BRAS device, the last IP address used by the terminal is determined based on the terminal's identifier, and the terminal is allowed to choose whether to consume the coefficient value to obtain a fixed IP address through the network access coefficient value mechanism.

Benefits of technology

This enables terminals to obtain fixed IP addresses when accessing the BRAS, meeting the needs of the terminals, and ensuring reasonable address allocation and resource usage through the network access coefficient value mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366605B_ABST
    Figure CN116366605B_ABST
Patent Text Reader

Abstract

The present disclosure provides an address allocation method and device and a storage medium, relates to the technical field of communication, and can allocate a fixed IP address for a terminal. The method comprises the following steps: receiving an online message sent by a terminal; the online message comprises the identifier of the terminal; determining whether a first Internet Protocol (IP) address corresponding to the identifier of the terminal exists in a to-be-allocated address set; if the first IP address exists in the to-be-allocated address set, sending confirmation information to the terminal; the confirmation information comprises a first access coefficient value and the first IP address; under the condition that first reply information from the terminal is received, sending first indication information to the terminal; wherein the first reply information is used to indicate that the terminal determines to consume the first access coefficient value to obtain the first IP address; and the first indication information is used to instruct the terminal to access a Broadband Remote Access Server (BRAS) according to the first IP address. The present disclosure is used for allocating a fixed IP address for a terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to an address allocation method, apparatus and storage medium. Background Technology

[0002] Currently, Broadband Remote Access Servers (BRAS) employ a dynamic Internet Protocol (IP) address allocation mechanism. When an end user sends a disconnect request to the BRAS device and breaks the connection, and then sends a reconnection request, the BRAS device dynamically selects an IP address randomly from its IP address pool and assigns it to the end user. This results in the end user receiving a different IP address than the one obtained previously. Therefore, how to assign a fixed IP address to the end user based on their needs has become a pressing technical problem. Summary of the Invention

[0003] This application provides an address allocation method, apparatus, and storage medium capable of allocating fixed IP addresses to terminals.

[0004] To achieve the above objectives, this application adopts the following technical solution:

[0005] In a first aspect, an address allocation method is provided, applied to a Bandwidth Remote Access Server (BRAS), comprising: receiving an online message sent by a terminal; the online message including: an identifier of the terminal; determining whether a first Internet Protocol (IP) address corresponding to the identifier of the terminal exists in a set of addresses to be allocated; the first IP address is the IP address used by the terminal during its previous online session; if the first IP address exists in the set of addresses to be allocated, sending confirmation information to the terminal; the confirmation information including: a first network access coefficient value and a first IP address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; upon receiving a first reply information from the terminal, sending first indication information to the terminal; wherein, the first reply information is used to characterize the terminal's determination to consume the first network access coefficient value to obtain the first IP address; the first indication information is used to instruct the terminal to access the BRAS according to the first IP address.

[0006] In conjunction with the first aspect above, in one possible implementation, after sending confirmation information to the terminal, the method further includes: upon receiving second reply information from the terminal, sending second instruction information to the terminal; the second reply information is used to indicate that the terminal has determined not to consume the first network access coefficient value to obtain the first IP address; the second instruction information is used to instruct the terminal to access the BRAS according to the second IP address; the second IP address is an IP address in the set of addresses to be allocated that is different from the first IP address.

[0007] In conjunction with the first aspect above, in one possible implementation, after determining whether there is a first IP address corresponding to the terminal's identifier in the set of addresses to be allocated, the method further includes: if there is no first IP address in the set of addresses to be allocated, then sending second indication information to the terminal.

[0008] In conjunction with the first aspect above, in one possible implementation, the method further includes: receiving a disconnection message sent by the terminal; the disconnection message is used to instruct the BRAS to disconnect from the terminal; storing a first IP address in a set of addresses to be allocated; wherein the first IP address is not allocated to terminals other than the terminal for a preset time period, the preset time period being determined based on the ratio of the number of IP addresses to be allocated in the set of addresses to be allocated to the total capacity of the IP address pool of the BRAS.

[0009] Secondly, an address allocation method is provided, applied to a terminal, comprising: sending an online message to a Broadband Remote Access Server (BRAS); the online message including: an identifier of the terminal; receiving confirmation information sent by the BRAS; the confirmation information including: a first network access coefficient value and a first Internet Protocol (IP) address; the first network access coefficient value being used to characterize the coefficient value required to obtain the first IP address; the first IP address being the IP address used by the terminal during its previous online session; consuming the first network access coefficient value and sending a first reply message to the BRAS when it is confirmed that the terminal will use the first IP address to access the BRAS and the available network access coefficient value of the terminal is greater than or equal to the first network access coefficient value; the first reply message being used to characterize that the terminal has determined to consume the first network access coefficient value to obtain the first IP address; and receiving a first instruction message sent by the BRAS; the first instruction message being used to instruct the terminal to access the BRAS according to the first IP address.

[0010] In conjunction with the second aspect above, in one possible implementation, after receiving the confirmation information sent by the BRAS, the method further includes: if it is confirmed that the first IP address will not be used to access the BRAS, and / or the available network access coefficient value of the terminal is less than the first network access coefficient value, sending a second reply information to the BRAS; the second reply information is used to indicate that the terminal has decided not to consume the first network access coefficient value to obtain the first IP address; receiving a second instruction information sent by the BRAS; the second instruction information is used to instruct the terminal to access the BRAS according to the second IP address.

[0011] In conjunction with the second aspect above, one possible implementation also includes: increasing the available network access coefficient value of the control terminal by a preset number at preset intervals.

[0012] Thirdly, this disclosure provides an address allocation apparatus applied to a Bandwidth Remote Access Server (BRAS), comprising: a processing unit and a communication unit; the communication unit is configured to receive an online message sent by a terminal; the online message includes: an identifier of the terminal; the processing unit is configured to determine whether a first Internet Protocol (IP) address corresponding to the identifier of the terminal exists in the set of addresses to be allocated; the first IP address is the IP address used by the terminal during its previous online session; the communication unit is further configured to send confirmation information to the terminal if the first IP address exists in the set of addresses to be allocated; the confirmation information includes: a first network access coefficient value and a first IP address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; the communication unit is further configured to send first instruction information to the terminal upon receiving a first reply information from the terminal; wherein the first reply information is used to characterize the terminal's determination to consume the first network access coefficient value to obtain the first IP address; the first instruction information is used to instruct the terminal to access the BRAS according to the first IP address.

[0013] In conjunction with the third aspect above, in one possible implementation, the communication unit is further configured to: upon receiving a second response message from the terminal, send a second instruction message to the terminal; the second response message indicates that the terminal has determined not to consume the first network access coefficient value to obtain a first IP address; the second instruction message instructs the terminal to access the BRAS according to the second IP address; the second IP address is an IP address in the set of addresses to be allocated that is different from the first IP address.

[0014] In conjunction with the third aspect above, in one possible implementation, the processing unit is further configured to: if the first IP address does not exist in the set of addresses to be allocated, instruct the communication unit to send a second instruction message to the terminal.

[0015] In conjunction with the third aspect above, in one possible implementation, the processing unit is further configured to: instruct the communication unit to receive a disconnect message sent by the terminal; the disconnect message is used to instruct the BRAS to disconnect from the terminal; store the first IP address in a set of addresses to be allocated; wherein the first IP address is not allocated to terminals other than the terminal for a preset time period, the preset time period being determined based on the ratio of the number of IP addresses to be allocated in the set of addresses to be allocated to the total capacity of the IP address pool of the BRAS.

[0016] Fourthly, this disclosure provides an address allocation apparatus applied to a terminal, comprising: a processing unit and a communication unit; the communication unit is configured to send an online message to a Broadband Remote Access Server (BRAS); the online message includes: an identifier of the terminal; the communication unit is further configured to receive confirmation information sent by the BRAS; the confirmation information includes: a first network access coefficient value and a first Internet Protocol (IP) address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; the first IP address is the IP address used by the terminal during its previous online session; the processing unit is configured to, upon confirming that the terminal is using the first IP address to access the BRAS and that the terminal's available network access coefficient value is greater than or equal to the first network access coefficient value, consume the first network access coefficient value and send a first reply information to the BRAS; the first reply information characterizes that the terminal has determined to consume the first network access coefficient value to obtain the first IP address; the communication unit is further configured to receive first indication information sent by the BRAS; the first indication information is used to instruct the terminal to access the BRAS according to the first IP address.

[0017] In conjunction with the fourth aspect above, in one possible implementation, the processing unit is further configured to: instruct the communication unit to send a second response message to the BRAS when it is confirmed that the first IP address is not used to access the BRAS, and / or the available network access coefficient value of the terminal is less than the first network access coefficient value; the second response message is used to indicate that the terminal has decided not to consume the first network access coefficient value to obtain the first IP address; instruct the communication unit to receive the second instruction message sent by the BRAS; the second instruction message is used to instruct the terminal to access the BRAS according to the second IP address.

[0018] In conjunction with the fourth aspect above, in one possible implementation, the processing unit is further configured to: increase the available network access coefficient value of the control terminal by a preset number at preset intervals.

[0019] Fifthly, this disclosure provides an address allocation apparatus, which includes a processor and a memory; wherein the memory is used to store computer execution instructions, and when the address allocation apparatus is running, the processor executes the computer execution instructions stored in the memory to cause the address allocation apparatus to perform the address allocation method as described in the first aspect and any possible implementation thereof.

[0020] In a sixth aspect, this disclosure provides an address allocation apparatus, which includes a processor and a memory; wherein the memory is used to store computer execution instructions, and when the address allocation apparatus is running, the processor executes the computer execution instructions stored in the memory to cause the address allocation apparatus to perform the address allocation method as described in the second aspect and any possible implementation thereof.

[0021] In a seventh aspect, this disclosure provides a computer-readable storage medium storing instructions that, when executed by a processor of an address allocation device, enable the address allocation device to perform the address allocation method as described in the first aspect and any possible implementation thereof.

[0022] Eighthly, this disclosure provides a computer-readable storage medium storing instructions that, when executed by a processor of an address allocation device, enable the address allocation device to perform an address allocation method as described in the second aspect or any possible implementation thereof.

[0023] Ninthly, this disclosure provides a computer program product containing instructions that, when run on an address allocation device, cause the address allocation device to perform the address allocation method as described in the first aspect and any possible implementation thereof.

[0024] In a tenth aspect, this disclosure provides a computer program product containing instructions that, when run on an address allocation device, cause the address allocation device to perform the address allocation method as described in the second aspect and any possible implementation thereof.

[0025] In the eleventh aspect, this disclosure provides a chip including a processor and a communication interface coupled to the processor, the processor being used to run computer programs or instructions to implement the address allocation method as described in the first aspect and any possible implementation thereof.

[0026] In a twelfth aspect, this disclosure provides a chip including a processor and a communication interface coupled to the processor, the processor being used to run computer programs or instructions to implement the address allocation method described in the second aspect and any possible implementation thereof.

[0027] Specifically, the chip provided in this application embodiment also includes a memory for storing computer programs or instructions.

[0028] In this disclosure, the name of the address allocation device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the function of each device or functional module is similar to that of this disclosure, it falls within the scope of the claims of this disclosure and its equivalents.

[0029] These or other aspects of this disclosure will become more readily apparent in the following description.

[0030] The technical solution provided in this disclosure offers at least the following advantages: A terminal sends an online message to a Broadband Access Server (BRAS) to obtain an IP address and request access to the BRAS device. Upon receiving the online message from the terminal, the BRAS device determines, based on the terminal's identifier contained in the online message, whether the first IP address allocated to the terminal during its last online session exists in the set of addresses to be allocated. If the first IP address exists in the set of addresses to be allocated, the BRAS device sends a confirmation message to the terminal containing a first network access coefficient value and the first IP address, confirming whether the terminal chooses to consume the first network access coefficient value to obtain the first IP address. When the BRAS device receives a first reply message from the terminal confirming the consumption of the first network access coefficient value to obtain the first IP address, the BRAS device sends a first instruction message to the terminal, instructing the terminal to access the BRAS device using the first IP address. Thus, after sending an online request to the BRAS device, the terminal can, based on the BRAS device's confirmation message, choose whether to use a fixed IP address to access the BRAS device, depending on its needs, by consuming available network access coefficient values. This solves the technical problem of obtaining a fixed IP address when accessing the BRAS. Attached Figure Description

[0031] Figure 1 A schematic diagram of the hardware structure of an address allocation device provided in an embodiment of this application;

[0032] Figure 2 This is a schematic flowchart of an address allocation method provided in an embodiment of this application;

[0033] Figure 3 This is another flowchart illustrating an address allocation method provided in an embodiment of this application;

[0034] Figure 4 This is another flowchart illustrating an address allocation method provided in an embodiment of this application;

[0035] Figure 5 This is another flowchart illustrating an address allocation method provided in an embodiment of this application;

[0036] Figure 6 A schematic diagram of an address allocation device applied to a BRAS provided in an embodiment of this application;

[0037] Figure 7 This is a schematic diagram of an address allocation device for a terminal provided in an embodiment of this application. Detailed Implementation

[0038] The address allocation method, apparatus, and storage medium provided in this disclosure are described in detail below with reference to the accompanying drawings.

[0039] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0040] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0041] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0042] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0043] Figure 1 This is a schematic diagram of an address allocation device provided in an embodiment of this disclosure. Figure 1 As shown, the address allocation device 100 includes at least one processor 101, a communication line 102, and at least one communication interface 104, and may also include a memory 103. The processor 101, memory 103, and communication interface 104 are connected via the communication line 102.

[0044] The processor 101 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this disclosure, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).

[0045] Communication line 102 may include a path for transmitting information between the aforementioned components.

[0046] The communication interface 104 is used to communicate with other devices or communication networks. It can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0047] The memory 103 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of including or storing desired program code having the form of instructions or data structures and accessible by a computer, but not limited thereto.

[0048] In one possible design, the memory 103 can exist independently of the processor 101, meaning the memory 103 can be an external memory of the processor 101. In this case, the memory 103 can be connected to the processor 101 via a communication line 102 to store execution instructions or application code, and its execution is controlled by the processor 101 to implement the space measurement and determination method provided in the following embodiments of this disclosure. In another possible design, the memory 103 can also be integrated with the processor 101, meaning the memory 103 can be an internal memory of the processor 101. For example, the memory 103 can be a cache, which can be used to temporarily store some data and instruction information.

[0049] As one possible implementation, processor 101 may include one or more CPUs, for example Figure 1 CPU0 and CPU1 in the example. Alternatively, the address allocation device 100 may include multiple processors, such as CPU0 and CPU1. Figure 1 The processors 101 and 107 are included. Alternatively, the address allocation device 100 may also include an output device 105 and an input device 106.

[0050] Through the above description of the implementation methods, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the network node can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, modules, and network nodes described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0051] Currently, BRAS devices are used to provide broadband network access to public users. Furthermore, BRAS devices can provide users with functions including access, authentication, authorization, address allocation, and billing, depending on the user type. The types of users accessing the network include, but are not limited to, Point-to-Point Protocol over Ethernet (PPPoE), Internet Protocol over Ethernet (IPoE), and Dynamic Host Configuration Protocol (DHCP) + Web; authentication methods include, but are not limited to, Password Authentication Protocol (PAP) and Challenge Handshake Authentication Protocol (CHAP); and address allocation methods include, but are not limited to, DHCP, DHCPv6, and Stateless Address Autoconfiguration (SLAAC). Specifically, end users access BRAS devices through Customer Premise Equipment (CPE) devices, broadband dial-up users access BRAS devices through Digital Subscriber Line Access Multiplexer (DSLAM) devices, and fiber optic users access BRAS devices through Optical Network Unit (ONU) and Optical Line Terminal (OLT) devices.

[0052] The PPPoE authentication process comprises two phases: discovery and session. Specifically, in the discovery phase, the terminal discovers one or more network access devices. Further, the terminal selects one of these network access devices and sends its physical (Media Access Control, MAC) address to it. Upon receiving the terminal's MAC address, the network access device sends its own MAC address back to the terminal. The terminal and network access device exchange MAC addresses to generate a PPPoE Session_ID. It's important to note that the terminal and network access device remain connectionless before the session phase is established. After the session phase is established, both the terminal and network access device allocate resources to the Ethernet-based Point-to-Point Protocol (PPP) virtual interface used in the session phase.

[0053] The session phase includes the Link Control Protocol (LCP) and the Network Control Protocol (NCP). LCP is used for negotiation and authentication between the terminal and the network access device at the underlying link level. Specifically, the Radius server assists the terminal and network access device in authentication through the Password Authentication Protocol (PAP) and the Challenge Handshake Authentication Protocol (CHAP).

[0054] In the LCP negotiation section, the terminal and network access device exchange parameters such as MTU value and link type through messages like LCP config_Req, LCP config_Rej, LCP config_Nak, and LCP config_Ack. LCP config_Req is used for link negotiation requests. Specifically, when the receiving end does not support the configuration parameter type in the sending end's LCP config_Req message, it replies with the unsupported configuration parameter type information in the form of an LCP config_Rej reply message. When the receiving end receives a configuration parameter type that it supports in the sending end's LCP config_Req message but does not support the configuration parameter value in the LCP config_Req message, it replies with the unsupported configuration parameter value in the form of an LCPconfig_Nak reply message. Furthermore, when the negotiation is successful, the receiving end responds to the sending end with an LCPconfig_Ack message.

[0055] Specifically, such as Figure 2The diagram shows a flowchart of a terminal accessing another terminal via PPPoE. The steps are as follows: Step 201: The terminal sends an address allocation request to the BRAS via IP address 0*.0*.0*.0*; Step 202: The BRAS returns a request message to the terminal containing the initial address 10*.10*.10*.10*; Step 203: The terminal confirms the initial IP address with the BRAS; Step 204: The BRAS reallocates a new IP address to the host, 123*.0*.0*.1*; Step 205: The terminal initiates a request message to the BRAS via IP address 123*.0*.0*.1*; Step 206: The BRAS returns access confirmation information to the terminal; Step 207: The terminal sends handshake information to the BRAS; Step 208: The BRAS replies with handshake confirmation information to the terminal; Step 209: The terminal sends a disconnection request to the BRAS; Step 2010: The BRAS returns disconnection confirmation information to the terminal.

[0056] In related technologies, Broadband Remote Access Servers (BRAS) employ a dynamic Internet Protocol (IP) address allocation mechanism. When an end user sends a disconnect request to the BRAS device and breaks the connection, and then sends a reconnection request, the BRAS device dynamically selects an IP address randomly from its IP address pool and assigns it to the end user. This results in the end user receiving a different IP address than the one previously obtained. Therefore, how to assign a fixed IP address to the end user based on their needs is a pressing technical problem that needs to be solved.

[0057] To effectively control network traffic in hotspot areas, this disclosure provides an address allocation method. A terminal sends an online message to a Broadband Access Server (BRAS) to obtain an IP address and request access to the BRAS device. Upon receiving the online message, the BRAS device determines whether the first IP address previously allocated to the terminal exists in the address set to be allocated, based on the terminal's identifier contained in the message. If the first IP address exists, the BRAS device sends a confirmation message to the terminal containing a first network access coefficient value and the first IP address, confirming whether the terminal chooses to consume the first network access coefficient value to obtain the first IP address. After receiving a first reply message from the terminal confirming the consumption of the first network access coefficient value to obtain the first IP address, the BRAS device sends a first instruction message to the terminal, instructing the terminal to access the BRAS device using the first IP address. Thus, after sending an online request to the BRAS device, the terminal can, based on the BRAS device's confirmation message, choose whether to use a fixed IP address to access the BRAS device, depending on its needs. This solves the technical problem of obtaining a fixed IP address when accessing the BRAS.

[0058] The address allocation method provided in this disclosure can be applied to, for example, Figure 1 In the address allocation device shown, such as Figure 3 As shown, the address allocation method provided in this embodiment can be implemented through the following steps 301 to 305.

[0059] Step 301: The terminal sends an online message to the Broadband Access Server (BRAS). Correspondingly, the BRAS receives the online message sent by the terminal.

[0060] The online notification includes: the terminal's identifier.

[0061] In one possible implementation, when a terminal sends an online message to the BRAS for the first time, the BRAS device returns a request message containing an initial IP address to the terminal, such as 10*.10*.10*.10*. After receiving the request message from the BRAS device, the terminal confirms the received initial IP address with the BRAS device. Further, the BRAS device sends a new IP address to the terminal, such as 123*.0*.0*.1*. After receiving the new IP address, the terminal initiates a request message to the BRAS using the new IP address. After receiving the request message, the BRAS device returns an acknowledgment message to the terminal, completing the IP address allocation for the terminal's first online session. After the terminal goes offline, when it sends an online message to the BRAS again, the BRAS device, upon receiving the online message from the terminal, checks whether the IP address obtained during the terminal's first online session (123*.0*.0*.1*) exists in the set of IP addresses to be allocated. If it exists, the BRAS device will reassign the IP address 123*.0*.0*.1* to the terminal.

[0062] Step 302: BRAS determines whether there is a first Internet Protocol IP address corresponding to the terminal's identifier in the set of addresses to be allocated.

[0063] The first IP address is the IP address used when the terminal last went online.

[0064] In one possible implementation, after receiving the online message sent by the terminal, the BRAS device determines whether there is a first IP address corresponding to the terminal identifier in the set of addresses to be allocated, such as 123*.0*.0*.1*, based on the terminal identifier contained in the online message.

[0065] Step 303: If the first IP address exists in the set of addresses to be allocated, the BRAS sends an acknowledgment message to the terminal. Correspondingly, the terminal receives the acknowledgment message sent by the BRAS.

[0066] The confirmation information includes: a first network access coefficient value and a first IP address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address.

[0067] In one possible implementation, if the BRAS device determines that a first IP address corresponding to the terminal identifier exists in the set of addresses to be allocated, the BRAS device sends a confirmation message to the terminal containing a first network entry coefficient value and the first IP address, determining whether the terminal should consume the first network entry coefficient value to obtain the first IP address. Correspondingly, after receiving the confirmation message from the BRAS, the terminal can choose whether to consume the first network entry coefficient value to obtain the first IP address.

[0068] In one example, when the BRAS device determines that a first IP address, such as 123*.0*.0*.1*, exists in the set of addresses to be allocated, the BRAS device sends a confirmation message to the terminal to determine whether the terminal chooses to consume the first network entry coefficient value to obtain the first IP address.

[0069] Optionally, when the BRAS device determines that the first IP address (e.g., 123*.0*.0*.1*) does not exist in the set of addresses to be allocated, the BRAS allocates a second IP address to the terminal and sends a second indication message to the terminal. The second IP address is an IP address in the set of addresses to be allocated that is different from the first IP address, and the second indication message is used to instruct the terminal to access the BRAS device according to the second IP address.

[0070] It should be noted that the value of the first network access coefficient is determined by the time interval between the terminal's previous offline and re-online periods and a fixed coefficient. For example, if the first network access coefficient is M, the time interval between the terminal's previous offline and re-online periods is T1, and the fixed coefficient set by the BRAS device is D1, then M = T1 × D1. Here, D1 is a fixed coefficient, which can be set by the network operator or the BRAS device based on the number of available IP addresses; this disclosure does not impose any restrictions.

[0071] Step 304: If the terminal confirms that it is using the first IP address to access the BRAS and that the terminal's available network access coefficient value is greater than or equal to the first network access coefficient value, the terminal consumes the first network access coefficient value and sends a first reply message to the BRAS. Accordingly, the BRAS receives the first reply message.

[0072] The first response information is used to indicate that the terminal determines to consume the first network access coefficient value to obtain the first IP address; the first indication information is used to instruct the terminal to access the BRAS according to the first IP address.

[0073] In one possible implementation, when the terminal confirms that it will use the first IP address to access the BRAS device, and the terminal confirms that the currently available network access coefficient value is greater than or equal to the first network access coefficient value, it sends a first reply message containing the first network access coefficient value to the BRAS device. Simultaneously, the terminal's available network access coefficient value is reduced by the first network access coefficient value. Correspondingly, the BRAS device receives the first reply message sent by the terminal.

[0074] It should be noted that the terminal's available network access coefficient value can increase by a certain preset amount every preset time interval. For example, the terminal's default available network access coefficient value is N, and the available network access coefficient value increased by N' every preset time interval, where N' can be determined by a time coefficient T' and a fixed coefficient D'. Specifically, N' = T' × D', where the time coefficient T' increases with time in each time interval. When T' × D' = 1, the available network access coefficient value N increases by N', and thereafter the terminal's available network access coefficient value is N + N'. At the same time, the time coefficient T' returns to zero and increases with time in the next time interval.

[0075] Step 305: Upon receiving the first response information from the terminal, the BRAS sends a first instruction information to the terminal. Correspondingly, the terminal receives the first instruction information.

[0076] The first indication information is used to instruct the terminal to access the BRAS according to the first IP address.

[0077] In one possible implementation, upon receiving a first reply from the terminal, the BRAS device sends a first instruction to the terminal, instructing the terminal to access the BRAS device using a first IP address. Correspondingly, after receiving the first instruction, the terminal sends a handshake request to the BRAS device using the first IP address. Further, the BRAS device returns a handshake confirmation to the terminal and establishes a connection.

[0078] The above scheme brings at least the following beneficial effects: The terminal sends an online message to the Broadband Access Server (BRAS) to obtain an IP address and request access to the BRAS device. Upon receiving the online message from the terminal, the BRAS device determines, based on the terminal's identifier contained in the online message, whether the first IP address allocated to the terminal during its last online session exists in the set of addresses to be allocated. If the first IP address exists in the set of addresses to be allocated, the BRAS device sends a confirmation message to the terminal containing a first network entry coefficient value and the first IP address, confirming that the terminal has chosen to consume the first network entry coefficient value to obtain the first IP address. Correspondingly, after receiving the confirmation message from the BRAS device, if the terminal confirms the use of the first IP address and its available network entry coefficient value is greater than or equal to the first network entry coefficient value, it subtracts the first network entry coefficient value from its available network entry coefficient value and sends a first reply message to the BRAS device confirming the acquisition of the first IP address. Upon receiving the first network entry information from the terminal, the BRAS device returns a first instruction message to the terminal, instructing the terminal to access the BRAS device based on the first IP address. In this way, after the terminal sends an online request to the BRAS device, based on the confirmation information from the BRAS device, it can choose whether to use a fixed IP address to access the BRAS device by consuming available network access coefficients. This solves the technical problem of the terminal obtaining a fixed IP address when accessing the BRAS.

[0079] Combination Figure 3 ,like Figure 4 As shown, after the BRAS sends the confirmation information to the terminal in step 303, the steps 401-402 are also included.

[0080] Step 401: If the terminal confirms that it will not use the first IP address to access the BRAS, and / or the terminal's available network access coefficient value is less than the first network access coefficient value, the terminal sends a second reply message to the BRAS.

[0081] The second response information is used to indicate that the terminal determines that it will not consume the first network access coefficient value to obtain the first IP address.

[0082] In one possible implementation, after receiving the confirmation information from the BRAS device, the terminal confirms whether to use the first IP address to access the BRAS device. When the terminal determines that it will not use the first IP address, and / or the terminal's current available network access coefficient value is less than the first network access coefficient value, the terminal sends a second reply information to the BRAS device, confirming that it will not consume the first network access coefficient value to obtain the first IP address.

[0083] In one example, when the terminal's available network access coefficient is 50 and the first network access coefficient is 80, the terminal sends a second response message to the BRAS device.

[0084] Step 402: Upon receiving the second response information from the terminal, the BRAS sends a second instruction information to the terminal. Correspondingly, the terminal receives the second instruction information sent by the BRAS.

[0085] The second instruction information is used to instruct the terminal to access the BRAS according to the second IP address.

[0086] In one possible implementation, after receiving a second response from the terminal confirming that it will not use the first IP address, the BRAS device sends a second instruction to the terminal and assigns a second IP address to the terminal. Correspondingly, after receiving the second instruction from the BRAS, the terminal sends handshake information to the BRAS device via the second IP address. The BRAS device returns handshake confirmation information to the terminal, thereby establishing a connection with the terminal via the second IP address.

[0087] The above scheme brings at least the following beneficial effects: After receiving the confirmation information sent by the BRAS device, the terminal confirms that it will not use the first IP address. Alternatively, if the terminal determines that the available network access coefficient value is less than the first network access coefficient value and cannot pay the first network access coefficient value to obtain the first IP address, the terminal sends a second reply information to the BRAS device to indicate that the terminal will not consume the first network access coefficient value to obtain the first IP address. Correspondingly, after receiving the second reply information from the terminal, the BRAS device assigns a second IP address to the terminal and sends a second instruction information, instructing the terminal to connect to the BRAS device through the second IP address. In this way, when the terminal chooses not to obtain a fixed IP address or determines that it does not meet the conditions for obtaining a fixed IP address, the BRAS device ensures that the terminal can establish a normal connection with the BRAS device by assigning a new IP address to the terminal.

[0088] Combination Figure 3 ,like Figure 5 As shown, before step 301 or after step 305, i.e., when the terminal and the BRAS device are in a connected state, the following steps 501-502 are also included.

[0089] Step 501: The terminal sends a shutdown message to the BRAS. Correspondingly, the BRAS receives the shutdown message sent by the terminal.

[0090] The offline message is used to instruct the BRAS to disconnect from the terminal.

[0091] Step 502: BRAS stores the first IP address in the set of addresses to be assigned.

[0092] The first IP address will not be allocated to any terminal other than the terminal within a preset time period. The preset time period is determined based on the ratio of the number of IP addresses to be allocated in the set of addresses to the total capacity of the BRAS IP address pool.

[0093] In one possible implementation, after the BRAS device disconnects from the terminal, it stores the first IP address in a set of addresses to be assigned. The BRAS device will retain the first IP address for a preset period of time and will not assign it to any other terminal during that time.

[0094] In one example, after the BRAS device disconnects from the terminal, it saves the first IP address to the set of addresses to be assigned according to a set initial storage period. The initial storage period can be set, but is not limited to, 48 hours. During the initial storage period of 48 hours, the BRAS device will not assign the first IP address to any other terminal besides the aforementioned terminal. If, within the initial storage period of 48 hours, the BRAS device receives a reconnection message from the aforementioned terminal, the BRAS device will continue to execute steps 301-305.

[0095] Optionally, when the ratio of the number of addresses to be allocated in the set of addresses to be allocated to the total capacity of the BRAS device's IP address pool is less than a certain threshold, the BRAS device will shorten the retention period of the first IP address. For example, when the ratio of the number of addresses to be allocated in the set of addresses to be allocated to the total capacity of the BRAS device's IP address pool is less than 0.85, the BRAS device will shorten the preset retention period of the first IP address to 24 hours. When the ratio of the number of addresses to be allocated in the set of addresses to be allocated to the total capacity of the BRAS device's IP address pool is less than 0.7, the BRAS device will shorten the preset retention period of the first IP address to 0 hours.

[0096] It should be noted that the preset duration for which the BRAS device retains the first IP address can be adjusted and set by increasing or decreasing the number of IP addresses to be allocated in the set of addresses to be allocated, as well as the size of the network and users.

[0097] The above scheme offers at least the following benefits: The terminal sends an offline message to the BRAS device, and correspondingly, upon receiving the offline message, the BRAS device disconnects from the terminal. Simultaneously, the IP address assigned to the terminal is stored in the set of addresses to be assigned and preserved for a preset time period. Thus, when the terminal requests to reconnect within this preset time period, the terminal can preferentially assign this IP address, satisfying the terminal's need to obtain a fixed IP address within a preset time period.

[0098] The above provides a detailed description of the address allocation device involved in the embodiments of this disclosure, as well as the functions of each device within the address allocation device and the interactions between the devices.

[0099] As can be seen, the above mainly describes the technical solutions provided by the embodiments of this disclosure from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0100] This disclosure embodiment can divide the address allocation device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this disclosure embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0101] This disclosure embodiment can divide the address allocation device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this disclosure embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0102] This disclosure provides an address allocation apparatus for executing a method required by any device in the address allocation system described above. The address allocation apparatus may be the address allocation apparatus described in this disclosure, or a module within an address allocation apparatus; it may also be a chip within an address allocation apparatus, or other apparatus for executing address allocation methods; this disclosure does not limit the scope of the application.

[0103] like Figure 6 The diagram shown is a schematic representation of an address allocation device applied to a BRAS according to an embodiment of this disclosure. The address allocation device includes a processing unit 601 and a communication unit 602.

[0104] Communication unit 602 is used to receive an online message sent by a terminal; the online message includes: the terminal's identifier; processing unit 601 is used to determine whether there is a first Internet Protocol (IP) address corresponding to the terminal's identifier in the set of addresses to be allocated; the first IP address is the IP address used by the terminal during its previous online session; communication unit 602 is also used to send confirmation information to the terminal if the first IP address exists in the set of addresses to be allocated; the confirmation information includes: a first network access coefficient value and a first IP address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; communication unit 602 is also used to send first instruction information to the terminal upon receiving a first reply information from the terminal; wherein, the first reply information is used to characterize the terminal's determination to consume the first network access coefficient value to obtain the first IP address; the first instruction information is used to instruct the terminal to access the BRAS according to the first IP address.

[0105] Optionally, the communication unit 602 is further configured to: upon receiving a second reply information from the terminal, send a second instruction information to the terminal; the second reply information is used to indicate that the terminal has determined not to consume the first network access coefficient value to obtain a first IP address; the second instruction information is used to instruct the terminal to access the BRAS according to the second IP address; the second IP address is an IP address in the set of addresses to be allocated that is different from the first IP address.

[0106] Optionally, the communication unit 602 is further configured to: send a second indication message to the terminal if the first IP address does not exist in the set of addresses to be allocated.

[0107] Optionally, the processing unit 601 is further configured to: instruct the communication unit 602 to receive a disconnect message sent by the terminal; the disconnect message is used to instruct the BRAS to disconnect from the terminal; store the first IP address in the set of addresses to be allocated; wherein the first IP address is not allocated to terminals other than the terminal within a preset time period, the preset time period being determined based on the ratio of the number of IP addresses to be allocated in the set of addresses to be allocated to the total capacity of the IP address pool of the BRAS.

[0108] like Figure 7 The diagram shown is a schematic representation of an address allocation device for a terminal according to an embodiment of this disclosure. The address allocation device includes a processing unit 701 and a communication unit 702.

[0109] Communication unit 702 is used to send an online message to the Broadband Remote Access Server (BRAS); the online message includes: the identifier of the terminal; communication unit 702 is also used to receive confirmation information sent by the BRAS; the confirmation information includes: a first network access coefficient value and a first Internet Protocol (IP) address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; the first IP address is the IP address used by the terminal during its previous online session; processing unit 701 is used to, upon confirming that the terminal is using the first IP address to access the BRAS and that the terminal's available network access coefficient value is greater than or equal to the first network access coefficient value, consume the first network access coefficient value and send a first reply information to the BRAS; the first reply information is used to characterize that the terminal has determined to consume the first network access coefficient value to obtain the first IP address; communication unit 702 is also used to receive first instruction information sent by the BRAS; the first instruction information is used to instruct the terminal to access the BRAS according to the first IP address.

[0110] Optionally, the communication unit 702 is further configured to: send a second reply message to the BRAS if it is confirmed that the first IP address will not be used to access the BRAS, and / or the available network access coefficient value of the terminal is less than the first network access coefficient value; the second reply message is used to indicate that the terminal has decided not to consume the first network access coefficient value to obtain the first IP address; receive a second indication message sent by the BRAS; the second indication message is used to instruct the terminal to access the BRAS according to the second IP address.

[0111] Optionally, the processing unit 701 is also used to: increase the available network access coefficient value of the control terminal by a preset number at preset intervals.

[0112] This disclosure provides an address allocation apparatus for executing a method required by any device in the address allocation system described above. The address allocation apparatus may be the address allocation apparatus described in this disclosure, or a module within an address allocation apparatus; it may also be a chip within an address allocation apparatus, or other apparatus for executing address allocation methods; this disclosure does not limit the scope of the application.

[0113] This disclosure also provides a computer-readable storage medium storing instructions that, when executed by a computer, perform each step of the method flow shown in the above method embodiments.

[0114] Embodiments of this disclosure provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the address allocation method described in the above method embodiments.

[0115] Embodiments of this disclosure provide a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the address allocation method as described in the above method embodiments.

[0116] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In this embodiment of the disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0117] Since the apparatus, devices, computer-readable storage media, and computer program products in the embodiments of this disclosure can be applied to the above methods, the technical effects they can achieve can also be referred to the above method embodiments. The embodiments of this disclosure will not be repeated here.

[0118] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. An address allocation method applied to a bandwidth remote access server (BRAS), characterized in that, The method includes: The system receives an online message from a terminal; the online message includes the identifier of the terminal. Determine whether a first Internet Protocol (IP) address corresponding to the identifier of the terminal exists in the set of addresses to be allocated; the first IP address is the IP address used by the terminal when it last went online; If the first IP address exists in the set of addresses to be allocated, a confirmation message is sent to the terminal; the confirmation message includes: a first network access coefficient value and the first IP address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; Upon receiving a first response message from the terminal, a first instruction message is sent to the terminal; wherein, the first response message indicates that the terminal has determined to consume the first network access coefficient value to obtain the first IP address; the first instruction message instructs the terminal to access the BRAS according to the first IP address; The available network access coefficient value of the terminal increases by a preset amount every preset time interval.

2. The method according to claim 1, characterized in that, After sending the confirmation information to the terminal, the method further includes: Upon receiving a second response message from the terminal, a second instruction message is sent to the terminal; the second response message indicates that the terminal has determined not to consume the first network access coefficient value to obtain the first IP address; the second instruction message instructs the terminal to access the BRAS according to the second IP address; the second IP address is an IP address in the set of addresses to be allocated that is different from the first IP address.

3. The method according to claim 2, characterized in that, After determining whether a first IP address corresponding to the identifier of the terminal exists in the set of addresses to be allocated, the method further includes: If the first IP address is not found in the set of addresses to be assigned, the second indication information is sent to the terminal.

4. The method according to claim 1, characterized in that, The method further includes: Receive a disconnect message sent by the terminal; the disconnect message is used to instruct the BRAS to disconnect from the terminal; The first IP address is stored in the set of addresses to be allocated; wherein the first IP address is not allocated to terminals other than the terminal for a preset time period, the preset time period being determined based on the ratio of the number of IP addresses to be allocated in the set of addresses to the total capacity of the IP address pool of the BRAS.

5. An address allocation method applied to a terminal, characterized in that, The method includes: Send an online message to the Broadband Remote Access Server (BRAS); the online message includes: the identifier of the terminal; The system receives confirmation information sent by the BRAS; the confirmation information includes: a first network access coefficient value and a first Internet Protocol (IP) address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; the first IP address is the IP address used by the terminal when it last went online; If it is confirmed that the terminal is using the first IP address to access the BRAS and the available network access coefficient value of the terminal is greater than or equal to the first network access coefficient value, the terminal consumes the first network access coefficient value and sends a first response message to the BRAS; the first response message is used to indicate that the terminal has decided to consume the first network access coefficient value to obtain the first IP address. The terminal receives a first indication message sent by the BRAS; the first indication message is used to instruct the terminal to access the BRAS according to the first IP address. At preset intervals, the available network access coefficient value of the terminal is increased by a preset amount.

6. The method according to claim 5, characterized in that, After receiving the confirmation information sent by the BRAS, the process further includes: If it is confirmed that the first IP address will not be used to access the BRAS, and / or the available network access coefficient value of the terminal is less than the first network access coefficient value, a second response message is sent to the BRAS; the second response message is used to indicate that the terminal has decided not to consume the first network access coefficient value to obtain the first IP address. The terminal receives a second indication message sent by the BRAS; the second indication message is used to instruct the terminal to access the BRAS according to the second IP address.

7. An address allocation device, applied to a bandwidth remote access server (BRAS), characterized in that, include: Processing unit and communication unit; The communication unit is used to receive online messages sent by the terminal; The online message includes: the identifier of the terminal; The processing unit is configured to determine whether there exists a first Internet Protocol (IP) address in the set of addresses to be allocated that corresponds to the identifier of the terminal; the first IP address is the IP address used by the terminal when it last went online; The communication unit is further configured to send confirmation information to the terminal if the first IP address exists in the set of addresses to be allocated; the confirmation information includes: a first network entry coefficient value and the first IP address; the first network entry coefficient value is used to characterize the coefficient value required to obtain the first IP address; The communication unit is further configured to send first indication information to the terminal upon receiving a first reply information from the terminal; wherein the first reply information is configured to indicate that the terminal determines to consume the first network access coefficient value to obtain the first IP address; and the first indication information is configured to instruct the terminal to access the BRAS according to the first IP address. The available network access coefficient value of the terminal increases by a preset amount every preset time interval.

8. The apparatus according to claim 7, characterized in that, The communication unit is further used for: Upon receiving a second response message from the terminal, a second instruction message is sent to the terminal; the second response message indicates that the terminal has determined not to consume the first network access coefficient value to obtain the first IP address. The second indication information is used to instruct the terminal to access the BRAS according to the second IP address; the second IP address is an IP address in the set of addresses to be allocated that is different from the first IP address.

9. The apparatus according to claim 8, characterized in that, The processing unit is further configured to: If the first IP address is not found in the set of addresses to be allocated, the communication unit is instructed to send the second instruction information to the terminal.

10. The apparatus according to claim 7, characterized in that, The processing unit is further configured to: The communication unit is instructed to receive a disconnect message sent by the terminal; the disconnect message is used to instruct the BRAS to disconnect from the terminal. The first IP address is stored in the set of addresses to be allocated; wherein the first IP address is not allocated to terminals other than the terminal for a preset time period, the preset time period being determined based on the ratio of the number of IP addresses to be allocated in the set of addresses to the total capacity of the IP address pool of the BRAS.

11. An address allocation device, applied to a terminal, characterized in that, include: Processing unit and communication unit; The communication unit is used to send an online message to the Broadband Remote Access Server (BRAS). The online message includes: the identifier of the terminal; The communication unit is further configured to receive confirmation information sent by the BRAS; the confirmation information includes: a first network access coefficient value and a first Internet Protocol (IP) address; the first network access coefficient value is used to characterize the coefficient value required to obtain the first IP address; the first IP address is the IP address used by the terminal when it last went online; The processing unit is configured to, upon confirming that the terminal is using the first IP address to access the BRAS and that the available network access coefficient value of the terminal is greater than or equal to the first network access coefficient value, consume the first network access coefficient value and send a first response message to the BRAS; the first response message is used to indicate that the terminal has determined to consume the first network access coefficient value to obtain the first IP address. The communication unit is further configured to receive first indication information sent by the BRAS; the first indication information is configured to instruct the terminal to access the BRAS according to the first IP address; The processing unit is further configured to: At preset intervals, the available network access coefficient value of the terminal is increased by a preset amount.

12. The apparatus according to claim 11, characterized in that, The processing unit is further configured to: If it is confirmed that the first IP address is not used to access the BRAS, and / or the available network access coefficient value of the terminal is less than the first network access coefficient value, the communication unit is instructed to send a second reply message to the BRAS; The second response information is used to indicate that the terminal determines that it will not consume the first network access coefficient value to obtain the first IP address; The communication unit is instructed to receive the second instruction information sent by the BRAS; The second indication information is used to instruct the terminal to access the BRAS according to the second IP address.

13. An address allocation device, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being used to run computer programs or instructions to implement the address allocation method as described in any one of claims 1-6.

14. A computer-readable storage medium storing instructions, characterized in that, When the computer executes the instruction, the computer performs the address allocation method described in any one of claims 1-6.