[go: up one dir, main page]

CN103731816B - A kind of user device address management method - Google Patents

A kind of user device address management method Download PDF

Info

Publication number
CN103731816B
CN103731816B CN201210392617.3A CN201210392617A CN103731816B CN 103731816 B CN103731816 B CN 103731816B CN 201210392617 A CN201210392617 A CN 201210392617A CN 103731816 B CN103731816 B CN 103731816B
Authority
CN
China
Prior art keywords
address
user equipment
core network
allocation
cache record
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.)
Expired - Fee Related
Application number
CN201210392617.3A
Other languages
Chinese (zh)
Other versions
CN103731816A (en
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.)
Potevio Institute of Technology Co Ltd
Original Assignee
Potevio Institute of Technology Co Ltd
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 Potevio Institute of Technology Co Ltd filed Critical Potevio Institute of Technology Co Ltd
Priority to CN201210392617.3A priority Critical patent/CN103731816B/en
Publication of CN103731816A publication Critical patent/CN103731816A/en
Application granted granted Critical
Publication of CN103731816B publication Critical patent/CN103731816B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种用户设备地址管理方法,对于每一个成功进行附着流程的用户设备,核心网内部对其地址分配信息进行缓存;第一用户设备发起附着请求,核心网根据第一用户设备的签约信息中是否包含地址属性来确定第一用户设备的地址分配方式,如果包含地址属性则根据第一用户设备的签约信息中的地址属性对第一用户设备进行静态地址分配,如果不包含地址属性则对第一用户设备进行动态地址分配;所述动态地址分配过程中,核心网发现已缓存第一用户设备对应的地址分配信息,则将该地址分配信息中的IP地址分配给第一用户设备。本申请可以在不增加信令开销,不依赖DHCP技术的前提下,灵活地为UE进行动态地址和静态地址的分配。

The present application discloses a user equipment address management method. For each user equipment that successfully performs the attachment process, the core network internally caches its address allocation information; the first user equipment initiates an attach request, and the core network Whether the address attribute is included in the subscription information determines the address allocation method of the first user equipment. If the address attribute is included, the first user equipment is assigned a static address according to the address attribute in the subscription information of the first user equipment. If the address attribute is not included Then perform dynamic address allocation to the first user equipment; during the dynamic address allocation process, the core network finds that the address allocation information corresponding to the first user equipment has been cached, and assigns the IP address in the address allocation information to the first user equipment . The present application can flexibly allocate dynamic addresses and static addresses for UEs without increasing signaling overhead and without relying on DHCP technology.

Description

一种用户设备地址管理方法A user equipment address management method

技术领域 technical field

本申请涉及移动通信技术领域,尤其涉及一种用户设备地址管理方法。The present application relates to the technical field of mobile communication, and in particular to a user equipment address management method.

背景技术 Background technique

LTE无线通信系统网络架构主要包括用户设备(UE,User Equipment)、接入网(E-UTRAN,Evolved Universal Terrestrial Radio Access Network)、核心网(EPC,Evolved Packet Core)。UE拥有唯一的国际移动用户标识(IMSI,International MobileSubscriber Identity)。E-UTRAN由基站(eNodeB,Evolved NodeB)组成,eNodeB通过空中接口和UE进行信令和用户面数据的交互,功能包括接收来自UE的信令和上行数据,以及发送信令响应和下行数据到UE。EPC对外呈现为三个接口,S1-MME接口是EPC与eNodeB之间的信令接口,S1-U接口是EPC与eNodeB之间的用户面接口,SGI接口是EPC与分组数据网(PDN,Packet Data Network)之间的接口。The network architecture of the LTE wireless communication system mainly includes user equipment (UE, User Equipment), access network (E-UTRAN, Evolved Universal Terrestrial Radio Access Network), and core network (EPC, Evolved Packet Core). The UE has a unique International Mobile Subscriber Identity (IMSI, International MobileSubscriber Identity). E-UTRAN is composed of base stations (eNodeB, Evolved NodeB). The eNodeB interacts with the UE for signaling and user plane data through the air interface. The functions include receiving signaling and uplink data from the UE, and sending signaling responses and downlink data to UE. The EPC is presented as three interfaces externally, the S1-MME interface is the signaling interface between the EPC and eNodeB, the S1-U interface is the user plane interface between the EPC and the eNodeB, and the SGI interface is the Data Network).

LTE无线通信服务一般由UE发起,UE开机后首先要发起附着流程向EPC注册来请求服务,附着流程中EPC负责为UE建立用户面承载,并给UE分配一个IP地址,PDN网络将用这个IP地址标识相应的UE进行数据通信。PDN网络与UE之间的数据通信分为上行和下行,UE发往PDN网络的上行数据通过eNodeB转发至EPC S1-U接口,EPC解析目标地址从SGI接口将该上行数据交付给指定PDN服务器,PDN网络发往UE的下行数据进入EPC SGI接口,EPC解析目标地址匹配在线UE及对应承载并从S1-U接口将该下行数据转发至eNodeB,再由eNodeB通过空中接口交付给指定UE。LTE wireless communication services are generally initiated by the UE. After the UE is turned on, it first needs to initiate an attach process to register with the EPC to request services. During the attach process, the EPC is responsible for establishing a user plane bearer for the UE and assigning an IP address to the UE. The PDN network will use this IP The address identifies the corresponding UE for data communication. The data communication between the PDN network and the UE is divided into uplink and downlink. The uplink data sent by the UE to the PDN network is forwarded to the EPC S1-U interface through the eNodeB. The EPC resolves the target address and delivers the uplink data to the designated PDN server through the SGI interface. The downlink data sent by the PDN network to the UE enters the EPC SGI interface. The EPC parses the target address to match the online UE and the corresponding bearer and forwards the downlink data to the eNodeB from the S1-U interface, and then the eNodeB delivers it to the designated UE through the air interface.

PDN网络与指定UE进行下行数据业务时,首先要得知该UE的IP地址,而UE的IP地址是附着流程中由EPC分配的,同一IMSI的UE每一次附着成功,由EPC分配的地址都可能发生改变,这给PDN网络针对指定UE的下行数据业务带来很大不便,因此需要保证在尽可能长的一段时期内,同一UE发起附着流程EPC为其分配相同的IP地址。When the PDN network performs downlink data services with a designated UE, it must first know the IP address of the UE, and the IP address of the UE is allocated by the EPC during the attach process. Every time a UE with the same IMSI attaches successfully, the address allocated by the EPC Changes may occur, which will bring great inconvenience to the PDN network for the downlink data service of the specified UE. Therefore, it is necessary to ensure that the same UE initiates the attach procedure EPC to allocate the same IP address for as long as possible.

现有技术中的UE地址管理方案主要包括:UE address management solutions in the prior art mainly include:

现有技术一:由于附着流程总是由UE发起的,UE可以在附着请求(AttachRequest)消息中携带上次附着时由EPC分配的地址信元,EPC进行消息解析将该地址分配给UE。如果UE是首次附着,附着请求消息可以携带一个信元用于指示希望由EPC分配的地址;或者不携带该信元,此时EPC将选择一个可用地址分配给UE。这样UE多次附着可以在较长时期内保证由EPC为其分配相同的地址。根据LTE标准给出的附着请求消息结构的定义,UE上次附着所分配的地址可以包含在PDN连接请求(PDN Connectivity Request)消息的可选协议配置选项(PCO,Protocol ConfigurationOptions)中,作为附着请求消息的一部分一同发送给EPC。Existing technology 1: Since the attach process is always initiated by the UE, the UE can carry the address cell allocated by the EPC during the last attach in the Attach Request (AttachRequest) message, and the EPC analyzes the message and allocates the address to the UE. If the UE is attaching for the first time, the attach request message may carry an information element to indicate the address to be allocated by the EPC; or not carry the information element, at this time the EPC will select an available address to allocate to the UE. In this way, multiple attachments of the UE can ensure that the EPC allocates the same address to it for a long period of time. According to the definition of the attachment request message structure given by the LTE standard, the address allocated by the UE for the last attachment can be included in the optional protocol configuration option (PCO, Protocol Configuration Options) of the PDN Connectivity Request (PDN Connectivity Request) message as an attachment request A part of the message is sent to the EPC together.

