Address allocation method and system, electronic device, and computer-readable storage medium

By obtaining and limiting address quantity information to allocate addresses to terminals, the burden and difficulty caused by redundant address allocation in IPv6 address allocation by broadband access-level routers is solved, and flexible and efficient address management is achieved.

CN113645319BActive Publication Date: 2024-10-25NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010346710.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-27
Publication Date
2024-10-25
Estimated Expiration
2040-04-27

AI Technical Summary

Technical Problem

In a metropolitan area network environment, broadband access-level comprehensive routers face the burden and loss caused by redundant address allocation during the IPv6 address allocation process. In particular, multi-address applications increase the difficulty of address allocation and management.

Method used

Allocate a specific number of addresses to the terminal by obtaining the first address quantity information, and transmit the second address quantity information between the operation management device and the terminal to limit the number of allocated addresses and adapt to different application scenarios.

Benefits of technology

It effectively reduces the burden and loss of the router, improves the flexibility and management efficiency of address allocation, and adapts to the address requirements in various scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113645319B_ABST
    Figure CN113645319B_ABST
Patent Text Reader

Abstract

The present disclosure provides an address allocation method, the method comprising: obtaining first address quantity information; wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to a terminal; allocating N addresses to the terminal, and returning the N addresses to the terminal; wherein N is determined according to the first address quantity information. The present disclosure also provides an address allocation device and system, an electronic device, and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of data communications, and in particular to an address allocation method, device and system, an electronic device, and a computer-readable storage medium. Background Art

[0002] In the metropolitan area network environment, the stateful address allocation process for single-stack users of Internet Protocol version 6 (IPv6) and the stateful address allocation process for dual-stack users of router products generally use the Dynamic Host Configuration Protocol for IPv6 (DHCPv6). DHCPv6 is a protocol designed for the IPv6 addressing scheme to allocate IPv6 prefixes, IPv6 addresses and other network configuration parameters to hosts. DHCPv6 can not only record the addresses or prefixes allocated to hosts, but also allocate specific addresses or prefixes to specific hosts to facilitate network management.

[0003] In the stateful address allocation process for IPv6 single-stack users and the stateful address allocation process for dual-stack users, the broadband access-class integrated router needs to communicate with the access client, and each maintains the state of the other party locally during the communication process.

[0004] Public Content

[0005] Embodiments of the present disclosure provide an address allocation method, device and system, electronic device, and computer-readable medium.

[0006] In a first aspect, an embodiment of the present disclosure provides an address allocation method, which includes:

[0007] Acquire first address quantity information; wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal;

[0008] Allocate N addresses to the terminal, and return the N addresses to the terminal; wherein the N is determined according to the first address quantity information.

[0009] In a second aspect, an embodiment of the present disclosure provides an address allocation method, which includes:

[0010] N addresses allocated by the router are received; wherein the N is determined according to the first address quantity information; the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal.

[0011] In a third aspect, an embodiment of the present disclosure provides an address allocation method, which includes:

[0012] Second address quantity information is issued to the terminal according to the second information of the terminal; wherein the second address quantity information is used to indicate the restriction on the number of addresses allocated to the terminal issued by the operation management device.

[0013] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, comprising:

[0014] at least one processor;

[0015] A storage device stores at least one program, and when the at least one program is executed by the at least one processor, the at least one processor performs any one of the above-mentioned address allocation methods.

[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements any one of the above-mentioned address allocation methods when executed by a processor.

[0017] In a sixth aspect, an embodiment of the present disclosure provides an address allocation system, comprising:

[0018] A router, configured to obtain first address quantity information, wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to a terminal; allocate N addresses to the terminal, and return the allocated N addresses to the terminal; wherein N is determined according to the first address quantity information;

[0019] The terminal is used to receive N addresses allocated by the router.

[0020] The address allocation method provided in the embodiment of the present disclosure allocates addresses to terminals based on first address quantity information. The number of allocated addresses is determined according to the number indicated by the first address quantity information, thereby limiting the number of addresses allocated to the terminal and reducing the burden and loss of the router.

[0021] The address allocation method provided in the embodiment of the present disclosure sends second address quantity information to the terminal based on the information of the terminal. The second address quantity information is used to indicate the limitation on the number of addresses allocated to the terminal issued by the operation management device, thereby realizing the limitation on the number of addresses allocated to the terminal in various scenarios and being able to adapt to various different application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to provide further understanding of the embodiments of the present disclosure and constitute a part of the specification. They are used to explain the present disclosure together with the embodiments of the present disclosure and do not constitute a limitation of the present disclosure.

[0023] The above and other features and advantages will become more apparent to those skilled in the art by describing in detail example embodiments with reference to the accompanying drawings, in which:

[0024] Figure 1 A flowchart of an address allocation method provided in an embodiment of the present disclosure;

[0025] Figure 2 A schematic diagram of the structure of a DHCPv6 message provided in an embodiment of the present disclosure;

[0026] FIG3( a ) is a schematic diagram of the structure of a vendor class option (OPTION_VENDOR_CLASS) provided in an embodiment of the present disclosure;

[0027] FIG3( b ) is a schematic diagram of the structure of an Identity Association for Non-temporary Address (IA_NA) option provided in an embodiment of the present disclosure;

[0028] FIG3( c ) is a schematic diagram of the structure of an Identity Association for the Temporary Address (IA_TA) option provided in an embodiment of the present disclosure;

[0029] FIG3( d ) is a schematic diagram of the structure of an Identity Association for Prefix Delegation (IA_PD) option provided in an embodiment of the present disclosure;

[0030] Figure 4 A flowchart of another address allocation method provided by an embodiment of the present disclosure;

[0031] Figure 5 A flowchart of another address allocation method provided by an embodiment of the present disclosure;

[0032] Figure 6 A schematic diagram of an address allocation process provided by an embodiment of the present disclosure;

[0033] Figure 7 An interactive schematic diagram of an address allocation method using IPoE to carry DHCPv6 provided in Example 1 of an embodiment of the present disclosure;

[0034] Figure 8 Example 2 of the embodiment of the present disclosure provides an interactive schematic diagram of an address allocation method in the case of using PPPoE to carry DHCPv6;

[0035] Fig. 9 Example 3 of the embodiment of the present disclosure provides a flowchart of an address allocation method in the case of an unknown bearer mode;

[0036] Fig.10A block diagram of a composition of an address allocation device provided in an embodiment of the present disclosure;

[0037] Fig.11 A block diagram of another address allocation device provided in an embodiment of the present disclosure;

[0038] Fig.12 A block diagram of another address allocation device provided in an embodiment of the present disclosure;

[0039] Fig.13 A block diagram of the composition of an address allocation system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the address allocation method, device and system, electronic device, and computer-readable storage medium provided by the present disclosure are described in detail below in conjunction with the accompanying drawings.

[0041] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete and to enable those skilled in the art to fully understand the scope of the present disclosure.

[0042] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

[0043] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.

[0044] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component and / or group thereof is not excluded.

[0045] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0046] DHCPv6 allows more than one Identity Association (IA) option to appear. In the process of applying for and negotiating temporary addresses, non-temporary addresses, and prefix addresses through the IA option, one or more addresses may be allocated. Specifically, according to RFC3315 (RFC: Request for Commons), a DHCPv6 message may carry one or more Identity Association for Non-temporary Address (IA_NA) options to request the allocation of one or more non-temporary addresses, and may also carry one or more Identity Association for the Temporary Address (IA_TA) options to request the allocation of one or more temporary addresses. According to RFC3633, a DHCPv6 message may carry one or more Identity Association for Prefix Delegation (IA_PD) options to request the allocation of one or more prefix addresses. The emergence of multi-address applications has increased the address options for access clients, but it has also increased the burden and loss of broadband access-level integrated routers.

[0047] In addition, DHCPv6 is carried in various ways in actual application. It can be carried not only on Internet Protocol over Ethernet (IPOE) but also on Point to Point Protocol over Ethernet (PPPoE). The business types involved are also various, as shown in Table 1, including but not limited to: High Speed ​​Internet (HSI), Integrated Terminal Management System (ITMS), Voice over Internet Protocol (VoIP), Video on Demand (VOD), and private network business. Clients with different carrying modes and different business types will request the allocation of different types and numbers of addresses when making address allocation requests, thereby increasing the difficulty of address allocation and address management of broadband access-level integrated routers.

[0048]

[0049] Table 1

[0050] For example, as shown in Table 1, the HSI service is a home broadband personal service, which is generally carried on PPPoE. After the IPv6 protocol stack is enabled, the IPv6 address can be obtained through the PPPoEv6 ND (Neighbor Discovery, stateless neighbor discovery) method and the DHCPv6 (DHCPv6 OverPPPoE) method carried on PPPoE. In the process of obtaining the IPv6 address through the DHCPv6 OverPPPoE method, N (N>=1) IA_NA options and N (N>=1) IA_PD options can be carried in the DHCPv6 message to request the allocation of multiple addresses that meet the opening conditions for communication. In the actual business operation process, the address type requested by the client varies, and it may request the allocation of any address among the IA_PD address, IA_NA address, and IA_TA address. For the address type that does not need to be allocated, the broadband access integrated router may not allocate the address, but for the address type that needs to be allocated, no matter how many are requested, it will respond. For example, when an HSI client performs IPv6 dial-up access, it carries two IA_NA options, one IA_TA option, and one IA_PD option in the DHCPv6 message by default, and requests the allocation of two IA_NA addresses, one IA_TA address, and one IA_PD address. The broadband access integrated service router does not respond to the IA_TA address according to the operation requirements, allocates two IA_NA addresses for the IA_NA option, and allocates one IA_PD address for the IA_PD option. The actual service only needs to use one IA_NA address and one IA_PD address for communication, and there is one extra IA_NA address. Because the number of service users carried by broadband access-level integrated router equipment is generally calculated in tens of thousands, a large number of redundant addresses will seriously affect the access performance of broadband access equipment, application service equipment, authentication and authorization accounting (AAA) equipment, etc., and also increase the difficulty of address allocation and address management of broadband access-level integrated routers.

[0051] As shown in Table 1, VOD service is a video on demand service, which is generally carried on IPoE. It uses DHCPv6 to obtain the service address, and can also use DHCPv6 Over PPPoE to obtain the service address. In the process of the client obtaining the service address through DHCPv6, it can carry N (N>=1) IA_NA options in the DHCPv6 message to request the allocation of multiple IA_NA addresses that meet the activation conditions for communication. In the process of the client obtaining the service address, it may also request any address among the IA_PD address, IA_NA address, and IA_TA address. For the address type that does not need to be allocated, the broadband access integrated service router may not allocate the address, but for the address type that needs to be allocated, it will respond regardless of the number of requests. For example, when a VOD client performs IPv6 dial-up access, it carries two IA_NA options, one IA_TA option, and one IA_PD option in the DHCPv6 message by default, and requests the allocation of two IA_NA addresses, one IA_TA address, and one IA_PD address. Based on operational requirements, the broadband access integrated service router does not respond to the IA_TA type, does not respond to the IA_PD type, and allocates two IA_NA addresses for the IA_NA option. The actual service only needs to use one IA_NA address, and there is one extra IA_NA address. Because the number of service users carried by broadband access-level integrated routers is generally calculated in tens of thousands, a large number of redundant addresses will seriously affect the access performance of broadband access equipment, application service equipment, AAA equipment, etc., and also increase the difficulty of address allocation and address management of broadband access-level integrated routers.

