[go: up one dir, main page]

WO2021115183A1 - Address management method, server and computer-readable storage medium - Google Patents

Address management method, server and computer-readable storage medium Download PDF

Info

Publication number
WO2021115183A1
WO2021115183A1 PCT/CN2020/133419 CN2020133419W WO2021115183A1 WO 2021115183 A1 WO2021115183 A1 WO 2021115183A1 CN 2020133419 W CN2020133419 W CN 2020133419W WO 2021115183 A1 WO2021115183 A1 WO 2021115183A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
segment
network segment
allocated dedicated
management method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/133419
Other languages
French (fr)
Chinese (zh)
Inventor
唐小丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2021115183A1 publication Critical patent/WO2021115183A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/122Avoiding congestion; Recovering from congestion by diverting traffic away from congested entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Definitions

  • This application relates to the field of communication technology, and in particular to an address management method, a server, and a computer-readable storage medium.
  • BRAS Broadband Remote Access Server
  • vBRAS Virtual Broadband Remote Access Server
  • An embodiment of the present application provides an address management method, including: receiving a user access protocol message, the user access protocol message carrying an access forwarder identifier; and determining a first target address according to a pre-configured load balancing strategy Segment group; determine whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group; when it is determined that the access point exists in the first target address segment group When the first allocated dedicated address network segment corresponding to the incoming forwarder identifier is acquired, the first allocated dedicated address network segment is acquired.
  • the embodiment of the present application provides a server, including: one or more processors; a storage device, configured to store one or more programs; when the one or more programs are executed by the one or more processors, The one or more processors are caused to implement the address management method as in the foregoing embodiment.
  • the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps in the address management method in the above-mentioned embodiment are implemented.
  • FIG. 1 is a structural block diagram of a system architecture in which an address management method provided by an embodiment of the present application can be deployed;
  • FIG. 2 is a flowchart of an address management method provided by an embodiment of the application
  • FIG. 3 is a flowchart of another address management method provided by an embodiment of the application.
  • FIG. 4 is a flowchart of another address management method provided by an embodiment of the application.
  • first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. Therefore, without departing from the teachings of the present application, the first element, the first component, or the first module discussed below may be referred to as the second element, the second component, or the second module.
  • this application provides an address management method that can be used in a distributed deployment method based on address pools.
  • Multiple resource pool components receive address applications allocated by load balancing components, and perform user address allocation tasks in parallel when multiple users are connected. .
  • FIG. 1 is a structural block diagram of a system architecture in which the address management method provided by the embodiment of the present application can be deployed.
  • the system architecture includes: a control plane and a forwarding plane.
  • the control plane includes upper-layer applications and address management virtual machines (especially, virtual broadband access servers); address management virtual machines include address pool data management components, multiple resource pool components, and load balancing components; upper-layer applications and address management virtual machines pass The address pool is issued to configure the interface connection, and the address pool is configured through the upper application, and the corresponding address pool information and configuration information, such as address pool, address segment, network segment route and address mask, etc., are delivered to the address pool data management A component, where multiple address segments are pre-stored in the address pool; the virtual network port of the load balancing component and the physical network port of the host can communicate with each other by creating a bridge.
  • address management virtual machines include address pool data management components, multiple resource pool components, and load balancing components; upper-layer applications and address management virtual machines pass The address pool is issued to configure the interface connection, and the address pool is configured through the upper application, and the corresponding address pool information and configuration information, such as address pool, address segment, network segment route and address mask, etc., are delivered to the address pool data management
  • the forwarding plane includes a switch and multiple forwarders; the receiving port and the output port of the switch are isolated by the configured virtual local area network, and data communication is created between the switch and the corresponding physical network port of the virtual machine to realize the connection between the resource pool component and the load balancing component and the external Data communication; multiple transponders are attached to the switch, and connections are established with network-side devices and users through transponders.
  • Fig. 2 is a flowchart of an address management method provided by an embodiment of the application. As shown in Fig. 2, the method is applied to the address management virtual machine side, and the method includes:
  • Step S1 Receive a user access protocol message.
  • the user access protocol message carries the access repeater identifier.
  • the user access protocol message also carries the user terminal identification.
  • the load balancing component obtains the user access protocol message provided by the user terminal from the access repeater, where the access repeater receives the user access sent by the user side After the protocol message, the message is encapsulated according to its own repeater identifier to identify the access repeater corresponding to the user terminal.
  • the expression "access to the repeater” only means that the repeater plays a corresponding role in the user access process, and does not mean that the repeater is only performed during the user access process. Work, or only have the function of user access protocol message forwarding.
  • Step S2 Determine the first target address segment group according to the pre-configured load balancing strategy
  • the first target address segment group is determined according to a pre-configured load balancing strategy, that is, the load balancing component specifies the corresponding resource pool component according to the pre-configured load balancing strategy, and the resource pool component It is essentially used to manage each address segment group.
  • the load balancing component receives the user access protocol message sent by the access repeater, and determines the corresponding resource pool component according to the pre-configured load balancing strategy, so as to realize the load sharing of address allocation.
  • the load balancing component may also determine the resource pool component according to other resource pool component determination strategies.
  • the load balancing component should also verify the type of the received message, and perform the subsequent steps when the message is a user access protocol message.
  • step S2 and before step S3 the method further includes:
  • step S3 is executed.
  • Step S3 Determine whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group.
  • the address pool data management component configures and delivers the address segment and the corresponding address network segment mask to the resource pool component, and the resource pool component according to the corresponding address network segment mask Divide the address segment into address network segments with smaller granularity. Thereafter, at least one address network segment can be assigned as a dedicated address network segment to the corresponding forwarder, specifically, the correspondence between the at least one address network segment and the corresponding forwarder is established according to the corresponding forwarder identifier.
  • a single transponder can correspond to multiple different dedicated address network segments configured by multiple resource pool components. Therefore, it is determined whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group, that is, it is determined whether the resource pool component has ever allocated a dedicated address network segment to the access forwarder and Not recycled.
  • step S3 when it is determined that there is a first allocated dedicated address network segment corresponding to the access repeater identifier in the first target address segment group, step S4 is executed; when it is determined that there is no network segment in the first target address segment group When there is a first allocated dedicated address network segment corresponding to the access forwarder identifier, the corresponding address network segment is allocated according to a preset strategy.
  • Step S4 Obtain the first allocated dedicated address network segment.
  • the embodiment of the present application provides an address management method, which can be used to determine the corresponding address segment group when a user accesses according to a corresponding load balancing strategy, determine the corresponding address network segment according to the identifier of the access forwarder, and perform address management , In order to realize load sharing, avoid uneven address allocation, and reduce the waste of address resources.
  • FIG. 3 is a flowchart of another address management method provided by an embodiment of the application. As shown in FIG. 3, the method is a specific optional implementation based on the method shown in FIG. 2. Specifically, after step S4, the method further includes:
  • Step S5 Determine whether there is an idle address in the first allocated dedicated address network segment.
  • step S5 when it is determined that there is an idle address in the first allocated dedicated address network segment, step S6 is executed.
  • Step S6 Allocate an idle address in the first allocated dedicated address network segment to the corresponding user terminal.
  • step S7 when it is determined that the first allocated dedicated address network segment corresponding to the access forwarder identifier does not exist in the first target address segment group, step S7 is executed.
  • Step S7 It is further judged whether there is an unallocated idle address network segment in the first target address segment group.
  • step S7 when it is determined that there is no idle address in the first allocated dedicated address network segment, step S7 is executed.
  • step S8 when it is determined that there is an unallocated idle address network segment in the first target address segment group, step S8 is executed.
  • Step S8 Use at least one free address network segment as the first newly assigned dedicated address network segment, and establish a correspondence between the access forwarder identifier and the first newly assigned dedicated address network segment.
  • the resource pool component divides at least one address network segment from the first target address segment group and allocates it to the access forwarder, as the first newly allocated dedicated address network segment.
  • Step S9 Allocate an idle address in the first newly allocated dedicated address network segment to the corresponding user terminal.
  • step S10 when it is determined that there is no unallocated idle address network segment in the first target address segment group, step S10 is executed.
  • Step S10 Apply for a new address segment for the first target address segment group as the first address segment.
  • the resource pool component applies to the address pool data management component for a new address segment as the first address segment.
  • the resource pool component can also plan according to requirements, detect its own address usage rate, and send alarm information to the address pool data management component when the address usage rate is higher than a preset threshold, and the address pool data management component can follow the alarm The information is issued to the new address segment.
  • the resource pool component in combination with the system architecture shown in FIG. 1, when the resource pool component is instantiated, it further includes: applying for an address segment from the address pool data management component.
  • the address pool data management component can also actively issue corresponding address pool configuration data, including the address segment. And address network segment mask, etc.
  • the resource pool component when a new address segment is applied for, the resource pool component sends its own identity and the new address segment to the load balancing component, so that the load balancing component can establish each resource pool component Correspondence with each address segment.
  • the situation where the resource pool component applies for a new address segment includes the situation where the address pool data management component actively issues the address segment when the resource pool component is instantiated and the situation where the resource pool component actively applies for the address segment successfully.
  • Step S11 Divide at least one address network segment from the first address segment as a second newly allocated dedicated address network segment, and establish a correspondence between the access forwarder identifier and the second newly allocated dedicated address network segment.
  • the resource pool component divides at least one address network segment from the first address segment and allocates it to the access repeater as the second newly allocated dedicated address network segment.
  • step S8 and step S11 after establishing the corresponding relationship between the access repeater identifier and the newly allocated dedicated address network segment, the method further includes:
  • the network segment route corresponding to the newly allocated dedicated address network segment is issued according to the access forwarder identifier.
  • the access repeater in conjunction with the system architecture shown in FIG. 1, the access repeater advertises the network segment route to the outside. After that, when the user terminal accesses the external network, the data message is sent from the network side to the user side. After the network side device directly connected to the repeater finds the route of the network segment, it delivers the corresponding traffic message to the repeater; When the device receives the traffic message, it will continue to deliver it to the control plane, and the corresponding module of the control plane will count the user traffic and charge.
  • Step S12 Allocate an idle address in the second newly allocated dedicated address network segment to the corresponding user terminal.
  • the embodiment of the present application provides an address management method, which can be used to allocate an address network segment to an access forwarder and allocate an address to a user terminal according to an address usage situation.
  • FIG. 4 is a flowchart of another address management method provided by an embodiment of the application. As shown in FIG. 4, the method is a specific optional implementation based on the method shown in FIG. 2. Specifically, the method not only includes steps S1 to S4, but also includes steps S13 to S19. Only steps S13 to S19 will be described in detail below.
  • Step S13 Receive an address recovery request.
  • the address recovery request includes: the address to be recovered.
  • the forwarder receives the offline message sent by the user side when the user goes offline, and sends the offline message to the load balancing component and the address recovery request,
  • the load balancing component uses this to obtain the current address of the offline user, and uses the address as the address to be reclaimed.
  • the load balancing component should also verify the type of the received message, and perform the subsequent steps when the message is a user offline message.
  • the expression "recycle” means to actively cancel the action of address segments, address network segments, or addresses configured for lower-level objects, for example, reclaim addresses in the address segment group, and reclaim the addresses in the address segment group. Recycling of the lieutenant address network segment, etc.
  • the resource pool component reclaims the dedicated address network segment configured in the repeater, and the resource pool component reclaims the address allocated to the user.
  • Step S14 Determine the second target address segment group to which the address to be reclaimed belongs.
  • Step S15 Reclaim the address to be reclaimed in the second target address segment group.
  • step S15 the addresses to be reclaimed in the second target address segment group are reclaimed, that is, the addresses to be reclaimed in the second target address segment group are marked as free addresses.
  • the method further includes:
  • Step S16 It is judged whether all the addresses in the second allocated dedicated address network segment where the addresses to be reclaimed are located are idle addresses.
  • step S16 when it is determined that all of the second allocated dedicated address network segment are idle addresses, step S17 is executed; when it is determined that not all of the second allocated dedicated address network segment are idle addresses, nothing else deal with.
  • Step S17 Reclaim the second allocated dedicated address network segment in the second target address segment group.
  • step S17 the second allocated dedicated address network segment is reclaimed in the second target address segment group, that is, the correspondence between the second dedicated address network segment and its corresponding forwarder identifier is cancelled.
  • the forwarder corresponding to the exclusive address network segment should also be notified to revoke the network segment route corresponding to the reclaimed exclusive address network segment.
  • the method further includes:
  • Step S18 Determine whether the second address segment where the recovered second allocated dedicated address network segment is located are all idle addresses
  • step S19 is executed; when it is determined that not all addresses in the second address segment are idle addresses, no other processing is performed.
  • Step S19 Release the second address segment in the second target address segment group.
  • step S19 the second address segment is released from the second target address segment group, that is, the second address segment is deleted from the second target address segment group.
  • the resource pool component releases the address segment, and thereafter, the address segment release message can be sent to the address pool data management component to delete the retained configuration information.
  • the resource pool component may also send an address segment recovery message to the address pool data management component, and the address pool data management component actively performs recovery for the address segment.
  • the expression "release” means to actively cancel the address segment, address network segment, or address configured by the upper-layer object, for example, release the address segment in the address segment group, and release the address network. Duan etc. Combined with the system architecture shown in Figure 1, for example, the resource pool component releases the address segment configured by the address pool data management component.
  • steps S1 to S4 can be executed before steps S13 to S19, or steps S1 to S4 It is executed after S13 to step S19, or steps S1 to S4 are executed synchronously with S13 to step S19, which all belong to the protection scope of the present application.
  • the embodiment of the present application provides an address management method, which can be used to reclaim the user address when the user is offline, and reclaim the address network segment when the user is idle, and release the address segment to reduce the waste of address resources.
  • the embodiment of the present application provides a server, including: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the One or more processors implement any address management method as in the foregoing embodiments.
  • the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps in any address management method in the above-mentioned embodiments are implemented.
  • the embodiments of the present application provide an address management method, a server, and a computer-readable storage medium, which can realize address management through a distributed management method of address pools, and determine the corresponding address segment group according to the corresponding load balancing strategy, in real time Perform user address allocation tasks in parallel, improve address management efficiency, avoid uneven address allocation, and reduce address resource waste.
  • the functional modules/units in the device can be implemented as software, firmware, hardware, and appropriate combinations thereof.
  • the division between 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 consist of several physical components.
  • the components are executed cooperatively.
  • Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit .
  • Such software may be distributed on a computer-readable medium
  • the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium).
  • the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).
  • 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 technologies, 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 used to store desired information and that can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided in the present application is an address management method, comprising: receiving a user access protocol message; determining a first target address segment group according to a pre-configured load balancing policy; determining whether a first allocated dedicated address network segment corresponding to an access repeater identifier is present in the first target address segment group; and when determined that the first allocated dedicated address network segment corresponding to the access repeater identifier is present in the first target address segment group, acquiring the first allocated dedicated address network segment. Further provided in the present application are a server and a computer-readable medium.