现有技术二:基于EPC实现,EPC在收到UE的附着请求消息后,会在为其分配地址之前先根据UE的IMSI来获取该UE的签约信息,因此可以为每一个IMSI规划一个一一对应的固定地址保存在UE的签约信息中,这样EPC可以按地址规划为UE分配指定的固定地址,只要UE的签约信息保持不变,其发起附着流程由EPC分配的地址也会保持不变。如果出现需要为某个IMSI的UE规划另外的地址的情况,只需由操作维护人员对UE签约信息中固定地址值进行相应更新即可。Existing technology 2: based on EPC implementation, after receiving the UE's attach request message, the EPC will first obtain the UE's subscription information according to the UE's IMSI before allocating an address for it, so it is possible to plan one for each IMSI— The corresponding fixed address is stored in the subscription information of the UE, so that the EPC can assign a specified fixed address to the UE according to the address plan. As long as the subscription information of the UE remains unchanged, the address allocated by the EPC when it initiates the attach process will also remain unchanged. If another address needs to be planned for the UE of a certain IMSI, the operation and maintenance personnel only need to update the fixed address value in the subscription information of the UE accordingly.

现有技术三:引入动态主机配置协议(DHCP,Dynamic Host Configuration Protocol)技术,即在无线通信网络中增加DHCP服务器的角色,由DHCP服务器负责为每个UE分配静态地址或动态地址。静态地址可以让特定的UE每次附着都能分配到确定不变的地址,同时DHCP中的租约(lease)特性,可以让当前使用某个动态地址的UE在租约期间多次附着都能分配到相同地址,且在租约到期前可优先续约(renew)以继续使用该地址。Existing technology 3: Introduce Dynamic Host Configuration Protocol (DHCP, Dynamic Host Configuration Protocol) technology, that is, add the role of DHCP server in the wireless communication network, and the DHCP server is responsible for assigning a static address or a dynamic address to each UE. The static address allows a specific UE to be assigned a fixed address every time it attaches. At the same time, the lease feature in DHCP allows a UE currently using a dynamic address to be assigned to it for multiple attachments during the lease period. The same address, and the lease can be renewed (renew) to continue using the address before the lease expires.

以上现有技术存在如下缺陷:There is following defective in above prior art:

现有技术一通过在附着请求消息中携带上次地址的可选信元的解决方案需要对UE进行额外的配置,也增加了UE与eNodeB之间的空口信令开销。现有技术二通过UE签约信息规划和IMSI一一对应实现地址分配,增加了操作维护人员的大量的UE签约信息管理负担,同时也失去了地址分配的灵活性。现有技术三引入的DHCP做为一种成熟的地址分配技术,可以较好的减轻操作维护人员管理签约信息的负担,同时具备较灵活的静态地址和动态地址分配方法,且UE不需要增加携带地址信元的开销,但是增加了DHCP服务器的部署和维护成本,且由于DHCP服务器对于UE是不可见的,EPC就需要代表UE实现DHCP客户角色与DHCP服务器进行交互,增加了EPC设备的实现复杂度。还有就是当操作维护人员试图将已动态分配某个UE的地址规划为另一UE的静态地址时会因地址冲突而配置失败。而通常为UE规划静态地址是有行业特定需求的,其通信业务也是优先于其他未规划静态地址的UE的,DHCP不能很好的解决这种地址冲突问题。Existing technology - The solution of carrying the optional information element of the last address in the attach request message requires additional configuration for the UE, and also increases the air interface signaling overhead between the UE and the eNodeB. In prior art 2, address allocation is realized through one-to-one correspondence between UE subscription information planning and IMSI, which increases the burden of management of a large number of UE subscription information on operation and maintenance personnel, and also loses the flexibility of address allocation. The DHCP introduced in prior art 3 is a mature address allocation technology, which can better reduce the burden on operation and maintenance personnel to manage subscription information, and has more flexible static address and dynamic address allocation methods, and the UE does not need to increase the portability The overhead of the address cell increases the deployment and maintenance costs of the DHCP server, and since the DHCP server is invisible to the UE, the EPC needs to represent the UE to implement the role of the DHCP client to interact with the DHCP server, which increases the complexity of the implementation of the EPC device Spend. In addition, when the operation and maintenance personnel try to plan the dynamically allocated address of a certain UE as the static address of another UE, the configuration will fail due to address conflict. Usually, there are industry-specific requirements for planning a static address for a UE, and its communication service is also prioritized over other UEs that do not have a static address planned. DHCP cannot well solve this address conflict problem.

发明内容 Contents of the invention

本申请提供了一种用户设备地址管理方法,可以在不增加信令开销,不依赖DHCP技术的前提下,灵活地为UE进行动态地址和静态地址的分配,同时大大降低操作维护人员管理大量UE签约信息的负担。This application provides a user equipment address management method, which can flexibly allocate dynamic addresses and static addresses for UEs without increasing signaling overhead and relying on DHCP technology, and at the same time greatly reduces the number of operations and maintenance personnel managing a large number of UEs. The burden of contracting information.

本申请实施例提供的一种用户设备地址管理方法,对于每一个成功进行附着流程的用户设备,核心网内部对其地址分配信息进行缓存;该方法包括:In a method for managing user equipment addresses provided by an embodiment of the present application, for each user equipment that successfully performs the attach process, the core network internally caches its address allocation information; the method includes:

A、第一用户设备发起附着请求,核心网根据第一用户设备的签约信息中是否包含地址属性来确定第一用户设备的地址分配方式,如果包含地址属性则执行步骤B,如果不包含地址属性则执行步骤C;A. The first user equipment initiates an attach request, and the core network determines the address allocation method of the first user equipment according to whether the subscription information of the first user equipment contains address attributes. If the address attribute is included, step B is performed; if the address attribute is not included Then execute step C;

B、核心网根据第一用户设备的签约信息中的地址属性对第一用户设备进行静态地址分配,并结束本流程;B. The core network assigns a static address to the first user equipment according to the address attribute in the subscription information of the first user equipment, and ends this process;

C、核心网对第一用户设备进行动态地址分配,并结束本流程;所述动态地址分配过程中,核心网发现已缓存第一用户设备对应的地址分配信息,则将缓存的第一用户设备对应的地址分配信息中的IP地址分配给第一用户设备。C. The core network performs dynamic address allocation to the first user equipment, and ends this process; during the dynamic address allocation process, if the core network finds that the address allocation information corresponding to the first user equipment has been cached, then the cached first user equipment The IP address in the corresponding address allocation information is allocated to the first user equipment.

较佳地,步骤B包括:Preferably, step B includes:

B1、核心网判断是否存在在线的第二用户设备的地址与第一用户设备的签约信息中地址属性值相同,若是执行步骤B2,否则执行步骤B5;B1, the core network judges whether there is an online second user equipment whose address is the same as the address attribute value in the subscription information of the first user equipment, if so, execute step B2, otherwise execute step B5;

B2、核心网判断所述第二用户设备的地址是静态获取还是动态获取,若是静态获取,执行步骤B3,否则执行步骤B4;B2. The core network judges whether the address of the second user equipment is acquired statically or dynamically. If it is acquired statically, execute step B3, otherwise execute step B4;