[0052] As shown in Table 1, ITMS service is a terminal integrated management system that provides initialization and service management services for terminals. ITMS service is generally carried on IPoE and uses DHCPv6 to obtain service addresses. In the process of the client obtaining service addresses through DHCPv6, it can carry N (N>=1) IA_NA options in the DHCPv6 message to request the allocation of multiple addresses that meet the activation conditions for communication. In the process of the client obtaining service addresses, it may also request any of the IA_PD addresses, IA_NA addresses, and IA_TA addresses. For address types that do not need to be allocated, the broadband access integrated service router may not allocate addresses, but for address types that need to be allocated, no matter how many are requested, they will respond to the request for allocation. For example, when an ITMS client performs IPv6 dial-up access, it carries two IA_NA options, one IA_TA option, and one IA_PD option in the DHCPv6 message by default, and requests the allocation of two IA_NA addresses, one IA_TA address, and one IA_PD address. Based on operational requirements, the broadband access integrated service router does not respond to the IA_TA type, does not respond to the IA_PD type, and allocates two IA_NA addresses for the IA_NA option. The actual service only needs to use one IA_NA address, and there is one extra IA_NA address. Because the number of service users carried by broadband access-level integrated routers is generally calculated in tens of thousands, a large number of redundant addresses will seriously affect the access performance of broadband access equipment, application service equipment, AAA equipment, etc., and also increase the difficulty of address allocation and address management of broadband access-level integrated routers.

[0053] As shown in Table 1, the private network service is a dedicated line network used by enterprise customers and commercial customers. It is generally deployed statically or in a dynamic protocol manner. When the IPv6 service is enabled and deployed in a dynamic protocol manner, DHCPv6 is generally used to carry the service address on IPoE. In the process of the client obtaining the service address through the DHCPv6 protocol, it can carry N (N>=1) IA_NA options, N (N>=1) IA_TA, and N (N>=1) IA_PD options in the DHCPv6 message to request the allocation of multiple addresses that meet the activation conditions for communication. For address types that do not need to be allocated, the broadband access integrated service router may not allocate addresses, but for address types that need to be allocated, no matter how many are requested, a response request will be made. For example, when a private network service end performs IPv6 dial-up access, by default, 3 IA_NA options, 3 IA_TA options, and 3 IA_PD options are carried in the DHCPv6 message, and the allocation of 3 IA_NA addresses, 3 IA_TA addresses, and 3 IA_PD addresses is requested. The broadband access integrated service router responds to all three types of options according to the operation requirements, and allocates 3 IA_NA addresses, 3 IA_TA addresses, and 3 IA_PD addresses. The actual service only needs to use 1 IA_NA address, 1 IA_TA address, and 3 IA_PD addresses, with 2 extra IA_NA addresses and 2 extra IA_TA addresses. Because the number of service users carried by broadband access-level integrated routers is generally calculated in tens of thousands, a large number of redundant addresses will seriously affect the access performance of broadband access equipment, application service equipment, AAA equipment, etc., and also increase the difficulty of address allocation and address management of broadband access-level integrated routers.

[0054] Figure 1 The present invention is a flowchart of an address allocation method according to an embodiment of the present invention.

[0055] First, refer to Figure 1 The present disclosure provides an address allocation method, which is applied to a router. The method includes:

[0056] Step 100: Obtain first address quantity information; wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal.

[0057] Step 101: allocate N addresses to the terminal, and return the allocated N addresses to the terminal; wherein N is determined according to the first address quantity information.

[0058] The address allocation method provided in the embodiment of the present disclosure allocates addresses to terminals based on first address quantity information. The number of allocated addresses is determined according to the number indicated by the first address quantity information, thereby limiting the number of addresses allocated to the terminal and reducing the burden and loss of the router.

[0059] In some exemplary embodiments, the method further comprises:

[0060] Acquire first address allocation sequence information, where the first address allocation sequence information is used to indicate an allocation sequence of the addresses in the address pool;

[0061] The allocating N addresses to the terminal comprises:

[0062] N addresses are allocated to the terminal according to the allocation order indicated by the first address allocation order information.

[0063] That is to say, there are the following two situations: situation 1, only the number of addresses allocated to the terminal is limited; situation 2, the number of addresses allocated to the terminal is limited, and the allocation order of the addresses allocated to the terminal is also limited.

[0064] It should be noted that the first address quantity information can be obtained first, and then the first address allocation order information can be obtained; the first address allocation order information can be obtained first, and then the first address quantity information can be obtained; or the first address allocation order information and the first address quantity information can be obtained at the same time; the embodiment of the present disclosure does not limit the order in which these two pieces of information are obtained, and the specific order of obtaining is not used to limit the protection scope of the embodiment of the present disclosure.

[0065] In some exemplary embodiments, after determining to impose restrictions on address allocation, the address allocation method of the embodiment of the present disclosure may continue to be used to allocate addresses; after determining not to impose restrictions on address allocation, addresses may be allocated according to the address allocation method of related technologies.

[0066] Specifically, a switch may be used to implement the method. When the switch is turned on, address allocation restriction is performed; when the switch is turned off, address allocation restriction is not performed.

[0067] In some exemplary embodiments, the first address quantity information may be used to indicate the maximum number of addresses allocated to the terminal, where N is less than or equal to the maximum number indicated by the first address quantity information. In other exemplary embodiments, the first address quantity information may be used to indicate the number of addresses allocated to the terminal, where N is the number indicated by the first address quantity information.

[0068] In some exemplary embodiments, the first address quantity information may include: first non-temporary address quantity information, the first non-temporary address quantity information is used to indicate a limit on the number of non-temporary addresses allocated to the terminal, and the allocating N addresses to the terminal includes:

[0069] Allocate N1 of the non-temporary addresses to the terminal; wherein the N1 is determined according to the quantity information of the first non-temporary addresses.

[0070] In some other exemplary embodiments, the first address quantity information may include: first temporary address quantity information, where the first temporary address quantity information is used to indicate a limit on the number of temporary addresses allocated to the terminal, and the allocating N addresses to the terminal includes:

[0071] Allocate N2 temporary addresses to the terminal; wherein N2 is determined according to the quantity information of the first temporary addresses.

[0072] In some other exemplary embodiments, the first address quantity information includes: first prefix address quantity information, the first prefix address quantity information is used to indicate a limit on the number of prefix addresses allocated to the terminal, and the allocating N addresses to the terminal includes:

[0073] Allocate N3 of the prefix addresses to the terminal; wherein the N3 is determined according to the quantity information of the first prefix addresses.

[0074] In some other exemplary embodiments, the first address quantity information may include: first non-temporary address quantity information and first temporary address quantity information, and the allocating N addresses to the terminal includes:

[0075] Allocating N1 of the non-temporary addresses to the terminal; wherein the N1 is determined according to the quantity information of the first non-temporary addresses;

[0076] Allocate N2 temporary addresses to the terminal; wherein N2 is determined according to the quantity information of the first temporary addresses.

[0077] In some other exemplary embodiments, the first address quantity information may include: first non-temporary address quantity information and first prefix address quantity information, and the allocating N addresses to the terminal includes:

[0078] Allocating N1 of the non-temporary addresses to the terminal; wherein the N1 is determined according to the quantity information of the first non-temporary addresses;

[0079] Allocate N3 of the prefix addresses to the terminal; wherein the N3 is determined according to the quantity information of the first prefix addresses.

[0080] In some other exemplary embodiments, the first address quantity information may include: first temporary address quantity information and first prefix address quantity information, and the allocating N addresses to the terminal includes:

[0081] Allocating N2 temporary addresses to the terminal; wherein N2 is determined according to the quantity information of the first temporary addresses;

[0082] Allocate N3 of the prefix addresses to the terminal; wherein the N3 is determined according to the quantity information of the first prefix addresses.

[0083] In some other exemplary embodiments, the first address quantity information may include: first non-temporary address quantity information, first temporary address quantity information and first prefix address quantity information, and the allocating N addresses to the terminal includes:

[0084] Allocating N1 of the non-temporary addresses to the terminal; wherein the N1 is determined according to the quantity information of the first non-temporary addresses;

[0085] Allocating N2 temporary addresses to the terminal; wherein N2 is determined according to the quantity information of the first temporary addresses;

[0086] Allocate N3 of the prefix addresses to the terminal; wherein the N3 is determined according to the quantity information of the first prefix addresses.

[0087] In some exemplary embodiments, the first non-temporary address quantity information may be used to indicate the maximum number of non-temporary addresses allocated to the terminal, and N1 is less than or equal to the maximum number indicated by the first non-temporary address quantity information. In other exemplary embodiments, the first non-temporary address quantity information may be used to indicate the number of non-temporary addresses allocated to the terminal, and N1 is the number indicated by the first non-temporary address quantity information.

[0088] In some exemplary embodiments, the first temporary address quantity information may be used to indicate the maximum number of temporary addresses allocated to the terminal, and N2 is less than or equal to the maximum number indicated by the first temporary address quantity information. In other exemplary embodiments, the first temporary address quantity information may be used to indicate the number of temporary addresses allocated to the terminal, and N2 is the number indicated by the first temporary address quantity information.

[0089] In some exemplary embodiments, the first prefix address quantity information may be used to indicate the maximum number of prefix addresses allocated to the terminal, and N3 is less than or equal to the maximum number indicated by the first prefix address quantity information. In other exemplary embodiments, the first prefix address quantity information may be used to indicate the number of prefix addresses allocated to the terminal, and N3 is the number indicated by the first prefix address quantity information.

[0090] In some exemplary embodiments, the first address quantity information may be acquired in any of the following ways.

[0091] Method 1: Receive second address quantity information from the terminal, and use the second address quantity information as the first address quantity information; wherein the second address quantity information is used to indicate the restriction on the number of addresses allocated to the terminal issued by the operation management device.

[0092] Method 1 is the dynamic deployment method.

[0093] In some exemplary embodiments, the second address quantity information may be used to indicate the maximum number of addresses allocated to the terminal issued by the operation management device. In other exemplary embodiments, the second address quantity information may be used to indicate the number of addresses allocated to the terminal issued by the operation management device.

[0094] In some exemplary embodiments, the second address quantity information may include: second non-temporary address quantity information, the second non-temporary address quantity information is used to indicate the limitation on the number of non-temporary addresses allocated to the terminal issued by the operation and management device. In other exemplary embodiments, the second address quantity information may include: second temporary address quantity information, the second temporary address quantity information is used to indicate the limitation on the number of temporary addresses allocated to the terminal issued by the operation and management device. In other exemplary embodiments, the second address quantity information includes: second prefix address quantity information, the second prefix address quantity information is used to indicate the limitation on the number of prefix addresses allocated to the terminal issued by the operation and management device.