Description

地址管理方法、服务器和计算机可读存储介质Address management method, server and computer readable storage medium

相关申请的交叉引用Cross-references to related applications

本申请基于申请号为201911271217.5、申请日为2019年12月12日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is filed based on a Chinese patent application with an application number of 201911271217.5 and an application date of December 12, 2019, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application by way of introduction.

技术领域Technical field

本申请涉及通信技术领域,特别涉及一种地址管理方法、服务器和计算机可读存储介质。This application relates to the field of communication technology, and in particular to an address management method, a server, and a computer-readable storage medium.

背景技术Background technique

传统设备宽带接入服务器(Broadband Remote Access Server,简称BRAS)已经被广泛用于家庭宽带接入服务,随着全球网络化的不断推进,越来越多的用户加入到服务中来。目前的宽带接入服务器设备由于其自身的特点,比如硬件处理能力有限,适应变化的能力慢等,已经无法满足市场的快速化发展的趋势。虚拟宽带接入服务器(Virtual Broadband Remote Access Server,简称vBRAS)的出现应运而生,其从一定程度上解决了上述问题,减少了单个设备所承担的所有业务处理,将上层业务控制和底层转发分离开,使系统降低对设备硬件的依赖程度。Traditional equipment Broadband Remote Access Server (BRAS) has been widely used in home broadband access services. With the continuous advancement of global networking, more and more users have joined the service. The current broadband access server equipment, due to its own characteristics, such as limited hardware processing capabilities and slow adaptability to changes, has been unable to meet the rapid development trend of the market. The emergence of Virtual Broadband Remote Access Server (vBRAS for short) came into being, which solves the above problems to a certain extent, reduces all service processing undertaken by a single device, and separates upper-layer service control from lower-layer forwarding Open, make the system less dependent on the equipment hardware.