B3、核心网拒绝第一用户设备的附着请求,并结束本流程;B3. The core network rejects the attachment request of the first user equipment, and ends this process;

B4、核心网将第一用户设备的签约信息中地址属性值对应的地址分配给第一用户设备使用,通知第二用户设备通过动态方式重新获取新的IP地址,并结束本流程;B4. The core network allocates the address corresponding to the address attribute value in the subscription information of the first user equipment to the first user equipment for use, notifies the second user equipment to reacquire a new IP address in a dynamic manner, and ends this process;

B5、核心网将第一用户设备的签约信息中地址属性值对应的地址分配给第一用户设备使用,并结束本流程。B5. The core network allocates the address corresponding to the address attribute value in the subscription information of the first user equipment to the first user equipment for use, and ends this process.

较佳地,步骤C包括:Preferably, step C includes:

C1、核心网判断是否已缓存第一用户设备对应的地址分配信息且所述地址分配信息中的IP地址未被其他在线用户设备使用,若是,执行步骤C2,否则执行步骤C3;C1. The core network judges whether the address allocation information corresponding to the first user equipment has been cached and the IP address in the address allocation information is not used by other online user equipment, if so, execute step C2, otherwise execute step C3;

C2、核心网将所述IP地址分配给第一用户设备,并结束本流程;C2. The core network allocates the IP address to the first user equipment, and ends this process;

C3、核心网按特定规则选择新的可用的IP地址分配给第一用户设备,并结束本流程。C3. The core network selects a new available IP address according to a specific rule and assigns it to the first user equipment, and ends this process.

较佳地,地址分配信息的缓存记录采用用户设备的国际移动用户识别码IMSI作为键值的哈希表存储方式。Preferably, the cache record of the address allocation information adopts the IMSI of the user equipment as a hash table storage method as a key value.

较佳地,缓存的地址分配信息总数与通信系统的最大容量相等。Preferably, the total number of buffered address allocation information is equal to the maximum capacity of the communication system.

较佳地,核心网将每一可用地址标记为三种分配情况,分别为未使用、已使用和回收,已使用状态的地址是不可分配地址,未使用状态和回收状态的地址是可分配地址;Preferably, the core network marks each available address as three allocation situations, namely unused, used and recycled, the addresses in the used state are non-allocatable addresses, and the addresses in the unused state and recycled state are allocatable addresses ;

步骤B1包括:核心网判断是否存在在线的第二用户设备的地址与第一用户设备的签约信息中地址属性值相同,若是执行步骤B2,否则增加或更新第一用户设备相应的缓存记录并执行步骤B5;Step B1 includes: the core network judges whether there is an online second user equipment whose address is the same as the address attribute value in the subscription information of the first user equipment, if so, execute step B2, otherwise add or update the corresponding cache record of the first user equipment and execute Step B5;

步骤B2包括:核心网判断所述第二用户设备的地址是静态获取还是动态获取,若是静态获取,则删除第一用户设备可能存在的缓存记录并执行步骤B3,否则增加或者更新第一用户设备相应的缓存记录并执行步骤B4;Step B2 includes: the core network judges whether the address of the second user equipment is acquired statically or dynamically, and if it is statically acquired, then delete the cache record that may exist in the first user equipment and perform step B3, otherwise add or update the first user equipment Corresponding cache record and execute step B4;

步骤C1包括:核心网判断是否已缓存第一用户设备对应的地址分配信息,如存在且该地址分配信息对应的地址为可分配,则保持缓存记录不变并执行C2;如存在但所述地址不可分配,则删除缓存记录中的地址值并执行C3;如果未找到对应的缓存记录,则新增一条无地址的缓存记录,并执行C3。Step C1 includes: the core network judges whether the address allocation information corresponding to the first user equipment has been cached, if it exists and the address corresponding to the address allocation information is allocable, then keep the cache record unchanged and execute C2; if it exists but the address If it cannot be allocated, delete the address value in the cache record and execute C3; if no corresponding cache record is found, add a cache record without address and execute C3.

较佳地,该方法进一步包括:第一用户设备从在线状态变为离线状态,核心网在删除会话过程中将第一用户设备的地址状态从已使用变为回收,并将地址回收的时间记录到缓存记录中,使缓存记录中的离线用户设备以地址回收时间有序组成一个离线缓存记录列表。Preferably, the method further includes: the first user equipment changes from the online state to the offline state, the core network changes the address status of the first user equipment from used to reclaimed during the process of deleting the session, and records the time when the address is reclaimed into the cache record, so that the offline user equipment in the cache record forms an offline cache record list in order according to the address recovery time.

较佳地,所述核心网对第一用户设备进行动态地址分配或静态地址分配包括:Preferably, the core network performing dynamic address allocation or static address allocation to the first user equipment includes:

核心网对待分配的地址的原状态进行记录;The core network records the original state of the address to be allocated;

核心网对第一用户设备进行动态地址分配或静态地址分配,并将所分配的地址状态变更为已使用;The core network allocates a dynamic address or a static address to the first user equipment, and changes the status of the allocated address to used;

如果整个附着流程成功完成就清除原状态记录,一旦创建会话过程之后出现附着失败,将所述地址恢复为原状态。If the entire attaching process is successfully completed, the original state record is cleared, and once an attaching failure occurs after the session is created, the address is restored to the original state.

较佳地,步骤C3包括:Preferably, step C3 includes:

C3-1、核心网检查当前配置的可用地址的分配情况,如存在未使用地址转步骤C3-2,否则转步骤C3-3;C3-1. The core network checks the allocation of currently configured available addresses. If there is an unused address, go to step C3-2, otherwise go to step C3-3;

C3-2、核心网为第一用户设备分配一个未使用地址,结束本流程;C3-2. The core network assigns an unused address to the first user equipment, and ends this process;

C3-3、核心网检查是否存在可分配地址,如存在则转步骤C3-4,否则地址分配失败结束本流程;C3-3. The core network checks whether there is an address that can be allocated. If there is, go to step C3-4. Otherwise, the address allocation fails to end this process;

C3-4、核心网根据时间有序的离线缓存记录列表为第一用户设备分配最早回收的地址,结束本流程。C3-4. The core network assigns the earliest reclaimed address to the first user equipment according to the time-ordered offline cache record list, and ends this process.

较佳地,步骤C3-2和步骤C3-4进一步包括:核心网更新缓存记录,增加为第一用户设备分配的地址;以及,Preferably, step C3-2 and step C3-4 further include: the core network updates the cache record, and increases the address allocated for the first user equipment; and,

步骤C3-3所述地址分配失败之后进一步包括:删除第一用户设备相应的缓存记录。After the address allocation fails in step C3-3, it further includes: deleting the corresponding cache record of the first user equipment.

从以上技术方案可以看出,通过发起附着请求的用户设备的签约信息中是否包含地址属性决定对用户设备进行静态地址分配还是动态地址分配,该方案无需DHCP服务器参与即可高效地完成动态地址和静态地址的分配任务。动态分配方式下,UE无需额外配置,也不必对上次使用地址进行记录即可保证在地址生存期内同一IMSI的UE多次附着由EPC分配同一地址,对于规划合理的通信系统,这个生存期是永久性的。如规划的可用地址数较少,则能最大程度上保护近期处于活动状态的UE所使用地址的永久性生存期。同时对于动态地址与静态地址冲突问题也提供了合理的解决办法,以满足行业内规划静态地址优先的通信业务要求。From the above technical solution, it can be seen that whether the subscription information of the user equipment that initiates the attach request contains address attributes determines whether to assign a static address or a dynamic address to the user equipment. This solution can efficiently complete dynamic address and address allocation without the participation of a DHCP server Assignment of static addresses. In the dynamic allocation mode, the UE does not need additional configuration and does not need to record the last used address to ensure that the UE with the same IMSI attaches multiple times within the address lifetime and the EPC allocates the same address. For a communication system with a reasonable plan, this lifetime is permanent. If the number of planned available addresses is small, the permanent lifetime of addresses used by UEs that are active in the near future can be protected to the greatest extent. At the same time, it also provides a reasonable solution to the conflict between dynamic addresses and static addresses, so as to meet the communication service requirements of planning static addresses in the industry.