[0095] In some other exemplary embodiments, the second address quantity information may include: second non-temporary address quantity information and second temporary address quantity information. In some other exemplary embodiments, the second address quantity information may include: second non-temporary address quantity information and second prefix address quantity information. In some other exemplary embodiments, the second address quantity information may include: second temporary address quantity information and second prefix address quantity information. In some other exemplary embodiments, the second address quantity information may include: second non-temporary address quantity information, second temporary address quantity information and second prefix address quantity information.

[0096] In some exemplary embodiments, the second non-temporary address quantity information can be used to indicate the maximum number of non-temporary addresses allocated to the terminal issued by the operation management device. In other exemplary embodiments, the second non-temporary address quantity information can be used to indicate the number of non-temporary addresses allocated to the terminal issued by the operation management device.

[0097] In some exemplary embodiments, the second temporary address quantity information may be used to indicate the maximum number of temporary addresses allocated to the terminal issued by the operation management device. In other exemplary embodiments, the second temporary address quantity information may be used to indicate the number of temporary addresses allocated to the terminal issued by the operation management device.

[0098] In some exemplary embodiments, the second prefix address quantity information may be used to indicate the maximum number of prefix addresses allocated to the terminal issued by the operation management device. In other exemplary embodiments, the second prefix address quantity information may be used to indicate the number of prefix addresses allocated to the terminal issued by the operation management device.

[0099] Method 2: obtaining preset third address quantity information corresponding to the terminal, and using the third address quantity information as the first address quantity information; wherein the third address quantity information is used to indicate a preset limit on the number of addresses allocated to the terminal.

[0100] Method 2 is the static deployment method, as shown in Table 2. Compared with the dynamic deployment method, the static deployment method needs to be deployed for each virtual circuit, and the deployment volume is large; and the deployment method of each terminal is fixed, and the newly added original deployment information needs to be removed when modifying, which is not as flexible as the dynamic deployment method.

[0101]

[0102]

[0103]

[0104] Table 2

[0105] For example, as shown in Table 2, the HSI service is a home broadband personal service, which is generally carried on PPPoE. After the IPv6 protocol stack is enabled, the IPv6 address can be obtained through the PPPoEv6 ND mode and the DHCPv6 Over PPPoE mode. Among them, in the process of obtaining the IPv6 address through the DHCPv6 Over PPPoE mode, N (N>=1) IA_NA options and N (N>=1) IA_PD options can be carried in the DHCPv6 message to request the allocation of multiple addresses that meet the opening conditions for communication. In the actual business operation process, the address type requested by the client varies, and it may request the allocation of any address among the IA_PD address, IA_NA address, and IA_TA address. For the address type that does not need to be allocated, the broadband access-level integrated router may not allocate the address, but for the address type that needs to be allocated, no matter how many are requested, it will respond. When the static deployment method is adopted, the broadband access-level integrated router device analyzes and finds that the virtual link information accessed by the terminal device is: the port is port1, the outer VLAN is 100, and the inner VLAN is 100. Through the static mapping relationship deployed by the operator in the broadband access-level integrated router, it is found that the policy on the broadband access-level integrated router requires that all terminals with an outer VLAN of 100 and an inner VLAN of 100, regardless of the manufacturer or device type, are only allowed to allocate 1 IA_NA address and 1 IA_PD address for address allocation.

[0106] As shown in Table 2, VOD service is a video on demand service, which is generally carried on IPoE. It uses DHCPv6 to obtain the service address, and can also use DHCPv6 Over PPPoE to obtain the service address. In the process of the client obtaining the service address through DHCPv6, it can carry N (N>=1) IA_NA options in the DHCPv6 message to request the allocation of multiple IA_NA addresses that meet the activation conditions for communication. In the process of the client obtaining the service address, it may also request any address among the IA_PD address, IA_NA address, and IA_TA address. For the address type that does not need to be allocated, the broadband access-level integrated service router may not allocate the address, but for the address type that needs to be allocated, it will respond regardless of the number of requests. When the static deployment method is adopted, the broadband access-level integrated router device analyzes and finds that the virtual link information accessed by the terminal device is: the port is port1, the outer VLAN is 2000, and the inner VLAN is 100. Through the static mapping relationship deployed by the operator in the broadband access-level integrated router, it is found that the policy on the broadband access-level integrated router requires that all outer VLANs are 2000, and any access terminal in the inner VLAN is only allowed to allocate 1 IA_NA address, regardless of business or manufacturer.

[0107] As shown in Table 2, the ITMS service is a terminal integrated management system that provides initialization and service management services for the terminal. ITMS services are generally carried on IPoE and use DHCPv6 to obtain service addresses. In the process of the client obtaining the service address through DHCPv6, it can carry N (N>=1) IA_NA options in the DHCPv6 message to request the allocation of multiple addresses that meet the activation conditions for communication. In the process of the client obtaining the service address, it may also request any of the IA_PD address, IA_NA address, and IA_TA address. For address types that do not need to be allocated, the broadband access-level integrated service router may not allocate addresses, but for address types that need to be allocated, no matter how many are requested, the request for allocation will be responded to regardless of the number. When the static deployment method is adopted, the broadband access-level integrated router analyzes and finds that the virtual link information accessed by the terminal device is: the port is port3, the outer VLAN is 3000, and the inner VLAN is 300. Through the static mapping relationship deployed by the operator in the broadband access-level integrated router, it is found that the policy on the broadband access-level integrated router requires that all outer VLANs are 3000, and the inner VLAN is any designated manufacturer, and only for access terminals used for address management services, only 1 IA_NA address is allowed to be allocated.

[0108] As shown in Table 2, the private network service is a dedicated line network used by enterprise customers and commercial customers. It is generally deployed statically or in a dynamic protocol manner. When the IPv6 service is enabled and deployed in a dynamic protocol manner, DHCPv6 is generally used to carry the service address on IPoE. In the process of the client obtaining the service address through the DHCPv6 protocol, it can carry N (N>=1) IA_NA options, N (N>=1) IA_TA, and N (N>=1) IA_PD options in the DHCPv6 message to request the allocation of multiple addresses that meet the activation conditions for communication. For address types that do not need to be allocated, the broadband access-level integrated router may not allocate addresses, but for address types that need to be allocated, no matter how many are requested, a response request will be made. When the static deployment method is adopted, the broadband access-level integrated router device analyzes and finds that the virtual link information accessed by the terminal device is: the port is port4, the outer VLAN is 4000, and the inner VLAN is 400. Through the static mapping relationship deployed by the operator in the broadband access-level integrated router, it is found that the policy on the broadband access-level integrated router requires that all outer VLANs are in the range of 4000-4096, and the inner VLAN, manufacturer, and service of the access terminal are assigned (N-1) IA_NA addresses, (N-1) IA_PD addresses, and (N-1) IA_TA addresses according to the following address allocation principles.

[0109] In some exemplary embodiments, the third address quantity information may be used to indicate a preset maximum number of addresses allocated to the terminal. In other exemplary embodiments, the third address quantity information may be used to indicate a preset number of addresses allocated to the terminal.

[0110] In some exemplary embodiments, the third address quantity information may include: third non-temporary address quantity information, the third non-temporary address quantity information is used to indicate a preset limit on the number of non-temporary addresses allocated to the terminal. In other exemplary embodiments, the third address quantity information may include: third temporary address quantity information, the third temporary address quantity information is used to indicate a preset limit on the number of temporary addresses allocated to the terminal. In other exemplary embodiments, the third address quantity information includes: third prefix address quantity information, the third prefix address quantity information is used to indicate a preset limit on the number of prefix addresses allocated to the terminal.

[0111] In some other exemplary embodiments, the third address quantity information may include: third non-temporary address quantity information and third temporary address quantity information. In some other exemplary embodiments, the third address quantity information may include: third non-temporary address quantity information and third prefix address quantity information. In some other exemplary embodiments, the third address quantity information may include: third temporary address quantity information and third prefix address quantity information. In some other exemplary embodiments, the third address quantity information may include: third non-temporary address quantity information, third temporary address quantity information and third prefix address quantity information.

[0112] In some exemplary embodiments, the third non-temporary address quantity information may be used to indicate a preset maximum number of non-temporary addresses allocated to the terminal. In other exemplary embodiments, the third non-temporary address quantity information may be used to indicate a preset number of non-temporary addresses allocated to the terminal.

[0113] In some exemplary embodiments, the third temporary address quantity information may be used to indicate a preset maximum number of temporary addresses allocated to the terminal. In other exemplary embodiments, the third temporary address quantity information may be used to indicate a preset number of temporary addresses allocated to the terminal.

[0114] In some exemplary embodiments, the third prefix address quantity information may be used to indicate a preset maximum number of prefix addresses allocated to a terminal. In other exemplary embodiments, the third prefix address quantity information may be used to indicate a preset number of prefix addresses allocated to a terminal.

[0115] Method three: receiving the second address quantity information from the terminal, and determining the first address quantity information according to the second address quantity information and the preset third address quantity information corresponding to the terminal.

[0116] Method three is a combination of dynamic deployment and static deployment.

[0117] For the first and third methods, in some exemplary embodiments, receiving the second address quantity information from the terminal includes: receiving a vendor class option (OPTION_VENDOR_CLASS) from the terminal; wherein the OPTION_VENDOR_CLASS includes the second address quantity information.

[0118] In some exemplary embodiments, receiving an OPTION_VENDOR_CLASS from a terminal includes:

[0119] A first DHCPv6 message is received from a terminal, wherein the first DHCPv6 message includes: OPTION_VENDOR_CLASS.

[0120] In some exemplary embodiments, the first DHCPv6 message may be a solicitation message. In other exemplary embodiments, the first DHCPv6 message may be a request message. In other exemplary embodiments, the first DHCPv6 message may be a solicitation message and a request message.

[0121] For the second and third methods, in some exemplary embodiments, obtaining the preset third address quantity information corresponding to the terminal includes:

[0122] In the preset first corresponding relationship between the first information of the terminal and the third address quantity information, the third address quantity information corresponding to the first information of the terminal is searched.

[0123] In some exemplary embodiments, the first information of the terminal includes at least one of the following:

[0124] Virtual link information of the terminal, manufacturer information of the terminal, service type information of the terminal, geographical location information of the terminal, and operator information to which the terminal belongs.

[0125] In some exemplary embodiments, the virtual link information of the terminal includes at least one of the following:

[0126] Port information, inner VLAN, outer VLAN.

[0127] Of course, the first information of the terminal may also be other information representing the terminal, which is not limited in this embodiment of the present disclosure.

[0128] In some exemplary embodiments, the service type information of the terminal can be determined according to the outer VLAN and the inner VLAN. For example, in the above Table 2, the service type of the terminal with the outer VLAN being 100 and the inner VLAN being 1000 is HSI. The physical port is divided into several virtual circuits through the outer VLAN and the inner VLAN, and each virtual circuit corresponds to one or more terminals.

[0129] In some exemplary embodiments, the geographical location information of the terminal may be determined according to at least one of PPPoE+ information, Option 82 attribute information of DHCPv4, Option 18 attribute information of DHCPv6, and Option 17 attribute information of DHCPv6.

[0130] In some exemplary embodiments, the vendor information of the terminal is determined according to at least one of DHCPv4 option 82 attribute information and DHCPv6 Option 37 attribute information.