发明内容Summary of the invention

本申请实施例提供了一种地址管理方法,包括:接收用户接入协议报文,所述用户接入协议报文携带有接入转发器标识;根据预先配置的负载均衡策略确定第一目标地址段组;判断所述第一目标地址段组中是否存在所述接入转发器标识所对应的第一已分配专属地址网段;当判断出所述第一目标地址段组中存在所述接入转发器标识所对应的第一已分配专属地址网段时,则获取所述第一已分配专属地址网段。An embodiment of the present application provides an address management method, including: receiving a user access protocol message, the user access protocol message carrying an access forwarder identifier; and determining a first target address according to a pre-configured load balancing strategy Segment group; determine whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group; when it is determined that the access point exists in the first target address segment group When the first allocated dedicated address network segment corresponding to the incoming forwarder identifier is acquired, the first allocated dedicated address network segment is acquired.

本申请实施例提供了一种服务器,包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述实施例中的地址管理方法。The embodiment of the present application provides a server, including: one or more processors; a storage device, configured to store one or more programs; when the one or more programs are executed by the one or more processors, The one or more processors are caused to implement the address management method as in the foregoing embodiment.

本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述实施例中的地址管理方法中的步骤。The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps in the address management method in the above-mentioned embodiment are implemented.

附图说明Description of the drawings

图1为一种可部署本申请实施例提供的地址管理方法的系统架构的结构框图;FIG. 1 is a structural block diagram of a system architecture in which an address management method provided by an embodiment of the present application can be deployed;

图2为本申请实施例提供的一种地址管理方法的流程图;FIG. 2 is a flowchart of an address management method provided by an embodiment of the application;

图3为本申请实施例提供的另一种地址管理方法的流程图;FIG. 3 is a flowchart of another address management method provided by an embodiment of the application;

图4为本申请实施例提供的又一种地址管理方法的流程图。FIG. 4 is a flowchart of another address management method provided by an embodiment of the application.

具体实施方式Detailed ways

为使本领域的技术人员更好地理解本申请的技术方案,下面结合附图对本申请提供的地址管理方法进行详细描述。In order to enable those skilled in the art to better understand the technical solutions of the present application, the address management method provided by the present application will be described in detail below with reference to the accompanying drawings.

在下文中将参考附图更充分地描述示例实施例,但是所述示例实施例可以以不同形式来体现且不应当被解释为限于本文阐述的实施例。反之,提供这些实施例的目的在于使本申请透彻和完整,并将使本领域技术人员充分理解本申请的范围。Hereinafter, example embodiments will be described more fully with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, the purpose of providing these examples is to make this application thorough and complete, and to enable those skilled in the art to fully understand the scope of this application.

本文所使用的术语仅用于描述特定实施例,且不意欲限制本申请。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其他特征、整体、步骤、操作、元件、组件和/或其群组。The terms used herein are only used to describe specific embodiments and are not intended to limit the application. As used herein, the singular forms "a" and "the" are also intended to include the plural forms, unless the context clearly dictates otherwise. It will also be understood that when the terms "comprising" and/or "made of" are used in this specification, it specifies the presence of the described features, wholes, steps, operations, elements and/or components, but does not exclude the presence or Add one or more other features, wholes, steps, operations, elements, components, and/or groups thereof.

将理解的是,虽然本文可以使用术语第一、第二等来描述各种元件,但这些元件不应当受限于这些术语。这些术语仅用于区分一个元件和另一 元件。因此,在不背离本申请的指教的情况下,下文讨论的第一元件、第一组件或第一模块可称为第二元件、第二组件或第二模块。It will be understood that although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. Therefore, without departing from the teachings of the present application, the first element, the first component, or the first module discussed below may be referred to as the second element, the second component, or the second module.

除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本申请的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。Unless otherwise defined, the meanings of all terms (including technical and scientific terms) used herein are the same as those 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 meanings consistent with their meanings in the context of the related technology and this application, and will not be interpreted as having idealized or excessive formal meanings, Unless this article specifically defines it as such.

发明人发现:现阶段的地址管理方法多采用集中式管理方式,例如在用户接入时,地址池模块统一集中管理进行地址分配,这样的管理方式任务串行执行,运行效率较低,同时布局不够灵活,也容易出现地址浪费的情况;或者将地址池数据库独立到上层应用模块并实时进行空闲地址申请,在用户接入时使用存储的空闲地址进行地址分配,这样虽然提高了用户接入效率,但不能实现负荷分担,易造成地址分配不均,造成地址浪费。The inventor found that the current address management methods mostly adopt centralized management methods. For example, when users access, the address pool module is unified and centrally managed for address allocation. Such management methods are executed serially, with low operating efficiency and layout. It is not flexible enough, and it is prone to address waste; or separate the address pool database to the upper application module and apply for free addresses in real time, and use the stored free addresses for address allocation during user access, although this improves user access efficiency , But it cannot achieve load sharing, and it is easy to cause uneven address allocation and cause address waste.

基于此,本申请提供一种地址管理方法,可用于基于地址池的分布式部署方式,多个资源池组件接收负载均衡组件分配的地址申请,在多用户接入时,并行执行用户地址分配任务。Based on this, this application provides an address management method that can be used in a distributed deployment method based on address pools. Multiple resource pool components receive address applications allocated by load balancing components, and perform user address allocation tasks in parallel when multiple users are connected. .

图1为一种可部署本申请实施例提供的地址管理方法的系统架构的结构框图。如图1所示,该系统架构包括:控制面和转发面。FIG. 1 is a structural block diagram of a system architecture in which the address management method provided by the embodiment of the present application can be deployed. As shown in Figure 1, the system architecture includes: a control plane and a forwarding plane.

控制面包括上层应用和地址管理虚拟机(特别地,虚拟宽带接入服务器);地址管理虚拟机包括地址池数据管理组件、多个资源池组件和负载均衡组件;上层应用和地址管理虚拟机通过地址池下发配置接口连接,通过上层应用进行地址池配置,并将相应的地址池信息及配置信息,例如地址池、地址段、网段路由和地址掩码等信息,下发至地址池数据管理组件,其中地址池内预先存储有多个地址段;负载均衡组件的虚拟网口和宿主机的物理网口之间可通过创建网桥通信。The control plane includes upper-layer applications and address management virtual machines (especially, virtual broadband access servers); address management virtual machines include address pool data management components, multiple resource pool components, and load balancing components; upper-layer applications and address management virtual machines pass The address pool is issued to configure the interface connection, and the address pool is configured through the upper application, and the corresponding address pool information and configuration information, such as address pool, address segment, network segment route and address mask, etc., are delivered to the address pool data management A component, where multiple address segments are pre-stored in the address pool; the virtual network port of the load balancing component and the physical network port of the host can communicate with each other by creating a bridge.

