CN114172864B - 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
CN114172864B
CN114172864B CN202010849915.5A CN202010849915A CN114172864B CN 114172864 B CN114172864 B CN 114172864B CN 202010849915 A CN202010849915 A CN 202010849915A CN 114172864 B CN114172864 B CN 114172864B
Authority
CN
China
Prior art keywords
address
information
user
association information
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.)
Active
Application number
CN202010849915.5A
Other languages
Chinese (zh)
Other versions
CN114172864A (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

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 association information of the user identifier is found; the address association information of the user identification includes: user identification, IP address associated with the user identification and timer information; the survival state of the address association information can be controlled according to the timer information; if so, distributing the IP address in the address association information to the user terminal corresponding to the user identifier; if not, the IP address is allocated for the user terminal corresponding to the user identifier, and address association information of the user identifier is generated. According to the scheme, a huge relation information table is not required to be maintained, the maintenance cost can be greatly reduced, and the system overhead is reduced; and the switching of dynamic and static allocation modes can be realized rapidly, and the flexible allocation of the IP addresses is realized, so that the method can adapt 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 the Internet of things, in particular to a method and a device for distributing terminal addresses of the Internet of things.
Background
The internet of things refers to connecting any object with a network through information sensing equipment according to a stipulated protocol, and carrying out information exchange and communication on the object through an information transmission medium so as to realize the functions of intelligent identification, positioning, tracking, supervision and the like.
When the terminal device accesses the internet of things, a corresponding IP address is generally allocated to the terminal device. Currently, there are three address allocation methods that are generally adopted:
the first distribution mode is as follows: and the SAEGW dynamically allocates an 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 online activated, the SAEGW dynamically selects an IP address from the corresponding address pool and allocates the IP address to the user terminal.
And a second distribution mode is as follows: the HSS/HLR static binding distribution mode is that the HSS/HLR binds the card number of the internet of things with the fixed IP address when the internet of things card data is manufactured. Therefore, when the Internet of things card is activated online, the SAEGW is distributed to the corresponding user terminal according to the IP address bound by the card.
And a third distribution mode: the Radius server allocation method specifically includes two sub allocation methods: the method is that an internet of things card number and a certain fixed IP address are configured on the Radius, and when the internet of things card is activated online, the SAEGW is distributed to an activation request user according to the binding IP address fed back by the Radius (namely, a static binding distribution mode is still adopted); in another mode, an IP address pool is configured on the Radius for an APN of the internet of things, and when the user of the internet of things is online activated, the Radius dynamically picks an IP address in the address pool and feeds the IP address back to the salgw, and finally the IP address is allocated to the user (namely, the IP address pool is still a dynamic address allocation mode).
However, the inventors found in practice that the following drawbacks exist in the prior art: by adopting a static binding allocation mode, binding configuration of the Internet of things card and the fixed IP address is needed to be finished on the HSS or Radius in advance, so that a fixed relation corresponding 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 old card recovery, new card release and the like; in addition, the static binding allocation mode or the dynamic address allocation mode in the prior art is adopted, so that the flexibility is low, and different application scenes cannot be adapted.
Disclosure of Invention
In view of the above problems, the present invention is provided to provide a method and apparatus for allocating addresses of terminals of the internet of things, which overcome or at least partially solve the above problems.
According to one aspect of the present invention, there is provided a method for allocating addresses of terminals of the internet of things, including:
receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
judging whether address association information of the user identifier is searched; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and timer information; wherein, the survival state of the address association information can be controlled according to the timer information;
if yes, distributing the IP address in the address association information to the user terminal corresponding to the user identifier;
if not, the IP address is allocated to the user terminal corresponding to the user identifier, and the address association information of the user identifier is generated according to the user identifier, the allocated IP address and the timer information carried by the address allocation request.
Optionally, the controlling the survival state of the address association information according to the timer information further includes:
if the timer is in a timeout state, deleting the address association information;
and if the timer is in an overtime state, the address association information is reserved.
Optionally, the timer information further includes: survival type of address association information;
wherein the survival type comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
Optionally, the timer information comprises user-level timer information and/or APN-level timer information.
Optionally, the address association information further includes IP address usage status information; wherein the IP address usage status information includes: an active state and a dormant state.
Optionally, the method further comprises:
receiving a change request aiming at address association information, and changing the address association 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 APN and/or number segment information corresponding to the user identifier;
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 address allocation apparatus for an internet of things terminal, including:
the receiving module is suitable for receiving the address allocation request and acquiring a user identifier corresponding to the address allocation request;
the judging module is suitable for judging whether the address association information of the user identifier is searched; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and timer information; wherein, the survival state 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 searched;
and the second allocation 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 state of the address association information according to the timer information further includes:
if the timer is in a timeout state, deleting the address association information;
and if the timer is in an overtime state, the address association information is reserved.
Optionally, the timer information further includes: survival type of address association information;
wherein the survival type comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
Optionally, the timer information comprises user-level timer information and/or APN-level timer information.
Optionally, the address association information further includes IP address usage status information; wherein the IP address usage status information includes: an active state and a dormant state.
Optionally, the apparatus further includes: and the change module is suitable for receiving a change request aiming at the address association information and changing the address association information according to the change request.
Optionally, the second distribution module is further adapted to: determining a target address pool according to APN and/or number segment information corresponding to the user identifier;
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.
The specific implementation process of each module in this embodiment may refer to the description of the corresponding portion in the first embodiment, which is not described herein.
According to yet another aspect of the present invention, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other 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 terminal address allocation method of the Internet of things.
According to still another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the above-described method for allocating addresses of terminals of the internet of things.
According to the method and the device for distributing the terminal address of the Internet of things, which are provided by the invention, firstly, an address distribution request is received, and a user identifier corresponding to the address distribution request is obtained; further judging whether address association information of the user identifier is found; the address association information of the user identification includes: user identification, IP address associated with the user identification and timer information; the survival state of the address association information can be controlled according to the timer information; if yes, the IP address in the address association information is distributed to the user terminal corresponding to the user identifier; if not, the IP address is allocated 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 allocated IP address and the timer information carried by the address allocation request. Therefore, the method and the device have the advantages that the address association information containing the timer is distributed to 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 is not required to be maintained, the maintenance cost is greatly reduced, and the system overhead is reduced; moreover, the switching of dynamic and static allocation modes can be rapidly realized through the modification of the timer information, and the flexible configuration of the IP address is realized, so that different application scenes can be adapted, and the method is suitable for large-scale application and implementation; in addition, in the process of recovering the old card, issuing the new card and the like, the situation of conflict error, unbinding or address resource waste of the relation binding is not easy to occur.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
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 designate like parts throughout the figures. In the drawings:
fig. 1 shows a flow chart of an address allocation method of an internet of things terminal according to a first embodiment of the present invention;
fig. 2 is a schematic functional structure diagram of an address allocation device of an internet of things terminal according to a second embodiment of the present invention;
fig. 3 shows 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 present invention are shown in the drawings, it should be understood that the present invention may 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 1
Fig. 1 shows a flowchart of an address allocation method for an internet of things terminal according to a first embodiment of the present invention. The method for allocating the address of the terminal of the internet of things provided in the embodiment may be executed by a device with computing capability, and the embodiment is not limited to a specific computing device type.
As shown in fig. 1, the method includes:
step S110: and receiving the address allocation request and acquiring the user identification corresponding to the address allocation request.
In the actual implementation process, the execution device of the method can 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, wherein the user identifier is specifically an identifier capable of uniquely identifying a user terminal, and if the user terminal identifier is specifically an internet of things card number.
Step S120: judging whether address association information of the user identifier is searched; if not, executing step S130; if yes, go to step S140.
Unlike the prior art, the present embodiment implements the allocation and management of IP addresses by including address association information of timers. Specifically, each piece of address association information in this embodiment corresponds to a user identifier, and each piece of address association information includes at least three types of information, namely, a user identifier, an IP address associated with the user identifier, and corresponding timer information. Optionally, in order to facilitate centralized management of address association information, the address association information in this embodiment further includes IP address usage status information; wherein the IP address usage status information includes: an active state and a dormant state. When the user is in the up state, the IP address state in the corresponding address-related information is the active state, and when the user is off-line, the IP address state in the corresponding address-related information is the dormant state.
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 a timeout 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-timeout state, the corresponding address association information is reserved, and the locking state of the IP address is maintained. That is, the survival state of the address-related information in this embodiment depends on the corresponding timer, and the timer is in a configurable state, so that the survival state of the address-related information can be flexibly controlled through the configuration of the timer, and thus flexible allocation of the IP address of the user terminal is realized.
In an optional implementation manner, in order to enrich the applicable scenario of the method, the flexibility of IP address allocation is further improved, and the timer information in this embodiment specifically includes a survival type of 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 survived; when the survival type is a temporary type, deleting the address association information after the user is disconnected; and when the survival type is the appointed duration type, deleting the address association information when the address association information generation duration reaches the appointed duration.
In yet another alternative embodiment, the timer information described in this embodiment comprises user-level timer information and/or APN-level timer information. Wherein the user-level timer information is prioritized over the APN-level timer information.
Further optionally, in an embodiment, after the user terminal initiates the address allocation request, the core network SAEGW receives the terminal address allocation request, 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 executing device; if not, sending an address allocation request carrying APN-level timer information to the method execution equipment; in another preferred embodiment, the configuration of the user-level timer information and/or the APN-level timer may be implemented at the core network salgw, so that after receiving the terminal address allocation request, the core network salgw queries whether the user-level timer information corresponding to the terminal address allocation request is already configured, and if yes, sends the user-level timer information and the address allocation request to the method executing device; if not, transmitting APN level timer information corresponding to the terminal address allocation request and the address allocation request to the method executing equipment.
Step S130: and distributing the IP address to the user terminal corresponding to the user identifier, and generating address association information of the user identifier according to the user identifier, the distributed IP address and the timer information carried by the address distribution 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 allocated to the user terminal corresponding to the user identifier. When the IP address is selected, if the address allocation request carries a designated IP address, the designated IP address is allocated to the user terminal corresponding to the user identifier; if the address allocation request does not carry the appointed IP address, the IP address is dynamically allocated to 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, a target address pool is determined specifically according to APN and/or number segment information corresponding to the user identifier; and then, the IP address is selected from the target address pool, the selected IP address is distributed to the user terminal corresponding to the user identifier, and then the distributed IP address can be sent to the user terminal through the 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 association information can be centrally managed and stored. When the timer in the address association information is in a timeout state, deleting the address association information, and releasing the association relation between the user identification and the allocated IP address, wherein the allocated IP address is recycled for allocation of other user terminals.
Optionally, the generated address association information may be centrally managed and stored. The IP address in the occupied state can be obtained rapidly and accurately through the centralized management and storage, so that a foundation is provided for rapid and accurate distribution of the subsequent IP address.
Further optionally, the implementation can change the generated address association information in a corresponding manner, so that the association relation between the user terminal and the allocated IP address is changed, flexible allocation of the IP address is further realized, and different application scenarios are met. In a specific change process, a change request for the address-related information may be received, and the address-related information may be changed according to the change request. The change request may be a change request for the whole address association information (e.g. deleting a certain address association information), or a change request for a certain information in the address association information, e.g. a change request for an IP address in the address association information, or a change request for timer information in the address association information, etc. In addition, the change request for the address-related information may be triggered by a maintainer who centrally manages the address-related information, or may receive the address-related information sent by the core network salgw, or the like.
Step S140: and distributing 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, the association relation 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, and the IP address in the address association information is directly distributed to the user terminal corresponding to the user identifier. Specifically, the allocated IP address may be transmitted to the user terminal via the core network segw.
The following illustrates a specific implementation process of the address allocation method of the terminal of the internet of things in this embodiment by using a specific scenario example:
example one
Application test scenario/security management scenario
In the existing application test scenario and/or security management scenario, the IP address of some internet of things card is usually fixed and a corresponding fixed period is configured, however, the requirement cannot be met by adopting a static IP address allocation or dynamic IP address allocation manner in the prior art, and the requirement of the application scenario can be rapidly met by adopting the method for allocating the terminal address of the internet of things provided by the embodiment, which is implemented as follows:
when sending an address allocation request, a user terminal needing to perform IP address fixing carries corresponding configuration information, where the configuration information may include timer information, and the timer information specifies IP fixed time. Because the user terminal is the first sending address allocation request in this stage, when the address allocation request forwarded by the core network SAEGW is received, the embodiment cannot find the address association information of the card number of the internet of things (i.e. the user identifier) corresponding to the user terminal, so that an IP address can be selected from the address pool of the APN and/or the number segment information corresponding to the user identifier to be allocated to the user terminal, and corresponding address association information is generated, the generated address association information is shown in table 1, wherein one 120 in the timing information is specifically a rated association duration of the association relationship between the user terminal '123456' and the IP address 'x.x.x.1', and the other 120 is the remaining duration of the current association relationship. When the remaining time length of the association relationship is greater than or equal to 0 (i.e. the timer is in an un-timed-out state) after the user terminal '123456' is offline and then online, the address association information of the user terminal '123456' is not deleted, so that the IP address of the "x.x.x.1" in table 1 is still allocated to the user terminal '123456'; if the association timer is in a timeout state, the address association information of the user terminal '123456' is deleted, and when the user is on-line again, the corresponding address association information is not found, and a new IP address is reassigned to the user terminal.
TABLE 1
User identification Address of Use state Timer information
123456 x.x.x.1 active 120,120
Example two
Distribution method changing scene
When the prior art is adopted to realize the change of the allocation mode (for example, the static allocation mode is changed into the dynamic allocation mode, and the user terminal with the changed allocation mode keeps the original APN), the address allocation resource of the APN needs to be re-planned on Radius, and meanwhile, the binding configuration of the changed number and the corresponding fixed IP is finished in advance. By adopting the method for distributing the terminal addresses of the Internet of things, which is provided by the embodiment, the distribution mode can be quickly changed, and the specific implementation process is as follows:
the original allocation manner of the user terminal '123456' is a static allocation manner, as shown in table 1, an IP address 'x.x.x.1' can be allocated to the user terminal '123456'; if the allocation mode is required to be modified into a dynamic allocation mode, the generated address association information of the user terminal '123456' can be deleted, or the timer information of the address association information of the user terminal '123456' is modified into 'temporary', so that the change of the allocation mode is rapidly realized.
Therefore, the embodiment distributes the address association information containing the timer for the user, determines the survival state of the address association information through the timer information, and deletes the address association relationship when the timer is in the overtime state, so that a huge relationship information table is not required 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 rapidly realized through the modification of the timer information, and the flexible configuration of the IP address is realized, so that different application scenes can be adapted, and the method is suitable for large-scale application and implementation; in addition, in the process of recovering the old card, issuing the new card and the like, the situation of conflict error, unbinding or address resource waste of the relation binding is not easy to occur.
Example two
Fig. 2 is a schematic functional structure diagram of an address allocation device of an internet of things terminal 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 distributing module 23 and a second distributing module 24.
A receiving module 21, 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 to find the address association information of the user identifier; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and timer information; wherein, the survival state of the address association information can be controlled according to the timer information;
the first allocation module 23 is adapted to allocate an IP address in the address association information to a user terminal corresponding to the user identifier if the address association information of the user identifier is found;
the second allocation module 24 is adapted to allocate an IP address to a user terminal corresponding to the user identifier if the address association information of the user identifier is not found, and generate address association information of the user identifier according to the user identifier, the allocated IP address and timer information carried by the address allocation request.
Optionally, the controlling the survival state of the address association information according to the timer information further includes:
if the timer is in a timeout state, deleting the address association information;
and if the timer is in an overtime state, the address association information is reserved.
Optionally, the timer information further includes: survival type of address association information;
wherein the survival type comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
Optionally, the timer information comprises user-level timer information and/or APN-level timer information.
Optionally, the address association information further includes IP address usage status information; wherein the IP address usage status information includes: an active state and a dormant state.
Optionally, the apparatus further includes: and the change module is suitable for receiving a change request aiming at the address association information and changing the address association information according to the change request.
Optionally, the second distribution module is further adapted to: determining a target address pool according to APN and/or number segment information corresponding to the user identifier;
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.
The specific implementation process of each module in this embodiment may refer to the description of the corresponding portion in the first embodiment, which is not described herein.
Therefore, the embodiment distributes the address association information containing the timer for the user, determines the survival state of the address association information through the timer information, and deletes the address association relationship when the timer is in the overtime state, so that a huge relationship information table is not required 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 rapidly realized through the modification of the timer information, and the flexible configuration of the IP address is realized, so that different application scenes can be adapted, and the method is suitable for large-scale application and implementation.
Example III
According to a third embodiment of the present invention, there is provided a non-volatile computer storage medium, where at least one executable instruction is stored in the computer storage medium, where the computer executable instruction may execute the method for allocating addresses of terminals of the internet of things in any of the above method embodiments.
The executable instructions may be particularly useful for causing a processor to:
receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
judging whether address association information of the user identifier is searched; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and timer information; wherein, the survival state of the address association information can be controlled according to the timer information;
if yes, distributing the IP address in the address association information to the user terminal corresponding to the user identifier;
if not, the IP address is allocated to the user terminal corresponding to the user identifier, and the address association information of the user identifier is generated according to the user identifier, the allocated IP address and the timer information carried by the address allocation request.
In an alternative embodiment, the executable instructions may be specifically configured to cause a processor to:
if the timer is in a timeout state, deleting the address association information;
and if the timer is in an overtime state, the address association information is reserved.
In an alternative embodiment, the timer information further includes: survival type of address association information;
wherein the survival type 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 usage 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 a processor to:
receiving a change request aiming at address association information, and changing the address association information according to the change request.
In an alternative embodiment, the executable instructions may be specifically configured to cause a processor to:
determining a target address pool according to APN and/or number segment information corresponding to the user identifier;
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, the embodiment distributes the address association information containing the timer for the user, determines the survival state of the address association information through the timer information, and deletes the address association relationship when the timer is in the overtime state, so that a huge relationship information table is not required 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 rapidly realized through the modification of the timer information, and the flexible configuration of the IP address is realized, so that different application scenes can be adapted, and the method is suitable for large-scale application and implementation.
Example IV
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 is not limited to the specific implementation of the computing device.
As shown in fig. 3, the computing device may include: a processor (processor) 302, a communication interface (Communications Interface) 304, a memory (memory) 306, and a communication bus 308.
Wherein: processor 302, communication interface 304, and memory 306 perform communication with each other via 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 embodiment of the method for allocating an address of a terminal of the internet of things.
In particular, program 310 may include program code including computer-operating instructions.
The processor 302 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 306 for storing programs 310. Memory 306 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 310 may be specifically operable to cause processor 302 to:
receiving an address allocation request and acquiring a user identifier corresponding to the address allocation request;
judging whether address association information of the user identifier is searched; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and timer information; wherein, the survival state of the address association information can be controlled according to the timer information;
if yes, distributing the IP address in the address association information to the user terminal corresponding to the user identifier;
if not, the IP address is allocated to the user terminal corresponding to the user identifier, and the address association information of the user identifier is generated according to the user identifier, the allocated IP address and the timer information carried by the address allocation request.
In an alternative embodiment, program 310 may be specifically configured to cause processor 302 to:
if the timer is in a timeout state, deleting the address association information;
and if the timer is in an overtime state, the address association information is reserved.
In an alternative embodiment, the timer information further includes: survival type of address association information;
wherein the survival type 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 usage status information; wherein the IP address usage status information includes: an active state and a dormant state.
In an alternative embodiment, program 310 may be specifically configured to cause processor 302 to:
receiving a change request aiming at address association information, and changing the address association information according to the change request.
In an alternative embodiment, program 310 may be specifically configured to cause processor 302 to:
determining a target address pool according to APN and/or number segment information corresponding to the user identifier;
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, the embodiment distributes the address association information containing the timer for the user, determines the survival state of the address association information through the timer information, and deletes the address association relationship when the timer is in the overtime state, so that a huge relationship information table is not required 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 rapidly realized through the modification of the timer information, and the flexible configuration of the IP address is realized, so that different application scenes can be adapted, and the method 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 a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood 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 above 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 disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention 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 apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. 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. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units 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 but not others included in other embodiments, 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 can be used in any combination.
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 some or all of the functionality of some or all of the components according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided 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 use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (8)

1. The method for distributing the terminal address of the Internet of things is characterized by comprising the following steps: the configuration of the user-level timer information and the APN-level timer is realized at the core network SAEGW, after receiving a terminal address allocation request, the core network SAEGW inquires whether the user-level timer information corresponding to the terminal address allocation request is configured, and if yes, the user-level timer information and the address allocation request are sent to the method execution equipment; if not, transmitting APN level timer information corresponding to the terminal address allocation request and the address allocation request to the method execution equipment;
the method comprises the steps that an execution device receives an address allocation request and obtains a user identifier corresponding to the address allocation request;
judging whether address association information of the user identifier is searched; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and timer information; wherein, the survival state of the address association information can be controlled according to the timer information; if the timer is in a timeout state, the corresponding address association information is automatically deleted, and the IP address in the corresponding address association information is recovered; if the timer is in the overtime state, the corresponding address association information is reserved, and the locking state of the IP address is maintained; the timer information comprises user-level timer information and/or APN-level timer information; if yes, distributing the IP address in the address association information to the user terminal corresponding to the user identifier;
if not, the IP address is allocated to the user terminal corresponding to the user identifier, and the address association information of the user identifier is generated according to the user identifier, the allocated IP address and the timer information carried by the address allocation request.
2. The method of claim 1, wherein the timer information further comprises: survival type of address association information;
wherein the survival type comprises at least one of the following types: a permanent type, a temporary type, and a specified duration type.
3. The method of 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.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
receiving a change request aiming at address association information, and changing the address association information according to the change request.
5. A method according to any one of claims 1-3, wherein said assigning an IP address to a user terminal corresponding to said user identity further comprises:
determining a target address pool according to APN and/or number segment information corresponding to the user identifier;
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.
6. An internet of things terminal address allocation device, which is characterized by comprising:
the receiving module is suitable for realizing the configuration of the user-level timer information and the APN-level timer at the core network SAEGW, and after receiving the terminal address allocation request, the core network SAEGW inquires whether the user-level timer information corresponding to the terminal address allocation request is configured, if yes, the user-level timer information and the address allocation request are sent to the method executing equipment; if not, transmitting APN level timer information corresponding to the terminal address allocation request and the address allocation request to the method execution equipment; 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 association information of the user identifier is searched; the address association information of the user identifier comprises: the user identification, the IP address associated with the user identification and timer information; wherein, the survival state of the address association information can be controlled according to the timer information; if the timer is in a timeout state, the corresponding address association information is automatically deleted, and the IP address in the corresponding address association information is recovered; if the timer is in the overtime state, the corresponding address association information is reserved, and the locking state of the IP address is maintained; the timer information comprises user-level timer information and/or APN-level 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 searched;
and the second allocation 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.
7. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform the operations corresponding to the method for allocating an address of an internet of things terminal according to any one of claims 1 to 5.
8. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method for assigning addresses to terminals of the internet of things of any one of claims 1-5.
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 CN114172864A (en) 2022-03-11
CN114172864B true 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914523B2 (en) * 2010-05-17 2014-12-16 Verizon Patent And Licensing Inc. Dynamic internet protocol registry for mobile internet protocol based communications
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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地址生成方案;况鹏等;《电信科学》;20200108;第35卷(第12期);15-23 *

Also Published As

Publication number Publication date
CN114172864A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN108924268B (en) Container cloud service system and pod creation method and device
EP3073374A1 (en) Thread creation method, service request processing method and related device
CN106897299B (en) Database access method and device
CN106375442B (en) Method and device for cross-platform management of equipment information
CN109819023B (en) Distributed transaction processing method and related product
US8832215B2 (en) Load-balancing in replication engine of directory server
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN111225082A (en) Identity management method and device of Internet of things intelligent equipment and Internet of things platform
CN112087401A (en) Method and device for realizing service quality in distributed storage
CN110798507B (en) Method and system for DHCP address allocation memory
EP3301626A1 (en) Method, device, and system
CN106302861B (en) Address allocation method and device
US11805422B2 (en) AP deployment in a network comprising a centralized system and a distributed system
CN114172864B (en) Internet of things terminal address allocation method and device
CN115333863B (en) Internet of things system building method based on dynamic domain name service and related equipment
CN111162942A (en) Cluster election method and system
CN114938375B (en) Container group updating equipment and container group updating method
CN111309467B (en) Task distribution method and device, electronic equipment and storage medium
CN109672665B (en) Access control method, device and system and computer readable storage medium
CN109218371A (en) A kind of method and apparatus calling data
CN106559439A (en) A kind of method for processing business and equipment
CN111294374A (en) Heterogeneous equipment starting system, method and device and electronic equipment
CN104869133A (en) Data recording method, system and access server
CN112134735B (en) Method and device for automatically expanding system
US6816888B2 (en) Communication process and system with service access points and groups of references where participant addresses are used to access a particular reference

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