[0131] For the third approach, in some exemplary embodiments, determining the first address quantity information according to the second address quantity information and preset third address quantity information corresponding to the terminal includes:

[0132] The intersection of the second address quantity information and the third address quantity information is used as the first address quantity information.

[0133] For example, the second address quantity information is used to indicate the maximum number of addresses allocated to the terminal issued by the operation and management device, and the third address quantity information is used to indicate the pre-set maximum number of addresses allocated to the terminal. If the maximum number indicated by the second address quantity information is greater than the maximum number indicated by the third address quantity information, then the third address quantity information is used as the first address quantity information.

[0134] For example, the second address quantity information is used to indicate the maximum number of addresses allocated to the terminal issued by the operation and management device, and the third address quantity information is used to indicate the pre-set number of addresses allocated to the terminal. If the maximum number indicated by the second address quantity information is greater than the number indicated by the third address quantity information, then the third address quantity information is used as the first address quantity information.

[0135] In some exemplary embodiments, the first address allocation sequence information may be acquired in any of the following ways.

[0136] Method 4: receiving second address allocation sequence information from the terminal, and using the second address allocation sequence information as the first address allocation sequence information; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses in the address pool issued by the operation and management device.

[0137] Method 5: obtaining the third address allocation sequence information corresponding to the terminal that is preset, and using the third address allocation sequence information as the first address allocation sequence information; wherein the third address allocation sequence information is used to indicate the allocation sequence of the preset addresses in the address pool.

[0138] Mode six: receiving the second address allocation sequence information from the terminal, and determining the first address allocation sequence information according to the second address allocation sequence information and the preset third address allocation sequence information corresponding to the terminal.

[0139] For the fourth, fifth and sixth methods, in some exemplary embodiments, the address allocation sequence may be forward allocation (forward), abbreviated as f. In other exemplary embodiments, the address allocation sequence may be backward allocation (backward), abbreviated as b. In other exemplary embodiments, the address allocation sequence may be random allocation (random), abbreviated as r.

[0140] It should be noted that the order mentioned in the embodiment of the present disclosure refers to the allocation order in the address pool. For example:

[0141] IA_NA address pool range: 1::1-1::1000, F forward, the first address is allocated from 1::1;

[0142] IA_TA address pool range: 2::2-2::2000, B backward, starting from 2::2000 as the first allocated address;

[0143] IA_PD address range: 3:: / 64-4:: / 64, R is random and can be any value from the range.

[0144] For the fourth and sixth methods, in some exemplary embodiments, receiving the second address allocation sequence information from the terminal includes: receiving OPTION_VENDOR_CLASS from the terminal; wherein OPTION_VENDOR_CLASS includes the second address allocation sequence information.

[0145] For the fifth and sixth methods, in some exemplary embodiments, obtaining the preset third address allocation sequence information corresponding to the terminal includes:

[0146] In the preset second corresponding relationship between the first information of the terminal and the third address allocation sequence information, the third address allocation sequence information corresponding to the first information of the terminal is searched.

[0147] It should be noted that the first corresponding relationship and the second corresponding relationship may be the same corresponding relationship, that is, the corresponding relationship is the corresponding relationship between the first information of the terminal, the third address quantity information and the third address allocation sequence information.

[0148] For mode 6, in some exemplary embodiments, determining the first address allocation sequence information according to the second address allocation sequence information and preset third address allocation sequence information corresponding to the terminal includes:

[0149] Determining that the second address allocation sequence information is the first address allocation sequence information;

[0150] Alternatively, the third address allocation sequence information is determined to be the first address allocation sequence information.

[0151] Figure 2 A schematic diagram of the structure of a DHCPv6 message provided in an embodiment of the present disclosure. As shown in Figure 2, RFC3315 stipulates that a DHCPv6 message includes: a message type (msg-type) field, a transaction identifier (transaction-id) field, and an options (options) field. The above OPTION_VENDOR_CLASS can be filled in the options field, which is an option with an option code (option-code) of 16.

[0152] In some exemplary embodiments, the options field may also be filled with one or more IA_NA options. In other exemplary embodiments, the options field may also be filled with one or more IA_TA options. In other exemplary embodiments, the options field may also be filled with one or more IA_PD options. In other exemplary embodiments, the options field may also be filled with one or more IA_NA options and one or more IA_TA options. In other exemplary embodiments, the options field may also be filled with one or more IA_NA options and one or more IA_PD options. In other exemplary embodiments, the options field may also be filled with one or more IA_TA options and one or more IA_PD options. In other exemplary embodiments, the options field may also be filled with one or more IA_NA options, one or more IA_TA options, and one or more IA_PD options.

[0153] Fig. 3(a) is a schematic diagram of the structure of OPTION_VENDOR_CLASS provided in an embodiment of the present disclosure. As shown in Fig. 3(a), RFC3315 stipulates that OPTION_VENDOR_CLASS includes: an option code (option-code) field, an option length (option-len) field, an enterprise code (enterprise-number) field and a vendor-class-data (vendor-class-data) field.

[0154] The enterprise-number is used to carry the enterprise code (that is, the manufacturer information of the terminal) registered by the terminal with the international organization Internet Assigned Numbers Authority (IANA). The enterprise code registered by the terminal with the international organization IANA is used to distinguish terminals of different manufacturers.

[0155] Among them, the vendor-class-data field includes one or more attribute value (avp, AttributeValue Pair) attributes, and each avp attribute includes: vendor-class-length (vendor-class-len) and opaque-data (opaque-data). It should be noted that vendor-class-len refers to the total length of vendor-class-len and opaque-data. For the above situation one, opaque-data is used to carry the above-mentioned second address quantity information; for the above situation two, opaque-data is used to carry the above-mentioned second address quantity information and the second address allocation order information.

[0156] In an exemplary embodiment, vendor-class-len is 32.

[0157] In an exemplary embodiment, for the above situation 1, the data format of the opaque-data filling content is: IA_QTY (ia-num); wherein IA_QTY corresponds to the allocated address type, and ia-mun is the second address quantity information.

[0158] Specifically, for a non-temporary address, the data format of the opaque-data filling content is: IA_NA_QTY (ia-na-num); wherein IA_NA_QTY is the type of non-temporary address allocated in the IA_NA option, and ia-na-num is the second non-temporary address quantity information.

[0159] For a temporary address, the data format of the opaque-data filling content is: IA_TA_QTY (ia-ta-num); wherein IA_TA_QTY is the type of temporary address allocated in the IA_TA option, and ia-ta-num is the second temporary address quantity information.

[0160] For the prefix address, the data format of the opaque-data filling content is: IA_PD_QTY (ia-pd-num); wherein IA_PD_QTY is the prefix address type allocated in the IA_PD option, and ia-pd-num is the second prefix address quantity information.

[0161] In an exemplary embodiment, for the above situation 2, the data format of the opaque-data filling content is modified to: IA_QTY(ia-num)(seq); wherein IA_QTY corresponds to the allocated address type, ia-mun is the second address quantity information, and seq is the second address allocation sequence information.

[0162] Specifically, for non-temporary addresses, the data format of opaque-data filling content is: IA_NA_QTY(ia-na-num)(seq); wherein IA_NA_QTY is the non-temporary address type allocated in the IA_NA option, ia-na-num is the second non-temporary address quantity information, and seq is the second address allocation sequence information.

[0163] For temporary addresses, the data format of opaque-data filling content is: IA_TA_QTY(ia-ta-num)(seq); among which, IA_TA_QTY is the temporary address type allocated in the IA_TA option, ia-ta-num is the second temporary address quantity information, and seq is the second address allocation sequence information.

[0164] For the prefix address, the data format of the opaque-data filling content is: IA_PD_QTY(ia-pd-num)(seq); wherein IA_PD_QTY is the prefix address type allocated in the IA_PD option, ia-pd-num is the second prefix address quantity information, and seq is the second address allocation order information.

[0165] FIG3(b) is a schematic diagram of the structure of the IA_NA option provided in an embodiment of the present disclosure. As shown in FIG3(b), the IA_NA option is used to carry IA_NA, parameters associated with IA_NA, and non-temporary addresses associated with IA_NA. The address appearing in the IA_NA option is not a temporary address, and the IA_NA option can only appear in the option field of a DHCPv6 message. A DHCPv6 message may include multiple IA_NA options.

[0166] FIG3( c) is a schematic diagram of the structure of the IA_TA option provided in an embodiment of the present disclosure. As shown in FIG3( c), the IA_TA option is used to carry the IA_TA, parameters associated with the IA_TA, and addresses associated with the IA_TA. All addresses in this option are used by the client for temporary addresses, as defined in RFC3041

[12] . The IA_TA option field encapsulates those options that are specific to this IA_TA. For example, all IA Address Options that carry the IA address associated with this IA_TA. In the IA_TA option field, the IA_TA option can only appear in the option area of ​​the DHCPv6 message. The DHCPv6 message may include multiple IA_TA options.

[0167] FIG3(d) is a schematic diagram of the structure of the IA_PD option provided in an embodiment of the present disclosure. As shown in FIG3(d), the IA_PD option is used to carry the IA_PD, parameters associated with the IA_PD, and prefixes associated with the IA_PD. The prefixes used in this option are allocated by the client user prefix, and the client can allocate prefixes in a stateful or stateless manner. In the IA_PD option field, the IA_PD option can only appear in the option area of ​​the DHCPv6 message. The DHCPv6 message can contain multiple IA_PD options.

[0168] Figure 4 The present invention is a flowchart of another address allocation method according to an embodiment of the present invention.

[0169] Second, refer to Figure 4 , the embodiment of the present disclosure provides another address allocation method, applied to a terminal, the method comprising:

[0170] Step 400: Receive N addresses allocated by the router; wherein N is determined according to the first address quantity information; the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal.

[0171] In some exemplary embodiments, the first address quantity information may be used to indicate the maximum number of addresses allocated to the terminal, where N is less than or equal to the maximum number indicated by the first address quantity information. In other exemplary embodiments, the first address quantity information may be used to indicate the number of addresses allocated to the terminal, where N is the number indicated by the first address quantity information.

[0172] The first address quantity information of the embodiment of the present disclosure is consistent with the first address quantity information described in the previous embodiment, and will not be repeated here.

[0173] In some exemplary embodiments, receiving N addresses allocated by a router includes:

[0174] An IA option is received from a router, wherein the IA option includes an address assigned by the router.

[0175] In some exemplary embodiments, one IA option may be associated with one or more assigned addresses.

[0176] In some exemplary embodiments, the IA options include one or more IA_NA options. In other exemplary embodiments, the IA options include one or more IA_TA options. In other exemplary embodiments, the IA options include one or more IA_PD options. In other exemplary embodiments, the IA options include one or more IA_NA options and one or more IA_TA options. In other exemplary embodiments, the IA options include one or more IA_NA options and one or more IA_PD options. In other exemplary embodiments, the IA options include one or more IA_TA options and one or more IA_PD options. In other exemplary embodiments, the IA options include one or more IA_NA options, one or more IA_TA options, and one or more IA_PD options.