附图说明 Description of drawings

图1为本申请提供的用户设备地址管理方法流程示意图;FIG. 1 is a schematic flow chart of a user equipment address management method provided by the present application;

图2为可用地址的三种状态之间的变化关系示意图;Fig. 2 is a schematic diagram of the change relationship between the three states of available addresses;

图3为更新位置过程管理地址分配的处理流程示意图;Fig. 3 is a schematic diagram of the processing flow of address allocation in the process of updating location management;

图4为动态分配规则示意图;Fig. 4 is a schematic diagram of dynamic allocation rules;

图5为创建会话过程管理地址分配的处理流程示意图。FIG. 5 is a schematic diagram of a processing flow for managing address allocation during session creation.

具体实施方式 detailed description

本申请提供一种无需DHCP服务器即可实现用户设备地址管理的方法,对于每一个成功进行附着流程的用户设备,核心网内部对其地址分配信息进行缓存;该方法包括:This application provides a method for implementing user equipment address management without a DHCP server. For each user equipment that successfully performs the attach process, the core network internally caches its address allocation information; the method includes:

A、第一用户设备发起附着请求,核心网根据第一用户设备的签约信息中是否包含地址属性来确定第一用户设备的地址分配方式,如果包含地址属性则执行步骤B,如果不包含地址属性则执行步骤C;A. The first user equipment initiates an attach request, and the core network determines the address allocation method of the first user equipment according to whether the subscription information of the first user equipment contains address attributes. If the address attribute is included, step B is performed; if the address attribute is not included Then execute step C;

B、核心网根据第一用户设备的签约信息中的地址属性对第一用户设备进行静态地址分配,并结束本流程;B. The core network assigns a static address to the first user equipment according to the address attribute in the subscription information of the first user equipment, and ends this process;

C、核心网对第一用户设备进行动态地址分配,并结束本流程;所述动态地址分配过程中,核心网发现已缓存第一用户设备对应的地址分配信息,则将缓存的第一用户设备对应的地址分配信息中的IP地址分配给第一用户设备。C. The core network performs dynamic address allocation to the first user equipment, and ends this process; during the dynamic address allocation process, if the core network finds that the address allocation information corresponding to the first user equipment has been cached, then the cached first user equipment The IP address in the corresponding address allocation information is allocated to the first user equipment.

其中,第一用户设备的签约信息中包含地址属性可能与其他在线的用户设备的地址发生冲突,可以采用一定的地址冲突解决机制来避免这一问题。采用静态分配高优先级原则,进一步判断冲突的其他用户设备的地址是通过静态方式还是动态方式取得的,如果是前者,则拒绝第一用户设备的附着请求;如果是后者,则释放冲突的在线用户设备,将该地址分配给第一用户设备,被释放的用户设备重新发起附着可以获取到新的动态地址。Wherein, the address attribute contained in the subscription information of the first user equipment may conflict with addresses of other online user equipments, and a certain address conflict resolution mechanism may be adopted to avoid this problem. Adopt the principle of static allocation of high priority to further judge whether the addresses of other conflicting user equipments are obtained statically or dynamically. If it is the former, reject the attachment request of the first user equipment; if it is the latter, release the conflicting The online user equipment assigns the address to the first user equipment, and the released user equipment can obtain a new dynamic address by re-initiating attachment.

为使本申请技术方案的技术原理、特点以及技术效果更加清楚,以下结合具体实施例对本申请技术方案进行详细阐述。In order to make the technical principles, features and technical effects of the technical solution of the present application clearer, the technical solution of the present application will be described in detail below in conjunction with specific embodiments.

本申请实施例提供的用户设备地址管理方法流程如图1所示,包括:The process flow of the user equipment address management method provided in the embodiment of the present application is shown in Figure 1, including:

步骤101:第一用户设备发起附着请求,核心网根据第一用户设备的签约信息中是否包含地址属性来确定第一用户设备的地址分配方式,如果包含地址属性则执行步骤102进行静态地址分配,反之则执行步骤107进行动态地址分配。Step 101: The first user equipment initiates an attach request, and the core network determines the address allocation mode of the first user equipment according to whether the subscription information of the first user equipment includes address attributes, and if the address attributes are included, perform step 102 for static address allocation, Otherwise, step 107 is executed to perform dynamic address allocation.

步骤102:核心网判断是否存在在线的第二用户设备的地址与第一用户设备的签约信息中地址属性值相同,若是,执行步骤103,否则执行步骤106。Step 102: The core network judges whether there is an online second user equipment whose address is the same as the address attribute value in the subscription information of the first user equipment. If yes, execute step 103; otherwise, execute step 106.

步骤103:核心网判断第二用户设备的地址是静态获取还是动态获取,若是静态获取,执行步骤104,否则执行步骤105。Step 103: The core network judges whether the address of the second user equipment is acquired statically or dynamically. If it is acquired statically, execute step 104; otherwise, execute step 105.

步骤104:核心网拒绝第一用户设备的附着请求,并结束本流程。Step 104: The core network rejects the attach request of the first user equipment, and ends this procedure.

步骤105:核心网将第一用户设备的签约信息中地址属性值对应的地址分配给第一用户设备使用,并通知第二用户设备通过动态方式重新获取新的IP地址,以保证所有用户设备业务的正常进行。Step 105: The core network allocates the address corresponding to the address attribute value in the subscription information of the first user equipment to the first user equipment, and notifies the second user equipment to reacquire a new IP address in a dynamic manner, so as to ensure all user equipment services of normal progress.

步骤106:核心网将第一用户设备的签约信息中地址属性值对应的地址分配给第一用户设备使用。Step 106: The core network allocates the address corresponding to the address attribute value in the subscription information of the first user equipment to the first user equipment for use.

步骤107:核心网判断是否已缓存第一用户设备对应的地址分配信息,若是,执行步骤108,否则执行步骤109。Step 107: The core network judges whether the address assignment information corresponding to the first user equipment has been cached, if yes, execute step 108, otherwise execute step 109.

步骤108:核心网将所述地址分配信息中的IP地址分配给第一用户设备。Step 108: The core network allocates the IP address in the address allocation information to the first user equipment.

步骤109:核心网按特定规则选择新的可用IP地址分配给第一用户设备。Step 109: The core network selects a new available IP address according to specific rules and assigns it to the first user equipment.

本申请技术方法中的动态地址分配规则中,对于每一个成功进行附着流程的用户设备,核心网内部对其地址分配信息进行缓存。缓存的地址分配信息总数与通信系统的最大容量相等。In the dynamic address allocation rule in the technical method of the present application, for each user equipment that successfully performs the attach process, the core network internally caches its address allocation information. The total number of buffered address allocation information is equal to the maximum capacity of the communication system.