转发面包括交换机和多个转发器;交换机的接收端口和出端口通过配置的虚拟局域网隔离,交换机与虚拟机对应的物理网口之间创建数据通信,实现资源池组件和负载均衡组件与外部的数据通信;交换机下挂多个转发器,通过转发器与网络侧设备以及用户建立连接。The forwarding plane includes a switch and multiple forwarders; the receiving port and the output port of the switch are isolated by the configured virtual local area network, and data communication is created between the switch and the corresponding physical network port of the virtual machine to realize the connection between the resource pool component and the load balancing component and the external Data communication; multiple transponders are attached to the switch, and connections are established with network-side devices and users through transponders.

图2为本申请实施例提供的一种地址管理方法的流程图,该如图2所 示,该方法应用于地址管理虚拟机侧,该方法包括:Fig. 2 is a flowchart of an address management method provided by an embodiment of the application. As shown in Fig. 2, the method is applied to the address management virtual machine side, and the method includes:

步骤S1、接收用户接入协议报文。Step S1: Receive a user access protocol message.

其中,用户接入协议报文携带有接入转发器标识。一般而言,用户接入协议报文还携带有用户终端标识。Among them, the user access protocol message carries the access repeater identifier. Generally speaking, the user access protocol message also carries the user terminal identification.

在一些实施例中,结合图1所示系统架构,负载均衡组件从接入转发器获取用户终端所提供的用户接入协议报文,其中,接入转发器接收到用户侧发送的用户接入协议报文后,根据自身的转发器标识对该报文进行封装,以标识该用户终端对应的接入转发器。In some embodiments, in conjunction with the system architecture shown in FIG. 1, the load balancing component obtains the user access protocol message provided by the user terminal from the access repeater, where the access repeater receives the user access sent by the user side After the protocol message, the message is encapsulated according to its own repeater identifier to identify the access repeater corresponding to the user terminal.

需要说明的是,在本申请实施例中,“接入转发器”的表述只表示该转发器在本用户接入流程当中起到相应作用,并不代表该转发器只在用户接入流程进行工作,或只具有用户接入协议报文转发的功能。It should be noted that in the embodiments of this application, the expression "access to the repeater" only means that the repeater plays a corresponding role in the user access process, and does not mean that the repeater is only performed during the user access process. Work, or only have the function of user access protocol message forwarding.

步骤S2、根据预先配置的负载均衡策略确定第一目标地址段组;Step S2: Determine the first target address segment group according to the pre-configured load balancing strategy;

在一些实施例中,结合图1所示系统架构,根据预先配置的负载均衡策略确定第一目标地址段组,即负载均衡组件根据预先配置的负载均衡策略指定相应的资源池组件,资源池组件实质上用于管理各地址段组。其中,每当用户接入时,负载均衡组件接收接入转发器发送的用户接入协议报文,并根据预先配置的负载均衡策略确定相应的资源池组件,以实现地址分配的负荷分担。在一些实施例中,根据具体的场景,负载均衡组件也可根据其他资源池组件确定策略进行资源池组件的确定。一般而言,负载均衡组件还应验证接收到的报文的类型,在报文为用户接入协议报文时,执行后续步骤。In some embodiments, in conjunction with the system architecture shown in FIG. 1, the first target address segment group is determined according to a pre-configured load balancing strategy, that is, the load balancing component specifies the corresponding resource pool component according to the pre-configured load balancing strategy, and the resource pool component It is essentially used to manage each address segment group. Wherein, each time a user accesses, the load balancing component receives the user access protocol message sent by the access repeater, and determines the corresponding resource pool component according to the pre-configured load balancing strategy, so as to realize the load sharing of address allocation. In some embodiments, according to specific scenarios, the load balancing component may also determine the resource pool component according to other resource pool component determination strategies. Generally speaking, the load balancing component should also verify the type of the received message, and perform the subsequent steps when the message is a user access protocol message.

在一些实施例中,在步骤S2之后,且在步骤S3之前,还包括:In some embodiments, after step S2 and before step S3, the method further includes:

根据用户接入协议报文进行用户认证。Perform user authentication according to user access protocol messages.

其中,当用户认证通过时,执行步骤S3。Wherein, when the user is authenticated, step S3 is executed.

步骤S3、判断第一目标地址段组中是否存在接入转发器标识所对应的第一已分配专属地址网段。Step S3: Determine whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group.

在一些实施例中,结合图1所示系统架构,由地址池数据管理组件配置并向资源池组件下发地址段和对应的地址网段掩码,资源池组件根据对应的地址网段掩码将地址段划分为粒度更小的地址网段。此后,可将至少一个地址网段作为专属地址网段分配给相应转发器,具体地,根据相应的 转发器标识建立该至少一个地址网段和相应转发器之间的对应关系。单个转发器可对应多个资源池组件配置的多个不同的专属地址网段。由此,判断第一目标地址段组中是否存在接入转发器标识所对应的第一已分配专属地址网段,即判断该资源池组件是否曾向该接入转发器分配专属地址网段且未回收。In some embodiments, combined with the system architecture shown in Figure 1, the address pool data management component configures and delivers the address segment and the corresponding address network segment mask to the resource pool component, and the resource pool component according to the corresponding address network segment mask Divide the address segment into address network segments with smaller granularity. Thereafter, at least one address network segment can be assigned as a dedicated address network segment to the corresponding forwarder, specifically, the correspondence between the at least one address network segment and the corresponding forwarder is established according to the corresponding forwarder identifier. A single transponder can correspond to multiple different dedicated address network segments configured by multiple resource pool components. Therefore, it is determined whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group, that is, it is determined whether the resource pool component has ever allocated a dedicated address network segment to the access forwarder and Not recycled.

在步骤S3中,当判断出第一目标地址段组中存在接入转发器标识所对应的第一已分配专属地址网段时,则执行步骤S4;当判断出第一目标地址段组中不存在接入转发器标识所对应的第一已分配专属地址网段时,则根据预设策略分配相应地址网段。In step S3, when it is determined that there is a first allocated dedicated address network segment corresponding to the access repeater identifier in the first target address segment group, step S4 is executed; when it is determined that there is no network segment in the first target address segment group When there is a first allocated dedicated address network segment corresponding to the access forwarder identifier, the corresponding address network segment is allocated according to a preset strategy.

步骤S4、获取第一已分配专属地址网段。Step S4: Obtain the first allocated dedicated address network segment.

本申请实施例提供了一种地址管理方法,该方法可用于根据相应的负载均衡策略在用户接入时确定相应的地址段组,根据接入转发器标识确定相应的地址网段,进行地址管理,以实现负荷分担,避免地址分配不均,减少地址资源浪费。The embodiment of the present application provides an address management method, which can be used to determine the corresponding address segment group when a user accesses according to a corresponding load balancing strategy, determine the corresponding address network segment according to the identifier of the access forwarder, and perform address management , In order to realize load sharing, avoid uneven address allocation, and reduce the waste of address resources.

图3为本申请实施例提供的另一种地址管理方法的流程图。如图3所示,该方法为基于图2所示方法的一种具体化可选实施方案,具体地,在步骤S4之后,还包括:FIG. 3 is a flowchart of another address management method provided by an embodiment of the application. As shown in FIG. 3, the method is a specific optional implementation based on the method shown in FIG. 2. Specifically, after step S4, the method further includes:

步骤S5、判断第一已分配专属地址网段中是否存在空闲地址。Step S5: Determine whether there is an idle address in the first allocated dedicated address network segment.

在步骤S5中,当判断出第一已分配专属地址网段中存在空闲地址时,则执行步骤S6。In step S5, when it is determined that there is an idle address in the first allocated dedicated address network segment, step S6 is executed.

步骤S6、将第一已分配专属地址网段中的一个空闲地址分配给相应用户终端。Step S6: Allocate an idle address in the first allocated dedicated address network segment to the corresponding user terminal.

在一些实施例中,在步骤S3中,当判断出第一目标地址段组中不存在接入转发器标识所对应的第一已分配专属地址网段时,则执行步骤S7。In some embodiments, in step S3, when it is determined that the first allocated dedicated address network segment corresponding to the access forwarder identifier does not exist in the first target address segment group, step S7 is executed.