[0177] In some exemplary embodiments, an IA_NA option may be associated with one or more allocated non-temporary addresses. In other exemplary embodiments, an IA_TA option may be associated with one or more allocated temporary addresses. In other exemplary embodiments, an IA_PD option may be associated with one or more allocated prefix addresses.

[0178] In some exemplary embodiments, receiving an IA option from a router includes:

[0179] A second DHCPv6 message is received from the router, wherein the second DHCPv6 message includes an IA option.

[0180] In some exemplary embodiments, the second DHCPv6 message may be an advertise message. In other exemplary embodiments, the second DHCPv6 message may be a reply message. In other exemplary embodiments, the second DHCPv6 message may be an advertise message and a reply message.

[0181] In some exemplary embodiments, before receiving the N addresses allocated by the router, the method further includes:

[0182] Step 401: Receive second address quantity information issued by the operation management device, and send the second address quantity information to the router; wherein the second address quantity information is used to indicate the restriction on the number of addresses allocated to the terminal issued by the operation management device.

[0183] In some exemplary embodiments, the second address quantity information may be used to indicate the maximum number of addresses allocated to the terminal issued by the operation management device. In other exemplary embodiments, the second address quantity information may be used to indicate the number of addresses allocated to the terminal issued by the operation management device.

[0184] The second address quantity information of the embodiment of the present disclosure is consistent with the second address quantity information described in the previous embodiment, and will not be repeated here.

[0185] In some exemplary embodiments, the first address quantity information is the same as the second address quantity information; or, the first address quantity information is determined according to the second address quantity information.

[0186] In some exemplary embodiments, sending the second address quantity information to the router includes:

[0187] Sending OPTION_VENDOR_CLASS to the router; wherein OPTION_VENDOR_CLASS includes the second address quantity information.

[0188] The address allocation method provided by the embodiment of the present disclosure obtains the second address quantity information from the operation management device and sends it to the router, thereby limiting the number of addresses allocated to the terminal.

[0189] In some exemplary embodiments, before receiving the N addresses allocated by the router, the method further includes:

[0190] Step 402: Receive the second address quantity information and the second address allocation order information issued by the operation and management device, and send the second address quantity information and the second address allocation order information to the router; wherein the second address quantity information is used to indicate the restriction on the number of addresses allocated to the terminal issued by the operation and management device, and the second address allocation order information is used to indicate the allocation order of the addresses issued by the operation and management device in the address pool.

[0191] The second address allocation sequence information of the embodiment of the present disclosure is consistent with the second address allocation sequence information described in the previous embodiment, and will not be repeated here.

[0192] In some exemplary embodiments, sending the second address quantity information and the second address allocation order information to the router includes:

[0193] Sending OPTION_VENDOR_CLASS to the router; wherein OPTION_VENDOR_CLASS includes the second address quantity information and the second address allocation sequence information.

[0194] In some exemplary embodiments, sending the OPTION_VENDOR_CLASS to the router includes:

[0195] A first DHCPv6 message is sent to the router; wherein the first DHCPv6 message includes: OPTION_VENDOR_CLASS.

[0196] In some exemplary embodiments, the first DHCPv6 message may be a solicitation message. In other exemplary embodiments, the first DHCPv6 message may be a request message. In other exemplary embodiments, the first DHCPv6 message may be a solicitation message and a request message.

[0197] The address allocation method provided by the embodiment of the present disclosure obtains second address quantity information and second address allocation sequence information from the operation management device and sends them to the router, thereby limiting the number of addresses allocated to the terminal.

[0198] Figure 5 The present invention is a flowchart of another address allocation method according to an embodiment of the present invention.

[0199] Thirdly, refer to Figure 5 , the embodiment of the present disclosure provides another address allocation method, which is applied to an operation management device, and the method includes:

[0200] Step 500: Send second address quantity information to the terminal according to the second information of the terminal; wherein the second address quantity information is used to indicate the restriction on the number of addresses allocated to the terminal issued by the operation management device.

[0201] In some exemplary embodiments, the method further comprises:

[0202] Step 501: Send second address allocation sequence information to the terminal according to the second information of the terminal; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses sent by the operation management device in the address pool.

[0203] It should be noted that step 500 and step 501 may be performed simultaneously or at different times.

[0204] In some exemplary embodiments, the second information of the terminal includes at least one of the following:

[0205] Virtual link information of the terminal, manufacturer information of the terminal, service type information of the terminal, geographical location information of the terminal, and operator information to which the terminal belongs.

[0206] In some exemplary embodiments, the virtual link information of the terminal includes at least one of the following:

[0207] Port information, inner VLAN, outer VLAN.

[0208] In some exemplary embodiments, sending the second address quantity information to the terminal according to the second information of the terminal includes:

[0209] In the preset third corresponding relationship between the second information of the terminal and the second address quantity information, the second address quantity information corresponding to the second information of the terminal is searched, and the found second address quantity information is sent to the terminal.

[0210] In some exemplary embodiments, sending the second address allocation sequence information to the terminal according to the second information of the terminal includes:

[0211] In the preset fourth corresponding relationship between the second information of the terminal and the second address allocation sequence information, the second address allocation sequence information corresponding to the second information of the terminal is searched, and the found second address allocation sequence information is sent to the terminal.

[0212] It should be noted that the third corresponding relationship and the fourth corresponding relationship may be the same corresponding relationship, that is, the corresponding relationship is the corresponding relationship between the second information of the terminal, the second address quantity information and the second address allocation sequence information.

[0213] The address allocation method provided in the embodiment of the present disclosure sends second address quantity information to the terminal based on the information of the terminal. The second address quantity information is used to indicate the limitation on the number of addresses allocated to the terminal issued by the operation management device, thereby realizing the limitation on the number of addresses allocated to the terminal in various scenarios and being able to adapt to various different application scenarios.

[0214] Figure 6 A schematic diagram of an address allocation process provided in an embodiment of the present disclosure.

[0215] like Figure 6 As shown, HSI service terminals, VOD service terminals, ITMS service terminals, private network service terminals, etc. will carry different numbers of IA options to request the allocation of different numbers of addresses. The reasons for this phenomenon may be due to the differences in the initialization of the number of IA options carried by different models of terminals by manufacturers, the differences in the R&D and delivery capabilities of different manufacturers, the business environment, or the customer's personalized customization needs.

[0216] like Figure 6 As shown, terminal-level service customization can be achieved. When multiple terminals access and enable different service types respectively, it can be specified that only the terminals that have enabled one or several services are restricted in the number of addresses allocated. For example, only a constraint on the allocation of IPV6 addresses is implemented for the terminals that have enabled the HSI service in the network, and the terminals that have enabled other services are not restricted. The application method is to control the process of the terminal accessing the network of the operator and maintenance provider to accept management initialization. During the initialization process, the service type of the terminal is identified by the operation and management equipment, and the number and allocation order of the allocated addresses are issued to the terminal that has enabled the HSI service; the terminal fills the number and allocation order of the allocated addresses received into the vendor-class-data field of the OPTION_VENDOR_CLASS(16.) option according to the agreed format, and sends the OPTION_VENDOR_CLASS(16) option to the router; the router parses the vendor-class-data field of the OPTION_VENDOR_CLASS(16) option according to the agreed format, obtains the number and allocation order of the allocated addresses, and allocates addresses to the terminal that has enabled the HSI service according to the obtained number and allocation order of the allocated addresses. The number and order of allocated addresses corresponding to terminals with HSI services enabled can also be deployed on a broadband access-level integrated router in a static deployment manner. The router allocates addresses to terminals with HSI services enabled according to the number and order of allocated addresses corresponding to terminals with HSI services enabled that are statically deployed.

[0217] like Figure 6As shown, router-level service customization can be achieved. The number of terminals in the network is much larger than the number of routers, and the operational control capability is insufficient, making it difficult to distinguish the differences between terminals. This situation often occurs on old and upgraded networks. Operators generally use a full batch distribution method to limit the number of address accesses for all terminal devices. However, due to the complexity of services and network diversity, some services enabled on routers belong to special service scopes, and the number of addresses required to be obtained is not limited. In this case, one or several devices can be specified to enable the address quantity limit function. For routers that do not want to enable this function, they will not be deployed, or they will not respond to the OPTION_VENDOR_CLASS(16) option information in the message sent by the terminal.

[0218] like Figure 6 As shown, vendor-level service customization can be achieved, and the operator can allocate multiple addresses to a specified vendor, and can limit the allocation of only one address to a specified vendor. The application method is to control the process of the terminal accessing the operator's network to accept management initialization. During the initialization process, the operation management device sends the corresponding number and allocation order of the allocated addresses to the terminal of the corresponding vendor; the terminal fills the number and allocation order of the received allocated addresses into the vendor-class-data field of the OPTION_VENDOR_CLASS(16) option according to the agreed format, and sends the OPTION_VENDOR_CLASS(16) option to the router; the router parses the vendor-class-data field of the OPTION_VENDOR_CLASS(16) option according to the agreed format, obtains the number and allocation order of the allocated addresses, and allocates addresses to the terminal according to the number and allocation order of the allocated addresses obtained. It is also possible to deploy the number and allocation order of the allocated addresses corresponding to the terminals of different vendors on the broadband access-level integrated router in a static deployment manner, and allocate addresses to the terminals of the vendor according to the number and allocation order of the allocated addresses corresponding to the vendor of the terminal.

[0219] like Figure 6As shown, operator-level service customization can be achieved. When facing the above situation, the operator can freely combine manufacturers, equipment models, and service types to control the process of terminal accessing the operator's network to accept management initialization. During the initialization process, the operation management device sends the corresponding number and allocation order of allocated addresses to the terminal of the corresponding manufacturer and equipment model; the terminal fills the received number and allocation order of allocated addresses into the vendor-class-data field of the OPTION_VENDOR_CLASS(16) option according to the agreed format, and sends the OPTION_VENDOR_CLASS(16) option to the router; the router parses the vendor-class-data field of the OPTION_VENDOR_CLASS(16) option according to the agreed format, obtains the number and allocation order of allocated addresses, and allocates addresses to the terminal according to the obtained number and allocation order of allocated addresses. It is also possible to deploy the number and allocation order of allocated addresses corresponding to terminals of different manufacturers and equipment models on a broadband access-level integrated router in a static deployment manner, and allocate addresses to the terminal of the manufacturer and equipment model according to the number and allocation order of allocated addresses corresponding to the terminal manufacturer and equipment model.

[0220] like Figure 6 As shown, for example, when the HSI service is initialized when accessing the operator network, the number of non-temporary addresses allocated by the operation management device is 1 and the allocation order of non-temporary addresses is f, as well as the number of prefix addresses allocated is 1 and the allocation order of prefix addresses is f to the terminal; the terminal fills in the vendor-class-data field of the OPTION_VENDOR_CLASS option, including 2 avp attributes, one of which has an opaque-data of IA_NA(1)(f), and the other has an opaque-data of IA_PD(1)(f). After receiving the relevant message, the broadband access-level integrated router device parses the content and allocates an address to the terminal according to the opaque-data. The broadband access-level integrated router follows the forward allocation principle for the NA requested by the IA_NA option, and only allocates addresses for the data in the first IA_NA address request. In other IA_NA address requests, the status_code is filled in and replied as no available address. The broadband access-class integrated router follows the forward allocation principle for the IA_PD request type, and only allocates addresses for the data in the first IA_PD address request. In other IA_PD address requests, the status_code is filled in and replied as if there is no available address.