较佳地,地址分配信息的缓存记录采用用户设备的国际移动用户识别码(IMSI,International Mobile Subscriber Identification Number)作为键值的哈希表存储方式,这样随着记录总数的增加,定位用户设备对应的缓存记录的查找效率不会降低。为了保证同一用户设备下次附着能分配到上次分配的动态地址,也就是缓存地址分配记录中的地址,就必须保证在该用户设备不在线较长的一段时期内,其上次使用地址不会分配给其他发起附着流程的用户设备。在核心网内部缓存记录的支持下,用户设备发起附着请求,核心网就会查找内部缓存中有无该用户设备的地址分配信息记录,如存在则分配缓存中记录的地址,满足了同一用户设备的多次附着可分配同一地址的需求。Preferably, the cache record of the address allocation information uses the International Mobile Subscriber Identification Number (IMSI, International Mobile Subscriber Identification Number) of the user equipment as a hash table storage method of the key value, so that as the total number of records increases, the user equipment corresponding to The lookup efficiency of cached records will not be reduced. In order to ensure that the same user equipment can be assigned to the last assigned dynamic address for the next attachment, that is, the address in the cache address allocation record, it must be ensured that the last used address of the user equipment is not It will be allocated to other user equipments that initiate the attach process. With the support of the internal cache records of the core network, when the user equipment initiates an attach request, the core network will check whether there is an address allocation information record for the user equipment in the internal cache, and if it exists, it will allocate the address recorded in the cache to meet the requirements of the same user equipment. Multiple attachments can be assigned the same address on demand.

核心网将每一可用地址标记为三种分配情况,分别为未使用(never,从未分配地址)、已使用(using,已分配地址)和回收(ever,用户设备离线回收的地址),已使用状态的地址是不可分配地址,未使用状态和回收状态的地址是可分配地址。可用地址的三种状态之间的变化如图2所示,操作维护人员为核心网配置的地址池内所有地址的初始状态均为未使用状态,当地址分配给成功附着的用户设备时,其状态会变为已使用,当用户设备去附着进行地址回收,地址的状态会从已使用变为回收。用户设备首次附着,在核心网内部不存在相应的缓存地址记录信息,核心网会选择状态为未使用的地址进行分配,不会分配其他用户设备离线回收状态的地址,确保了回收地址能继续分配给同一用户设备。通常情况下,规划合理的通信系统中可用地址数总是大于用户设备总数的,因此不会出现找不到未使用地址的情形。极少数情况下,如果配置的可用地址数少于用户设备总数,有可能出现用户设备首次附着时,核心网已找不到未使用的地址,但还有可分配的回收状态的地址的情况,在这种情况下,选择内部缓存记录中最早回收地址进行分配,保证不会出现有可分配地址但新的用户设备附着被拒绝的现象,且该场景下选择最早回收地址也一定程度上保证了近期处于活动状态但当前不在线的用户设备下次附着时仍可分配到上次地址。The core network marks each available address as three allocation situations, which are unused (never, address never allocated), used (using, allocated address) and recycling (ever, address recycled by user equipment offline), and used Addresses in the used state are non-allocatable addresses, and addresses in the unused state and reclaimed state are allocatable addresses. The changes among the three states of available addresses are shown in Figure 2. The initial state of all addresses in the address pool configured by the operation and maintenance personnel for the core network is unused. When the address is assigned to a successfully attached user equipment, its state It will become used. When the user equipment is deattached to perform address recycling, the status of the address will change from used to recycled. When the user equipment attaches for the first time, there is no corresponding cached address record information in the core network. The core network will select the unused address for allocation, and will not allocate the address of other user equipment in the offline recovery state, ensuring that the recovery address can continue to be allocated. to the same user device. Usually, the number of available addresses in a well-planned communication system is always greater than the total number of user equipment, so there will be no situation where unused addresses cannot be found. In rare cases, if the number of configured available addresses is less than the total number of user equipment, it may happen that when the user equipment attaches for the first time, the core network can no longer find unused addresses, but there are still reclaimed addresses that can be allocated. In this case, the earliest reclaimed address in the internal cache record is selected for allocation to ensure that there will be no phenomenon that there is an address that can be allocated but the new user equipment is rejected. In this scenario, selecting the earliest reclaimed address also guarantees to a certain extent Recently active user devices that are not currently online can still be assigned the last address the next time they attach.

本申请技术方案根据用户设备的签约信息中包含的地址属性来决定采用静态分配的方式为附着的用户设备分配IP地址。如果由于某种原因出现了多个用户设备规划同一固定地址的情况,则保证最先成功附着的用户设备的通信业务需求,拒绝在此之后请求同一固定地址的其他用户设备附着请求。但由于核心网同时支持动态及静态分配地址模式,因此存在核心网为用户设备分配签约信息中的固定地址已被另一在线用户设备使用的情况,对于这种情况,需要判断在线用户设备使用地址的分配方式,如为静态分配则按静态分配规则拒绝新的附着请求,如为动态分配则释放当前在线用户设备,回收地址并分配给新附着的用户设备,这样就保证了请求固定地址的用户设备的正常通信业务,同时被释放的用户设备下次附着,核心网会采用动态分配规则选择另一个可用地址进行分配。The technical solution of the present application decides to assign an IP address to the attached user equipment in a static allocation manner according to the address attribute contained in the subscription information of the user equipment. If for some reason multiple user equipments plan the same fixed address, the communication service requirements of the first successfully attached user equipment are guaranteed, and the attachment requests of other user equipments that request the same fixed address after that are rejected. However, since the core network supports both dynamic and static address allocation modes, there is a situation where the fixed address in the subscription information assigned by the core network to the user equipment has been used by another online user equipment. In this case, it is necessary to determine the address used by the online user equipment If it is a static allocation, the new attachment request will be rejected according to the static allocation rules. If it is a dynamic allocation, the current online user equipment will be released, and the address will be reclaimed and allocated to the newly attached user equipment. This ensures that users who request a fixed address The normal communication service of the device, and the released user equipment attaches next time, and the core network will use the dynamic allocation rule to select another available address for allocation.

为使本申请技术方案的技术原理、特点以及技术效果更加清楚,以下结合具体实施例对本申请技术方案进行详细阐述。In order to make the technical principles, features and technical effects of the technical solution of the present application clearer, the technical solution of the present application will be described in detail below in conjunction with specific embodiments.

LTE通信协议的附着流程中,核心网在更新位置(update location)过程获取用户设备的签约信息,在此本申请技术方案如图3所示首先确定地址分配方式,再进行两种分配方式不同的处理。In the attachment process of the LTE communication protocol, the core network obtains the subscription information of the user equipment during the update location (update location) process. Here, the technical solution of this application first determines the address allocation method as shown in Figure 3, and then performs two different allocation methods. deal with.

动态地址分配方式下,核心网在缓存的地址分配信息中查找是否存在当前用户设备的地址分配信息,规则如下:In the dynamic address allocation mode, the core network searches for the address allocation information of the current user equipment in the cached address allocation information. The rules are as follows:

1、如存在且该地址为可分配,则保持缓存记录不变;1. If it exists and the address is assignable, keep the cache record unchanged;

2、如存在但地址不可分配,则删除缓存记录中的地址值;2. If it exists but the address cannot be assigned, delete the address value in the cache record;

3、如果未找到对应的缓存记录,则新增一条无地址的缓存记录。3. If no corresponding cache record is found, add a new cache record without address.

第1种情况后续过程会按缓存地址进行分配,第2、3种情况后续过程会按动态类型分配规则选择可用地址进行分配。In the first case, the subsequent process will be allocated according to the cache address. In the second and third cases, the subsequent process will select an available address for allocation according to the dynamic type allocation rules.

静态分配方式下,本发明对签约信息的地址属性值进一步判断,规则如下:In the static allocation mode, the present invention further judges the address attribute value of the subscription information, and the rules are as follows:

1、如地址不在操作维护人员配置的可用地址范围内则拒绝附着;1. If the address is not within the range of available addresses configured by the operation and maintenance personnel, it will refuse to attach;

2、如地址已被另一在线用户设备以静态方式使用则拒绝附着;2. If the address has been used by another online user equipment in a static way, then refuse to attach;

3、如地址已被另一在线用户设备以动态方式使用则释放在线用户设备进行地址回收,再按需增加或更新对应的包含固定地址的缓存记录;3. If the address has been dynamically used by another online user device, release the online user device for address recycling, and then add or update the corresponding cache record containing the fixed address as needed;