步骤S7、进一步判断第一目标地址段组中是否存在未分配的空闲地址网段。Step S7: It is further judged whether there is an unallocated idle address network segment in the first target address segment group.

在一些实施例中,在步骤S5中,当判断出第一已分配专属地址网段中不存在空闲地址时,则执行步骤S7。In some embodiments, in step S5, when it is determined that there is no idle address in the first allocated dedicated address network segment, step S7 is executed.

在一些实施例中,结合图1所示系统架构,判断第一目标地址段组中是否存在未分配的空闲地址网段,即判断该资源池组件是否有未分配或未 完全分配的地址段。In some embodiments, in conjunction with the system architecture shown in FIG. 1, it is determined whether there is an unallocated free address network segment in the first target address segment group, that is, it is determined whether the resource pool component has an unallocated or incompletely allocated address segment.

在步骤S7中,当判断出第一目标地址段组中存在未分配的空闲地址网段时,则执行步骤S8。In step S7, when it is determined that there is an unallocated idle address network segment in the first target address segment group, step S8 is executed.

步骤S8、将至少一个空闲地址网段作为第一新分配专属地址网段,建立接入转发器标识和第一新分配专属地址网段的对应关系。Step S8: Use at least one free address network segment as the first newly assigned dedicated address network segment, and establish a correspondence between the access forwarder identifier and the first newly assigned dedicated address network segment.

在一些实施例中,结合图1所示系统架构,资源池组件从第一目标地址段组中划分出至少一个地址网段分配给接入转发器,以作为第一新分配专属地址网段。In some embodiments, in conjunction with the system architecture shown in FIG. 1, the resource pool component divides at least one address network segment from the first target address segment group and allocates it to the access forwarder, as the first newly allocated dedicated address network segment.

步骤S9、将第一新分配专属地址网段中的一个空闲地址分配给相应用户终端。Step S9: Allocate an idle address in the first newly allocated dedicated address network segment to the corresponding user terminal.

在一些实施例中,在步骤S7中,当判断出第一目标地址段组中不存在未分配的空闲地址网段时,则执行步骤S10。In some embodiments, in step S7, when it is determined that there is no unallocated idle address network segment in the first target address segment group, step S10 is executed.

步骤S10、为第一目标地址段组申请新地址段以作为第一地址段。Step S10: Apply for a new address segment for the first target address segment group as the first address segment.

在一些实施例中,结合图1所示系统架构,资源池组件向地址池数据管理组件申请新地址段以作为第一地址段。一般而言,资源池组件也可根据需求规划,检测自身的地址使用率,并在地址使用率高于预先设置的阈值时向地址池数据管理组件发送告警信息,地址池数据管理组件可根据告警信息下发新地址段。In some embodiments, in combination with the system architecture shown in FIG. 1, the resource pool component applies to the address pool data management component for a new address segment as the first address segment. Generally speaking, the resource pool component can also plan according to requirements, detect its own address usage rate, and send alarm information to the address pool data management component when the address usage rate is higher than a preset threshold, and the address pool data management component can follow the alarm The information is issued to the new address segment.

另外,在一些实施例中,结合图1所示系统架构,在资源池组件进行实例化时,还包括:向地址池数据管理组件申请地址段。In addition, in some embodiments, in combination with the system architecture shown in FIG. 1, when the resource pool component is instantiated, it further includes: applying for an address segment from the address pool data management component.

其中,进行地址池配置时,在地址池下绑定对应的资源池组件的实例号,在一些实施例中,地址池数据管理组件也可据此主动下发对应的地址池配置数据,包括地址段和地址网段掩码等。Among them, when the address pool is configured, the instance number of the corresponding resource pool component is bound under the address pool. In some embodiments, the address pool data management component can also actively issue corresponding address pool configuration data, including the address segment. And address network segment mask, etc.

在一些实施例中,结合图1所示系统架构,在申请到新地址段时,资源池组件将自身的身份标识和新地址段发送至负载均衡组件,以供负载均衡组件建立各资源池组件和各地址段的对应关系。其中,资源池组件申请到新地址段的情况包括资源池组件进行实例化时,地址池数据管理组件主动下发地址段的情况和资源池组件主动申请地址段成功的情况。In some embodiments, in combination with the system architecture shown in FIG. 1, when a new address segment is applied for, the resource pool component sends its own identity and the new address segment to the load balancing component, so that the load balancing component can establish each resource pool component Correspondence with each address segment. Among them, the situation where the resource pool component applies for a new address segment includes the situation where the address pool data management component actively issues the address segment when the resource pool component is instantiated and the situation where the resource pool component actively applies for the address segment successfully.

步骤S11、从第一地址段中划分出至少一个地址网段以作为第二新分配专属地址网段,建立接入转发器标识和第二新分配专属地址网段的对应 关系。Step S11: Divide at least one address network segment from the first address segment as a second newly allocated dedicated address network segment, and establish a correspondence between the access forwarder identifier and the second newly allocated dedicated address network segment.

在一些实施例中,结合图1所示系统架构,资源池组件从第一地址段中划分出至少一个地址网段分配给接入转发器,以作为第二新分配专属地址网段。In some embodiments, in combination with the system architecture shown in FIG. 1, the resource pool component divides at least one address network segment from the first address segment and allocates it to the access repeater as the second newly allocated dedicated address network segment.

在一些实施例中,在步骤S8和步骤S11,建立接入转发器标识和新分配专属地址网段的对应关系之后,还包括:In some embodiments, in step S8 and step S11, after establishing the corresponding relationship between the access repeater identifier and the newly allocated dedicated address network segment, the method further includes:

根据接入转发器标识下发新分配专属地址网段所对应的网段路由。The network segment route corresponding to the newly allocated dedicated address network segment is issued according to the access forwarder identifier.

在一些实施例中,结合图1所示系统架构,接入转发器对外发布该网段路由。此后,用户终端访问外网时,数据报文从网络侧发送到用户侧,该转发器直连的网络侧设备查找到该网段路由后,将对应流量报文投递到该转发器上;转发器收到该流量报文则将其向控制面继续投递,由控制面相应模块统计用户流量并计费。In some embodiments, in conjunction with the system architecture shown in FIG. 1, the access repeater advertises the network segment route to the outside. After that, when the user terminal accesses the external network, the data message is sent from the network side to the user side. After the network side device directly connected to the repeater finds the route of the network segment, it delivers the corresponding traffic message to the repeater; When the device receives the traffic message, it will continue to deliver it to the control plane, and the corresponding module of the control plane will count the user traffic and charge.

步骤S12、将第二新分配专属地址网段中的一个空闲地址分配给相应用户终端。Step S12: Allocate an idle address in the second newly allocated dedicated address network segment to the corresponding user terminal.

本申请实施例提供了一种地址管理方法,该方法可用于根据地址使用情况向接入转发器分配地址网段,向用户终端分配地址。The embodiment of the present application provides an address management method, which can be used to allocate an address network segment to an access forwarder and allocate an address to a user terminal according to an address usage situation.

图4为本申请实施例提供的又一种地址管理方法的流程图。如图4所示,该方法为基于图2所示方法的一种具体化可选实施方案,具体地,该方法不仅包括步骤S1~S4,还包括步骤S13~步骤S19。下面仅对步骤S13~步骤S19进行详细描述。FIG. 4 is a flowchart of another address management method provided by an embodiment of the application. As shown in FIG. 4, the method is a specific optional implementation based on the method shown in FIG. 2. Specifically, the method not only includes steps S1 to S4, but also includes steps S13 to S19. Only steps S13 to S19 will be described in detail below.

步骤S13、接收地址回收请求。Step S13: Receive an address recovery request.

其中,地址回收请求包括:待回收地址。Among them, the address recovery request includes: the address to be recovered.