[0221] like Figure 6As shown, for example, when the VOD service is initialized when accessing the operator network, the number of non-temporary addresses allocated by the operation management device is 1 and the allocation order of non-temporary addresses is f to the terminal; the terminal fills the enterprise-number field of the OPTION_VENDOR_CLASS option with enterprise_B, and fills the vendor-class-data field of the OPTION_VENDOR_CLASS option with 1 avp attribute, and the opaque-data of the avp attribute is IA_NA(1)(f). After receiving the relevant message, the broadband access-level integrated router device parses the content and allocates addresses to the terminals of enterprise enterprise_B according to the opaque-data and the local static deployment strategy, and does not allocate addresses to terminals other than enterprise enterprise_B. The broadband access-level integrated router follows the forward allocation principle for the IA_NA request type, and only allocates addresses for the data in the first IA_NA address request. In other IA_NA address requests, the statuscode is filled in and replied as no available address.

[0222] like Figure 6 As shown, for example, when ITMS services are initialized when accessing the operator's network, the number of non-temporary addresses allocated by the operation management device is 1 and the allocation order of non-temporary addresses is b to the terminal; the terminal fills the enterprise-number field of the OPTION_VENDOR_CLASS option with enterprise_B, and fills the vendor-class-data field of the OPTION_VENDOR_CLASS option with 1 avp attribute, and the opaque-data of the avp attribute is IA_NA(1)(b). After receiving the relevant message, the broadband access-level router device parses the content and allocates addresses to the terminals of enterprise enterprise_B according to the opaque-data and the local static deployment policy, and does not allocate addresses to terminals other than enterprise enterprise_B. The broadband access-level integrated router follows the backward allocation principle for the IA_NA request type, and only allocates addresses for the data in the last IA_NA address request. In other IA_NA address requests, the status code is filled in and replied as no available address.

[0223] like Figure 6As shown, for example, when a private network service is initialized when accessing the operator network, the number of non-temporary addresses allocated by the operation management device is 1 and the allocation order of non-temporary addresses is b, the number of temporary addresses is 1 and the allocation order of temporary addresses is b, and the number of prefix addresses is 3 and the allocation order of prefix addresses is r to the terminal; the terminal fills the enterprise-number field of the OPTION_VENDOR_CLASS option with enterprise_C, and fills the vendor-class-data field of the OPTION_VENDOR_CLASS option with 3 avp attributes, the opaque-data of the first avp attribute is IA_NA(1)(b), the opaque-data of the second avp attribute is IA_TA(1)(b), and the opaque-data of the third avp attribute is IA_PD(3)(r). After receiving the relevant message, the broadband access-level integrated router parses the content and allocates addresses to the terminals of enterprise_C according to the opaque-data and the local static deployment policy, and does not allocate addresses to the terminals of non-enterprise_C. The broadband access-class integrated router follows the principle of backward address allocation for IA_NA request types, and only allocates addresses for the data in the last IA_NA address request. In other IA_NA address requests, the status code is filled in and replied as no available address. The broadband access-class integrated router follows the principle of backward address allocation for IA_TA request types, and only allocates addresses for the data in the last IA_TA address request. In other IA_TA address requests, the status code is filled in and replied as no available address. The broadband access-class integrated router follows the principle of random address allocation for IA_PD request types, and allocates addresses for the data in three randomly ordered IA_PD address requests. In other IA_PD address requests, the status code is filled in and replied as no available address.

[0224] The specific implementation of the above method is described in detail below through several examples. The examples listed are only for the convenience of explanation and are not used to limit the protection scope of the embodiments of the present disclosure.

[0225] Example 1

[0226] This example describes the address allocation method when using IPoE to carry DHCPv6. Figure 7 As shown, the method includes:

[0227] 1. Terminals, such as HSI service terminals and VOD service terminals, are powered on and connected to the operator's network.

[0228] 2. The operation management device authenticates the terminal, initializes the operation network information, and sends the operation network information to the terminal; wherein the operation network information includes but is not limited to: the enterprise code of the above-mentioned terminal registered with the international organization IANA, the above-mentioned second address quantity information and the second address allocation sequence information.

[0229] 3. After obtaining the operating network information, the terminal initiates service dialing using the IPoE bearer mode to request a communication service address. The terminal sends a DHCPv6 solicit message to the broadband access-level integrated router; wherein the DHCPv6 solicit message includes: OPTION_VENDOR_CLASS, OPTION_VENDOR_CLASS includes: enterprise-number field and vendor-class.data field, the vendor-class-data field includes one or more avp attributes, and each avp attribute includes vendor-class-len and opaque-data.

[0230] In this step, the enterprise code of the above-mentioned terminal registered with the international organization IANA is filled into the enterprise-number field, and the above-mentioned second address quantity information and second address allocation order information are filled into opaque-data. The filling format is: [IA_NA_QTY(ia-na-num)(seq)][IA_TA_QTY(ia-ta-num)(seq)][IA_PD_QTY(ia-pd-num)(seq)].

[0231] 4. The broadband access-class integrated router parses opaque-data in the received DHCPv6 solicit message to obtain the second address quantity information and the second address allocation sequence information, allocates a corresponding address to the terminal according to the second address quantity information and the second address allocation sequence information, fills the allocated address into the DHCPv6 advertise message, and sends the DHCPv6 advertise message to the terminal.

[0232] 5. The terminal sends a DHCPv6 request message to the broadband access-class integrated router to confirm the address allocated by the access-class integrated router; wherein the DHCPv6 request message includes: OPTION_VENDOR_CLASS, OPTION_VENDOR_CLASS includes: enterprise-number field and vendor-class-data field, and the address allocated by the broadband access-class integrated router; wherein the vendor-class-data field includes one or more avp attributes, and each avp attribute includes vendor-class-len and opaque-data.

[0233] In this step, the enterprise code of the above-mentioned terminal registered with the international organization IANA is filled into the enterprise-number field, and the above-mentioned second address quantity information and second address allocation order information are filled into opaque-data. The filling format is: [IA_NA_QTY(ia-na-num)(seq)][IA_TA_QTY(ia-ta-num)(seq)][IA_PD_QTY(ia-pd-num)(seq)].

[0234] 6. The broadband access-level integrated router receives the DHCPv6request message and sends a DHCPv6reply message to the terminal to confirm the information content sent by the terminal, complete the parsing verification as agreed, and make it clear that the allocated address has been received by the terminal, thus completing the address allocation process; wherein, the DHCPv6reply message carries the address allocated to the terminal.

[0235] Example 2

[0236] This example describes the address allocation method when PPPoE is used to carry DHCPv6. Figure 8 As shown, the method includes:

[0237] 1. Terminals, such as HSI service terminals and VOD service terminals, are powered on and connected to the operator's network.

[0238] 2. The operation management device authenticates the terminal, initializes the operation network information, and sends the operation network information to the terminal; wherein the operation network information includes but is not limited to: the enterprise code of the above-mentioned terminal registered with the international organization IANA, the above-mentioned second address quantity information and the second address allocation sequence information.

[0239] 3. After obtaining the operating network information, the terminal uses the PPPoE bearer mode to initiate service dialing and request the communication service address.

[0240] 4. The terminal and the broadband access-level integrated router negotiate the PPPoE discovery phase to negotiate basic link interaction information.

[0241] 5. The terminal negotiates the PPPoE authentication phase with the broadband access-level integrated router to authenticate the user interface and password information of the terminal. After the authentication is passed, the PPPoENCP (Network Control Protocol) phase negotiation is carried out. If it is found that the dial-up terminal is a dual-stack user or a single-stack IPv6 user, the PPP IPv6CP protocol is used for address allocation.

[0242] 6. The broadband access-level integrated router finds that in the operational deployment requirements, the dial-up terminal needs to use DHCPv6 for stateful address allocation. The broadband access-level integrated router sends an ICMPv6 (Internet Control Management Protocol Version 6) RA notification message to the terminal. In the RA notification message, the M mark position is 1 and the O mark position is 0.

[0243] 7. The terminal sends a DHCPv6 solicit message to the broadband access-class integrated router; wherein the DHCPv6 solicit message includes: OPTION_VENDOR_CLASS, OPTION_VENDOR_CLASS includes: enterprise-number field and vendor-class-data field, the vendor-class-data field includes one or more avp attributes, and each avp attribute includes vendor-class-len and opaque-data.

[0244] In this step, the enterprise code of the above-mentioned terminal registered with the international organization IANA is filled into the enterprise-number field, and the above-mentioned second address quantity information and second address allocation order information are filled into opaque-data. The filling format is: [IA_NA_QTY(ia-na-num)(seq)][IA_TA_QTY(ia-ta-num)(seq)][IA_PD_QTY(ia-pd-num)(seq)].

[0245] 8. The broadband access-class integrated router parses opaque-data in the received DHCPv6 solicit message to obtain the second address quantity information and the second address allocation sequence information, allocates a corresponding address to the terminal according to the second address quantity information and the second address allocation sequence information, fills the allocated address into the DHCPv6 advertise message, and sends the DHCPv6 advertise message to the terminal.

[0246] 9. The terminal sends a DHCPv6 request message to the broadband access-class integrated router to confirm the address allocated by the access-class integrated router; wherein the DHCPv6 request message includes: OPTION_VENDOR_CLASS, OPTION_VENDOR_CLASS includes: enterprise-number field and vendor-class-data field, and the address allocated by the broadband access-class integrated router; wherein the vendor-class-data field includes one or more avp attributes, and each avp attribute includes vendor-class-len and opaque-data.

[0247] In this step, the enterprise code of the above-mentioned terminal registered with the international organization IANA is filled into the enterprise-number field, and the above-mentioned second address quantity information and second address allocation order information are filled into opaque-data. The filling format is: [IA_NA_QTY(ia-na-num)(seq)][IA_TA_QTY(ia-ta-num)(seq)][IA_PD_QTY(ia-pd-num)(seq)].

[0248] 10. The broadband access-class integrated router receives the DHCPv6 request message and sends a DHCPv6 reply message to the terminal to confirm the information content sent by the terminal, complete the parsing verification as agreed, and make it clear that the allocated address has been received by the terminal, thus completing the address allocation process; wherein, the DHCPv6 reply message carries the address allocated to the terminal.

[0249] 11. After the terminal device has normal access, the session information is released through the PPPoE PADT (PPPoE Active Discovery Termination) message.

[0250] Example 3

[0251] This example describes the address allocation method in the case of unknown bearer mode, such as Fig. 9 As shown, the method includes:

[0252] 1. Terminals, such as HSI service terminals and VOD service terminals, are powered on and connected to the operator's network.

[0253] 2. The operation management device authenticates the terminal, initializes the operation network information, and sends the operation network information to the terminal; wherein the operation network information includes but is not limited to: the enterprise code of the above-mentioned terminal registered with the international organization IANA, the above-mentioned second address quantity information and the second address allocation sequence information.

