CN114172864A - Internet of things terminal address allocation method and device - Google Patents

Internet of things terminal address allocation method and device Download PDF

Info

Publication number
CN114172864A
CN114172864A CN202010849915.5A CN202010849915A CN114172864A CN 114172864 A CN114172864 A CN 114172864A CN 202010849915 A CN202010849915 A CN 202010849915A CN 114172864 A CN114172864 A CN 114172864A
Authority
CN
China
Prior art keywords
address
information
user
user identifier
timer
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.)
Granted
Application number
CN202010849915.5A
Other languages
Chinese (zh)
Other versions
CN114172864B (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing 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 China Mobile Communications Group Co Ltd, China Mobile Group Chongqing Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010849915.5A priority Critical patent/CN114172864B/en
Publication of CN114172864A publication Critical patent/CN114172864A/en
Application granted granted Critical
Publication of CN114172864B publication Critical patent/CN114172864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for distributing an address of an Internet of things terminal. The method comprises the following steps: receiving an address allocation request; judging whether address associated information of the user identifier is found; the address association information of the user identifier includes: the method comprises the steps of identifying a user, an IP address associated with the user and timer information; wherein, the survival state of the address associated information can be controlled according to the timer information; if so, allocating the IP address in the address association information to the user terminal corresponding to the user identifier; if not, an IP address is distributed to the user terminal corresponding to the user identifier, and address association information of the user identifier is generated. The scheme does not need to maintain a huge relation information table, and can greatly reduce the maintenance cost and the system overhead; and the switching of dynamic and static allocation modes can be rapidly realized, and the flexible allocation of IP addresses is realized, so that the method can be adapted to different application scenes, and is suitable for large-scale application and implementation.

Description

Internet of things terminal address allocation method and device
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method and a device for distributing an address of an Internet of things terminal.
Background
The internet of things is that any object is connected with a network through information sensing equipment according to an agreed protocol, and the object performs information exchange and communication through an information transmission medium so as to realize functions of intelligent identification, positioning, tracking, supervision and the like.
When the terminal device accesses the internet of things, a corresponding IP address needs to be allocated to the terminal device. Currently, the following three address allocation methods are generally adopted:
the first distribution mode: and the SAEGW dynamically allocates the address mode, namely the SAEGW configures a corresponding IP address pool for the APN of the Internet of things, and when the user terminal is activated online, the SAEGW dynamically selects the IP address from the corresponding address pool and allocates the IP address to the user terminal.
And a second distribution mode: HSS/HLR static binding distribution mode, that is, HSS/HLR binds Internet of things card number and fixed IP address when making Internet of things card data. Therefore, when the internet of things card is activated online, the SAEGW allocates the internet of things card to a corresponding user terminal according to the IP address bound by the card.
A third distribution mode: the Radius server allocation method specifically includes two sub-allocation methods: one mode is that an internet of things card number and a certain fixed IP address are configured on Radius, and when the internet of things card is activated online, the SAEGW allocates the binding IP address fed back by the Radius to an activation request user (namely, still a static binding allocation mode); another way is that the Radius configures an IP address pool for an APN of an internet of things, and when a user of the internet of things is activated online, the Radius dynamically selects an IP address from the address pool and feeds the IP address back to the SAEGW, and finally allocates the IP address to the user (i.e., the Radius is still a way of dynamically allocating addresses).
However, the inventor finds that the following defects exist in the prior art in the implementation process: by adopting a static binding allocation mode, the binding configuration of the internet of things card and the fixed IP address needs to be completed on HSS or Radius in advance, so that a fixed relation correspondence table with huge data volume is generated, the resource expense is high, the maintenance cost is high, and the situations of relation binding conflict error, unbinding or address resource waste are easy to occur in the processes of recovering an old card, issuing a new card and the like; in addition, no matter a static binding allocation mode or a dynamic address allocation mode in the prior art is adopted, the flexibility is low, and different application scenes cannot be adapted.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a method and apparatus for assigning an address of a terminal of the internet of things, which overcome or at least partially solve the above problems.
According to one aspect of the invention, an address allocation method for an internet of things terminal is provided, which comprises the following steps:
receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
judging whether the address associated information of the user identifier is found; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and the timer information; wherein the survival status of the address association information can be controlled according to the timer information;
if yes, the IP address in the address correlation information is distributed to the user terminal corresponding to the user identification;
if not, an IP address is distributed to the user terminal corresponding to the user identifier, and address association information of the user identifier is generated according to the user identifier, the distributed IP address and timer information carried by the address distribution request.
Optionally, the controlling the survival status of the address association information according to the timer information further includes:
if the timer is in an overtime state, deleting the address associated information;
if the timer is in the non-overtime state, the address association information is reserved.
Optionally, the timer information further includes: the survival type of the address association information;
wherein the type of survival comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
Optionally, the timer information includes user-level timer information and/or APN-level timer information.
Optionally, the address association information further includes IP address use status information; wherein the IP address usage status information includes: an active state and a dormant state.
Optionally, the method further includes:
receiving a change request aiming at address associated information, and changing the address associated information according to the change request.
Optionally, the allocating an IP address to the user terminal corresponding to the user identifier further includes:
determining a target address pool according to the APN and/or number segment information corresponding to the user identification;
and selecting an IP address from the target address pool, and distributing the selected IP address to the user terminal corresponding to the user identifier.
According to another aspect of the present invention, there is provided an internet of things terminal address allocation apparatus, including:
the receiving module is suitable for receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
the judging module is suitable for judging whether the address associated information of the user identification is found; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and the timer information; wherein the survival status of the address association information can be controlled according to the timer information;
the first allocation module is suitable for allocating the IP address in the address association information to the user terminal corresponding to the user identifier if the address association information of the user identifier is found;
and the second allocating module is suitable for allocating an IP address to the user terminal corresponding to the user identifier if the address association information of the user identifier is not found, and generating the address association information of the user identifier according to the user identifier, the allocated IP address and the timer information carried by the address allocation request.
Optionally, the controlling the survival status of the address association information according to the timer information further includes:
if the timer is in an overtime state, deleting the address associated information;
if the timer is in the non-overtime state, the address association information is reserved.
Optionally, the timer information further includes: the survival type of the address association information;
wherein the type of survival comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
Optionally, the timer information includes user-level timer information and/or APN-level timer information.
Optionally, the address association information further includes IP address use status information; wherein the IP address usage status information includes: an active state and a dormant state.
Optionally, the apparatus further comprises: and the changing module is suitable for receiving a changing request aiming at the address associated information and changing the address associated information according to the changing request.
Optionally, the second allocating module is further adapted to: determining a target address pool according to the APN and/or number segment information corresponding to the user identification;
and selecting an IP address from the target address pool, and distributing the selected IP address to the user terminal corresponding to the user identifier.
In this embodiment, the specific implementation process of each module may refer to the description of the corresponding part in the first embodiment, which is not described herein again.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the internet of things terminal address allocation method.
According to another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform an operation corresponding to the method for allocating an address of an internet of things terminal as described above.
According to the method and the device for distributing the address of the Internet of things terminal, the address distribution request is received, and the user identification corresponding to the address distribution request is obtained; further judging whether address associated information of the user identifier is found; the address association information of the user identifier includes: the method comprises the steps of identifying a user, an IP address associated with the user and timer information; wherein, the survival state of the address associated information can be controlled according to the timer information; if yes, the IP address in the address association information is allocated to the user terminal corresponding to the user identification; if not, an IP address is distributed to the user terminal corresponding to the user identifier, and address association information of the user identifier is generated according to the user identifier, the distributed IP address and timer information carried by the address distribution request. Therefore, according to the scheme, the address association information comprising the timer is distributed for the user, the survival state of the address association information is determined through the timer information, and the address association relation is deleted when the timer is in the overtime state, so that a huge relation information table does not need to be maintained, the maintenance cost can be greatly reduced, and the system overhead is reduced; moreover, the switching of dynamic and static allocation modes can be quickly realized by modifying the timer information, and the flexible configuration of the IP address is realized, so that the method can be adapted to different application scenes and is suitable for large-scale application and implementation; in addition, in the process of recovering an old card, issuing a new card and the like, the situations of relation binding conflict error, unbinding or address resource waste are not easy to occur.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating a method for allocating an address of an internet of things terminal according to an embodiment of the present invention;
fig. 2 is a functional structure diagram of a terminal address allocation device of the internet of things according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computing device according to a fourth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example one
Fig. 1 is a schematic flowchart illustrating a method for allocating an address of an internet of things terminal according to an embodiment of the present invention. The method for allocating the internet of things terminal address provided by the embodiment may be executed by a device with computing capability, and the embodiment does not limit a specific type of the computing device.
As shown in fig. 1, the method includes:
step S110: and receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request.
In the actual implementation process, the execution device of the method may perform information interaction with the SAEGW in the core network, and the SAEGW further sends the address allocation request initiated by the user terminal to the execution device of the method.
The address allocation request carries a user identifier corresponding to the request, where the user identifier is specifically an identifier capable of uniquely identifying a user terminal, and for example, the user terminal identifier may be an internet of things card number.
Step S120: judging whether the address associated information of the user identifier is found; if not, executing step S130; if yes, go to step S140.
Unlike the prior art, in the present embodiment, the allocation and management of the IP address are realized by the address association information including the timer. Specifically, each piece of address association information in this embodiment corresponds to a user identifier, and each piece of address association information at least includes three types of information, that is, a user identifier, an IP address associated with the user identifier, and corresponding timer information. Optionally, in order to facilitate centralized management of the address association information, and the like, the address association information in this embodiment further includes IP address use state information; wherein, the IP address using state information comprises: an active state and a dormant state. When the user is on-line, the IP address state in the corresponding address association information is an activated state, and when the user is off-line, the IP address state in the corresponding address association information is a dormant state.
Wherein, the timer information indicates the retention time of the association relationship between the user identifier and the corresponding IP address, and the survival state of the corresponding address association information can be controlled according to the timer information. Optionally, if the timer is in an overtime state, automatically deleting the corresponding address association information, and recovering the IP address in the corresponding address association information; if the timer is in the non-overtime state, the corresponding address association information is kept, and the locking state of the IP address is kept. That is to say, the survival status of the address associated information in this embodiment depends on the corresponding timer, and the timer is in a configurable status, so that the survival status of the address associated information can be flexibly controlled through the configuration of the timer, and then the flexible allocation of the IP address of the user terminal is realized.
In an optional implementation manner, in order to enrich an applicable scenario of the method and further improve flexibility of IP address allocation, the timer information in this embodiment specifically includes a survival type of the address association information, where the survival type includes at least one of the following types: a permanent type, a temporary type, and a specified duration type. When the survival type is a permanent type, the address association information is permanently alive; when the survival type is a temporary type, deleting the address associated information after the user is offline; and when the survival type is the specified duration type and the generation duration of the address associated information reaches the specified duration, deleting the address associated information.
In yet another optional implementation manner, the timer information described in this embodiment includes user-level timer information and/or APN-level timer information. Wherein the user-level timer information has a higher priority than the APN-level timer information.
Further optionally, in an implementation, after the user terminal initiates an address allocation request, the core network SAEGW receives the terminal address allocation request, and queries whether the address allocation request carries user-level timer information, and if so, sends the address allocation request carrying the user-level timer information to the method execution device; if not, sending an address allocation request carrying APN-level timer information to the execution equipment of the method; in another preferred embodiment, the configuration of the user-level timer information and/or APN-level timer may be implemented at the core network SAEGW, so that the core network SAEGW queries whether the user-level timer information corresponding to the terminal address allocation request is configured after receiving the terminal address allocation request, and if so, sends the user-level timer information and the address allocation request to the method execution device; if not, the APN level timer information corresponding to the terminal address allocation request and the address allocation request are sent to the method execution equipment.
Step S130: and allocating an IP address for the user terminal corresponding to the user identifier, and generating address association information of the user identifier according to the user identifier, the allocated IP address and the timer information carried by the address allocation request.
When the address association information of the user identifier is not found, an IP address can be selected, and the selected IP address is distributed to the user terminal corresponding to the user identifier. When the IP address is selected, if the address allocation request carries the specified IP address, allocating the specified IP address to the user terminal corresponding to the user identifier; and if the address allocation request does not carry the specified IP address, dynamically allocating the IP address for the user terminal corresponding to the user identifier. Optionally, in order to improve the allocation accuracy of the IP address, in the dynamic allocation process, the destination address pool is determined specifically according to the APN and/or number segment information corresponding to the user identifier; and further selecting an IP address from the target address pool, allocating the selected IP address to a user terminal corresponding to the user identifier, and then transmitting the allocated IP address to the user terminal through a core network SAEGW.
Further, according to the user identifier, the allocated IP address and the timer information carried by the address allocation request, address association information of the user identifier is generated. The generated address related information can be managed and stored in a centralized way. When the timer in the address associated information is in a timeout state, deleting the address associated information, then releasing the association relationship between the user identifier and the allocated IP address, and recycling the allocated IP address for allocation of other user terminals.
Optionally, the generated address association information may be centrally managed and stored. The IP address in the current occupied state can be quickly and accurately obtained through the centralized management and storage, so that a foundation is provided for quick and accurate allocation of subsequent IP addresses.
Further optionally, the present embodiment can change the generated address association information in a corresponding manner, thereby changing the association relationship between the user terminal and the allocated IP address, further implementing flexible allocation of the IP address, and meeting different application scenarios. In a specific change process, a change request for the address associated information may be received, and the address associated information may be changed according to the change request. The change request may be a change request for the entire piece of address association information (e.g., deleting a piece of address association information), or a change request for some piece of information in the address association information, such as a change request for an IP address in the address association information, or a change request for timer information in the address association information, or the like. In addition, the change request for the address association information may be triggered by a maintenance person who centrally manages the address association information, or may receive the address association information sent by the core network SAEGW, or the like.
Step S140: and allocating the IP address in the address association information to the user terminal corresponding to the user identification.
If the address association information of the user identifier is found, indicating that the association relationship between the user terminal corresponding to the user identifier in the address association information and the IP address in the address association information is still in a survival state, directly allocating the IP address in the address association information to the user terminal corresponding to the user identifier. In particular, the assigned IP address may be sent to the user terminal via the core network sae gw.
The following explains a specific implementation process of the internet of things terminal address allocation method in the embodiment by using a specific scenario example:
example 1
Application test scenario/security management scenario
In the existing application test scenario and/or security management and control scenario, it is usually necessary to fix IP addresses of some internet of things cards and configure corresponding fixed time limits, however, the requirement cannot be met by adopting the static IP address allocation or dynamic IP address allocation in the prior art, and by adopting the internet of things terminal address allocation method provided by this embodiment, the application scenario requirement can be met quickly, and the specific implementation process is as follows:
when sending an address allocation request, a user terminal that needs to perform IP address fixing carries corresponding configuration information, where the configuration information may include timer information, and the timer information specifies IP fixing time. Since the user terminal sends the address allocation request for the first time at this stage, in this embodiment, when the address allocation request forwarded by the core network SAEGW is received, the address association information of the internet of things card number (i.e., the user identifier) corresponding to the user terminal cannot be found, so that an IP address can be selected from the address pool of the APN and/or number segment information corresponding to the user identifier and allocated to the user terminal, and corresponding address association information is generated, and the generated address association information is shown in table 1, where one "120" in the timing information is specifically a rated association duration for which the user terminal "123456" and the IP address "x.x.x.1" have an association relationship, and the other "120" is a remaining duration of the association relationship at present. When the user terminal "123456" goes offline and goes online, if the remaining duration of the association is greater than or equal to 0 (i.e., the timer is in the non-overtime state), the address association information of the user terminal "123456" is not deleted, so that the IP address of "x.x.x.1" in table 1 is still allocated to the user terminal "123456"; if the association relation timer is in a timeout state, the address association information of the user terminal "123456" is deleted, and when the user is online again, and the corresponding address association information is not found, a new IP address is allocated to the user terminal again.
TABLE 1
User identification Address State of use Timer information
123456 x.x.x.1 active 120,120
Example two
Distribution mode change scenario
When the prior art is adopted to realize the change of the allocation mode (for example, a static allocation mode is changed into a dynamic allocation mode, and a user terminal with the changed allocation mode keeps using the original APN), the address allocation resource of the APN needs to be replanned on Radius, and the binding configuration of the changed number and the corresponding fixed IP is completed in advance. By adopting the method for allocating the internet of things terminal address provided by the embodiment, the change of the allocation mode can be quickly realized, and the specific implementation process is as follows:
the original allocation manner of the ue "123456" is a static allocation manner, and as shown in table 1, the ue "123456" may be allocated with an IP address "x.x.x.1"; if the allocation mode needs to be modified into a dynamic allocation mode, the generated address associated information of the user terminal "123456" may be deleted, or the timer information of the address associated information of the user terminal "123456" may be modified into "temporary", so as to quickly implement the change of the allocation mode.
Therefore, in the embodiment, address association information containing a timer is distributed for a user, the survival state of the address association information is determined through the timer information, and the address association relationship is deleted when the timer is in an overtime state, so that a huge relationship information table does not need to be maintained, the maintenance cost can be greatly reduced, and the system overhead is reduced; moreover, the switching of dynamic and static allocation modes can be quickly realized by modifying the timer information, and the flexible configuration of the IP address is realized, so that the method can be adapted to different application scenes and is suitable for large-scale application and implementation; in addition, in the process of recovering an old card, issuing a new card and the like, the situations of relation binding conflict error, unbinding or address resource waste are not easy to occur.
Example two
Fig. 2 is a functional structure diagram of a terminal address allocation device of the internet of things according to a second embodiment of the present invention. As shown in fig. 2, the apparatus includes: a receiving module 21, a judging module 22, a first allocating module 23 and a second allocating module 24.
The receiving module 21 is adapted to receive an address allocation request and obtain a user identifier corresponding to the address allocation request;
a judging module 22, adapted to judge whether the address association information of the user identifier is found; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and the timer information; wherein the survival status of the address association information can be controlled according to the timer information;
the first allocating module 23 is adapted to, if the address association information of the user identifier is found, allocate an IP address in the address association information to a user terminal corresponding to the user identifier;
the second allocating module 24 is adapted to allocate an IP address to the user terminal corresponding to the user identifier if the address association information of the user identifier is not found, and generate the address association information of the user identifier according to the user identifier, the allocated IP address and the timer information carried in the address allocation request.
Optionally, the controlling the survival status of the address association information according to the timer information further includes:
if the timer is in an overtime state, deleting the address associated information;
if the timer is in the non-overtime state, the address association information is reserved.
Optionally, the timer information further includes: the survival type of the address association information;
wherein the type of survival comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
Optionally, the timer information includes user-level timer information and/or APN-level timer information.
Optionally, the address association information further includes IP address use status information; wherein the IP address usage status information includes: an active state and a dormant state.
Optionally, the apparatus further comprises: and the changing module is suitable for receiving a changing request aiming at the address associated information and changing the address associated information according to the changing request.
Optionally, the second allocating module is further adapted to: determining a target address pool according to the APN and/or number segment information corresponding to the user identification;
and selecting an IP address from the target address pool, and distributing the selected IP address to the user terminal corresponding to the user identifier.
In this embodiment, the specific implementation process of each module may refer to the description of the corresponding part in the first embodiment, which is not described herein again.
Therefore, in the embodiment, address association information containing a timer is distributed for a user, the survival state of the address association information is determined through the timer information, and the address association relationship is deleted when the timer is in an overtime state, so that a huge relationship information table does not need to be maintained, the maintenance cost can be greatly reduced, and the system overhead is reduced; moreover, the switching of dynamic and static allocation modes can be quickly realized by modifying the timer information, and the flexible configuration of the IP address is realized, so that the method can be adapted to different application scenes, and is suitable for large-scale application and implementation.
EXAMPLE III
According to a third embodiment of the present invention, a non-volatile computer storage medium is provided, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the method for allocating an address of an internet of things terminal in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to:
receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
judging whether the address associated information of the user identifier is found; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and the timer information; wherein the survival status of the address association information can be controlled according to the timer information;
if yes, the IP address in the address correlation information is distributed to the user terminal corresponding to the user identification;
if not, an IP address is distributed to the user terminal corresponding to the user identifier, and address association information of the user identifier is generated according to the user identifier, the distributed IP address and timer information carried by the address distribution request.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
if the timer is in an overtime state, deleting the address associated information;
if the timer is in the non-overtime state, the address association information is reserved.
In an optional embodiment, the timer information further comprises: the survival type of the address association information;
wherein the type of survival comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
In an alternative embodiment, the timer information comprises user-level timer information and/or APN-level timer information.
In an optional implementation manner, the address association information further includes IP address use status information; wherein the IP address usage status information includes: an active state and a dormant state.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
receiving a change request aiming at address associated information, and changing the address associated information according to the change request.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
determining a target address pool according to the APN and/or number segment information corresponding to the user identification;
and selecting an IP address from the target address pool, and distributing the selected IP address to the user terminal corresponding to the user identifier.
Therefore, in the embodiment, address association information containing a timer is distributed for a user, the survival state of the address association information is determined through the timer information, and the address association relationship is deleted when the timer is in an overtime state, so that a huge relationship information table does not need to be maintained, the maintenance cost can be greatly reduced, and the system overhead is reduced; moreover, the switching of dynamic and static allocation modes can be quickly realized by modifying the timer information, and the flexible configuration of the IP address is realized, so that the method can be adapted to different application scenes, and is suitable for large-scale application and implementation.
Example four
Fig. 3 is a schematic structural diagram of a computing device according to a fourth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 3, the computing device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein: the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308. A communication interface 304 for communicating with network elements of other devices, such as clients or other servers. The processor 302 is configured to execute the program 310, and may specifically execute the relevant steps in the foregoing embodiment of the method for allocating an address of an internet of things terminal.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
judging whether the address associated information of the user identifier is found; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and the timer information; wherein the survival status of the address association information can be controlled according to the timer information;
if yes, the IP address in the address correlation information is distributed to the user terminal corresponding to the user identification;
if not, an IP address is distributed to the user terminal corresponding to the user identifier, and address association information of the user identifier is generated according to the user identifier, the distributed IP address and timer information carried by the address distribution request.
In an alternative embodiment, the program 310 may be specifically configured to cause the processor 302 to perform the following operations:
if the timer is in an overtime state, deleting the address associated information;
if the timer is in the non-overtime state, the address association information is reserved.
In an optional embodiment, the timer information further comprises: the survival type of the address association information;
wherein the type of survival comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
In an alternative embodiment, the timer information comprises user-level timer information and/or APN-level timer information.
In an optional implementation manner, the address association information further includes IP address use status information; wherein the IP address usage status information includes: an active state and a dormant state.
In an alternative embodiment, the program 310 may be specifically configured to cause the processor 302 to perform the following operations:
receiving a change request aiming at address associated information, and changing the address associated information according to the change request.
In an alternative embodiment, the program 310 may be specifically configured to cause the processor 302 to perform the following operations:
determining a target address pool according to the APN and/or number segment information corresponding to the user identification;
and selecting an IP address from the target address pool, and distributing the selected IP address to the user terminal corresponding to the user identifier.
Therefore, in the embodiment, address association information containing a timer is distributed for a user, the survival state of the address association information is determined through the timer information, and the address association relationship is deleted when the timer is in an overtime state, so that a huge relationship information table does not need to be maintained, the maintenance cost can be greatly reduced, and the system overhead is reduced; moreover, the switching of dynamic and static allocation modes can be quickly realized by modifying the timer information, and the flexible configuration of the IP address is realized, so that the method can be adapted to different application scenes, and is suitable for large-scale application and implementation.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (10)

1. An Internet of things terminal address allocation method is characterized by comprising the following steps:
receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
judging whether the address associated information of the user identifier is found; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and the timer information; wherein the survival status of the address association information can be controlled according to the timer information;
if yes, the IP address in the address correlation information is distributed to the user terminal corresponding to the user identification;
if not, an IP address is distributed to the user terminal corresponding to the user identifier, and address association information of the user identifier is generated according to the user identifier, the distributed IP address and timer information carried by the address distribution request.
2. The method of claim 1, wherein the enabling to control the survival status of the address association information according to the timer information further comprises:
if the timer is in an overtime state, deleting the address associated information;
if the timer is in the non-overtime state, the address association information is reserved.
3. The method of claim 2, wherein the timer information further comprises: the survival type of the address association information;
wherein the type of survival comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
4. Method according to any of claims 1-3, wherein said timer information comprises user level timer information and/or APN level timer information.
5. The method according to claim 1, wherein the address association information further comprises IP address usage status information; wherein the IP address usage status information includes: an active state and a dormant state.
6. The method according to any one of claims 1-3, further comprising:
receiving a change request aiming at address associated information, and changing the address associated information according to the change request.
7. The method according to any of claims 1-3, wherein said assigning an IP address to the user terminal corresponding to the user identifier further comprises:
determining a target address pool according to the APN and/or number segment information corresponding to the user identification;
and selecting an IP address from the target address pool, and distributing the selected IP address to the user terminal corresponding to the user identifier.
8. An internet of things terminal address allocation device, comprising:
the receiving module is suitable for receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
the judging module is suitable for judging whether the address associated information of the user identification is found; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and the timer information; wherein the survival status of the address association information can be controlled according to the timer information;
the first allocation module is suitable for allocating the IP address in the address association information to the user terminal corresponding to the user identifier if the address association information of the user identifier is found;
and the second allocating module is suitable for allocating an IP address to the user terminal corresponding to the user identifier if the address association information of the user identifier is not found, and generating the address association information of the user identifier according to the user identifier, the allocated IP address and the timer information carried by the address allocation request.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the internet of things terminal address allocation method according to any one of claims 1-7.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the internet of things terminal address allocation method according to any one of claims 1-7.
CN202010849915.5A 2020-08-21 2020-08-21 Internet of things terminal address allocation method and device Active CN114172864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010849915.5A CN114172864B (en) 2020-08-21 2020-08-21 Internet of things terminal address allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010849915.5A CN114172864B (en) 2020-08-21 2020-08-21 Internet of things terminal address allocation method and device

Publications (2)

Publication Number Publication Date
CN114172864A true CN114172864A (en) 2022-03-11
CN114172864B CN114172864B (en) 2024-04-09

Family

ID=80475482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010849915.5A Active CN114172864B (en) 2020-08-21 2020-08-21 Internet of things terminal address allocation method and device

Country Status (1)

Country Link
CN (1) CN114172864B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110282931A1 (en) * 2010-05-17 2011-11-17 Verizon Patent And Licensing, Inc. Dynamic internet protocol registry for mobile internet protocol based communications
CN105208137A (en) * 2014-06-16 2015-12-30 中兴通讯股份有限公司 Internet Protocol (IP) address allocation methods, device, server and terminal
CN105610962A (en) * 2016-01-15 2016-05-25 华洋通信科技股份有限公司 Anti-conflict mobile terminal IP address allocation relay equipment and method
CN105744579A (en) * 2014-12-11 2016-07-06 华为技术有限公司 Method for switching terminal between APs, switching control apparatus, and access apparatus
CN106856511A (en) * 2015-12-08 2017-06-16 中国电信股份有限公司 Method, gateway, PCRF network elements and system for dynamic assignment IP address pond
CN106878483A (en) * 2017-01-24 2017-06-20 新华三技术有限公司 A kind of IP address distribution method and device
US20170237704A1 (en) * 2016-02-16 2017-08-17 Le Holdings (Beijing) Co., Ltd. Addressing communication method and electronic device based on media access control address
CN107087041A (en) * 2017-06-30 2017-08-22 杭州迪普科技股份有限公司 A kind of method and apparatus to dhcp client static binding IP address
CN108933847A (en) * 2018-06-29 2018-12-04 杭州迪普科技股份有限公司 A kind of method and device that address is quickly distributed
CN109962959A (en) * 2017-12-26 2019-07-02 中国移动通信集团辽宁有限公司 Binding session method, apparatus, equipment and medium
CN110661897A (en) * 2018-06-29 2020-01-07 华为技术有限公司 Method and device for managing address

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110282931A1 (en) * 2010-05-17 2011-11-17 Verizon Patent And Licensing, Inc. Dynamic internet protocol registry for mobile internet protocol based communications
CN105208137A (en) * 2014-06-16 2015-12-30 中兴通讯股份有限公司 Internet Protocol (IP) address allocation methods, device, server and terminal
CN105744579A (en) * 2014-12-11 2016-07-06 华为技术有限公司 Method for switching terminal between APs, switching control apparatus, and access apparatus
CN106856511A (en) * 2015-12-08 2017-06-16 中国电信股份有限公司 Method, gateway, PCRF network elements and system for dynamic assignment IP address pond
CN105610962A (en) * 2016-01-15 2016-05-25 华洋通信科技股份有限公司 Anti-conflict mobile terminal IP address allocation relay equipment and method
US20170237704A1 (en) * 2016-02-16 2017-08-17 Le Holdings (Beijing) Co., Ltd. Addressing communication method and electronic device based on media access control address
CN106878483A (en) * 2017-01-24 2017-06-20 新华三技术有限公司 A kind of IP address distribution method and device
CN107087041A (en) * 2017-06-30 2017-08-22 杭州迪普科技股份有限公司 A kind of method and apparatus to dhcp client static binding IP address
CN109962959A (en) * 2017-12-26 2019-07-02 中国移动通信集团辽宁有限公司 Binding session method, apparatus, equipment and medium
CN108933847A (en) * 2018-06-29 2018-12-04 杭州迪普科技股份有限公司 A kind of method and device that address is quickly distributed
CN110661897A (en) * 2018-06-29 2020-01-07 华为技术有限公司 Method and device for managing address

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
况鹏等: "基于IEEE 802.1x的嵌入用户身份标识的IPv6地址生成方案", 《电信科学》, vol. 35, no. 12, 8 January 2020 (2020-01-08), pages 15 - 23 *

Also Published As

Publication number Publication date
CN114172864B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN108924268B (en) Container cloud service system and pod creation method and device
CN103621049A (en) System and method for automatically addressing devices in multi-drop network
CN106897299B (en) Database access method and device
CN110719209B (en) Cluster network configuration method, system, equipment and readable storage medium
CN105490910B (en) Network communication method and client
CN104123265A (en) Method and system for communication among multiple kernels
CN109120614B (en) Service processing method and device based on distributed system
CN109819023B (en) Distributed transaction processing method and related product
CN110930003A (en) Work order processing method and device
US8832215B2 (en) Load-balancing in replication engine of directory server
EP3629160B1 (en) Method and device for managing vnf instantiation
CN109040263B (en) Service processing method and device based on distributed system
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN112087401A (en) Method and device for realizing service quality in distributed storage
CN113766629A (en) Service processing method and system under 5G edge computing scene
EP3301626A1 (en) Method, device, and system
US11805422B2 (en) AP deployment in a network comprising a centralized system and a distributed system
CN111126604A (en) Model training method, device, server and storage medium
CN108833532B (en) Service processing method, device and system based on Internet of things
CN114172864B (en) Internet of things terminal address allocation method and device
CN113259146B (en) Micro-service access control method and device and micro-service system
WO2021155924A1 (en) Identifying an instance of a virtual network function
CN112134735B (en) Method and device for automatically expanding system
CN113765904B (en) Authentication method and device
CN106131234A (en) A kind of method and apparatus distributing address information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant