IP address field division method and device, equipment, medium and product
By dividing the IP address segments of IoT terminals and making them associate specific UPF and SMF devices, the problem of duplicate IP address allocation is solved, and business stability and conflict-free allocation are achieved.
Patent Information
- Application Number
- CN202510136325.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2025-05-13
AI Technical Summary
When the Internet of Things terminals connect to the Internet, different core network equipment manufacturers have different mechanisms when allocating IP addresses, which may lead to duplicate IP addresses allocations in the terminal and lead to business conflicts.
By obtaining the IP address segment to be divided and determining multiple user-side function UPF devices and session management function SMF devices, dividing the IP address segment to be divided to obtain multiple IP address segments. Each IP address segment is associated with one UPF device and one SMF device, and the UPF devices and/or SMF devices associated with any two IP address segments are different.
The IP address segments corresponding to SMF devices associated with each UPF device are different, avoiding duplicate IP address allocation of terminals and avoiding service conflicts.
Smart Images

Figure CN119996375A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of Internet of Things, and in particular, relates to a method, device, equipment, medium and product for dividing IP address segments. Background Art
[0002] The Internet of Things is a network technology that allows IoT terminals to connect to the Internet through embedded sensors and software to achieve data exchange and intelligent interaction. In IoT technology, IoT terminals are generally connected to the Internet through wireless networks and core networks.
[0003] When IoT terminals access the Internet, the core network will allocate an Internet Protocol (IP) address to each IoT terminal. Since different core network equipment manufacturers have different mechanisms for allocating IP addresses to their connected terminals (such as mobile phones, IoT devices, etc.), terminal IP addresses may be allocated repeatedly. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device, medium and product for dividing IP address segments, which can effectively avoid the situation in which terminal IP address allocation is repeated in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for dividing an IP address segment, the method comprising:
[0006] Acquire an IP address segment to be divided, where the IP address segment to be divided is determined based on the first requirement information;
[0007] Determine a plurality of first user plane function UPF devices and a plurality of first session management function SMF devices;
[0008] The IP address segments to be divided are divided to obtain multiple first IP address segments, each first IP address segment is associated with a first target UPF device and a first target SMF device, the first target UPF devices and / or first target SMF devices respectively associated with any two first IP address segments among the multiple first IP address segments are different, the first target UPF device is any one of the multiple first UPF devices, and the first target SMF device is any one of the multiple first SMF devices.
[0009] In a second aspect, an embodiment of the present application provides a device for dividing an IP address segment, the device comprising:
[0010] An acquisition module, used for acquiring an IP address segment to be divided, where the IP address segment to be divided is determined based on the first requirement information;
[0011] A determination module, used to determine a plurality of first user plane function UPF devices and a plurality of first session management function SMF devices;
[0012] A division module is used to divide the IP address segment to be divided to obtain multiple first IP address segments, each first IP address segment is associated with a first target UPF device and a first target SMF device, the first target UPF device and / or first target SMF device respectively associated with any two first IP address segments among the multiple first IP address segments are different, the first target UPF device is any one of the multiple first UPF devices, and the first target SMF device is any one of the multiple first SMF devices.
[0013] In a third aspect, an electronic device is provided, comprising: a memory for storing computer program instructions; and a processor for reading and running the computer program instructions stored in the memory to execute the method for dividing IP address segments provided in any optional implementation manner in the first aspect.
[0014] In a fourth aspect, a computer storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method for dividing IP address segments provided by any optional implementation method in the first aspect is implemented.
[0015] In a fifth aspect, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, it implements the method for dividing IP address segments provided by any optional implementation method in the first aspect.
[0016] In an embodiment of the present application, it is possible to obtain the IP address segment to be divided, and determine multiple first UPF devices and multiple first SMF devices, and then divide the IP address segment to be divided to obtain multiple first IP address segments, and make each first IP address segment associated with a UPF device and an SMF device, and the UPF devices and / or SMF devices associated with any two first IP address segments are different. In this way, the IP address segments corresponding to the SMF devices associated with each UPF device can be different from each other, and the situation of repeated terminal IP address allocation can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 This is one of the flow diagrams of a method for dividing IP address segments provided in an embodiment of the present application;
[0019] Figure 2 This is a second flow chart of a method for dividing IP address segments provided in an embodiment of the present application;
[0020] Figure 3 This is a flowchart of a method for dividing IP address segments provided in an embodiment of the present application;
[0021] Figure 4 This is a fourth flow chart of a method for dividing IP address segments provided in an embodiment of the present application;
[0022] Figure 5 It is a structural diagram of a device for dividing IP address segments provided in an embodiment of the present application;
[0023] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0026] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0027] As described in the background technology, in the process of IoT terminals accessing the Internet, the core network will allocate an IP address to each IoT terminal. Different core network equipment manufacturers have different mechanisms for allocating IP addresses to their connected terminals. Specifically, in the 3rd Generation Partnership Project (3GPP) protocol specification, the user plane function (UPF) or session management function (SMF) can be used to allocate terminal IP addresses. If SMF is used to allocate terminal IP addresses, when a large number of users access, different terminals may be allocated to the same terminal address from different SMFs, and then select the same set of UPF gateways. This will cause IP address conflicts for different terminals, which may cause business obstruction. If UPF is used to allocate terminal IP addresses, different address pools can be divided according to different UPFs. When the terminal obtains the same IP address on different SMFs, it will also cause repeated terminal address allocation and business conflict problems.
[0028] Based on this, in order to solve the problem of repeated terminal IP address allocation in the prior art, the embodiments of the present application provide a method, apparatus, device, medium and product for dividing IP address segments, which can obtain the IP address segment to be divided, and determine multiple first UPF devices and multiple first SMF devices, and then divide the IP address segment to be divided to obtain multiple first IP address segments, and make each first IP address segment associated with a UPF device and an SMF device, and the UPF devices and / or SMF devices associated with any two first IP address segments are different. In this way, the IP address segments corresponding to the SMF devices associated with each UPF device can be different, thereby avoiding the situation of repeated terminal IP address allocation and avoiding the problem of business conflicts.
[0029] It should be noted that the execution subject of the method for dividing IP address segments provided in the embodiment of the present application may be a device for dividing IP address segments, or a control module in the device for dividing IP address segments for executing the method for dividing IP address segments. In the embodiment of the present application, the method for dividing IP address segments provided in the embodiment of the present application is described by taking the method for dividing IP address segments executed by the device for dividing IP address segments as an example.
[0030] The following describes in detail the method for dividing IP address segments provided in the embodiment of the present application through specific examples in conjunction with the accompanying drawings.
[0031] Figure 1 This is one of the flow charts of a method for dividing IP address segments provided in an embodiment of the present application.
[0032] like Figure 1As shown, the execution subject of the method may be a device for dividing IP address segments, and the method may specifically include the following steps:
[0033] S110, obtaining the IP address segment to be divided.
[0034] In some embodiments, the IP address segment to be divided may be determined based on first requirement information, wherein the IP address segment to be divided may include multiple IP addresses, and the first requirement information may be based on user requirements, which is not specifically limited here.
[0035] S120, determine multiple first user plane function UPF devices and multiple first session management function SMF devices.
[0036] It should be noted here that UPF is responsible for data forwarding and processing, and SMF is responsible for session establishment and management. In the 5th Generation Mobile Communication Technology (5G) network of the 3GPP protocol, SMF and UPF work together to ensure that IoT terminals can correctly access the Internet.
[0037] Correspondingly, each of the above-mentioned first UPF devices can be a related device responsible for forwarding and processing data, for example, a UPF gateway, and each of the above-mentioned first SMF devices can be a related device responsible for establishing and managing sessions, which is not specifically limited here.
[0038] S130, dividing the IP address segment to be divided into multiple first IP address segments.
[0039] Among them, each first IP address segment can be associated with a first target UPF device and a first target SMF device, wherein the first target UPF device is any one of the above-mentioned multiple first UPF devices, and the first target SMF device can be any one of multiple first SMF devices. It should be noted that the first target UPF device associated with each first IP address segment and the first target SMF device associated with the first IP address segment establish a data transmission link corresponding to the first IP address segment.
[0040] It should also be noted that the first target UPF devices and / or first target SMF devices respectively associated with any two of the above-mentioned multiple first IP address segments are not the same. For example, if there are two first IP address segments, namely address segment 1 and address segment 2, the first UPF device includes UPF device 1 and UPF device 2, and the first SMF device includes SMF device 1 and SMF device 2, the address segment 1 can be associated with UPF device 1 and SMF device 1, the address segment 2 can be associated with UPF device 1 and SMF device 2, or with UPF device 2 and SMF device 1, or with UPF device 2 and SMF device 2, but the address segment 2 cannot be associated with the same UPF device and SMF device as the address segment 1.
[0041] Specifically, the IP address segment division device can obtain the IP address segment to be divided, and at the same time determine multiple first UPF devices and multiple first SMF devices, and then divide the IP address segment to be divided to obtain multiple first IP address segments, and make each first IP address segment associated with the first target UPF device and the first target SMF device, and the first target UPF device and / or first SMF device associated with any two first IP address segments among the multiple first IP address segments are different.
[0042] It should be noted that the method for dividing IP address segments provided in the embodiment of the present application does not specifically limit the execution order of the above S110 and S120.
[0043] In an embodiment of the present application, it is possible to obtain the IP address segment to be divided, and determine multiple first UPF devices and multiple first SMF devices, and then divide the IP address segment to be divided to obtain multiple first IP address segments, and make each first IP address segment associated with a UPF device and an SMF device, and the UPF devices and / or SMF devices associated with any two first IP address segments are different. In this way, the IP address segments corresponding to the SMF devices associated with each UPF device can be different, thereby avoiding duplicate terminal IP address allocation and business conflicts.
[0044] Since the IP address segment division method provided in the embodiment of the present application determines the IP address segment to be divided based on the first requirement information of the user, based on this, in order to accurately obtain the IP address segment to be divided that meets the user's requirements, in one embodiment, the above S110 may specifically include the following steps:
[0045] Obtaining the first demand information;
[0046] Based on the address segment indication information and the number of IP addresses required by the user, the IP addresses to be divided are obtained from the preset IP address segment.
[0047] In some embodiments, the above-mentioned first requirement information may include address segment indication information and the number of IP addresses required by the user, wherein the above-mentioned address segment indication information can be used to indicate the address segment type of the IP address segment to be divided, and the address segment type of the IP address segment to be divided can be a default type or a user-specified type, which is not specifically limited here.
[0048] The above-mentioned number of IP addresses required by the user is the number of IP addresses required by the user, and can also be understood as the minimum number of IP addresses included in the IP address segment to be divided. Specifically, the IP address segment to be divided from the preset IP address segment may include multiple IP addresses, and the number of the multiple IP addresses may be greater than or equal to the above-mentioned number of IP addresses required by the user.
[0049] In addition, the above-mentioned preset IP address segment can be an address segment pre-set according to actual needs or circumstances, and all IP addresses in the preset IP address segment are IP addresses that are not allocated to the Internet of Things terminal.
[0050] Specifically, the IP address segment division device can obtain the user's first demand information, which may include address segment indication information and the number of IP addresses required by the user, and then based on the address segment indication information and the number of IP addresses required by the user included in the first demand information, the IP address segment to be divided can be obtained from the preset IP address segment.
[0051] In this embodiment, by obtaining the user's first demand information and dividing the IP address segments to meet the user's needs from the preset IP address segments according to the address segment indication information and the number of IP addresses required by the user included in the user demand information, the user satisfaction is improved.
[0052] Based on this, in one embodiment, in order to accurately divide the IP address segments to be divided from the preset IP address segments, before dividing the IP address segments to be divided from the preset IP address segments based on the address segment indication information and the number of IP address segments required by the user, the method further includes:
[0053] Determining whether the address segment indication information includes address segment information;
[0054] Based on this, the IP address segments to be divided are obtained from the preset IP address segments based on the address segment indication information and the number of IP address segments required by the user, including:
[0055] In the case where the address segment indication information includes the address segment information, based on the address segment information, the IP address segment to be divided is obtained from the preset IP address segment, the number of IP addresses being greater than or equal to the number of IP address segments required by the user;
[0056] In the case where the address segment indication information does not include address segment information, an IP address segment to be divided whose number of IP addresses is greater than or equal to the number of IP addresses required by the user is randomly obtained from the preset IP address segment.
[0057] Among them, the above-mentioned address segment information may refer to the IP address range of the address segment, which will not be elaborated here.
[0058] Since in the IP address segment division method provided in the embodiment of the present application, the above-mentioned address segment indication information can indicate the address segment type of the IP address segment to be divided, based on this, the IP address segment division device can determine whether the address segment indication information includes the address segment information. If the address segment indication information includes the address segment information, it indicates that the address segment type of the IP address segment to be divided is a user-specified type. In this way, the IP address segment division device can, based on the address segment information, divide the IP address segment to be divided from the preset IP address segment and obtain the IP address segment to be divided whose number of IP addresses is greater than or equal to the number of IP addresses required by the above-mentioned user.
[0059] If the above-mentioned address segment indication information does not include address segment information, it means that the address segment type of the IP address segment to be divided is a default type. In this way, the IP address segment division device can randomly divide the preset IP address segment to obtain the IP address segment to be divided whose number of IP addresses is greater than or equal to the number of IP addresses required by the above-mentioned user.
[0060] In this embodiment, it is possible to determine whether the address segment indication information includes the address segment information specified by the user. If it does, the corresponding IP address segment to be divided is obtained according to the address segment information specified by the user and the number of IP addresses required by the user. If it does not include it, the number of IP address segments to be divided that can cover the number of IP addresses required by the user can be obtained according to the number of IP addresses required by the user. In this way, the IP address segment to be divided can be obtained based on the user's needs, thereby improving user satisfaction.
[0061] In addition, in order to accurately divide the IP address segment to be divided to obtain multiple first IP address segments, so that the IP address segments corresponding to the SMF devices associated with each UPF device are different, thereby avoiding the problem of repeated allocation of terminal IP address segments, in one embodiment, the above S130 may specifically include the following steps:
[0062] Divide the IP address segment to be divided according to the number of the plurality of first UPF devices to obtain second IP address segments respectively corresponding to the plurality of first UPF devices;
[0063] For the second IP address segment corresponding to each first UPF device, the second IP address segment is divided according to the number of multiple first SMF devices to obtain the first IP address segments corresponding to the multiple first SMF devices respectively.
[0064] Specifically, after obtaining the IP address segment to be divided and determining multiple first UPF devices and multiple first SMF devices, the obtained IP address segment to be divided can be divided according to the number of multiple first UPF devices to obtain second IP address segments corresponding to the multiple first UPF devices, that is, the divided second address segments correspond one-to-one to the first UPF devices, and then, for the second IP address segment corresponding to each first UPF device, the second IP address segment can be divided according to the number of multiple first SMF devices to obtain first IP address segments corresponding to the multiple first SMF devices, that is, the first IP address segment obtained by dividing the second IP address segment of the first UPF device corresponds one-to-one to the first SMF device.
[0065] It should be noted that in the above process of dividing the IP address segment to be divided, the division can be performed evenly according to the number of the first UPF devices, or randomly. Similarly, in the above process of dividing the second IP address segment, the division can be performed evenly according to the number of the first SMF devices, or randomly, and no specific limitation is made here.
[0066] In one example, if the number of IP addresses required by the user is 4000, if the address segment indication information includes the address segment information specified by the user, for example, the address segment information is 172.29.1.160 / 27, if the first UPF device includes UPF device 1 and UPF device 2, then the second IP address segment allocated to UPF1 can be 172.29.1.160 / 28, and the second IP address segment allocated to UPF2 can be 172.29.1.176 / 28. Based on this, if the first SMF device includes SMF device 1, SMF device 2, SMF device 3 and SMF device 4. Based on this, for each second IP address segment, the multiple first IP address segments obtained by dividing according to multiple first SMF devices can be as shown in Table 1:
[0067] Table 1
[0068] UPF1 UPF2 SMF1 172.29.1.160 / 30 172.29.1.176 / 30 SMF2 172.29.1.164 / 30 172.29.1.180 / 30 SMF3 172.29.1.168 / 30 172.29.1.184 / 30 SMF4 172.29.1.172 / 30 172.29.1.188 / 30
[0069] In another example, if the number of IP addresses required by the user is 4000, and the address segment indication information does not include the address segment information specified by the user, then an address segment that can cover the number of IP addresses required by the user can be randomly selected from the preset IP address segment (i.e., the default address segment) as the IP address segment to be divided. For example, the selected address segment is 10.255.0.0 / 20. If the first UPF device includes UPF device 1 and UPF device 2, the second IP address segment assigned to UPF1 can be 10.255.0.0 / 21, and the second IP address segment assigned to UPF2 can be 10.255.8.0 / 21. Based on this, if the first SMF device includes SMF device 1, SMF device 2, SMF device 3 and SMF device 4. Based on this, for each second IP address segment, the multiple first IP address segments obtained by dividing according to multiple first SMF devices can be as shown in Table 2:
[0070] Table 2
[0071] UPF1 UPF2 SMF1 10.255.0.0 / 23 10.255.8.0 / 23 SMF2 10.255.2.0 / 23 10.255.10.0 / 23 SMF3 10.255.4.0 / 23 10.255.12.0 / 23 SMF4 10.255.6.0 / 23 10.255.14.0 / 23
[0072] In this embodiment, the IP address segments to be divided can be first divided according to the number of first UPF devices to obtain the second IP address segments corresponding to each first UPF device, and then for the second IP address segments corresponding to each first UPF device, the second IP address segments can be divided according to the number of first SMF devices to obtain the first IP address segments corresponding to each first SMF device. In this way, the IP address segments allocated to each SMF device associated with each UPF device can be different, thereby avoiding the problem of duplicate terminal IP address allocation.
[0073] Since the conflict between the user's intranet IP address and the Internet of Things terminal IP address will affect the stability of network communication and the access to the device, before dividing the IP address segment to be divided, it is necessary to remove the user's intranet address segment from the IP address segment to be divided to avoid the conflict between the user content IP address and the Internet of Things terminal IP address. Therefore, in order to more accurately and in detail describe the IP address segment division method provided in the embodiment of the present application, in one embodiment, before the above S130, as Figure 2 As shown, the method for dividing IP address segments provided in the embodiment of the present application may specifically include the following steps:
[0074] S210, obtaining a first user intranet address segment.
[0075] S220, obtaining the IP address segment to be divided after deduplication by removing the first target address segment from the IP address segment to be divided.
[0076] The first target address segment may be an address segment in the IP address segment to be divided that overlaps with the first user intranet address segment.
[0077] Specifically, before dividing the IP address segment to be divided to obtain multiple first IP address segments, the IP address segment division device can obtain the first user intranet address segment and determine the address segment in the address segment to be divided that overlaps with the first user intranet address segment, that is, the first target address segment, and then remove the first target address segment from the IP address segment to be divided to obtain the IP address segment to be divided after deduplication.
[0078] In this embodiment, by obtaining the first user intranet address segment and deduplicating the obtained IP address segment to be divided based on the first user intranet address segment, the conflict between the IP address of the Internet of Things terminal and the IP address used in the user intranet can be effectively avoided.
[0079] In addition, considering that the network status changes in real time, and the change of the network status may cause the loss of IP addresses, which may cause the corresponding Internet of Things services to be damaged, based on this, in order to accurately and in detail describe the method for dividing the IP address segments provided in the embodiment of the present application, in one embodiment, Figure 3 As shown, the method for dividing IP address segments provided in the embodiment of the present application may specifically include the following steps:
[0080] S310, obtaining network status information and backup IP address segments.
[0081] In some embodiments, the network status information may include at least one of the number of available links, the number of allocated IP addresses, and the second user intranet address segment. Among them, the available transmission link refers to the transmission link constructed by each UPF and the SMF device associated with each UPF, and accordingly, the link number of the available transmission link refers to the link number of the transmission link constructed by each UPF and the SMF device associated with each UPF. For example, if the UPF device includes UPF1 and UPF2, and the SMF device includes SMF1 and SMF2, the available links may include the link constructed by UPF1 and SMF1, the link constructed by UPF1 and SMF2, the link constructed by UPF2 and SMF1, and the link constructed by UPF2 and SMF1, that is, the number of available links is 4. The number of allocated IP addresses refers to the number of IP addresses allocated to the Internet of Things terminal in multiple first IP address segments. The second user intranet address segment refers to the address segment used by the user intranet. The second user intranet address segment may be the same as or different from the first user intranet address segment, and is not specifically limited here.
[0082] In addition, the above-mentioned standby IP address segment can be determined based on the second demand information. It should be noted that the process of determining the standby IP address segment based on the second demand information is similar to the process of determining the IP address segment to be divided based on the first demand information, and no excessive restrictions are made here. In addition, the second demand information and the first demand information can be the same or different, and no specific restrictions are made here.
[0083] S320, adjusting the plurality of first IP address segments based on the network status information and the standby IP address segments to obtain the plurality of adjusted first IP address segments.
[0084] Specifically, after obtaining multiple first IP address segments, the IP address segment division device can obtain network status information and backup IP address segments, and then adjust the multiple first IP address segments based on the network status information and the backup IP address segments to obtain multiple adjusted first IP address segments.
[0085] In this embodiment, after dividing and obtaining multiple first IP address segments, the multiple first IP address segments can be dynamically adjusted by acquiring network status information and backup IP address segments, which can effectively avoid the loss of IP address segments due to changes in network status, thereby avoiding damage to the corresponding Internet of Things services and improving the stability of the Internet of Things services.
[0086] In one embodiment, if the change in the network architecture causes an increase in the number of UPF devices and / or an increase in the number of SMF devices, it will lead to an increase in the available transmission links, that is, the above network status information includes the number of available links, and the number of links of the available transmission links is greater than the number of links of the initial transmission links. The above S320 may specifically include the following steps:
[0087] Determine a first available link other than the initial transmission link among the available transmission links;
[0088] A third IP address segment corresponding to the first available link is obtained from the standby IP address segment.
[0089] Among them, the above-mentioned available transmission links may refer to all currently available transmission links. When the number of available transmission links is greater than the number of initial links, it indicates that there are newly added UPF devices and / or newly added SMF devices in the network architecture, and the above-mentioned initial transmission links include the transmission links constructed by each of the above-mentioned multiple first UPF devices and the above-mentioned multiple first SMF devices. Therefore, the newly added transmission links in the above-mentioned available transmission links except the initial transmission links, that is, the first available links, may include the first transmission links constructed by the second UPF device and the multiple first SMF devices, and / or the second transmission links constructed by the multiple first UPF devices and the second SMF devices.
[0090] The second UPF device may refer to a newly added UPF device, and correspondingly, the second SMF device may refer to a newly added SMF device. In addition, the embodiment of the present application does not limit the number of second UPF devices and the number of second SMF devices.
[0091] Specifically, when the network status information includes the number of links of the available transmission link, if the number of links of the available transmission link is greater than the number of links of the initial transmission link, the newly added transmission link in the available transmission link other than the original initial transmission link, that is, the first available transmission link, can be determined first, and then a third IP address segment corresponding to the first available transmission link can be obtained from the backup IP address segment.
[0092] In this way, the multiple first IP address segments obtained after adjustment may include the original multiple first IP address segments and the third IP address segment.
[0093] In this embodiment, when the network status information includes the number of links of available transmission links, and the number of links of the available transmission links is greater than the number of links of the initial transmission links, the multiple divided IP address segments can be adjusted based on the number of links of the available transmission links, thereby effectively avoiding the loss of IP address segments.
[0094] Based on this, in one embodiment, when the first available link includes the first transmission link constructed by the second UPF device and the original multiple first SMF devices, the step of obtaining the third IP address segment corresponding to the first available link by dividing it from the standby IP address segment may specifically include:
[0095] A first sub-segment corresponding to the first transmission link is obtained from the standby IP address segment.
[0096] Based on this, the third IP address segment may include a first sub-segment corresponding to the first transmission link.
[0097] Specifically, when the above-mentioned first available link includes a first transmission link constructed by a second UPF device and multiple original first SMF devices, the IP address segment division device can obtain a first sub-segment corresponding to the first transmission link from the spare IP address segment.
[0098] It should be noted that the above-mentioned first transmission link may include multiple first sub-links, and the UPF devices and / or SMF devices associated with any two of the multiple first sub-links are different. Accordingly, the above-mentioned third IP address segment may include the first sub-segment corresponding to each sub-link.
[0099] In one example, continuing with the example shown in Table 2 above, if the backup IP address segment is 10.255.16.0 / 20, when a new UPF3 (i.e., the second UPF device) is added due to changes in the network structure, the multiple first SMF devices include SMF1, SMF2, SMF3 and SMF4, then the above-mentioned first transmission link includes the transmission link constructed by UPF3 and SMF1, the transmission link constructed by UPF3 and SMF2, the transmission link constructed by UPF3 and SMF3, and the transmission link constructed by UPF3 and SMF4. The division device of the above-mentioned first IP address segment can obtain the first sub-segment corresponding to the above-mentioned first transmission link from the backup IP address segment. In this way, the multiple first IP address segments after adjustment can include the original multiple first IP address segments and the first sub-segment corresponding to the above-mentioned first transmission link, which can be specifically shown in Table 3.
[0100] Table 3
[0101] UPF1 UPF2 UPF3 SMF1 10.255.0.0 / 23 10.255.8.0 / 23 10.255.16.0 / 23 SMF2 10.255.2.0 / 23 10.255.10.0 / 23 10.255.18.0 / 23 SMF3 10.255.4.0 / 23 10.255.12.0 / 23 10.255.20.0 / 23 SMF4 10.255.6.0 / 23 10.255.14.0 / 23 10.255.22.0 / 23
[0102] In this embodiment, when the number of available transmission links is greater than the initial transmission link, and the first available transmission link other than the initial transmission link in the available transmission links includes a first transmission link constructed by a second UPF device and multiple first SMF devices respectively, an address segment corresponding to the newly added transmission link (i.e., the first transmission link) can be obtained from the standby IP address segment. In this way, the loss of the IP address segment can be effectively avoided.
[0103] In another embodiment, when the first available link includes a second transmission link constructed by a plurality of first UPF devices and a second SMF device respectively, the step of obtaining a third IP address segment corresponding to the first available link by dividing the third IP address segment from the standby IP address segment may specifically include:
[0104] A second sub-segment corresponding to the second transmission link is obtained by dividing the standby IP address segment.
[0105] Based on this, the third IP address segment may include the second sub-segment corresponding to the second transmission link.
[0106] Specifically, in the case where the above-mentioned first available link may include a second transmission link constructed by multiple first UPF devices and a second SMF device respectively, the IP address segment division device can divide the second sub-segment corresponding to the second transmission link from the spare IP address segment.
[0107] It should be noted that the above-mentioned second transmission link may include multiple second sub-links, and the UPF devices and / or SMF devices associated with any two of the multiple second sub-links are different. Accordingly, the above-mentioned third IP address segment may include second sub-segments corresponding to the multiple second sub-links respectively.
[0108] Continuing with the example shown in Table 2 above, if the backup IP address segment is 10.255.16.0 / 20, and a new SMF5 (i.e., the second SMF device) is added due to changes in the network structure, the multiple first UPF devices include UPF1 and UPF2, then the above-mentioned second transmission link includes the transmission link constructed by UPF1 and SMF5 and the transmission link constructed by UPF2 and SMF5, and the division device of the above-mentioned first IP address segment can obtain the second sub-segment corresponding to the above-mentioned second transmission link from the backup IP address segment. In this way, the multiple first IP address segments after adjustment can include the original multiple first IP address segments and the second sub-segment corresponding to the above-mentioned second transmission link, which can be specifically shown in Table 4.
[0109] Table 4
[0110] UPF1 UPF2 SMF1 10.255.0.0 / 23 10.255.8.0 / 23 SMF2 10.255.2.0 / 23 10.255.10.0 / 23 SMF3 10.255.4.0 / 23 10.255.12.0 / 23 SMF4 10.255.6.0 / 23 10.255.14.0 / 23 SMF5 10.255.16.0 / 23 10.255.16.0 / 23
[0111] In this embodiment, when the number of available transmission links is greater than the initial transmission link, and the first available transmission link other than the initial transmission link includes a second transmission link constructed by the original multiple first UPF devices and the second SMF device respectively, an address segment corresponding to the newly added transmission link (i.e., the second transmission link) can be obtained from the backup IP address segment. In this way, the loss of the IP address segment can be effectively avoided.
[0112] In one embodiment, if the number of original UPF devices and / or SMF devices is reduced due to equipment failure or other problems, it will further lead to a reduction in available transmission links, that is, the above network status information includes the number of available links, and the number of links of the available transmission links is less than the number of links of the initial transmission links. The above S320 may specifically include the following steps:
[0113] Determine the failed transmission link;
[0114] A fourth IP address segment corresponding to the available transmission link is divided from the standby IP address segment.
[0115] In some embodiments, the above-mentioned failed transmission link may include a third transmission link constructed by a third UPF device and multiple first SMF devices respectively, and / or a fourth transmission link constructed by the multiple first UPF devices and the third SMF device respectively. Among them, the above-mentioned third UPF device may be a UPF device that fails due to failure or other reasons among the original multiple first UPF devices, and correspondingly, the above-mentioned third SMF device may refer to an SMF device that fails due to failure or other reasons among the original multiple first SMF devices. It should be noted that the embodiment of the present application does not specifically limit the number of the above-mentioned third UPF devices and the number of the above-mentioned third SMF devices.
[0116] In addition, it should be noted that the sum of the number of links of the available transmission links and the number of links of the failed transmission links is equal to the number of links of the initial transmission links. It can also be understood that the available transmission links can be the remaining transmission links in the initial transmission links except the failed transmission links.
[0117] Specifically, when the network status information includes the number of available transmission links, and the number of available transmission links is less than the number of initial transmission links, it indicates that there is a failed third UPF device among the original multiple first UPF devices, and / or there is a failed third SMF device among the original multiple first SMF devices. In this way, the IP address segment division device can divide the fourth IP address segment corresponding to the available transmission link from the backup IP address segment.
[0118] The fourth IP address segment corresponding to the available transmission link may be determined based on the first IP address segment corresponding to the failed transmission link. For example, the number of the fourth IP address segments corresponding to the available transmission link may be greater than or equal to the number of the first IP address segments corresponding to the failed transmission link, or the number of IP addresses included in the fourth IP address segment corresponding to the available transmission link may be greater than or equal to the number of IP addresses included in the first IP address segment corresponding to the failed transmission link. In this way, it can be ensured that the IP addresses included in the multiple first IP address segments before and after the adjustment are sufficient for allocation.
[0119] Based on this, the adjusted multiple first IP address segments may include the first IP address segment other than the first IP address segment corresponding to the failed transmission link and the fourth IP address segment in the original multiple first IP address segments.
[0120] In this embodiment, when the network status information includes the number of links of available transmission links, and the number of links of the available transmission links is less than the number of links of the initial transmission links, the multiple divided IP address segments can be adjusted based on the number of links of the available transmission links, thereby effectively avoiding the loss of IP address segments.
[0121] Based on this, in one embodiment, the above-mentioned failed transmission link includes a third transmission link constructed by a third UPF device and multiple first SMF devices respectively, and the above-mentioned step of dividing the fourth IP address segment corresponding to the available transmission link from the standby IP address segment may specifically include:
[0122] A third sub-segment corresponding to the available transmission link is obtained by dividing the backup IP address segment.
[0123] The available transmission links may be the remaining transmission links in the initial transmission links except the third transmission link, which is not specifically limited here.
[0124] Specifically, in the case where the failed transmission link includes a third transmission link constructed by a third UPO device and multiple first SMF devices respectively, the IP address segment division device can divide the third sub-segment corresponding to the available transmission link in the above-mentioned initial transmission link except the above-mentioned third transmission link from the spare IP address segment.
[0125] Based on this, the fourth IP address segment may include the third sub-segment corresponding to the available transmission link. The embodiment of the present application does not specifically limit the number of available transmission links.
[0126] Continuing with the example shown in Table 2 above, if the backup IP address segment is 10.255.16.0 / 20, when UPF2 fails (i.e., the third UPF device) due to changes in the network structure, the multiple first SMF devices include SMF1, SMF2, SMF3, and SMF4, then the above-mentioned available transmission links include the transmission link constructed by UPF1 and SMF1, the transmission link constructed by UPF1 and SMF2, the transmission link constructed by UPF1 and SMF3, and the transmission link constructed by UPF1 and SMF4. The above-mentioned first IP address segment division device can obtain the third sub-segment corresponding to the above-mentioned available transmission link from the backup IP address segment. In this way, the multiple first IP address segments after adjustment can be specifically shown in Table 5.
[0127] Table 5
[0128] UPF1 SMF1 10.255.0.0 / 23,10.255.16.0 / 23 SMF2 10.255.2.0 / 23,10.255.18.0 / 23 SMF3 10.255.4.0 / 23,10.255.20.0 / 23 SMF4 10.255.6.0 / 23,10.255.22.0 / 23
[0129] In this embodiment, when the number of available transmission links is less than the initial transmission link, and the failed transmission link includes a third transmission link constructed by a third UPF device and multiple first SMF devices, an address segment corresponding to the remaining transmission link (i.e., the available transmission link) can be obtained from the backup IP address segment. In this way, the loss of the IP address segment can be effectively avoided.
[0130] In another embodiment, when the above-mentioned failed transmission link includes a fourth transmission link constructed by the original multiple first UPF devices and the third SMF respectively, the step of obtaining the fourth IP address segment corresponding to the available transmission link from the standby IP address segment may specifically include:
[0131] A fourth subsegment corresponding to the available transmission link is obtained from the standby IP address segment.
[0132] The available transmission links may be the remaining transmission links in the initial transmission links except the fourth transmission link.
[0133] Specifically, in the case where the failed transmission link includes a fourth transmission link constructed by multiple first UPF devices and a third SMF device respectively, the IP address segment division device can divide the fourth sub-segment corresponding to the available transmission link in the above-mentioned initial transmission link except the above-mentioned fourth transmission link from the spare IP address segment.
[0134] Based on this, the fourth IP address segment may include a fourth sub-segment corresponding to an available transmission link. The embodiment of the present application does not specifically limit the number of available transmission links.
[0135] Continuing with the example shown in Table 2 above, if the backup IP address segment is 10.255.16.0 / 20, when SMF3 and SMF4 fail due to changes in the network structure (i.e., the third SMF device), the available transmission links include the transmission link constructed by UPF1 and SMF1, the transmission link constructed by UPF1 and SMF2, the transmission link constructed by UPF2 and SMF1, and the transmission link constructed by UPF2 and SMF2. The division device of the first IP address segment can obtain the fourth sub-segment corresponding to the available transmission link from the backup IP address segment. In this way, the adjusted multiple first IP address segments can be specifically shown in Table 6.
[0136] Table 6
[0137] UPF1 UPF2 SMF1 10.255.0.0 / 23,10.255.16.0 / 23 10.255.8.0 / 23,10.255.20.0 / 23 SMF2 10.255.2.0 / 23,10.255.18.0 / 23 10.255.10.0 / 23,10.255.22.0 / 23
[0138] In this embodiment, when the number of available transmission links is less than the initial transmission link, and the failed transmission link includes a fourth transmission link constructed by multiple first UPF devices and a third SMF device respectively, an address segment corresponding to the remaining transmission link (i.e., the available transmission link) can be obtained from the spare IP address segment. In this way, the loss of the IP address segment can be effectively avoided.
[0139] In yet another embodiment, the network status information includes the number of allocated IP addresses. Based on this, the S320 may specifically include the following steps:
[0140] When the number of allocated IP addresses is greater than the preset ratio of the total number of IP addresses, the spare IP address segments are divided to obtain a plurality of fifth IP address segments.
[0141] The preset ratio may be preset according to actual experience or circumstances, for example, 90%, which is not specifically limited here. In addition, the total number of IP addresses may be the number of all IP addresses included in the plurality of first IP address segments.
[0142] The above-mentioned adjusted multiple first IP address segments may include multiple first IP address segments and multiple fifth IP address segments. Moreover, each fifth IP address segment is associated with a second target UPF device and a second target SMF device, and the second target UPF device and / or the second target SMF device respectively associated with any two of the above-mentioned multiple fifth IP address segments are different, wherein the above-mentioned second target UPF device may be any one of the multiple first UPF devices, and the above-mentioned second target SMF device may be any one of the multiple first SMF devices.
[0143] Specifically, when the network status information includes the number of allocated IP addresses, if the number of allocated IP addresses is greater than a preset ratio of the total number of IP addresses, it means that the number of remaining allocable IP addresses is reduced. In this way, the IP address segment division device can divide the spare IP address segment to obtain multiple fifth IP address segments, and make each fifth IP address segment associated with the second target UPF device and the second target SMF device, and the second target UPF device and / or second target SMF device associated with any two of the multiple fifth IP address segments are different.
[0144] Continuing with the example shown in Table 2 above, if the backup IP address segment is 10.255.16.0 / 20, and the number of IoT terminals surges in a short period of time, resulting in the number of allocated IP addresses exceeding 90% of the number of IP addresses in the original multiple first IP address segments, based on this, the backup IP address segment can be evenly split according to the number of UPFs and SMFs in turn. Based on this, the multiple adjusted first IP address segments can be specifically shown in Table 7.
[0145] Table 7
[0146] UPF1 UPF2 SMF1 10.255.0.0 / 23,10.255.16.0 / 23 10.255.8.0 / 23,10.255.24.0 / 23 SMF2 10.255.2.0 / 23,10.255.18.0 / 23 10.255.10.0 / 23,10.255.26.0 / 23 SMF3 10.255.4.0 / 23,10.255.20.0 / 23 10.255.12.0 / 23,10.255.28.0 / 23 SMF4 10.255.6.0 / 23,10.255.22.0 / 23 10.255.14.0 / 23,10.255.30.0 / 23
[0147] In this embodiment, when the network status information includes the number of allocated IP addresses, the divided multiple IP address segments can be dynamically adjusted based on the number of allocated IP address segments, thereby effectively avoiding the loss of IP address segments.
[0148] In yet another embodiment, when the network status information may include the second user intranet address segment, S320 may specifically include the following steps:
[0149] Determine a second target address segment overlapping with a second user intranet address segment among the plurality of first IP address segments;
[0150] Based on the second target address segment, determining a sixth IP address segment from the backup IP address segments;
[0151] Replace the second target address segment with the sixth IP address segment.
[0152] In some embodiments, the adjusted multiple first IP address segments may include address segments other than the second target address segment and the sixth address segment. It should be noted that the number of IP addresses in the second target address segment may be the same as the number of IP addresses in the sixth IP address segment.
[0153] Specifically, when the network status information includes the second user intranet address segment, the IP address segment division device can first determine the second target address segment overlapping with the above-mentioned second user intranet address segment among multiple first IP address segments, and based on the second target address segment, determine the sixth IP address segment from the backup IP address segments, and then replace the second target address segment with the sixth IP address segment.
[0154] Continuing with the example shown in Table 2 above, if the backup IP address segment is 10.255.16.0 / 20, when the newly added user intranet address segment (i.e., the second user intranet address segment) occupies the above-mentioned multiple first IP address segments, the newly added user intranet address segment can be eliminated from the original multiple first IP address segments, and an address segment with the same number of IP addresses as the above-mentioned newly added content address segment can be selected from the backup IP address segment for coverage. Based on this, if the newly added user intranet address segment can include 10.255.6.0 / 23, 10.255.16.0 / 23 can be selected from the backup IP address segment. In this way, the multiple first IP address segments after adjustment are specifically shown in Table 8.
[0155] Table 8
[0156] UPF1 UPF2 SMF1 10.255.0.0 / 23 10.255.8.0 / 23 SMF2 10.255.2.0 / 23 10.255.10.0 / 23 SMF3 10.255.4.0 / 23 10.255.12.0 / 23 SMF4 10.255.16.0 / 23 10.255.14.0 / 23
[0157] In this embodiment, when the network status information includes the second user intranet address segment, the divided multiple IP address segments can be dynamically adjusted based on the second user intranet address segment, thereby effectively avoiding the loss of IP address segments.
[0158] In order to fully describe the method for dividing IP address segments provided in the embodiments of the present application, in a complete embodiment, as shown in FIG. Figure 4 As shown, the method for dividing IP address segments provided in the embodiment of the present application may specifically include the following steps:
[0159] S401, obtaining first demand information.
[0160] S402: Based on the address segment indication information and the number of IP addresses required by the user, obtain the IP address segment to be divided from the preset IP address segment.
[0161] S403: Obtain the first user intranet address segment.
[0162] S404, obtaining the IP address segments to be divided after deduplication by removing the first target address segment from the IP address segments to be divided.
[0163] S405, determine multiple first user plane function UPF devices and multiple first session management function SMF devices.
[0164] S406, dividing the IP address segments to be divided according to the number of the plurality of first UPF devices, and obtaining second IP address segments respectively corresponding to the plurality of first UPF devices.
[0165] S407: For the second IP address segment corresponding to each first UPF device, divide the second IP address segment according to the number of the multiple first SMF devices to obtain the first IP address segments corresponding to the multiple first SMF devices respectively.
[0166] S408, obtaining network status information and backup IP address segments.
[0167] S409, adjusting the plurality of first IP address segments based on the network status information and the standby IP address segments to obtain the plurality of adjusted first IP address segments.
[0168] In the embodiment of the present application, the device for dividing IP address segments can first obtain the first demand information. Since the first demand information can include the address segment indication information and the number of IP addresses required by the user, the IP address segments to be divided that meet the user's needs are divided from the preset IP address segments. In this way, the IP address segments to be divided can be obtained based on the user's needs, thereby improving the user's satisfaction.
[0169] Subsequently, the IP address segment division device can obtain the first user intranet address segment, and obtain the deduplicated IP address segment to be divided by removing the first target address segment from the divided IP address segment. Since the first target address segment can be an address segment in the IP address segment to be divided that overlaps with the above-mentioned first user intranet address segment, the conflict between the terminal IP address and the user intranet address can be avoided.
[0170] In addition, the IP address segment division device can also determine multiple first UP devices and multiple first SMF devices, and divide the IP address segment to be divided according to the number of multiple first UPF devices, to obtain the second IP address segment corresponding to the multiple first UPF devices, and then for the second IP address segment corresponding to each UPF device, the second IP address segment can be divided according to the number of multiple first SMF devices, to obtain the first IP address segment corresponding to the multiple first SMF devices. In this way, the IP address segments corresponding to the SMF devices associated with each UPF device can be made different from each other, and the terminal IP address allocation can be repeated.
[0171] In addition, after obtaining the plurality of first IP address segments, the IP address segment division device can also adjust the plurality of first IP address segments based on the plurality of network status information and the plurality of backup IP address segments by acquiring network status information and the backup IP address segments, thereby obtaining the plurality of adjusted first IP address segments. In this way, the loss of IP address segments due to changes in network status can be effectively avoided, thereby avoiding damage to the corresponding Internet of Things services and improving the stability of the Internet of Things services.
[0172] Based on the same inventive concept, the embodiment of the present application provides a device for dividing IP address segments, specifically in combination with Figure 5 The device for dividing IP address segments provided in the embodiment of the present application is described in detail.
[0173] Figure 5 It is a structural diagram of an IP address segment division device provided in an embodiment of the present application.
[0174] like Figure 5 As shown, the IP address segment division device 500 may include:
[0175] An acquisition module 510 is used to acquire an IP address segment to be divided, where the IP address segment to be divided is determined based on the first requirement information;
[0176] A determination module 520, configured to determine a plurality of first user plane function UPF devices and a plurality of first session management function SMF devices;
[0177] The division module 530 is used to divide the IP address segment to be divided to obtain multiple first IP address segments, each first IP address segment is associated with a first target UPF device and a first target SMF device, the first target UPF device and / or the first target SMF device respectively associated with any two first IP address segments among the multiple first IP address segments are different, the first target UPF device is any one of the multiple first UPF devices, and the first target SMF device is any one of the multiple first SMF devices.
[0178] In one embodiment, the acquisition module is specifically used to acquire first demand information, where the first demand information includes address segment indication information and the number of IP addresses required by the user;
[0179] The division module is also used to divide the IP address segment to be divided from the preset IP address segment based on the address segment indication information and the number of IP addresses required by the user. The IP address segment to be divided includes multiple IP addresses, and the number of multiple IP addresses is greater than or equal to the number of IP addresses required by the user.
[0180] In one embodiment, the above-mentioned division module is specifically used to divide the IP address segment to be divided according to the number of the plurality of first UPF devices, and obtain the second IP address segment corresponding to the plurality of first UPF devices respectively;
[0181] The above-mentioned division module is used to divide the second IP address segment corresponding to each first UPF device according to the number of multiple first SMF devices to obtain the first IP address segments corresponding to the multiple first SMF devices respectively.
[0182] In one embodiment, the device for dividing IP address segments provided in the embodiment of the present application may further include:
[0183] The acquisition module is further used to acquire the first user's intranet address segment;
[0184] The removal module is used to obtain the deduplicated IP address segment to be divided by removing the first target address segment from the IP address segment to be divided, wherein the first target address segment is the address segment in the IP address segment to be divided that overlaps with the first user intranet address segment.
[0185] In one embodiment, the device for dividing IP address segments provided in the embodiment of the present application may further include:
[0186] The acquisition module is further used to acquire network status information and a standby IP address segment, the network status information including the number of available transmission links, the number of allocated IP addresses and at least one of the second user intranet address segments, and the standby IP address segment is determined based on the second demand information;
[0187] The adjustment module is used to adjust the multiple first IP address segments based on the network status information and the spare IP address segments to obtain the multiple adjusted first IP address segments.
[0188] In one embodiment, the network status information includes the number of available transmission links; based on this, the device for dividing IP address segments provided in the embodiment of the present application may further include:
[0189] The determination module is further used to determine, when the number of links of the available transmission links is greater than the number of links of the initial transmission link, a first available link in the available transmission links other than the initial transmission link, the initial transmission link including a transmission link constructed by each first UPF device and a plurality of first SMF devices respectively, the first available link including a first transmission link constructed by a second UPF device and a plurality of first SMF devices respectively, and / or a second transmission link constructed by a plurality of first UPF devices and a second SMF device respectively;
[0190] The division module is further used to divide the third IP address segment corresponding to the first available link from the standby IP address segment, and obtain the adjusted multiple first IP address segments and third IP address segments;
[0191] The determination module is further used to determine the failed transmission link when the number of links of the available transmission link is less than the number of links of the initial transmission link, the failed transmission link includes the third transmission link constructed by the third UPF device and the multiple first SMF devices respectively, and / or the fourth transmission link constructed by the multiple first UPF devices and the third SMF device respectively, and the sum of the number of links of the available transmission link and the number of transmission chains of the failed transmission link is equal to the number of links of the initial transmission link;
[0192] The division module is also used to divide the fourth IP address segment corresponding to the available transmission link from the backup IP address segment. The fourth IP address segment corresponding to the available transmission link is determined based on the first IP address segment corresponding to the failed transmission link. The adjusted multiple first IP address segments include the first IP address segment and the fourth IP address segment among the multiple first IP address segments except the first IP address segment corresponding to the failed transmission link.
[0193] In one embodiment, the above-mentioned division module is specifically used to divide the first sub-segment corresponding to the first transmission link from the standby IP address segment when the first available link includes the first transmission link constructed by the second UPF device and multiple first SMF devices, and the third IP address segment includes the first sub-segment corresponding to the first transmission link;
[0194] and / or,
[0195] The above-mentioned division module is specifically used to divide the second sub-segment corresponding to the second transmission link from the backup IP address segment when the first available link includes a second transmission link constructed by multiple first UPF devices and the second SMF device respectively, and the third IP address segment includes the second sub-segment corresponding to the second transmission link.
[0196] In one embodiment, the above-mentioned division module is specifically used to divide the third sub-segment corresponding to the available transmission link from the standby IP address segment when the failed transmission link includes the third transmission link constructed by the third UPF device and multiple first SMF devices respectively, and the fourth IP address segment may include the third sub-segment corresponding to the available transmission link;
[0197] and / or,
[0198] The above-mentioned division module is specifically used to divide the fourth sub-segment corresponding to the available transmission link from the spare IP address segment when the failed transmission link includes a fourth transmission link constructed by multiple first UPF devices and the third SMF device respectively, and the fourth IP address segment includes the fourth sub-segment corresponding to the available transmission link.
[0199] In one embodiment, the network status information includes the number of allocated IP addresses; based on this, the above-mentioned division module is also used to divide the spare IP address segment to obtain multiple fifth IP address segments when the number of allocated IP addresses is greater than the total number of IP addresses in a preset ratio;
[0200] Among them, the adjusted multiple first IP address segments include multiple first IP address segments and multiple fifth IP address segments, each fifth IP address segment is associated with a second target UPF device and a second target SMF device, the second target UPF devices and / or second target SMF devices associated with any two fifth IP address segments in the multiple fifth IP address segments are different, the second target UPF device is any one of the multiple first UPF devices, and the second target SMF device is any one of the multiple first SMF devices.
[0201] In one embodiment, the network status information includes the second user intranet address segment; based on this, the IP address segment division device provided in the embodiment of the present application may also include:
[0202] The determination module is further used to determine a second target address segment overlapping with the second user intranet address segment among the plurality of first IP address segments;
[0203] The determination module is further used to determine a sixth IP address segment from the backup IP address segment based on the second target address segment;
[0204] The replacement module is used to replace the second target address segment with the sixth IP address segment. The adjusted multiple first IP address segments include the address segments of the multiple first IP address segments except the second target address segment and the sixth IP address segment.
[0205] In an embodiment of the present application, it is possible to obtain the IP address segment to be divided, and determine multiple first UPF devices and multiple first SMF devices, and then divide the IP address segment to be divided to obtain multiple first IP address segments, and make each first IP address segment associated with a UPF device and an SMF device, and the UPF devices and / or SMF devices associated with any two first IP address segments are different. In this way, the IP address segments corresponding to the SMF devices associated with each UPF device can be different from each other, and the situation of repeated terminal IP address allocation can be avoided.
[0206] Each module in the device for dividing IP address segments provided in the embodiment of the present application can realize Figures 1 to 4 The method steps of any of the embodiments shown in the figure can achieve the corresponding technical effects, which will not be repeated here for the sake of brevity.
[0207] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0208] The electronic device may include a processor 601 and a memory 602 storing computer program instructions.
[0209] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0210] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 602 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 602 may be inside or outside the electronic device. In a particular embodiment, the memory 602 is a non-volatile solid-state memory.
[0211] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0212] The processor 601 reads and executes the computer program instructions stored in the memory 602 to implement any one of the IP address segment division methods in the above embodiments.
[0213] In one example, the electronic device may further include a communication interface 603 and a bus 610. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 and communicate with each other.
[0214] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0215] Bus 610 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 610 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0216] In addition, in combination with the method for dividing IP address segments in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the method for dividing IP address segments provided in the embodiment of the present application is implemented.
[0217] An embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the method for dividing IP address segments as provided in the embodiment of the present application.
[0218] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0219] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0220] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for dividing IP address segments, characterized in that: The method comprises: Acquire an Internet Protocol (IP) address segment to be divided, where the IP address segment to be divided is determined based on the first requirement information; Determine a plurality of first user plane function UPF devices and a plurality of first session management function SMF devices; The IP address segment to be divided is divided to obtain multiple first IP address segments, each of the first IP address segments is associated with a first target UPF device and a first target SMF device, the first target UPF devices and / or first target SMF devices respectively associated with any two first IP address segments among the multiple first IP address segments are different, the first target UPF device is any one of the multiple first UPF devices, and the first target SMF device is any one of the multiple first SMF devices.
2. The method according to claim 1, characterized in that: The step of obtaining the Internet Protocol (IP) address segment to be divided includes: Acquire first demand information, where the first demand information includes address segment indication information and the number of IP addresses required by the user; Based on the address segment indication information and the number of IP addresses required by the user, an IP address segment to be divided is obtained from the preset IP address segment, and the IP address segment to be divided includes multiple IP addresses, and the number of the multiple IP addresses is greater than or equal to the number of IP addresses required by the user.
3. The method according to claim 1 or 2, characterized in that: The step of dividing the to-be-divided IP address segments to obtain a plurality of first IP address segments includes: Divide the to-be-divided IP address segments according to the number of the plurality of first UPF devices to obtain second IP address segments respectively corresponding to the plurality of first UPF devices; For the second IP address segment corresponding to each of the first UPF devices, the second IP address segment is divided according to the number of the multiple first SMF devices to obtain the first IP address segments corresponding to the multiple first SMF devices respectively.
4. The method according to claim 1, characterized in that After dividing the to-be-divided IP address segment to obtain a plurality of first IP address segments, the method further includes: Obtain the first user's intranet address segment; The deduplicated IP address segments to be divided are obtained by removing the first target address segment from the IP address segments to be divided, wherein the first target address segment is an address segment in the IP address segments to be divided that overlaps with the first user intranet address segment.
5. The method according to claim 3, characterized in that: The method further comprises: Acquire network status information and a standby IP address segment, wherein the network status information includes the number of links of available transmission links, the number of allocated IP addresses and at least one of the second user intranet address segment, and the standby IP address segment is determined based on the second demand information; Based on the network status information and the standby IP address segments, the multiple first IP address segments are adjusted to obtain multiple adjusted first IP address segments.
6. The method according to claim 5, characterized in that The network status information includes the link quantity of available transmission links; The step of adjusting the plurality of first IP address segments based on the network status information and the standby IP address segments to obtain the plurality of adjusted first IP address segments includes: In the case where the number of links of the available transmission links is greater than the number of links of the initial transmission links, determine a first available link among the available transmission links except the initial transmission link, the initial transmission link includes a transmission link constructed by each of the first UPF devices respectively with the multiple first SMF devices, the first available link includes a first transmission link constructed by a second UPF device respectively with the multiple first SMF devices, and / or a second transmission link constructed by the multiple first UPF devices respectively with a second SMF device; A third IP address segment corresponding to the first available link is obtained by dividing the standby IP address segment, the adjusted plurality of first IP address segments and the third IP address segment; In the case where the number of links of the available transmission link is less than the number of links of the initial transmission link, determine the failed transmission link, the failed transmission link includes the third transmission link constructed by the third UPF device and the multiple first SMF devices respectively, and / or, the fourth transmission link constructed by the multiple first UPF devices and the third SMF device respectively, and the sum of the number of links of the available transmission link and the number of transmission chains of the failed transmission link is equal to the number of links of the initial transmission link; A fourth IP address segment corresponding to the available transmission link is obtained from the backup IP address segment, and the fourth IP address segment corresponding to the available transmission link is determined based on the first IP address segment corresponding to the failed transmission link. The adjusted multiple first IP address segments include the first IP address segment among the multiple first IP address segments except the first IP address segment corresponding to the failed transmission link and the fourth IP address segment.
7. The method according to claim 6, characterized in that The step of dividing the standby IP address segment to obtain the third IP address segment corresponding to the first available link includes: In the case where the first available link includes a first transmission link constructed by a second UPF device and the plurality of first SMF devices, a first sub-segment corresponding to the first transmission link is obtained by dividing the standby IP address segment, and the third IP address segment includes the first sub-segment corresponding to the first transmission link; and / or, In the case where the first available link includes a second transmission link constructed by multiple first UPF devices and second SMF devices respectively, a second sub-segment corresponding to the second transmission link is obtained from the backup IP address segment, and the third IP address segment includes the second sub-segment corresponding to the second transmission link.
8. The method according to claim 6, characterized in that The step of dividing the standby IP address segment to obtain a fourth IP address segment corresponding to the available transmission link includes: In the case where the failed transmission link includes a third transmission link respectively constructed by a third UPF device and a plurality of first SMF devices, a third sub-segment corresponding to the available transmission link is obtained by dividing the standby IP address segment, and the fourth IP address segment may include the third sub-segment corresponding to the available transmission link; and / or, In the case that the failed transmission link includes the fourth transmission link constructed by the multiple first UPF devices and the third SMF device respectively, the fourth sub-segment corresponding to the available transmission link is obtained from the backup IP address segment, and the fourth IP address segment includes the fourth sub-segment corresponding to the available transmission link.
9. The method according to claim 5, characterized in that The network status information includes the number of allocated IP addresses; The step of adjusting the plurality of first IP address segments based on the network status information and the standby IP address segments to obtain the plurality of adjusted first IP address segments includes: In the case where the number of the allocated IP addresses is greater than the total number of IP addresses in a preset ratio, dividing the standby IP address segment to obtain a plurality of fifth IP address segments; Among them, the adjusted multiple first IP address segments include the multiple first IP address segments and the multiple fifth IP address segments, each of the fifth IP address segments is associated with a second target UPF device and a second target SMF device, the second target UPF devices and / or second target SMF devices associated with any two of the multiple fifth IP address segments are different, the second target UPF device is any one of the multiple first UPF devices, and the second target SMF device is any one of the multiple first SMF devices.
10. The method according to claim 5, characterized in that The network status information includes the second user intranet address segment; The step of adjusting the plurality of first IP address segments based on the network status information and the standby IP address segments to obtain the plurality of adjusted first IP address segments includes: Determine a second target address segment among the plurality of first IP address segments that overlaps with the second user intranet address segment Based on the second target address segment, determining a sixth IP address segment from the backup IP address segment; The second target address segment is replaced with the sixth IP address segment, and the adjusted multiple first IP address segments include address segments in the multiple first IP address segments except the second target address segment and the sixth IP address segment.
11. A device for dividing IP address segments, characterized in that: The device comprises: An acquisition module, used for acquiring an Internet Protocol IP address segment to be divided, where the IP address segment to be divided is determined based on the first requirement information; A determination module, used to determine a plurality of first user plane function UPF devices and a plurality of first session management function SMF devices; A division module is used to divide the IP address segment to be divided to obtain multiple first IP address segments, each of the first IP address segments is associated with a first target UPF device and a first target SMF device, the first target UPF device and / or the first target SMF device respectively associated with any two first IP address segments among the multiple first IP address segments are different, the first target UPF device is any one of the multiple first UPF devices, and the first target SMF device is any one of the multiple first SMF devices.
12. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the method for dividing IP address segments as described in any one of claims 1-10.
13. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, which, when executed by a processor, are the method for dividing IP address segments as described in any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method for dividing IP address segments as described in any one of claims 1 to 10 is implemented.