CN116708370A - IP address allocation method, device, equipment and medium - Google Patents

IP address allocation method, device, equipment and medium Download PDF

Info

Publication number
CN116708370A
CN116708370A CN202310863668.8A CN202310863668A CN116708370A CN 116708370 A CN116708370 A CN 116708370A CN 202310863668 A CN202310863668 A CN 202310863668A CN 116708370 A CN116708370 A CN 116708370A
Authority
CN
China
Prior art keywords
address
terminal
authentication information
amf
subscription authentication
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.)
Pending
Application number
CN202310863668.8A
Other languages
Chinese (zh)
Inventor
张雪
徐洪磊
李华楠
王飞飞
杨坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp 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 Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202310863668.8A priority Critical patent/CN116708370A/en
Publication of CN116708370A publication Critical patent/CN116708370A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The disclosure provides an IP address allocation method, an IP address allocation device, IP address allocation equipment and an IP address allocation medium, and relates to the fields of network technology and security. The method comprises the following steps: in the process of terminal registration request, a session management function SMF acquires subscription authentication information of a terminal from a UDM; the SMF sends the signing authentication information of the terminal to an access and mobile management function AMF, so that the AMF takes the recorded appointed address as the IP address of the terminal under the condition that the IP address type in the signing authentication information of the terminal is a fixed address and the appointed address is recorded in the signing authentication information of the terminal, and allocates the IP address to the terminal according to the IP address type of the terminal and an address pool which is preconfigured in an AMF network element under the condition that the appointed address is not recorded in the signing authentication information of the terminal. According to the embodiment of the disclosure, the recorded designated address is used as the IP address of the terminal, so that the IP address of the terminal is the designated address, and the IP address is kept stable and unchanged.

Description