在一些实施例中,结合图1所示的系统架构,转发器在用户下线时接收用户侧发送的下线报文,并将该下线报文发送至负载均衡组件,及地址回收请求,负载均衡组件以此获取该下线用户的当前地址,并将该地址作为待回收地址。一般而言,负载均衡组件还应验证接收到的报文的类型,在报文为用户下线报文时,执行后续步骤。In some embodiments, in combination with the system architecture shown in FIG. 1, the forwarder receives the offline message sent by the user side when the user goes offline, and sends the offline message to the load balancing component and the address recovery request, The load balancing component uses this to obtain the current address of the offline user, and uses the address as the address to be reclaimed. Generally speaking, the load balancing component should also verify the type of the received message, and perform the subsequent steps when the message is a user offline message.

需要说明的是,在本申请实施例中,“回收”的表述表示主动取消针对下层对象配置的地址段、地址网段或地址的动作,例如,在地址段组中将地址回收,在地址段中将地址网段回收等。结合图1所示的系统架构, 例如,资源池组件回收配置于转发器的专属地址网段,资源池组件回收分配给用户的地址等。It should be noted that in the embodiments of the present application, the expression "recycle" means to actively cancel the action of address segments, address network segments, or addresses configured for lower-level objects, for example, reclaim addresses in the address segment group, and reclaim the addresses in the address segment group. Recycling of the lieutenant address network segment, etc. With reference to the system architecture shown in FIG. 1, for example, the resource pool component reclaims the dedicated address network segment configured in the repeater, and the resource pool component reclaims the address allocated to the user.

步骤S14、确定待回收地址所归属的第二目标地址段组。Step S14: Determine the second target address segment group to which the address to be reclaimed belongs.

步骤S15、在第二目标地址段组中将待回收地址回收。Step S15: Reclaim the address to be reclaimed in the second target address segment group.

在步骤S15中,在第二目标地址段组中将待回收地址回收,即将第二目标地址段组中的待回收地址标记为空闲地址。In step S15, the addresses to be reclaimed in the second target address segment group are reclaimed, that is, the addresses to be reclaimed in the second target address segment group are marked as free addresses.

在一些实施例中,在步骤S15之后,还包括:In some embodiments, after step S15, the method further includes:

步骤S16、判断待回收地址所在的第二已分配专属地址网段中是否全部为空闲地址。Step S16: It is judged whether all the addresses in the second allocated dedicated address network segment where the addresses to be reclaimed are located are idle addresses.

在步骤S16中,当判断出第二已分配专属地址网段中全部为空闲地址时,则执行步骤S17;当判断出第二已分配专属地址网段中并非全部为空闲地址时,则不作其他处理。In step S16, when it is determined that all of the second allocated dedicated address network segment are idle addresses, step S17 is executed; when it is determined that not all of the second allocated dedicated address network segment are idle addresses, nothing else deal with.

步骤S17、在第二目标地址段组中将第二已分配专属地址网段回收。Step S17: Reclaim the second allocated dedicated address network segment in the second target address segment group.

在步骤S17中,在第二目标地址段组中将第二已分配专属地址网段回收,即取消第二专属地址网段与其所对应转发器标识的对应关系。In step S17, the second allocated dedicated address network segment is reclaimed in the second target address segment group, that is, the correspondence between the second dedicated address network segment and its corresponding forwarder identifier is cancelled.

在一些实施例中,结合图1所示的系统架构,回收该专属地址网段后,还应通知该专属地址网段对应的转发器将已回收的专属地址网段所对应的网段路由撤销。In some embodiments, in conjunction with the system architecture shown in Figure 1, after reclaiming the exclusive address network segment, the forwarder corresponding to the exclusive address network segment should also be notified to revoke the network segment route corresponding to the reclaimed exclusive address network segment. .

在一些实施例中,在步骤S17之后,还包括:In some embodiments, after step S17, the method further includes:

步骤S18、判断已回收的第二已分配专属地址网段所在第二地址段中是否全部为空闲地址;Step S18: Determine whether the second address segment where the recovered second allocated dedicated address network segment is located are all idle addresses;

当判断出第二地址段中全部为空闲地址时,则执行步骤S19;当判断出第二地址段中并非全部为空闲地址时,则不作其他处理。When it is determined that all the addresses in the second address segment are idle addresses, step S19 is executed; when it is determined that not all addresses in the second address segment are idle addresses, no other processing is performed.

步骤S19、在第二目标地址段组中释放第二地址段。Step S19: Release the second address segment in the second target address segment group.

在步骤S19中,在第二目标地址段组中释放第二地址段,即从第二目标地址段组中删除第二地址段。In step S19, the second address segment is released from the second target address segment group, that is, the second address segment is deleted from the second target address segment group.

在一些实施例中,结合图1所示的系统架构,资源池组件释放该地址段,此后,可通过向地址池数据管理组件发送地址段释放消息,以删除留存的配置信息。在一些实施例中,资源池组件也可向地址池数据管理组件发送地址段回收消息,由地址池数据管理组件主动执行针对该地址段的回 收。In some embodiments, in conjunction with the system architecture shown in FIG. 1, the resource pool component releases the address segment, and thereafter, the address segment release message can be sent to the address pool data management component to delete the retained configuration information. In some embodiments, the resource pool component may also send an address segment recovery message to the address pool data management component, and the address pool data management component actively performs recovery for the address segment.

需要说明的是,在本申请实施例中,“释放”的表述表示主动取消由上层对象配置的地址段、地址网段或地址的动作,例如,在地址段组中释放地址段,释放地址网段等。结合图1所示的系统架构,例如,资源池组件释放地址池数据管理组件配置的地址段等。It should be noted that in the embodiments of this application, the expression "release" means to actively cancel the address segment, address network segment, or address configured by the upper-layer object, for example, release the address segment in the address segment group, and release the address network. Duan etc. Combined with the system architecture shown in Figure 1, for example, the resource pool component releases the address segment configured by the address pool data management component.

需要说明的是,本申请的技术方案对步骤S1~步骤S4和步骤S13~步骤S19的执行顺序不作限定,即步骤S1~步骤S4可在步骤S13~步骤S19之前执行,或步骤S1~步骤S4在S13~步骤S19后执行,或者步骤S1~步骤S4与S13~步骤S19同步执行,其均属于本申请的保护范围。It should be noted that the technical solution of the present application does not limit the execution order of steps S1 to S4 and steps S13 to S19, that is, steps S1 to S4 can be executed before steps S13 to S19, or steps S1 to S4 It is executed after S13 to step S19, or steps S1 to S4 are executed synchronously with S13 to step S19, which all belong to the protection scope of the present application.

本申请实施例提供了一种地址管理方法,该方法可用于在用户下线时回收用户地址,并在闲时回收地址网段,释放地址段,以减少地址资源浪费。The embodiment of the present application provides an address management method, which can be used to reclaim the user address when the user is offline, and reclaim the address network segment when the user is idle, and release the address segment to reduce the waste of address resources.

在本申请中,上述各实施例中不同步骤之间可以相互组合以得到新技术方案,该组合出的新技术方案也应属于本申请的保护范围。In this application, the different steps in the foregoing embodiments can be combined with each other to obtain a new technical solution, and the new technical solution resulting from the combination should also belong to the protection scope of this application.

本申请实施例提供了一种服务器,包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当该一个或多个程序被该一个或多个处理器执行,使得该一个或多个处理器实现如上述实施例中的任一地址管理方法。The embodiment of the present application provides a server, including: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the One or more processors implement any address management method as in the foregoing embodiments.

本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述实施例中的任一地址管理方法中的步骤。The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps in any address management method in the above-mentioned embodiments are implemented.