4、如地址可分配则直接按需增加或更新对应的包含固定地址的缓存记录。4. If the address can be allocated, directly add or update the corresponding cache record containing the fixed address as needed.

第1、2种情况附着流程因拒绝而退出处理,如存在缓存记录则需要进行删除,第3、4种情况会在后续过程中按缓存地址进行分配。In cases 1 and 2, the attachment process exits due to rejection. If there is a cache record, it needs to be deleted. In cases 3 and 4, it will be allocated according to the cache address in the subsequent process.

本发明在更新位置过程中根据采用的地址分配方式进行了完整的地址分配的前期准备处理。在更新位置过程完成后,附着流程会有两个可能出现的结果,一个结果是因各种原因拒绝附着而退出附着流程,另一个结果是增加或者更新对应包含地址或者不包含地址的用户设备缓存记录供后续过程处理。更新位置过程的后续过程是创建会话(create session)过程,也就是为用户设备分配地址的过程。创建会话过程中,核心网判断对应的用户设备缓存记录中是否包含地址,如不包含地址则按动态分配规则选择可用地址进行分配,并将选择分配的地址更新到缓存记录中,如包含地址则分配指定地址,两种情况下分配给用户设备的地址状态都将变为已使用。In the process of updating the location, the present invention performs the preparatory processing of the complete address allocation according to the adopted address allocation mode. After the location update process is completed, the attachment process will have two possible results. One result is that the attachment process is rejected for various reasons and the attachment process is exited. The other result is to increase or update the user device cache corresponding to the address or not. The records are processed by subsequent processes. The subsequent process of the process of updating the location is the process of creating a session (create session), that is, the process of allocating an address for the user equipment. In the process of creating a session, the core network judges whether the corresponding user device cache record contains an address. If it does not contain an address, it will select an available address for allocation according to the dynamic allocation rules, and update the selected address to the cache record. If it contains an address, then Assign the specified address, and the status of the address assigned to the user device will become used in both cases.

用户设备从在线状态变为离线状态,核心网会在删除会话(delete session)过程中进行地址的回收。核心网对变为离线状态的用户设备使用的地址进行回收,将地址状态从已使用变为回收,并将地址回收的时间记录到缓存记录中,使缓存记录中的离线用户设备以地址回收时间有序组成一个离线缓存记录列表,该离线缓存记录列表为缓存记录达到最大容量时的覆盖处理以及动态分配规则分配回收地址提供了依据。When the user equipment changes from online to offline, the core network will recycle the address during the process of deleting the session. The core network reclaims the address used by the user equipment that has become offline, changes the address status from used to recycled, and records the time of address recycling in the cache record, so that the offline user equipment in the cache record uses the address recovery time An offline cache record list is formed in an orderly manner, and the offline cache record list provides a basis for overwriting processing when the cache record reaches the maximum capacity and dynamic allocation rules for assigning recycling addresses.

核心网为用户设备分配地址后,如果该用户设备因故附着失败,在这种情况下也需要进行地址的回收。为保证此种情况下的地址状态能在回收后与附着失败流程之前的地址状态一致,核心网在创建会话过程将分配好的地址状态变为已使用前,对该地址的原状态进行记录。如果整个附着流程成功完成就清除原状态记录,一旦创建会话过程之后出现附着失败,将所述地址恢复为原状态,即原状态为未使用的仍为未使用,原状态为回收的仍为回收,同时也删除相应的缓存记录,这样就有效的防止了由于持续的附着失败场景消耗未使用地址导致的对动态分配规则的破坏。After the core network assigns an address to the user equipment, if the user equipment fails to attach for some reason, the address also needs to be reclaimed in this case. In order to ensure that the address state in this case is consistent with the address state before the attach failure process after recycling, the core network records the original state of the address before changing the state of the allocated address to used during session creation. If the entire attachment process is successfully completed, the original state record will be cleared. Once the attachment fails after the session is created, the address will be restored to the original state, that is, the original state is unused and still unused, and the original state is recycled. , and also delete the corresponding cache record, which effectively prevents the damage to the dynamic allocation rule caused by the consumption of unused addresses in the continuous attachment failure scenario.

本发明实施例1如图3所示,核心网在更新位置过程中根据用户设备签约信息管理用户设备地址分配,包括如下步骤:Embodiment 1 of the present invention is shown in Figure 3, the core network manages user equipment address allocation according to user equipment subscription information during the location update process, including the following steps:

步骤301,核心网对用户设备签约信息进行判断,如签约信息中包含有效的地址属性则转步骤302,否则转步骤303。Step 301 , the core network judges the subscription information of the user equipment. If the subscription information contains valid address attributes, go to step 302 ; otherwise, go to step 303 .

步骤302,核心网对签约信息中的地址属性判断,如地址包含在操作维护人员配置的可用地址范围内转步骤304,否则转步骤307。Step 302, the core network judges the address attribute in the subscription information, if the address is included in the available address range configured by the operation and maintenance personnel, go to step 304, otherwise go to step 307.

步骤303,核心网检查是否存在用户设备的缓存记录,如存在转步骤309,否则转步骤311。Step 303 , the core network checks whether there is a cache record of the user equipment, if yes, go to step 309 , otherwise go to step 311 .

步骤304,核心网进一步对签约信息中地址当前的分配状态进行判断,如地址可分配转步骤308,否则转步骤305。Step 304 , the core network further judges the current allocation state of the address in the subscription information, if the address can be allocated, go to step 308 , otherwise go to step 305 .

步骤305,签约信息中地址已分配给另一在线用户设备,核心网检查该在线用户设备地址的分配方式,如为动态方式转步骤306,否则转步骤307。Step 305 , the address in the subscription information has been allocated to another online user equipment, the core network checks the address allocation method of the online user equipment, if it is dynamic, go to step 306 , otherwise go to step 307 .

步骤306,核心网释放在线用户设备,回收其地址,转步骤308。Step 306, the core network releases the online user equipment, reclaims its address, and goes to step 308.

步骤307,核心网拒绝用户设备附着,并删除可能存在的缓存记录,流程结束。In step 307, the core network rejects the attachment of the user equipment, and deletes possible cache records, and the process ends.

步骤308,核心网按需增加或更新包含签约信息中地址的缓存记录。Step 308, the core network adds or updates the cache record containing the address in the subscription information as needed.

步骤309,核心网对缓存记录中地址当前的分配状态进行判断,如地址可分配则不做处理,否则转步骤310。Step 309 , the core network judges the current allocation status of the address in the cache record, and if the address can be allocated, no processing is performed; otherwise, go to step 310 .

步骤310,核心网删除缓存记录中地址值。Step 310, the core network deletes the address value in the cache record.

步骤311,核心网新增不包含地址的缓存记录。In step 311, the core network adds a cache record that does not include an address.

实施例2Example 2

本发明实施例2如图4所示,在为用户设备采用动态方式分配地址时,如果没有用户设备的缓存记录或者缓存记录不包含地址,核心网为用户设备选择地址的规则为如下步骤:Embodiment 2 of the present invention is shown in Figure 4. When assigning an address to a user equipment in a dynamic manner, if there is no cache record of the user equipment or the cache record does not contain an address, the rules for the core network to select an address for the user equipment are as follows:

步骤401,核心网检查当前配置的可用地址的分配情况,如存在未使用地址转步骤402,否则转步骤403。Step 401 , the core network checks the allocation of currently configured available addresses, if there is an unused address, go to step 402 , otherwise go to step 403 .

步骤402,核心网为用户设备分配一个未使用地址,地址分配成功。In step 402, the core network allocates an unused address for the user equipment, and the address allocation is successful.