IP address allocation method, device, equipment and medium
Technical Field
The present disclosure relates to the field of network technologies and security, and in particular, to a method, an apparatus, a device, and a medium for IP address allocation.
Background
In the current 5G (5 th Generation Mobile Communication Technology, fifth generation mobile communication technology) network topology, a core network signaling procedure is to configure a dynamic address pool range in an SMF (Session Management Function ) network element, allocate a dynamic IP address (currently an IPv4 address) to a UE (User Equipment) when the UE establishes a PDU (Protocol Data Unit ) session, and retract the IP address (Internet Protocol Address ) after the session ends, and allocate a new dynamic IP address for the next PDU session.
The advantage of dynamic IP address allocation is that it enables the most efficient use of the IP address library, but in some scenarios a stable and constant IP address is required in order to increase the security of the network, and thus an improved scheme for dynamic IP address allocation is needed.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device, and a medium for IP address allocation, which at least overcome to some extent the problem that the dynamic IP address allocation scheme in the related art cannot achieve that the IP address is stable in a certain range or the IP address is unchanged.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided an IP address allocation method, in which an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, the address identification bit field is used to identify an IP address type of a terminal, the IP address type is a fixed address or a dynamic address, and the IP address allocation method includes:
in the process of terminal registration request, a session management function SMF acquires subscription authentication information of a terminal from a UDM;
the SMF sends the signing authentication information of the terminal to an access and mobile management function AMF, so that the AMF takes the recorded appointed address as the IP address of the terminal under the condition that the IP address type in the signing authentication information of the terminal is a fixed address and the appointed address is recorded in the signing authentication information of the terminal, and allocates the IP address to the terminal according to the IP address type of the terminal and an address pool which is preconfigured in an AMF network element under the condition that the appointed address is not recorded in the signing authentication information of the terminal.
In one embodiment of the present disclosure, the address pool preconfigured in the AMF network element includes a fixed address pool and a dynamic address pool, and when the AMF does not record the designated address in the subscription authentication information of the terminal, the AMF allocates an IP address to the terminal according to the IP address type of the terminal and the address pool preconfigured in the AMF network element, including:
Under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address for the terminal in a preset fixed address pool;
under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates the IP address for the terminal in a preset dynamic address pool.
In one embodiment of the present disclosure, the method further comprises:
the AMF establishes a corresponding relation between the 5G-GUTI and the terminal IP address according to the subscription authentication information, the terminal IP address is the IP address or the appointed address allocated by the AMF for the terminal, and the 5G-GUTI comprises an address identification bit field which is used for identifying the IP address type of the terminal.
In one embodiment of the present disclosure, in the case where the terminal IP address is a specified address described in subscription authentication information of the terminal, the terminal IP address does not change with a change in location and/or service of the terminal;
under the condition that the terminal IP address is AMF and the address is allocated for the terminal in a preset fixed address pool, when the terminal does not switch SMF and/or AMF, the terminal IP address is unchanged;
under the condition that the terminal IP address is AMF and the address is allocated for the terminal in a preset dynamic address pool, the terminal IP address changes along with the position of the terminal and/or the change of the service.
In one embodiment of the present disclosure, the subscription authentication information and the 5G-GUTI further include a subscriber identity field for identifying a subscriber type, where the subscriber type is a private network subscriber or a public network subscriber.
In one embodiment of the present disclosure, the IP address includes an IPv4 address and/or an IPv6 address.
In one embodiment of the present disclosure, in the case of address starvation in an address pool preconfigured in the AMF network element, the method further comprises:
the SMF receives an address pool allocation request sent by the AMF;
the SMF sends an address pool management instruction to the AMF in response to the address pool allocation request, the address pool management instruction to adjust an address range of an address pool in the AMF.
According to another aspect of the present disclosure, there is provided an IP address allocation method, in which an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, the address identification bit field is used to identify an IP address type of a terminal, the IP address type being a fixed address or a dynamic address, the IP address allocation method including:
the access and mobile management function AMF receives the subscription authentication information of the terminal sent by the session management function SMF, wherein the subscription authentication information of the terminal is obtained from the UDM by the SMF in the process of registering the terminal;
Under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is recorded in the subscription authentication information of the terminal, the AMF takes the recorded appointed address as the IP address of the terminal;
under the condition that the appointed address is not recorded in the signing authentication information of the terminal, the AMF distributes the IP address for the terminal according to the IP address type of the terminal and an address pool pre-configured in an AMF network element.
In one embodiment of the present disclosure, the address pool preconfigured in the AMF network element includes a fixed address pool and a dynamic address pool, and when the AMF does not record the designated address in the subscription authentication information of the terminal, the AMF allocates an IP address to the terminal according to the IP address type of the terminal and the address pool preconfigured in the AMF network element, including:
under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address for the terminal in a preset fixed address pool;
under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates the IP address for the terminal in a preset dynamic address pool.
According to another aspect of the present disclosure, there is provided an IP address allocation apparatus for introducing an address identification bit field in subscription authentication information of a unified data management function UDM, the address identification bit field being used to identify an IP address type of a terminal, the IP address type being a fixed address or a dynamic address, the IP address allocation apparatus comprising:
The subscription authentication information acquisition module is used for acquiring subscription authentication information of the terminal from the UDM by the session management function SMF in the terminal registration request process;
and the information forwarding module is used for sending the subscription authentication information of the terminal to the access and mobile management function AMF by the SMF so that the AMF can allocate the IP address to the terminal according to the IP address type of the terminal and a preset address pool in the AMF network element when the subscription authentication information of the terminal records the specified address and the recorded specified address is used as the IP address of the terminal and the subscription authentication information of the terminal does not record the specified address.
According to another aspect of the present disclosure, there is provided an IP address allocation apparatus for introducing an address identification bit field in subscription authentication information of a unified data management function UDM, the address identification bit field being used to identify an IP address type of a terminal, the IP address type being a fixed address or a dynamic address, the IP address allocation apparatus comprising:
the information receiving module is used for receiving the signing authentication information of the terminal sent by the session management function SMF by the access and mobile management function AMF, wherein the signing authentication information of the terminal is obtained from the UDM by the SMF in the process of a terminal registration request;
The first allocation module is used for taking the recorded appointed address as the IP address of the terminal when the IP address type in the subscription authentication information of the terminal is a fixed address and the appointed address is recorded in the subscription authentication information of the terminal;
and the second allocation module is used for allocating the IP address for the terminal according to the IP address type of the terminal and an address pool pre-configured in the AMF network element under the condition that the appointed address is not recorded in the subscription authentication information of the terminal.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a memory for storing instructions; and the processor is used for calling the instructions stored in the memory to realize the IP address allocation method.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the above-described IP address allocation method.
According to yet another aspect of the present disclosure, there is provided a computer program product storing instructions that, when executed by a computer, cause the computer to implement the above-described IP address allocation method.
According to yet another aspect of the present disclosure, there is provided a chip comprising at least one processor and an interface;
An interface for providing program instructions or data to at least one processor;
at least one processor is configured to execute the program instructions to implement the IP address allocation method described above.
According to the method, the device, the equipment and the medium for distributing the IP address, the address identification bit field is introduced into the subscription authentication information of the unified data management function UDM, the address identification bit field is used for identifying the IP address type of the terminal, the IP address type is a fixed address or a dynamic address, in the process of registering a request of the terminal, the session management function SMF acquires the subscription authentication information of the terminal from the UDM and sends the subscription authentication information to the access and mobile management function AMF, the IP address type of the AMF is the fixed address in the subscription authentication information of the terminal, and the recorded appointed address is used as the IP address of the terminal under the condition that the appointed address is recorded in the subscription authentication information of the terminal, so that the IP address of the terminal is the appointed address, and the IP address is kept stable and unchanged.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 is a schematic diagram of a 5G dynamic IP address allocation flow in the related art;
FIG. 2 shows a flow chart of a method for IP address assignment in an embodiment of the disclosure;
FIG. 3 is a schematic flow chart of acquiring IP addresses and private network user attributes from a registration request according to an embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of SMF establishing a fixed address pool in an embodiment of the present disclosure;
FIG. 5 is a flow chart illustrating another method of IP address assignment in an embodiment of the present disclosure;
FIG. 6 illustrates a flow chart of yet another IP address assignment method in an embodiment of the disclosure;
fig. 7 is a schematic diagram of an IP address allocation apparatus according to an embodiment of the disclosure;
fig. 8 is a schematic diagram of another IP address assignment apparatus in an embodiment of the disclosure;
fig. 9 shows a block diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully hereinafter with reference to the accompanying drawings.
It should be noted that the exemplary embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein.
For ease of understanding, the following first explains the several terms involved in this disclosure as follows:
IP address (Internet Protocol Address ), which is a unified address format provided by the IP protocol, assigns a logical address to each network and each host on the internet, thereby masking the differences in physical addresses.
SMF (Session Management Function ), which is a core network element of 5GC, is responsible for session management related functions including setting up, modifying, releasing sessions, etc., and specific functions include IP address allocation, selecting, controlling user plane functions, etc. during session setup.
The PDU (Protocol Data Unit, packet data unit) refers to a data unit transferred between peer layers, each protocol has a respective format, the PDU at the physical layer is a data bit (bit), the PDU at the data link layer is a data frame (frame), the PDU at the network layer is a packet (packet), the PDU at the transport layer is a data segment (segment), and the other higher-level PDUs are messages (message), which may be collectively referred to as a packet in practical use.
The purpose of using 5G-GUTI under 5G system is to reduce the permanent identification of UE used in communication, and to improve security, 5G-GUTI is composed of two parts, the first part is the 5G-GUTI allocated by which AMF, and the second part represents the unique identity number of UE in AMF.
(R) AN: (Radio) Access Network, (Radio) Access Network.
In the current 5G network topology, one SMF is to manage many UPFs. As shown in fig. 1, based on convenience in management, the core network signaling flow is to configure an address dynamic address pool range in the SMF, allocate a dynamic IP address (currently an IPv4 address) to the UE when the UE establishes a PDU session, and allocate a new dynamic IP address for the next PDU session when the IP address is retracted after the session is ended.
The advantage of dynamic IP address allocation is that the IP address library can be fully utilized, and the disadvantage is that the IP address of each service of a user is changed.
The characteristics of high bandwidth, low time delay, wide connection and mobility of the 5G network are popular with public users and industry users, and for industries such as mines, industrial manufacturing, ports and the like, the 5G customized network is required to meet local processing requirements of services, so that high safety of service data, low time delay of service processing and high stability are ensured.
In the current mobile network technology, compared with the fixed network, the universal 5G user allocates different IP addresses to the same UE, i.e. allocates a dynamic IP address to the same UE, in the process of establishing a PDU session. While 5G customized network users based on internal access security isolation firewalls, it is desirable for the customized network users to be able to keep the IP address field within a defined range in the data connection for IP address field security settings.
According to the embodiment of the disclosure, an address identification bit field is introduced into subscription authentication information of a unified data management function (UDM), and the address identification bit field is used for identifying the IP address type of a terminal, wherein the IP address type is a fixed address or a dynamic address.
Fig. 2 shows a flowchart of an IP address allocation method in an embodiment of the present disclosure, and as shown in fig. 2, the IP address allocation method provided in the embodiment of the present disclosure includes steps S202 to S208, on the basis of introducing an address identification bit field into subscription authentication information of the UDM.
In S202, in the terminal registration request procedure, the SMF acquires subscription authentication information of the terminal from the UDM.
The terminal can be a wireless communication device such as a mobile phone, a tablet personal computer, a notebook computer, a vehicle-mounted communication device, an unmanned aerial vehicle and the like.
The SMF in the above step may be a new SMF after the terminal switches the SMF.
The subscription authentication information may be terminal context information obtained by the AMF network element from the UDM network element, where the terminal context information includes an address identification bit field, where the address identification bit field is used to identify an IP address type of the terminal, and the IP address type is a fixed address or a dynamic address.
The IP addresses in the embodiments of the present disclosure include IPv4 addresses and/or IPv6 addresses.
In some embodiments, the subscription authentication information may further include a subscriber identification bit field, where the subscriber identification bit field is used to identify a subscriber type, and the subscriber type is a private network subscriber or a public network subscriber.
In one embodiment, a field ipstat is introduced to specify whether the user signs a subscription for a private network user public network IP address in a user signing template, and is used for identifying whether the user signs a subscription for a static/specified IP address, if the user signs a subscription for a specified IP address, IPV4IND/IPV6IND needs to be set to TRUE for at least one of the two fields; if the subscription is that the static IP address is not the specified IP address, then both fields IPV4IND/IPV6IND are FALSE.
The IPV4IND/IPV6IND fields are set as TRUE, one public network IP address (fixed IP) is directly assigned to a user, the IPV4ADDR/IPV6ADDR is written, only one IPV4/IPV6 can be assigned, and the other IPV4/IPV6 address conversion rule can be obtained.
As an embodiment, the subscription authentication information may include fields in the following table, and each field has the meaning given in the following table.
Table 1 IP address attribute field in UDM
In S204, the SMF sends subscription authentication information of the terminal to the AMF.
As shown in fig. 3, after the terminal switches between the new SMF and the new AMF, in the registration request process, the terminal obtains the contracted fixed IP address information according to the contract information of the UDM, if the private network user, and transmits the private network user attribute to the SMF.
In S206, when the IP address type in the subscription authentication information of the terminal is a fixed address and the specified address is recorded in the subscription authentication information of the terminal, the AMF uses the recorded specified address as the IP address of the terminal.
In S208, if the subscription authentication information of the terminal does not record the designated address, the AMF allocates an IP address to the terminal according to the IP address type of the terminal and an address pool pre-configured in the AMF network element.
In some embodiments, the pre-configured address pools in the AMF network elements include fixed address pools and dynamic address pools. The step S208 may be that the AMF allocates an IP address to the terminal in a preset fixed address pool when the IP address type in the subscription authentication information of the terminal is a fixed address and the subscription authentication information of the terminal is not recorded with the specified address; under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates the IP address for the terminal in a preset dynamic address pool.
In some embodiments, the AMF establishes a correspondence between the 5G-GUTI and the terminal IP address according to the subscription authentication information, where the terminal IP address is an IP address or a specified address allocated by the AMF to the terminal, and the 5G-GUTI includes an address identification bit field, where the address identification bit field is used to identify an IP address type of the terminal.
5G-GUTI (Globally Unique Temporary UE Identity): the UE is uniquely identified in the network, and the 5G-GUTI is distributed to the UE by the AMF, so that user private identifications such as SUPI and the like can be prevented from being exposed in network transmission.
For fast query and correspondence of the fixed IP, an identification bit of the fixed IP may be introduced into the 5G-GUTI, for example, the first bit (or other bits) is identified as the fixed IP,0 is the dynamic IP, the second bit (or other bits) is identified as the private network user, 0 is the public network user, or the other bits are identified. After the 5G-GUTI fixed IP address identification bit is established, the IP address can be divided according to the condition of the 5G-GUTI identification bit in the conversation process, if the IP address is dynamic IP, the dynamic IP can be directly allocated, and the time for inquiring the IP address table is reduced. Or to differentiate private network subscribers to provide private network services.
The 5G-GUTI fixed identification position method is not only suitable for fixed IP identification, but also suitable for government enterprises/personal business distinction, special slice user distinction and other scenes.
In some embodiments, in the case that the terminal IP address is a specified address described in subscription authentication information of the terminal, the terminal IP address does not change with a change in location and/or service of the terminal; under the condition that the terminal IP address is AMF and the address is allocated for the terminal in a preset fixed address pool, when the terminal does not switch SMF and/or AMF, the terminal IP address is unchanged; under the condition that the terminal IP address is AMF and the address is allocated for the terminal in a preset dynamic address pool, the terminal IP address changes along with the position of the terminal and/or the change of the service.
In some embodiments, the subscription authentication information and the 5G-GUTI further include a user identification bit field for identifying a user type, wherein the user type is a private network user or a public network user.
In some embodiments, in the case of address deficiency in an address pool preconfigured in the AMF network element, the method may further include: the SMF receives an address pool allocation request sent by the AMF; the SMF sends an address pool management instruction to the AMF in response to the address pool allocation request, the address pool management instruction to adjust an address range of an address pool in the AMF.
In the embodiment of the disclosure, the SMF performs configuration of an AMF dynamic address pool and a fixed address pool range, and the AMF performs IP address allocation.
As shown in fig. 4, IP address management on the SMF responsible for managing the AMF includes: fixed address pools, dynamic address pool ranges, adjustments, reclamation, etc. For the appointed IP address in the user subscription data, directly transmitting the appointed IP address to the AMF, and establishing an appointed IP corresponding relation; if signing fixed IP (non-appointed IP), designating a fixed IP address pool range in the AMF, and establishing a corresponding relation of the fixed IP address pool by the AMF; if the address is a dynamic IP address, the AMF is directly allocated in the dynamic IP address pool range.
The AMF establishes an IP address pool and a relation table, so that the signaling flow can be reduced, and the allocation of IP addresses can be realized rapidly; managing the AMF on the SMF for IP address pool ranges facilitates efficient utilization of the IP address pool.
Setting an IP address pool in an AMF, and dividing the AMF into a fixed address pool and a dynamic address pool; the dynamic address pool and fixed address pool ranges of the AMF are allocated/adjusted by the SMF, and the specified address is a specified IP address directly carried in the authentication information.
And the dynamic address pool is in a range IPd1-Ipdx, the range is managed by SMF, if the fixed IP address attribute field IPSTATIC in the authentication information is FALSE, the corresponding relation between the IP address and the 5G-GUTI is established in the dynamic IP address range, and the dynamic IP address is allocated for the session.
And the fixed address pool is used for acquiring the corresponding relation between the appointed IP address and the 5G-GUTI according to the subscription authentication information.
The fixed (appointed) IP address is not used as a standard flow in the current 5G system, most of the current implementation modes are used for configuring the IP address in the UPF, the strategy of the fixed IP is invalid when a user switches the UPF, the fixed IP address can be distributed in the whole network range, and the IP address can be kept unchanged when the user switches or roams.
Based on the same inventive concept, the embodiment of the present disclosure further provides an IP address allocation method, where an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, where the address identification bit field is used to identify an IP address type of a terminal, and the IP address type is a fixed address or a dynamic address, as shown in fig. 5, and the IP address allocation method includes steps S502 to S504.
S502, in the process of terminal registration request, a session management function SMF acquires subscription authentication information of a terminal from a UDM;
and S504, the SMF sends the subscription authentication information of the terminal to an access and mobile management function (AMF) so that the AMF can allocate the IP address to the terminal according to the IP address type of the terminal and a preset address pool in an AMF network element when the terminal subscription authentication information is a fixed address and the specified address is recorded in the subscription authentication information of the terminal, and the recorded specified address is used as the IP address of the terminal and the specified address is not recorded in the subscription authentication information of the terminal.
In some embodiments, the address pool preconfigured in the AMF network element includes a fixed address pool and a dynamic address pool, and when the AMF does not record the designated address in the subscription authentication information of the terminal, the AMF allocates an IP address to the terminal according to the IP address type of the terminal and the address pool preconfigured in the AMF network element, including: under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address for the terminal in a preset fixed address pool; under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates the IP address for the terminal in a preset dynamic address pool.
According to the embodiment of the disclosure, a method for fixing the IP is provided in a 5G system, and roaming in the whole network range can be realized, and the IP address is still kept unchanged; the 5G-GUTI flag bit of the fixed IP address/private network user is provided, so that the distribution range and the distribution method of the IP address can be more efficient, and the fixed address/specific address segment of the 5G private network user can be obtained, thereby obtaining better user experience.
Based on the same inventive concept, the embodiment of the present disclosure further provides an IP address allocation method, where an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, where the address identification bit field is used to identify an IP address type of a terminal, and the IP address type is a fixed address or a dynamic address, as shown in fig. 6, and the IP address allocation method includes steps S602 to S606.
S602, an access and mobile management function AMF receives subscription authentication information of a terminal sent by a session management function SMF, wherein the subscription authentication information of the terminal is obtained from a UDM in a terminal registration request process by the SMF;
s604, when the IP address type in the signing authentication information of the terminal is a fixed address and the appointed address is recorded in the signing authentication information of the terminal, the AMF takes the recorded appointed address as the IP address of the terminal;
S606, if the appointed address is not recorded in the signing authentication information of the terminal, the AMF allocates the IP address to the terminal according to the IP address type of the terminal and an address pool pre-configured in the AMF network element.
In some embodiments, the address pool preconfigured in the AMF network element includes a fixed address pool and a dynamic address pool, and when the AMF does not record the designated address in the subscription authentication information of the terminal, the AMF allocates an IP address to the terminal according to the IP address type of the terminal and the address pool preconfigured in the AMF network element, including: under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address for the terminal in a preset fixed address pool; under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates the IP address for the terminal in a preset dynamic address pool.
In the presently disclosed embodiments, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The term "and/or" in this disclosure is merely one association relationship describing the associated object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results.
In some embodiments, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
Based on the same inventive concept, the embodiment of the present disclosure also provides an IP address allocation apparatus, as described in the following embodiment. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
An address identification bit field is introduced into subscription authentication information of the unified data management function UDM, and is used for identifying the IP address type of the terminal, wherein the IP address type is a fixed address or a dynamic address.
Fig. 7 shows a schematic diagram of an IP address allocation apparatus according to an embodiment of the present disclosure, and as shown in fig. 7, the IP address allocation apparatus 700 includes:
a subscription authentication information obtaining module 702, configured to obtain subscription authentication information of a terminal from the UDM by using a session management function SMF in a terminal registration request process;
The information forwarding module 704 is configured to send the subscription authentication information of the terminal to the access and mobility management function AMF by using the SMF, so that the AMF assigns an IP address to the terminal according to the IP address type of the terminal and an address pool preconfigured in the AMF network element when the terminal subscription authentication information includes a specified address, and the specified address is used as the IP address of the terminal when the terminal subscription authentication information includes no specified address.
In some embodiments, the address pool preconfigured in the AMF network element includes a fixed address pool and a dynamic address pool, and when the AMF does not record the designated address in the subscription authentication information of the terminal, the AMF allocates an IP address to the terminal according to the IP address type of the terminal and the address pool preconfigured in the AMF network element, including: under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address for the terminal in a preset fixed address pool; under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates the IP address for the terminal in a preset dynamic address pool.
In some embodiments, the IP address allocating apparatus 700 may further include:
the data processing module is used for establishing a corresponding relation between the 5G-GUTI and the terminal IP address according to the subscription authentication information, wherein the terminal IP address is an IP address or a designated address allocated by the AMF to the terminal, and the 5G-GUTI comprises an address identification bit field which is used for identifying the IP address type of the terminal.
In some embodiments, in the case that the terminal IP address is a specified address described in subscription authentication information of the terminal, the terminal IP address does not change with a change in location and/or service of the terminal; under the condition that the terminal IP address is AMF and the address is allocated for the terminal in a preset fixed address pool, when the terminal does not switch SMF and/or AMF, the terminal IP address is unchanged; under the condition that the terminal IP address is AMF and the address is allocated for the terminal in a preset dynamic address pool, the terminal IP address changes along with the position of the terminal and/or the change of the service.
In some embodiments, the subscription authentication information and the 5G-GUTI further include a user identification bit field for identifying a user type, wherein the user type is a private network user or a public network user.
In some embodiments, the IP address comprises an IPv4 address and/or an IPv6 address.
In some embodiments, the IP address allocating apparatus 700 may further include:
the allocation request receiving module is used for receiving an address pool allocation request sent by the AMF under the condition that the address in the address pool pre-configured in the AMF network element is insufficient;
and the address pool management module is used for the SMF to respond to the address pool allocation request and send an address pool management instruction to the AMF, wherein the address pool management instruction is used for adjusting the address range of the address pool in the AMF.
Fig. 8 shows a schematic diagram of an IP address allocation apparatus according to an embodiment of the disclosure, and as shown in fig. 8, the IP address allocation apparatus 800 includes:
the information receiving module 802 is configured to receive, by using the access and mobility management function AMF, subscription authentication information of a terminal sent by the session management function SMF, where the subscription authentication information of the terminal is obtained from the UDM in a terminal registration request process by the SMF;
a first allocation module 804, configured to, when the IP address type in the subscription authentication information of the terminal is a fixed address and the subscription authentication information of the terminal records a specified address, use the recorded specified address as the IP address of the terminal by the AMF;
the second allocation module 806 is configured to allocate an IP address to the terminal according to the IP address type of the terminal and an address pool configured in advance in the AMF network element, where the designated address is not recorded in the subscription authentication information of the terminal.
In some embodiments, the address pool pre-configured in the AMF network element includes a fixed address pool and a dynamic address pool, and the second allocation module 806 is specifically configured to allocate an IP address for the terminal in the preset fixed address pool when the IP address type in the subscription authentication information of the terminal is a fixed address and the subscription authentication information of the terminal is not recorded with the designated address; under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates the IP address for the terminal in a preset dynamic address pool.
The terms "first," "second," and the like in this disclosure are used solely to distinguish one from another device, module, or unit, and are not intended to limit the order or interdependence of functions performed by such devices, modules, or units.
With regard to the IP address assignment apparatus in the above-described embodiment, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment regarding the IP address assignment method, and will not be described in detail here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory.
Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
An electronic device provided by an embodiment of the present disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
Fig. 9 shows a schematic architecture diagram of an electronic device 900 according to the present disclosure. As shown in fig. 9, the electronic device 900 includes, but is not limited to: at least one processor 910, at least one memory 920.
Memory 920 for storing instructions.
In some embodiments, memory 920 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 9201 and/or cache memory 9202, and may further include Read Only Memory (ROM) 9203.
In some embodiments, memory 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
In some embodiments, memory 920 may store an operating system. The operating system may be a real-time operating system (Real Time eXecutive, RTX), LINUX, UNIX, WINDOWS or OS X like operating systems.
In some embodiments, memory 920 may also have data stored therein.
As one example, processor 910 may read data stored in memory 920, which may be stored at the same memory address as the instructions, or which may be stored at a different memory address than the instructions.
A processor 910 for invoking instructions stored in memory 920 to perform steps according to various exemplary embodiments of the present disclosure described in the above "exemplary methods" section of the present specification. For example, the processor 910 may perform the steps of the method embodiments described above.
It should be noted that the processor 910 may be a general-purpose processor or a special-purpose processor. Processor 910 may include one or more processing cores, and processor 910 performs various functional applications and data processing by executing instructions.
In some embodiments, the processor 910 may include a central processing unit (central processing unit, CPU) and/or a baseband processor.
In some embodiments, processor 910 may determine an instruction based on a priority identification and/or functional class information carried in each control instruction.
In the present disclosure, the processor 910 and the memory 920 may be separately provided or may be integrated.
As one example, processor 910 and memory 920 may be integrated on a single board or System On Chip (SOC).
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. The electronic device 900 may also include a bus 930.
The bus 930 may be any one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 900, and/or any devices (e.g., routers, modems, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 950.
Also, electronic device 900 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 960.
As shown in fig. 9, the network adapter 960 communicates with other modules of the electronic device 900 over the bus 930.
It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 900, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
It is to be understood that the illustrated structure of the presently disclosed embodiments does not constitute a particular limitation of the electronic device 900. In other embodiments of the present disclosure, electronic device 900 may include more or fewer components than shown in FIG. 9, or may combine certain components, or split certain components, or a different arrangement of components. The components shown in fig. 9 may be implemented in hardware, software, or a combination of software and hardware.
The present disclosure also provides a computer-readable storage medium having stored thereon computer instructions that, when executed by a processor, implement the IP address allocation method described in the above method embodiments.
A computer-readable storage medium in an embodiment of the present disclosure is a computer instruction that can be transmitted, propagated, or transmitted for use by or in connection with an instruction execution system, apparatus, or device.
As one example, the computer-readable storage medium is a non-volatile storage medium.
In some embodiments, more specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, a U disk, a removable hard disk, or any suitable combination of the foregoing.
In an embodiment of the present disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with computer instructions (readable program code) carried therein.
Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing.
In some examples, the computing instructions contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The disclosed embodiments also provide a computer program product storing instructions that, when executed by a computer, cause the computer to implement the IP address allocation method described in the above method embodiments.
The instructions may be program code. In particular implementations, the program code can be written in any combination of one or more programming languages.
The programming languages include object oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages.
The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The embodiment of the disclosure also provides a chip comprising at least one processor and an interface;
an interface for providing program instructions or data to at least one processor;
at least one processor is configured to execute the program instructions to implement the IP address allocation method described in the method embodiments above.
In some embodiments, the chip may also include a memory for holding program instructions and data, the memory being located either within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that all or a portion of the steps implementing the above embodiments may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein.
This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (13)

1. An IP address allocation method, characterized in that an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, where the address identification bit field is used to identify an IP address type of a terminal, and the IP address type is a fixed address or a dynamic address, and the IP address allocation method includes:
in the process of terminal registration request, a session management function SMF acquires subscription authentication information of a terminal from a UDM;
the SMF sends the signing authentication information of the terminal to an access and mobile management function AMF, so that the AMF takes the specified address as the IP address of the terminal when the IP address type is a fixed address in the signing authentication information of the terminal and the specified address is recorded in the signing authentication information of the terminal, and allocates the IP address to the terminal according to the IP address type of the terminal and an address pool which is preconfigured in an AMF network element when the specified address is not recorded in the signing authentication information of the terminal.
2. The method according to claim 1, wherein the address pool preconfigured in the AMF network element includes a fixed address pool and a dynamic address pool, and the AMF allocates an IP address to the terminal according to the IP address type of the terminal and the address pool preconfigured in the AMF network element if the subscription authentication information of the terminal does not record the specified address, including:
under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address for the terminal in a preset fixed address pool;
and under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates an IP address for the terminal in a preset dynamic address pool.
3. The method according to claim 2, wherein the method further comprises:
the AMF establishes a corresponding relation between the 5G-GUTI and the terminal IP address according to the subscription authentication information, wherein the terminal IP address is the IP address distributed by the AMF for the terminal or the appointed address, the 5G-GUTI comprises an address identification bit field, and the address identification bit field is used for identifying the IP address type of the terminal.
4. A method according to claim 3, characterized in that in case the terminal IP address is a specified address described in the subscription authentication information of the terminal, the terminal IP address does not change with the location of the terminal and/or with the change of the service;
under the condition that the terminal IP address is AMF and an address is allocated to the terminal in a preset fixed address pool, when the terminal does not switch SMF and/or AMF, the terminal IP address is unchanged;
under the condition that the terminal IP address is AMF and the address is allocated to the terminal in a preset dynamic address pool, the terminal IP address changes along with the position and/or service change of the terminal.
5. A method according to claim 3, wherein the subscription authentication information and the 5G-GUTI further comprise a subscriber identity field for identifying a subscriber type, the subscriber type being a private network subscriber or a public network subscriber.
6. The method according to claim 1, wherein the IP address comprises an IPv4 address and/or an IPv6 address.
7. The method according to any of claims 1-6, wherein in case of address starvation in a pre-configured address pool in the AMF network element, the method further comprises:
The SMF receives an address pool allocation request sent by the AMF;
the SMF responds to the address pool allocation request and sends an address pool management instruction to the AMF, wherein the address pool management instruction is used for adjusting the address range of an address pool in the AMF.
8. An IP address allocation method, characterized in that an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, where the address identification bit field is used to identify an IP address type of a terminal, and the IP address type is a fixed address or a dynamic address, and the IP address allocation method includes:
the method comprises the steps that an access and mobile management function (AMF) receives subscription authentication information of a terminal sent by a Session Management Function (SMF), wherein the subscription authentication information of the terminal is acquired from a UDM (universal description manager) by the SMF in a terminal registration request process;
when the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is recorded in the subscription authentication information of the terminal, the AMF takes the recorded appointed address as the IP address of the terminal;
and under the condition that the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address to the terminal according to the IP address type of the terminal and an address pool pre-configured in the AMF network element.
9. The method according to claim 8, wherein the address pool preconfigured in the AMF network element includes a fixed address pool and a dynamic address pool, and the AMF allocates an IP address to the terminal according to the IP address type of the terminal and the address pool preconfigured in the AMF network element if the subscription authentication information of the terminal does not record the specified address, including:
under the condition that the type of the IP address in the subscription authentication information of the terminal is a fixed address and the appointed address is not recorded in the subscription authentication information of the terminal, the AMF allocates the IP address for the terminal in a preset fixed address pool;
and under the condition that the IP address type in the subscription authentication information of the terminal is a dynamic address, the AMF allocates an IP address for the terminal in a preset dynamic address pool.
10. An IP address allocation apparatus, characterized in that an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, where the address identification bit field is used to identify an IP address type of a terminal, and the IP address type is a fixed address or a dynamic address, and the IP address allocation apparatus includes:
the subscription authentication information acquisition module is used for acquiring subscription authentication information of the terminal from the UDM by the session management function SMF in the terminal registration request process;
And the information forwarding module is used for sending the subscription authentication information of the terminal to an access and mobile management function (AMF) by the SMF so that the AMF can allocate the IP address to the terminal according to the IP address type of the terminal and a preset address pool in the AMF network element when the subscription authentication information of the terminal records the specified address and the recorded specified address is used as the IP address of the terminal and the subscription authentication information of the terminal does not record the specified address.
11. An IP address allocation apparatus, characterized in that an address identification bit field is introduced into subscription authentication information of a unified data management function UDM, where the address identification bit field is used to identify an IP address type of a terminal, and the IP address type is a fixed address or a dynamic address, and the IP address allocation apparatus includes:
the information receiving module is used for receiving the signing authentication information of the terminal sent by the session management function SMF by the access and mobile management function AMF, wherein the signing authentication information of the terminal is obtained from the UDM by the SMF in the process of a terminal registration request;
The first allocation module is used for taking the recorded appointed address as the IP address of the terminal when the IP address type in the subscription authentication information of the terminal is a fixed address and the appointed address is recorded in the subscription authentication information of the terminal;
and the second allocation module is used for allocating the IP address to the terminal according to the IP address type of the terminal and an address pool pre-configured in the AMF network element by the AMF under the condition that the appointed address is not recorded in the subscription authentication information of the terminal.
12. An electronic device, comprising:
a memory for storing instructions;
a processor for invoking instructions stored in said memory to implement the IP address allocation method of any of claims 1-9.
13. A computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the IP address allocation method of any of claims 1-9.
CN202310863668.8A 2023-07-13 2023-07-13 IP address allocation method, device, equipment and medium Pending CN116708370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310863668.8A CN116708370A (en) 2023-07-13 2023-07-13 IP address allocation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310863668.8A CN116708370A (en) 2023-07-13 2023-07-13 IP address allocation method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116708370A true CN116708370A (en) 2023-09-05

Family

ID=87845173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310863668.8A Pending CN116708370A (en) 2023-07-13 2023-07-13 IP address allocation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116708370A (en)

Similar Documents

Publication Publication Date Title
US20210044454A1 (en) Communication Method and Device
US12113667B2 (en) Network slice configuration method, apparatus, and system
CN113596191B (en) Data processing method, network element equipment and readable storage medium
EP3657765B1 (en) Multi-access edge network service system and network service method
CN114268607B (en) Fixed IP address allocation method, system, user plane function network element and storage medium
CN112104757A (en) Method, equipment and system for configuring IP address
CN114938508B (en) 5G private network control method and device, electronic equipment and storage medium
CN114342332A (en) Communication method, device and system
CN116668511A (en) Data processing method, network element equipment and readable storage medium
CN114285900A (en) Scheduling system, authentication method, scheduling method, apparatus, server, and medium
US11765575B2 (en) Apparatus, method and computer program
CN115002686B (en) Terminal communication method and device, computer storage medium and electronic equipment
CN114071649B (en) Method and device for accessing local network
CN116708370A (en) IP address allocation method, device, equipment and medium
CN108259345B (en) Port generation method and device
WO2017215381A1 (en) Method and device for indicating virtual expansion port, and storage medium
US20230171673A1 (en) Method and system for routing an internet protocol data packet between wireless computer devices connected to a cellular network
CN111315037B (en) Communication link establishing method and device, computer equipment and storage medium
CN114900499B (en) IP address allocation method, device, equipment and storage medium
CN114449585A (en) Method, device and system for accessing application to network
CN116347562B (en) Information configuration method, device, related equipment and storage medium
WO2023082668A1 (en) Emergency communication method and apparatus for snpn, and device and storage medium
CN114979079B (en) Information processing method, information processing device, related equipment and storage medium
CN117082152B (en) Service processing method, system and device
CN111147345B (en) Cloud environment network isolation device and method and cloud system

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