综上,本申请实施例提供了一种地址管理方法、服务器和计算机可读存储介质,可实现通过地址池分布式管理方式进行地址管理,根据相应的负载均衡策略,确定相应地址段组,实时并行执行用户地址分配任务,提升地址管理效率,避免地址分配不均,减少地址资源浪费。In summary, the embodiments of the present application provide an address management method, a server, and a computer-readable storage medium, which can realize address management through a distributed management method of address pools, and determine the corresponding address segment group according to the corresponding load balancing strategy, in real time Perform user address allocation tasks in parallel, improve address management efficiency, avoid uneven address allocation, and reduce address resource waste.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物 理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。A person of ordinary skill in the art can understand that all or some of the steps in the method disclosed above, and the functional modules/units in the device can be implemented as software, firmware, hardware, and appropriate combinations thereof. In the hardware implementation, the division between 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 consist of several physical components. The components are executed cooperatively. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media. Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, 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 used to store desired information and that can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .

本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其他实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本申请的范围的情况下,可进行各种形式和细节上的改变。Example embodiments have been disclosed herein, and although specific terms are adopted, they are used and should only be interpreted as general descriptive meanings, and are not used for the purpose of limitation. In some instances, it is obvious to those skilled in the art that, unless clearly indicated otherwise, the features, characteristics, and/or elements described in combination with a specific embodiment may be used alone, or features, characteristics, and/or elements described in combination with other embodiments may be used, Combination of features and/or components. Therefore, those skilled in the art will understand that various changes in form and details can be made without departing from the scope of the present application as set forth by the appended claims.

Claims (12)

一种地址管理方法,其中,包括:An address management method, which includes: 接收用户接入协议报文,所述用户接入协议报文携带有接入转发器标识;Receiving a user access protocol message, the user access protocol message carrying an access repeater identifier; 根据预先配置的负载均衡策略确定第一目标地址段组;Determining the first target address segment group according to a pre-configured load balancing strategy; 判断所述第一目标地址段组中是否存在所述接入转发器标识所对应的第一已分配专属地址网段;Judging whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group; 当判断出所述第一目标地址段组中存在所述接入转发器标识所对应的第一已分配专属地址网段时,则获取所述第一已分配专属地址网段。When it is determined that the first assigned dedicated address network segment corresponding to the access forwarder identifier exists in the first target address segment group, the first assigned dedicated address network segment is acquired. 根据权利要求1所述的地址管理方法,其中,包括:在所述获取所述第一已分配专属地址网段的步骤之后,还包括:The address management method according to claim 1, further comprising: after the step of obtaining the first allocated dedicated address network segment, further comprising: 判断所述第一已分配专属地址网段中是否存在空闲地址;Judging whether there is an idle address in the first allocated dedicated address network segment; 当判断出所述第一已分配专属地址网段中存在空闲地址时,将所述第一已分配专属地址网段中的一个空闲地址分配给相应用户终端。When it is determined that there is an idle address in the first allocated dedicated address network segment, an idle address in the first allocated dedicated address network segment is allocated to the corresponding user terminal. 根据权利要求2所述的地址管理方法,其中,The address management method according to claim 2, wherein: 当判断出所述第一目标地址段组中不存在所述接入转发器标识所对应的第一已分配专属地址网段时,则进一步判断所述第一目标地址段组中是否存在未分配的空闲地址网段;When it is determined that there is no first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group, it is further determined whether there is an unallocated address segment in the first target address segment group Free address network segment; 当判断出所述第一目标地址段组中存在未分配的空闲地址网段时,则将至少一个所述空闲地址网段作为第一新分配专属地址网段,建立所述接入转发器标识和所述第一新分配专属地址网段的对应关系;When it is determined that there is an unallocated idle address network segment in the first target address segment group, at least one of the idle address network segment is used as the first newly assigned dedicated address network segment, and the access forwarder identifier is established The corresponding relationship with the first newly allocated dedicated address network segment; 将所述第一新分配专属地址网段中的一个空闲地址分配给相应用户终端。Allocate an idle address in the first newly allocated dedicated address network segment to the corresponding user terminal. 根据权利要求3所述的地址管理方法,其中,The address management method according to claim 3, wherein: 当判断出所述第一目标地址段组中不存在未分配的空闲地址网段时,则为所述第一目标地址段组申请新地址段以作为第一地址段;When it is determined that there is no unallocated idle address network segment in the first target address segment group, applying for a new address segment for the first target address segment group as the first address segment; 从所述第一地址段中划分出至少一个地址网段以作为第二新分配专属地址网段,建立所述接入转发器标识和所述第二新分配专属地址网段的对应关系;Dividing at least one address network segment from the first address segment as a second newly assigned dedicated address network segment, and establishing a correspondence between the access forwarder identifier and the second newly assigned dedicated address network segment; 将所述第二新分配专属地址网段中的一个空闲地址分配给相应用户终端。Allocate an idle address in the second newly allocated dedicated address network segment to the corresponding user terminal. 根据权利要求3或4所述的地址管理方法,其中,The address management method according to claim 3 or 4, wherein: 当判断出所述第一已分配专属地址网段中不存在空闲地址时,则执行所述进一步判断所述第一目标地址段组中是否存在未分配的空闲地址网段的步骤。When it is determined that there is no idle address in the first allocated dedicated address network segment, the step of further determining whether there is an unallocated idle address network segment in the first target address segment group is performed. 根据权利要求3或4所述的地址管理方法,其中,在建立所述接入转发器标识和新分配专属地址网段的对应关系之后,还包括:The address management method according to claim 3 or 4, wherein after establishing the corresponding relationship between the access forwarder identifier and the newly allocated dedicated address network segment, the method further comprises: 根据所述接入转发器标识下发新分配专属地址网段所对应的网段路由。The network segment route corresponding to the newly allocated dedicated address network segment is issued according to the access forwarder identifier. 根据权利要求1所述的地址管理方法,其中,在所述根据预先配置的负载均衡策略确定第一目标地址段组的步骤之后,且在所述判断所述第一目标地址段组中是否存在所述接入转发器标识所对应的第一已分配专属地址网段的步骤之前,还包括:The address management method according to claim 1, wherein after the step of determining the first target address segment group according to the pre-configured load balancing policy, and after the determining whether there is a first target address segment group Before the step of accessing the first allocated dedicated address network segment corresponding to the repeater identifier, the method further includes: 根据所述用户接入协议报文进行用户认证;Perform user authentication according to the user access protocol message; 当用户认证通过时,则执行所述判断所述第一目标地址段组中是否存在所述接入转发器标识所对应的第一已分配专属地址网段的步骤。When the user is authenticated, the step of determining whether there is a first allocated dedicated address network segment corresponding to the access forwarder identifier in the first target address segment group is performed. 根据权利要求1所述的地址管理方法,其中,还包括:The address management method according to claim 1, further comprising: 接收地址回收请求,所述地址回收请求包括:待回收地址;Receiving an address reclaiming request, where the address reclaiming request includes: an address to be reclaimed; 确定所述待回收地址所归属的第二目标地址段组;Determining the second target address segment group to which the address to be reclaimed belongs; 在所述第二目标地址段组中将所述待回收地址回收。Reclaim the address to be reclaimed in the second target address segment group. 根据权利要求8所述的地址管理方法,其中,在所述第二目标地址 段组中将所述待回收地址回收的步骤之后,还包括:The address management method according to claim 8, wherein after the step of reclaiming the address to be reclaimed in the second target address segment group, the method further comprises: 判断所述待回收地址所在的第二已分配专属地址网段中是否全部为空闲地址;Judging whether all of the second allocated dedicated address network segment where the address to be reclaimed is located are idle addresses; 当判断出所述第二已分配专属地址网段中全部为空闲地址时,则在所述第二目标地址段组中将所述第二已分配专属地址网段回收。When it is determined that all the second allocated dedicated address network segments are idle addresses, the second allocated dedicated address network segment is reclaimed from the second target address segment group. 根据权利要求9所述的地址管理方法,其中,在所述第二目标地址段组中回收所述第二已分配专属地址网段的步骤之后,还包括:The address management method according to claim 9, wherein after the step of reclaiming the second allocated dedicated address network segment in the second target address segment group, the method further comprises: 判断已回收的所述第二已分配专属地址网段所在第二地址段中是否全部为空闲地址;Judging whether all of the second address segment where the reclaimed second allocated dedicated address network segment is located are idle addresses; 当判断出所述第二地址段中全部为空闲地址时,则在所述第二目标地址段组中释放所述第二地址段。When it is determined that all the addresses in the second address segment are idle addresses, the second address segment is released in the second target address segment group. 一种服务器,包括:A server that includes: 一个或多个处理器;One or more processors; 存储装置,用于存储一个或多个程序;Storage device for storing one or more programs; 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-10中任一所述的地址管理方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the address management method according to any one of claims 1-10. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-10中任一所述的地址管理方法中的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the steps in the address management method according to any one of claims 1-10.
PCT/CN2020/133419 2019-12-12 2020-12-02 Address management method, server and computer-readable storage medium Ceased WO2021115183A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911271217.5A CN112995349B (en) 2019-12-12 2019-12-12 Address management method, server, and computer-readable storage medium
CN201911271217.5 2019-12-12