步骤403,核心网检查是否存在可分配地址,如存在则转步骤404,否则地址分配失败。Step 403, the core network checks whether there is an address that can be allocated, and if so, go to step 404, otherwise, the address allocation fails.

步骤404,核心网根据时间有序的离线缓存记录列表为用户设备分配最早回收的地址,地址分配成功。In step 404, the core network allocates the earliest reclaimed address to the user equipment according to the time-ordered offline cache record list, and the address allocation is successful.

实施例3Example 3

本发明实施例3如图5所示,核心网在创建会话过程中对用户设备地址分配进行管理,包括如下步骤:Embodiment 3 of the present invention is shown in Figure 5, the core network manages the user equipment address allocation during the session creation process, including the following steps:

步骤501,核心网检查用户设备的缓存记录,如缓存记录中包含地址转步骤502,否则转步骤503。Step 501 , the core network checks the cache record of the user equipment, if the cache record contains an address, go to step 502 , otherwise go to step 503 .

步骤502,核心网为用户设备分配缓存记录中的地址。Step 502, the core network allocates the address in the cache record to the user equipment.

步骤503,核心网按按动态分配规则为用户设备分配地址,分配成功转步骤504,否则转步骤505;具体的分配规则与实施例2相同,此处不再重复。In step 503, the core network assigns an address to the user equipment according to the dynamic allocation rules. If the allocation is successful, go to step 504; otherwise, go to step 505; the specific allocation rules are the same as those in Embodiment 2, and will not be repeated here.

步骤504,核心网更新缓存记录,增加为用户设备分配的地址。Step 504, the core network updates the cache record and adds the address allocated to the user equipment.

步骤505,核心网拒绝用户设备附着,删除相应的缓存记录,流程结束。Step 505, the core network rejects the attachment of the user equipment, deletes the corresponding cache record, and the process ends.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请的保护范围,凡在本申请技术方案的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above descriptions are only preferred embodiments of the application, and are not intended to limit the scope of protection of the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the technical solutions of the application are It should be included within the protection scope of this application.

Claims (10)

1.一种用户设备地址管理方法,其特征在于,对于每一个成功进行附着流程的用户设备,核心网内部对其地址分配信息进行缓存;该方法包括:1. A user equipment address management method, characterized in that, for each user equipment that successfully attaches to the process, its address allocation information is cached inside the core network; the method includes: A、第一用户设备发起附着请求,核心网根据第一用户设备的签约信息中是否包含地址属性来确定第一用户设备的地址分配方式,如果包含地址属性则执行步骤B,如果不包含地址属性则执行步骤C;A. The first user equipment initiates an attach request, and the core network determines the address allocation method of the first user equipment according to whether the subscription information of the first user equipment contains address attributes. If the address attribute is included, step B is performed; if the address attribute is not included Then execute step C; B、核心网根据第一用户设备的签约信息中的地址属性对第一用户设备进行静态地址分配,并结束本流程;B. The core network assigns a static address to the first user equipment according to the address attribute in the subscription information of the first user equipment, and ends this process; C、核心网对第一用户设备进行动态地址分配,并结束本流程;所述动态地址分配过程中,核心网发现已缓存第一用户设备对应的地址分配信息,则将缓存的第一用户设备对应的地址分配信息中的IP地址分配给第一用户设备。C. The core network performs dynamic address allocation to the first user equipment, and ends this process; during the dynamic address allocation process, if the core network finds that the address allocation information corresponding to the first user equipment has been cached, then the cached first user equipment The IP address in the corresponding address allocation information is allocated to the first user equipment. 2.根据权利要求1所述的方法,其特征在于,步骤B包括:2. The method according to claim 1, wherein step B comprises: B1、核心网判断是否存在在线的第二用户设备的地址与第一用户设备的签约信息中地址属性值相同,若是执行步骤B2,否则执行步骤B5;B1. The core network judges whether there is an online second user equipment whose address is the same as the address attribute value in the subscription information of the first user equipment. If it is, step B2 is executed; otherwise, step B5 is executed; B2、核心网判断所述第二用户设备的地址是静态获取还是动态获取,若是静态获取,执行步骤B3,否则执行步骤B4;B2. The core network judges whether the address of the second user equipment is acquired statically or dynamically. If it is acquired statically, execute step B3, otherwise execute step B4; B3、核心网拒绝第一用户设备的附着请求,并结束本流程;B3. The core network rejects the attachment request of the first user equipment, and ends this process; B4、核心网将第一用户设备的签约信息中地址属性值对应的地址分配给第一用户设备使用,通知第二用户设备通过动态方式重新获取新的IP地址,并结束本流程;B4. The core network allocates the address corresponding to the address attribute value in the subscription information of the first user equipment to the first user equipment for use, notifies the second user equipment to reacquire a new IP address in a dynamic manner, and ends this process; B5、核心网将第一用户设备的签约信息中地址属性值对应的地址分配给第一用户设备使用,并结束本流程。B5. The core network allocates the address corresponding to the address attribute value in the subscription information of the first user equipment to the first user equipment for use, and ends this process. 3.根据权利要求2所述的方法,其特征在于,步骤C包括:3. The method according to claim 2, wherein step C comprises: C1、核心网判断是否已缓存第一用户设备对应的地址分配信息且所述地址分配信息中的IP地址未被其他在线用户设备使用,若是,执行步骤C2,否则执行步骤C3;C1. The core network judges whether the address allocation information corresponding to the first user equipment has been cached and the IP address in the address allocation information is not used by other online user equipment, if so, execute step C2, otherwise execute step C3; C2、核心网将所述IP地址分配给第一用户设备,并结束本流程;C2. The core network allocates the IP address to the first user equipment, and ends this process; C3、核心网按特定规则选择新的可用的IP地址分配给第一用户设备,并结束本流程。C3. The core network selects a new available IP address according to a specific rule and assigns it to the first user equipment, and ends this process. 4.根据权利要求1所述的方法,其特征在于,地址分配信息的缓存记录采用用户设备的国际移动用户识别码IMSI作为键值的哈希表存储方式。4. The method according to claim 1, wherein the cache record of the address assignment information adopts a hash table storage method in which the International Mobile Subscriber Identity (IMSI) of the user equipment is used as a key value. 5.根据权利要求1所述的方法,其特征在于,缓存的地址分配信息总数与通信系统的最大容量相等。5. The method according to claim 1, wherein the total number of buffered address allocation information is equal to the maximum capacity of the communication system. 6.根据权利要求3所述的方法,其特征在于,核心网将每一可用地址标记为三种分配情况,分别为未使用、已使用和回收,已使用状态的地址是不可分配地址,未使用状态和回收状态的地址是可分配地址;6. The method according to claim 3, wherein the core network marks each available address as three allocation situations, namely unused, used and reclaimed, the used address is an unallocated address, and the unused address is an unallocated address. Addresses in the use state and recycling state are allocatable addresses; 步骤B1包括:核心网判断是否存在在线的第二用户设备的地址与第一用户设备的签约信息中地址属性值相同,若是执行步骤B2,否则增加或更新第一用户设备相应的缓存记录并执行步骤B5;Step B1 includes: the core network judges whether there is an online second user equipment whose address is the same as the address attribute value in the subscription information of the first user equipment, if so, execute step B2, otherwise add or update the corresponding cache record of the first user equipment and execute Step B5; 步骤B2包括:核心网判断所述第二用户设备的地址是静态获取还是动态获取,若是静态获取,则删除第一用户设备可能存在的缓存记录并执行步骤B3,否则增加或者更新第一用户设备相应的缓存记录并执行步骤B4;Step B2 includes: the core network judges whether the address of the second user equipment is acquired statically or dynamically, and if it is statically acquired, then delete the cache record that may exist in the first user equipment and perform step B3, otherwise add or update the first user equipment Corresponding cache record and execute step B4; 步骤C1包括:核心网判断是否已缓存第一用户设备对应的地址分配信息,如存在且该地址分配信息对应的地址为可分配,则保持缓存记录不变并执行C2;如存在但所述地址不可分配,则删除缓存记录中的地址值并执行C3;如果未找到对应的缓存记录,则新增一条无地址的缓存记录,并执行C3。Step C1 includes: the core network judges whether the address allocation information corresponding to the first user equipment has been cached, if it exists and the address corresponding to the address allocation information is allocatable, then keep the cache record unchanged and execute C2; if it exists but the address If it cannot be allocated, delete the address value in the cache record and execute C3; if no corresponding cache record is found, add a cache record without address and execute C3. 7.根据权利要求6所述的方法,其特征在于,该方法进一步包括:第一用户设备从在线状态变为离线状态,核心网在删除会话过程中将第一用户设备的地址状态从已使用变为回收,并将地址回收的时间记录到缓存记录中,使缓存记录中的离线用户设备以地址回收时间有序组成一个离线缓存记录列表。7. The method according to claim 6, further comprising: the first user equipment changes from an online state to an offline state, and the core network changes the address state of the first user equipment from used to Change to recycling, and record the time of address recycling into the cache record, so that the offline user equipment in the cache record forms an offline cache record list in order according to the address recycling time. 8.根据权利要求7所述的方法,其特征在于,所述核心网对第一用户设备进行动态地址分配或静态地址分配包括:8. The method according to claim 7, wherein the core network performing dynamic address allocation or static address allocation to the first user equipment comprises: 核心网对待分配的地址的原状态进行记录;The core network records the original state of the address to be allocated; 核心网对第一用户设备进行动态地址分配或静态地址分配,并将所分配的地址状态变更为已使用;The core network allocates a dynamic address or a static address to the first user equipment, and changes the status of the allocated address to used; 如果整个附着流程成功完成就清除原状态记录,一旦创建会话过程之后出现附着失败,将所述地址恢复为原状态。If the entire attaching process is successfully completed, the original state record is cleared, and once an attaching failure occurs after the session is created, the address is restored to the original state. 9.根据权利要求7所述的方法,其特征在于,步骤C3包括:9. The method according to claim 7, wherein step C3 comprises: C3-1、核心网检查当前配置的可用地址的分配情况,如存在未使用地址转步骤C3-2,否则转步骤C3-3;C3-1. The core network checks the allocation of currently configured available addresses. If there is an unused address, go to step C3-2, otherwise go to step C3-3; C3-2、核心网为第一用户设备分配一个未使用地址,结束本流程;C3-2. The core network assigns an unused address to the first user equipment, and ends this process; C3-3、核心网检查是否存在可分配地址,如存在则转步骤C3-4,否则地址分配失败结束本流程;C3-3. The core network checks whether there is an address that can be allocated. If there is, go to step C3-4. Otherwise, the address allocation fails to end this process; C3-4、核心网根据时间有序的离线缓存记录列表为第一用户设备分配最早回收的地址,结束本流程。C3-4. The core network assigns the earliest reclaimed address to the first user equipment according to the time-ordered offline cache record list, and ends this process. 10.根据权利要求9所述的方法,其特征在于,步骤C3-2和步骤C3-4进一步包括:核心网更新缓存记录,增加为第一用户设备分配的地址;以及,10. The method according to claim 9, wherein step C3-2 and step C3-4 further comprise: the core network updates the cache record to increase the address assigned to the first user equipment; and, 步骤C3-3所述地址分配失败之后进一步包括:删除第一用户设备相应的缓存记录。After the address allocation fails in step C3-3, it further includes: deleting the corresponding cache record of the first user equipment.
CN201210392617.3A 2012-10-16 2012-10-16 A kind of user device address management method Expired - Fee Related CN103731816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210392617.3A CN103731816B (en) 2012-10-16 2012-10-16 A kind of user device address management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210392617.3A CN103731816B (en) 2012-10-16 2012-10-16 A kind of user device address management method