[0254] 3. After obtaining the operating network information, the terminal initiates service dialing and requests the communication service address.

[0255] 4. The broadband access-class integrated router determines the protocol bearer. If it is carried on a PPPoE link, execute step 5; if it is carried on an IPoE link, execute step 8.

[0256] 5. The terminal and the broadband access-level integrated router negotiate the PPPoE Discovery phase and negotiate basic link interaction information.

[0257] 6. The terminal negotiates the PPPoE authentication phase with the broadband access-level integrated router, authenticates the user interface and password information of the terminal, and after the authentication is passed, negotiates the PPPoE NCP phase. If it is found that the dial-up terminal is a dual-stack user or a single-stack IPv6 user, the PPP IPv6CP protocol is used for address allocation.

[0258] 7. The broadband access-class integrated router finds that in the operational deployment requirements, the dial-up terminal needs to use DHCPv6 for stateful address allocation. The broadband access-class integrated router sends an ICMPv6 RA notification message to the terminal. In the notification message, the M mark position is 1 and the O mark position is 0.

[0259] 8. The terminal sends a DHCPv6 solicit message to the broadband access-class integrated router; wherein the DHCPv6 solicit message includes: OPTION_VENDOR_CLASS, OPTION_VENDOR_CLASS includes: enterprise-number field and vendor-class-data field, the vendor-class-data field includes one or more avp attributes, and each avp attribute includes vendor-class-len and opaque-data.

[0260] In this step, the enterprise code of the above-mentioned terminal registered with the international organization IANA is filled into the enterprise-number field, and the above-mentioned second address quantity information and second address allocation order information are filled into opaque-data. The filling format is: [IA_NA_QTY(ia-na-num)(seq)][IA_TA_QTY(ia-ta-num)(seq)][IA_PD_QTY(ia-pd-num)(seq)].

[0261] 9. The broadband access-class integrated router parses opaque-data in the received DHCPv6 solicit message to obtain the second address quantity information and the second address allocation sequence information, allocates a corresponding address to the terminal according to the second address quantity information and the second address allocation sequence information, fills the allocated address into the DHCPv6 advertise message, and sends the DHCPv6 advertise message to the terminal.

[0262] 10. The terminal sends a DHCPv6 request message to the broadband access-class integrated router to confirm the address allocated by the access-class integrated router; wherein the DHCPv6 request message includes: OPTION_VENDOR_CLASS, OPTION_VENDOR_CLASS includes: an enterprise-number field and a vendor-class-data field, and the address allocated by the broadband access-class integrated router; wherein the vendor-class-data field includes one or more avp attributes, and each avp attribute includes vendor-class-len and opaque-data.

[0263] In this step, the enterprise code of the above-mentioned terminal registered with the international organization IANA is filled into the enterprise-number field, and the above-mentioned second address quantity information and second address allocation order information are filled into opaque-data. The filling format is: [IA_NA_QTY(ia-na-num)(seq)][IA_TA_QTY(ia-ta-num)(seq)][IA_PD_QTY(ia-pd-num)(seq)].

[0264] 11. The broadband access-class integrated router receives the DHCPv6 request message and sends a DHCPv6 reply message to the terminal to confirm the information content sent by the terminal, complete the parsing verification as agreed, and make it clear that the allocated address has been received by the terminal, thus completing the address allocation process; wherein, the DHCPv6 reply message carries the address allocated to the terminal.

[0265] 12. The broadband access-class integrated router determines the bearer of the DHCPv6 protocol. If it is an IPoE bearer, the process ends. If it is a PPPoE bearer, the process goes to step 13.

[0266] 13. Continue with the rest of the PPPoE processing flow.

[0267] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, comprising:

[0268] at least one processor;

[0269] A storage device stores at least one program, and when the at least one program is executed by at least one processor, the at least one processor implements any one of the above-mentioned address allocation methods.

[0270] Among them, the processor is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the storage device is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH).

[0271] In some embodiments, the processor and the storage device are connected to each other through a bus, and further connected to other components of the computing device.

[0272] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements any of the above-mentioned address allocation methods when the program is executed by a processor.

[0273] Fig.10 The present invention is a block diagram of an address allocation device according to an embodiment of the present invention.

[0274] Sixth, refer to Fig.10 The present disclosure provides an address allocation device (such as a router), including:

[0275] The information acquisition module 1001 is used to acquire first address quantity information; wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal;

[0276] The address allocation module 1002 is used to allocate N addresses to the terminal and return the allocated N addresses to the terminal; wherein the N is determined according to the first address quantity information.

[0277] In some exemplary embodiments, the information acquisition module 1001 is further used to:

[0278] Acquire first address allocation sequence information, where the first address allocation sequence information is used to indicate an allocation sequence of the addresses in the address pool;

[0279] The address allocation module 1002 is specifically configured to implement the allocation of N addresses to the terminal in the following manner: allocate N addresses to the terminal according to the allocation sequence indicated by the first address allocation sequence information.

[0280] In some exemplary embodiments, the information acquisition module 1001 is specifically configured to implement the acquisition of the first address allocation sequence information in the following manner:

[0281] Receiving second address allocation sequence information from the terminal, and using the second address allocation sequence information as the first address allocation sequence information; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses issued by the operation management device;

[0282] Alternatively, obtaining third address allocation sequence information corresponding to the terminal that is preset, and using the third address allocation sequence information as the first address allocation sequence information; wherein the third address allocation sequence information is used to indicate the preset allocation sequence of the addresses;

[0283] Alternatively, second address allocation sequence information is received from the terminal, and the first address allocation sequence information is determined according to the second address allocation sequence information and third address allocation sequence information preset corresponding to the terminal.

[0284] In some exemplary embodiments, the information acquisition module 1001 is specifically configured to acquire the first address quantity information in the following manner:

[0285] receiving second address quantity information from the terminal, and taking the second address quantity information as the first address quantity information; wherein the second address quantity information is used to indicate a limit on the number of addresses allocated to the terminal issued by an operation management device;

[0286] Alternatively, obtaining preset third address quantity information corresponding to the terminal, and using the third address quantity information as the first address quantity information; wherein the third address quantity information is used to indicate a preset limit on the number of addresses allocated to the terminal;

[0287] Alternatively, second address quantity information is received from the terminal, and the first address quantity information is determined according to the second address quantity information and preset third address quantity information corresponding to the terminal.

[0288] In some exemplary embodiments, the first address quantity information is used to indicate a maximum number of addresses allocated to the terminal, and N is less than or equal to the maximum number indicated by the first address quantity information.

[0289] In some exemplary embodiments, the first address quantity information is used to indicate the quantity of addresses allocated to the terminal, and N is the quantity indicated by the first address quantity information.

[0290] In some exemplary embodiments, the first address quantity information includes: first non-temporary address quantity information, the first non-temporary address quantity information is used to indicate a restriction on the number of non-temporary addresses allocated to the terminal; the address allocation module 1002 is specifically used to implement the allocation of N addresses to the terminal in the following manner: N1 non-temporary addresses are allocated to the terminal; wherein N1 is determined based on the first non-temporary address quantity information.

[0291] In some exemplary embodiments, the first address quantity information includes: first temporary address quantity information, and the first temporary address quantity information is used to indicate a restriction on the number of temporary addresses allocated to the terminal; the address allocation module 1002 is specifically used to implement the allocation of N addresses to the terminal in the following manner: allocating N2 temporary addresses to the terminal; wherein the N2 is determined based on the first temporary address quantity information.

[0292] In some exemplary embodiments, the first address quantity information includes: first prefix address quantity information, and the first prefix address quantity information is used to indicate a restriction on the number of prefix addresses allocated to the terminal; the address allocation module 1002 is specifically used to implement the allocation of N addresses to the terminal in the following manner: allocate N3 prefix addresses to the terminal; wherein the N3 is determined based on the first prefix address quantity information.

[0293] The specific implementation process of the above-mentioned address allocation device is the same as the specific implementation process of the address allocation method on the router side of the above-mentioned embodiment, which will not be repeated here.

[0294] Fig.11 The present invention is a block diagram of another address allocation device according to an embodiment of the present invention.

[0295] Seventh, refer to Fig.11 , the present disclosure embodiment provides another address allocation device (such as a terminal), including:

[0296] The communication module 1101 is used to receive N addresses allocated by the router; wherein the N is determined according to the first address quantity information; the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal.

[0297] In some exemplary embodiments, the communication module 1101 is further configured to:

[0298] receiving second address quantity information issued by the operation and management device, and sending the second address quantity information to the router; wherein the second address quantity information is used to indicate a limit on the number of addresses allocated to the terminal issued by the operation and management device;

[0299] The first address quantity information is the same as the second address quantity information; or the first address quantity information is determined according to the second address quantity information.

[0300] In some exemplary embodiments, the communication module 1101 is specifically configured to implement the sending of the second address quantity information to the router in the following manner:

[0301] Sending a vendor level option to the router; wherein the vendor level option includes the second address quantity information.

[0302] In some exemplary embodiments, the communication module 1101 is further configured to:

[0303] Receive the second address allocation sequence information sent from the operation and management device, and send the second address allocation sequence information to the router; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses sent by the operation and management device in the address pool.

[0304] In some exemplary embodiments, the communication module 1101 is specifically configured to implement the sending of the second address allocation sequence information to the router in the following manner:

[0305] A vendor level option is sent to the router; wherein the vendor level option includes the second address allocation order information.

[0306] In some exemplary embodiments, the first address quantity information includes: first non-temporary address quantity information, and the first non-temporary address quantity information is used to indicate a limit on the quantity of non-temporary addresses allocated to the terminal.

[0307] In some exemplary embodiments, the first address quantity information includes: first temporary address quantity information, and the first temporary address quantity information is used to indicate a limit on the quantity of temporary addresses allocated to the terminal.

[0308] In some exemplary embodiments, the first address quantity information includes: first prefix address quantity information, and the first prefix address quantity information is used to indicate a limit on the quantity of prefix addresses allocated to the terminal.

[0309] The specific implementation process of the above-mentioned address allocation device is the same as the specific implementation process of the address allocation method on the terminal side of the aforementioned embodiment, and will not be repeated here.

[0310] Fig.12 The present invention is a block diagram of another address allocation device according to an embodiment of the present invention.

[0311] Eighth aspect, refer to Fig.12 , the embodiment of the present disclosure provides another address allocation device (such as an operation management device), including:

[0312] The information sending module 1201 is used to send second address quantity information to the terminal according to the second information of the terminal; wherein the second address quantity information is used to indicate the restriction on the number of addresses allocated to the terminal issued by the operation management device.

[0313] In some exemplary embodiments, the information sending module 1202 is further used to:

[0314] The second address allocation sequence information is sent to the terminal according to the second information of the terminal; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses sent by the operation management device in the address pool.

[0315] In some exemplary embodiments, the second information of the terminal includes at least one of the following:

[0316] Virtual link information of the terminal, manufacturer information of the terminal, service type information of the terminal, geographical location information of the terminal, and operator information to which the terminal belongs.

[0317] In some exemplary embodiments, the virtual link information of the terminal includes at least one of the following:

[0318] Port information, inner VLAN, outer VLAN.