Publications (1)

Publication Number Publication Date
WO2021115183A1 true WO2021115183A1 (en) 2021-06-17

Family

ID=76329518

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/133419 Ceased WO2021115183A1 (en) 2019-12-12 2020-12-02 Address management method, server and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN112995349B (en)
WO (1) WO2021115183A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150169A (en) * 2022-06-30 2022-10-04 北京天融信网络安全技术有限公司 Method, device, system and medium for strategy convergence
CN115499414A (en) * 2022-08-15 2022-12-20 新华三技术有限公司 Address allocation method and device
CN115766661A (en) * 2022-11-10 2023-03-07 浪潮通信信息系统有限公司 IPV6 address data management method and system based on resource capability center

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116896543B (en) * 2023-09-11 2024-05-24 中移(苏州)软件技术有限公司 Method, device, electronic device and storage medium for allocating IP addresses

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333027A (en) * 2011-06-17 2012-01-25 杭州华三通信技术有限公司 Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
CN102447638A (en) * 2012-01-12 2012-05-09 中兴通讯股份有限公司 Load balancing method and forwarding apparatus
CN102833161A (en) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 Method and device for sharing tunnel load
US20170295060A1 (en) * 2009-03-30 2017-10-12 Amazon Technologies, Inc. Providing extendible network capabilities for managed computer networks
CN108959127A (en) * 2018-05-31 2018-12-07 华为技术有限公司 Address conversion method, apparatus and system
CN109525684A (en) * 2018-12-11 2019-03-26 杭州数梦工场科技有限公司 Message forwarding method and device

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7593346B2 (en) * 2003-07-31 2009-09-22 Cisco Technology, Inc. Distributing and balancing traffic flow in a virtual gateway
CN102025528B (en) * 2009-09-23 2013-12-18 中兴通讯股份有限公司 Address management method, device and system
WO2012171169A1 (en) * 2011-06-13 2012-12-20 华为技术有限公司 Communications method and load balancer
CN102882699B (en) * 2011-07-14 2015-07-29 华为技术有限公司 The distribution method of fringe node and device and fringe node controller
CN102647486B (en) * 2012-04-28 2015-11-25 华为技术有限公司 Address allocation method, device and system
CN103873497B (en) * 2012-12-11 2017-08-15 中国电信股份有限公司 Methods, devices and systems for schedule information
CN105306612A (en) * 2014-07-15 2016-02-03 中兴通讯股份有限公司 Method for acquiring identifier of terminal in network and management network element
CN104320353B (en) * 2014-11-19 2018-10-12 中国联合网络通信集团有限公司 A kind of method and apparatus of station address management
CN105991460B (en) * 2015-03-02 2019-09-06 杭州迪普科技股份有限公司 Flow load retransmission method, master control borad, business board and the network equipment
JP6378121B2 (en) * 2015-03-20 2018-08-22 株式会社Nttドコモ Gateway apparatus and communication method
CN106331192B (en) * 2015-06-23 2020-12-04 中兴通讯股份有限公司 Network protocol IP address allocation method and device
CN107070983A (en) * 2017-01-23 2017-08-18 天地融科技股份有限公司 A kind of load-balancing method, equipment and system forwarded based on address
CN107294845A (en) * 2017-07-31 2017-10-24 杭州迪普科技股份有限公司 VRRP load-balancing methods and device
CN109495593B (en) * 2017-09-11 2022-03-25 中兴通讯股份有限公司 Address allocation method and system
CN109672758A (en) * 2017-10-13 2019-04-23 中兴通讯股份有限公司 Address distribution method, access server and computer storage medium
CN108063837A (en) * 2017-12-25 2018-05-22 锐捷网络股份有限公司 Dynamic IP addressing distribution method and device
CN110445884A (en) * 2018-05-04 2019-11-12 中国移动通信集团浙江有限公司 A kind of container IP address management method and device
CN108449282B (en) * 2018-05-29 2021-12-21 华为技术有限公司 A load balancing method and device thereof
CN109413224B (en) * 2018-11-12 2022-03-01 杭州数梦工场科技有限公司 Message forwarding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170295060A1 (en) * 2009-03-30 2017-10-12 Amazon Technologies, Inc. Providing extendible network capabilities for managed computer networks
CN102333027A (en) * 2011-06-17 2012-01-25 杭州华三通信技术有限公司 Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
CN102447638A (en) * 2012-01-12 2012-05-09 中兴通讯股份有限公司 Load balancing method and forwarding apparatus
CN102833161A (en) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 Method and device for sharing tunnel load
CN108959127A (en) * 2018-05-31 2018-12-07 华为技术有限公司 Address conversion method, apparatus and system
CN109525684A (en) * 2018-12-11 2019-03-26 杭州数梦工场科技有限公司 Message forwarding method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150169A (en) * 2022-06-30 2022-10-04 北京天融信网络安全技术有限公司 Method, device, system and medium for strategy convergence
CN115150169B (en) * 2022-06-30 2024-02-09 北京天融信网络安全技术有限公司 Policy convergence method, device, system and medium
CN115499414A (en) * 2022-08-15 2022-12-20 新华三技术有限公司 Address allocation method and device
CN115766661A (en) * 2022-11-10 2023-03-07 浪潮通信信息系统有限公司 IPV6 address data management method and system based on resource capability center

Also Published As

Publication number Publication date
CN112995349B (en) 2023-07-04
CN112995349A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
US11963242B2 (en) Communication method and apparatus
US10785655B2 (en) Telecommunication network utilizing network slice information
WO2021115183A1 (en) Address management method, server and computer-readable storage medium
CN107153565B (en) Method for configuring resources and network device thereof
CN104685507B (en) Provides a virtual security appliance architecture to a virtual cloud infrastructure
EP3471345B1 (en) Sla-based resource allocation method and nfvo
US11646973B2 (en) Method for managing hardware resource, method for querying location of hardware resource, and related apparatus
US20190261186A1 (en) Network Slice Management Method, Management Unit, and System
EP3664372A1 (en) Network management method and related device
CN108924268A (en) A kind of container cloud service system and pod creation method, device
US20190281503A1 (en) Management Method, Management Unit, and System
CN108933844B (en) Method and device for providing DHCP service
CN108390956A (en) A kind of method and system for virtual machine configuration internet protocol address
CN110839007B (en) Cloud network security processing method and device and computer storage medium
CN103684861A (en) Method and device for processing network configuration and communication system
CN112152899B (en) Data processing method and device based on network slice
CN107534678B (en) Method, device and system for establishing connection between VNFM and VIM
CN108551477A (en) Data transmission channel establishment system, network storage device, server and method
CN103516628B (en) A kind of realize network strategy update method, Apparatus and system
CN108259345B (en) Port generation method and device
CN114124737B (en) Method and device for controlling user equipment to access network
WO2022111031A1 (en) Address allocation method, upf entity, smf entity and storage medium
CN109379267B (en) A method and device for physical machine to join virtual local area network
CN111988446A (en) Message processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20898475

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20898475

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/02/2023)