Publications (2)

Publication Number Publication Date
CN103731816A CN103731816A (en) 2014-04-16
CN103731816B true CN103731816B (en) 2016-12-21

Family

ID=50455708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210392617.3A Expired - Fee Related CN103731816B (en) 2012-10-16 2012-10-16 A kind of user device address management method

Country Status (1)

Country Link
CN (1) CN103731816B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528931B (en) * 2016-06-22 2021-06-18 中兴通讯股份有限公司 IP address self-adaptive keeping method, device and system based on user behavior
CN107087041B (en) * 2017-06-30 2020-07-07 杭州迪普科技股份有限公司 Method and device for statically binding IP address to DHCP client
CN114363881B (en) * 2021-12-03 2023-10-20 京信网络系统股份有限公司 IP address allocation method, device, equipment and medium
CN114900499B (en) * 2022-04-20 2023-10-03 中国电信股份有限公司 IP address allocation method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466341A (en) * 2002-06-22 2004-01-07 ��Ϊ�������޹�˾ A Method of Preventing IP Address Spoofing in Dynamic Address Assignment
CN1652535A (en) * 2004-02-03 2005-08-10 华为技术有限公司 Method for managing network layer address
CN101247396A (en) * 2008-02-20 2008-08-20 北大方正集团有限公司 A method, device and system for allocating IP addresses

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466341A (en) * 2002-06-22 2004-01-07 ��Ϊ�������޹�˾ A Method of Preventing IP Address Spoofing in Dynamic Address Assignment
CN1652535A (en) * 2004-02-03 2005-08-10 华为技术有限公司 Method for managing network layer address
CN101247396A (en) * 2008-02-20 2008-08-20 北大方正集团有限公司 A method, device and system for allocating IP addresses

Also Published As

Publication number Publication date
CN103731816A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
JP5010029B2 (en) Method and apparatus for identifying user equipment and method for transmitting and assigning temporary identification information
CN107318176B (en) Method and device for acquiring and sending recovery identifier, UE, access network equipment
CN110337150B (en) Bearing control method and system
US20130166776A1 (en) Method, apparatus, and system for allocating public ip address
US20150003328A1 (en) Circuit switched fallback proxy
US11902876B2 (en) Routing management method and apparatus
WO2017075757A1 (en) Method, device and system for selecting network function service
CN101291532A (en) Method, system and core network node for implementing load migration in pool area
CN101540995A (en) Method for acquiring information, user equipment and network side equipment
CN103731816B (en) A kind of user device address management method
CN101986665A (en) Internet protocol version 6 (IPV6) address allocating method and system
US20220408242A1 (en) Method and apparatus for allocating ue identifier, and computer-readable storage medium
EP2161875A1 (en) Method and device for configuring configuration data of user access network
CN101237460A (en) Processing method, system and device when DHCP server end lease state changes
US8849351B2 (en) Vacating low usage packet data sessions in a wireless communication system
US8750177B2 (en) Allocating memory to low usage packet data sessions in a wireless communication system
WO2018018469A1 (en) User equipment context management method, device, and apparatus
CN103634322B (en) Heartbeat management method, heartbeat management device and heartbeat management system for application programs
US10225191B2 (en) Service packet distribution method and apparatus
CN102056166B (en) Multihoming implementation method and system in IPSPLIT network
WO2017076087A1 (en) Method, apparatus and system for managing serving gateway
CN108200571A (en) A kind of tracing section updating method, apparatus and mobile management entity
CN112751902B (en) Method and device, terminal, and storage medium for reassignment of IP addresses
US9510373B2 (en) Method and apparatus for allocating radio network temporary identifier
US8411685B1 (en) Managing the allocation of internet protocol addresses in a wireless network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161221

Termination date: 20211016