[0319] The specific implementation process of the above-mentioned address allocation device is the same as the specific implementation process of the address allocation method on the operation management device side of the aforementioned embodiment, and will not be repeated here.

[0320] Fig.13 The present invention is a block diagram of an address allocation system according to an embodiment of the present invention.

[0321] Ninth aspect, refer to Fig.13 , the present disclosure provides an address allocation system, including:

[0322] Router 1301 is configured to obtain first address quantity information, wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to a terminal; allocate N addresses to the terminal, and return the allocated N addresses to the terminal; wherein N is determined according to the first address quantity information;

[0323] Terminal 1302 is used to receive N addresses allocated by the router.

[0324] In some exemplary embodiments, the router 1301 is further configured to:

[0325] Acquire first address allocation sequence information, where the first address allocation sequence information is used to indicate an allocation sequence of the addresses;

[0326] The allocating N addresses to the terminal comprises:

[0327] N addresses are allocated to the terminal according to the allocation order indicated by the first address allocation order information.

[0328] In some exemplary embodiments, the router 1301 is specifically configured to implement the acquisition of the first address allocation sequence information in the following manner:

[0329] Receiving second address allocation sequence information from the terminal, and using the second address allocation sequence information as the first address allocation sequence information; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses in the address pool issued by the operation management device;

[0330] Alternatively, obtaining third address allocation sequence information corresponding to the terminal that is preset, and using the third address allocation sequence information as the first address allocation sequence information; wherein the third address allocation sequence information is used to indicate the allocation sequence of the preset addresses in the address pool;

[0331] Alternatively, receiving second address allocation sequence information from the terminal, and determining the first address allocation sequence information according to the second address allocation sequence information and third address allocation sequence information corresponding to the terminal which is preset;

[0332] Terminal 1302 is also used for:

[0333] receiving the second address allocation sequence information sent from the operation management device, and sending the second address allocation sequence information to the router;

[0334] It also includes: an operation management device 1303, which is used to send second address allocation sequence information to the terminal according to the second information of the terminal.

[0335] In some exemplary embodiments, the router 1301 is specifically configured to obtain the first address quantity information in the following manner:

[0336] receiving second address quantity information from the terminal, and taking the second address quantity information as the first address quantity information; wherein the second address quantity information is used to indicate a limit on the number of addresses allocated to the terminal issued by an operation management device;

[0337] Alternatively, obtaining preset third address quantity information corresponding to the terminal, and using the third address quantity information as the first address quantity information; wherein the third address quantity information is used to indicate a preset limit on the number of addresses allocated to the terminal;

[0338] Alternatively, receiving second address quantity information from the terminal, and determining the first address quantity information according to the second address quantity information and preset third address quantity information corresponding to the terminal;

[0339] Terminal 1302 is also used for:

[0340] receiving the second address quantity information sent by the operation management device, and sending the second address quantity information to the router;

[0341] Also includes:

[0342] The operation management device 1303 is used to send the second address quantity information to the terminal according to the second information of the terminal.

[0343] In some exemplary embodiments, the first address quantity information is used to indicate a maximum number of addresses allocated to the terminal, and N is less than or equal to the maximum number indicated by the first address quantity information.

[0344] In some exemplary embodiments, the first address quantity information is used to indicate the quantity of addresses allocated to the terminal, and N is the quantity indicated by the first address quantity information.

[0345] The specific implementation process of the above-mentioned address allocation system is the same as the specific implementation process of the address allocation method in the above-mentioned embodiment, which will not be repeated here.

[0346] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD.ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0347] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims

1. An address allocation method, comprising: Acquire first address quantity information; wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal; Allocate N addresses to the terminal, and return the N addresses to the terminal; wherein N is determined according to the first address quantity information; The obtaining of the first address quantity information includes: receiving second address quantity information from the terminal, and taking the second address quantity information as the first address quantity information; wherein the second address quantity information is used to indicate a limit on the number of addresses allocated to the terminal issued by an operation management device; Alternatively, obtaining preset third address quantity information corresponding to the terminal, and using the third address quantity information as the first address quantity information; wherein the third address quantity information is used to indicate a preset limit on the number of addresses allocated to the terminal; Alternatively, receiving second address quantity information from the terminal, and determining the first address quantity information according to the second address quantity information and preset third address quantity information corresponding to the terminal; The receiving the second address quantity information from the terminal comprises: receiving a first DHCPv6 message from the terminal; wherein the first DHCPv6 message comprises: a vendor class option OPTION_VENDOR_CLASS from the terminal; OPTION_VENDOR_CLASS comprises the second address quantity information; The obtaining of the preset third address quantity information corresponding to the terminal includes: searching for the third address quantity information corresponding to the first information of the terminal in a first corresponding relationship between the preset first information of the terminal and the third address quantity information; The first information of the terminal includes at least one of the following: Virtual link information of the terminal, manufacturer information of the terminal, service type information of the terminal, geographical location information of the terminal, and operator information to which the terminal belongs; The virtual link information of the terminal includes at least one of the following: an inner VLAN and an outer VLAN; The service type information of the terminal is determined according to the inner VLAN and the outer VLAN; The geographical location information of the terminal is determined according to at least one of PPPoE+ information, Option 82 attribute information of DHCPv4, Option 18 attribute information of DHCPv6, and Option 17 attribute information of DHCPv6; The vendor information of the terminal is determined according to at least one of DHCPv4 option 82 attribute information and DHCPv6 Option 37 attribute information.

2. The method according to claim 1, further comprising: Acquire first address allocation sequence information, where the first address allocation sequence information is used to indicate an allocation sequence of the addresses in the address pool; The allocating N addresses to the terminal comprises: N addresses are allocated to the terminal according to the allocation order indicated by the first address allocation order information.

3. The method according to claim 2, wherein: The obtaining of the first address allocation sequence information comprises: Receiving second address allocation sequence information from the terminal, and using the second address allocation sequence information as the first address allocation sequence information; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses in the address pool issued by the operation management device; Alternatively, obtaining third address allocation sequence information corresponding to the terminal that is preset, and using the third address allocation sequence information as the first address allocation sequence information; wherein the third address allocation sequence information is used to indicate the allocation sequence of the preset addresses in the address pool; Alternatively, second address allocation sequence information is received from the terminal, and the first address allocation sequence information is determined according to the second address allocation sequence information and third address allocation sequence information preset corresponding to the terminal.

4. An address allocation method, comprising: Receiving N addresses allocated by the router; wherein the N is determined according to first address quantity information; the first address quantity information is used to indicate a limit on the number of addresses allocated to the terminal; Acquiring the first address quantity information includes: receiving second address quantity information from the terminal, and taking the second address quantity information as the first address quantity information; wherein the second address quantity information is used to indicate a limit on the number of addresses allocated to the terminal issued by an operation management device; Alternatively, obtaining preset third address quantity information corresponding to the terminal, and using the third address quantity information as the first address quantity information; wherein the third address quantity information is used to indicate a preset limit on the number of addresses allocated to the terminal; Alternatively, receiving second address quantity information from the terminal, and determining the first address quantity information according to the second address quantity information and preset third address quantity information corresponding to the terminal; The receiving the second address quantity information from the terminal comprises: receiving a first DHCPv6 message from the terminal; wherein the first DHCPv6 message comprises: a vendor class option OPTION_VENDOR_CLASS from the terminal; OPTION_VENDOR_CLASS comprises the second address quantity information; The obtaining of the preset third address quantity information corresponding to the terminal includes: searching for the third address quantity information corresponding to the first information of the terminal in a first corresponding relationship between the preset first information of the terminal and the third address quantity information; The first information of the terminal includes at least one of the following: Virtual link information of the terminal, manufacturer information of the terminal, service type information of the terminal, geographical location information of the terminal, and operator information to which the terminal belongs; The virtual link information of the terminal includes at least one of the following: an inner VLAN and an outer VLAN; The service type information of the terminal is determined according to the inner VLAN and the outer VLAN; The geographical location information of the terminal is determined according to at least one of PPPoE+ information, Option 82 attribute information of DHCPv4, Option 18 attribute information of DHCPv6, and Option 17 attribute information of DHCPv6; The vendor information of the terminal is determined according to at least one of DHCPv4 option 82 attribute information and DHCPv6 Option 37 attribute information.

5. The method according to claim 4, before receiving the N addresses allocated by the router, the method further comprises: receiving second address quantity information issued by the operation and management device, and sending the second address quantity information to the router; wherein the second address quantity information is used to indicate a limit on the number of addresses allocated to the terminal issued by the operation and management device; The first address quantity information is the same as the second address quantity information; or the first address quantity information is determined according to the second address quantity information.

6. The method according to claim 5, before receiving the N addresses allocated by the router, the method further comprises: Receive the second address allocation sequence information sent from the operation and management device, and send the second address allocation sequence information to the router; wherein the second address allocation sequence information is used to indicate the allocation sequence of the addresses sent by the operation and management device.

7. An electronic device, comprising: at least one processor; A storage device having at least one program stored thereon, wherein when the at least one program is executed by the at least one processor, the at least one processor implements the address allocation method according to any one of claims 1-6.

8. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the address allocation method according to any one of claims 1 to 6.

9. An address allocation system, comprising: A router, configured to obtain first address quantity information, wherein the first address quantity information is used to indicate a limit on the number of addresses allocated to a terminal; allocate N addresses to the terminal, and return the allocated N addresses to the terminal; wherein N is determined according to the first address quantity information; A terminal, configured to receive N addresses allocated by the router; The obtaining of the first address quantity information includes: receiving second address quantity information from the terminal, and taking the second address quantity information as the first address quantity information; wherein the second address quantity information is used to indicate a limit on the number of addresses allocated to the terminal issued by an operation management device; Alternatively, obtaining preset third address quantity information corresponding to the terminal, and using the third address quantity information as the first address quantity information; wherein the third address quantity information is used to indicate a preset limit on the number of addresses allocated to the terminal; Alternatively, receiving second address quantity information from the terminal, and determining the first address quantity information according to the second address quantity information and preset third address quantity information corresponding to the terminal; The receiving the second address quantity information from the terminal comprises: receiving a first DHCPv6 message from the terminal; wherein the first DHCPv6 message comprises: a vendor class option OPTION_VENDOR_CLASS from the terminal; OPTION_VENDOR_CLASS comprises the second address quantity information; The obtaining of the preset third address quantity information corresponding to the terminal includes: searching for the third address quantity information corresponding to the first information of the terminal in a first corresponding relationship between the preset first information of the terminal and the third address quantity information; The first information of the terminal includes at least one of the following: Virtual link information of the terminal, manufacturer information of the terminal, service type information of the terminal, geographical location information of the terminal, and operator information to which the terminal belongs; The virtual link information of the terminal includes at least one of the following: an inner VLAN and an outer VLAN; The service type information of the terminal is determined according to the inner VLAN and the outer VLAN; The geographical location information of the terminal is determined according to at least one of PPPoE+ information, Option 82 attribute information of DHCPv4, Option 18 attribute information of DHCPv6, and Option 17 attribute information of DHCPv6; The vendor information of the terminal is determined according to at least one of DHCPv4 option 82 attribute information and DHCPv6 Option 37 attribute information.