DNS allocation methods, devices, and storage media
By using SMF to select the highest priority DNS for a terminal in a 5G network based on the terminal's location information, the problem of the terminal accessing the nearest destination network is solved, data forwarding routing detours are reduced, and the accuracy of DNS is improved.
Patent Information
- Application Number
- CN202310678275.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2043-06-08
AI Technical Summary
In 5G networks, the SMF manages multiple UPFs in different regions, resulting in overly centralized user control plane network elements and overly dispersed user data plane network elements. How to allocate DNS to enable terminals to access the nearest destination network has become an urgent technical problem to be solved.
Based on the terminal's location information, SMF determines the target UPF group from among the multiple UPF groups under its jurisdiction, where the distance between the preset area and the terminal's location is less than a preset distance. Then, it selects the DNS with the highest priority from the DNS corresponding to the target UPF group and assigns it to the terminal.
This enables terminals to access the target DNS from the nearest location, reducing routing detours during data forwarding and improving the accuracy and flexibility of DNS distribution.
Smart Images

Figure CN116566947B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a DNS allocation method, apparatus and storage medium. Background Technology
[0002] Currently, with the expansion of 5G network scale, the SMF (Service Provider Function) manages multiple UPFs (User Platform Functions) in different regions, resulting in overly centralized user control plane network elements and overly dispersed user data plane network elements. Therefore, how to allocate DNS to enable terminals to access the nearest destination network has become an urgent technical problem to be solved. Summary of the Invention
[0003] This application provides a DNS allocation method, apparatus, and storage medium capable of allocating DNS.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] In a first aspect, this application provides a DNS allocation method applied to a Session Management Function (SMF). The SMF manages multiple User Plane Function (UPF) groups, each UPF group including at least one UPF within a preset area. The method includes: obtaining a first session request from a terminal; the first session request includes location information; determining a target UPF group among the multiple UPF groups; the distance between the preset area of the target UPF group and the location of the terminal is less than a preset distance; determining the DNS with the highest priority among one or more DNS groups corresponding to the target UPF group; and allocating the DNS with the highest priority to the terminal.
[0006] In conjunction with the first aspect above, in one possible implementation, the first session request further includes: the terminal's Tracking Area Code (TAC) information; determining the target UPF group among multiple UPF groups, including: obtaining preset area information of multiple UPF groups; and determining, based on the preset area information and the terminal's TAC information, the UPF group whose distance between the preset area of the UPF group and the terminal's location is less than a preset distance as the target UPF group.
[0007] In conjunction with the first aspect above, in one possible implementation, the priority of one or more DNS servers corresponding to a UPF group includes: first priority, second priority, and third priority; wherein, the one or more DNS servers corresponding to a UPF group include at least one of the following: a DNS server configured for a single APN, a DNS server configured for an APN group, and a DNS server configured for a UPF group; the APN group includes multiple APNs; the DNS server configured for a single APN is a first priority DNS server; the DNS server configured for an APN group is a second priority DNS server; and the DNS server configured for a UPF group is a third priority DNS server.
[0008] In conjunction with the first aspect above, in one possible implementation, the first session information further includes: the terminal's Access Point Name (APN); determining the DNS with the highest priority among one or more DNS servers corresponding to the target UPF group, including: if the one or more DNS servers corresponding to the UPF group include a DNS configured for a single APN, determining whether there is a target APN in the single APN that is the same as the terminal's APN; if there is a target APN in the single APN that is the same as the terminal's APN, then determining the DNS configured for the target APN as the DNS with the highest priority.
[0009] In conjunction with the first aspect above, in one possible implementation, the method further includes: if one or more DNS servers corresponding to the UPF group do not include a DNS configured for a single APN, and / or if a single APN does not contain a target APN identical to the terminal's APN, determining whether one or more DNS servers corresponding to the UPF group include a DSN configured for the APN group; if a DSN configured for the APN group is included, determining whether a target APN group exists in the APN group; the target APN group is an APN group that includes the terminal's APN; if it exists, determining that the DNS configured for the target APN is the DNS with the highest priority. In conjunction with the first aspect above, in one possible implementation, the method further includes: if one or more DNS servers corresponding to the UPF group do not include a DNS configured for the APN group, and / or if a target APN group does not exist in the APN group, determining that the DNS corresponding to the UPF group is the DNS with the highest priority.
[0010] Secondly, this application provides a DNS allocation apparatus applied to a Session Management Function (SMF). The SMF manages multiple User Plane Function (UPF) groups, each UPF group including at least one UPF within a preset area. The apparatus includes a processing unit. The processing unit is configured to acquire a first session request from a terminal. The first session request includes location information. The processing unit is further configured to determine a target UPF group among the multiple UPF groups. The distance between the preset area of the target UPF group and the location of the terminal is less than a preset distance. The processing unit is further configured to determine the DNS with the highest priority among one or more DNS groups corresponding to the target UPF group. The processing unit is further configured to allocate the DNS with the highest priority to the terminal.
[0011] In conjunction with the second aspect above, in one possible implementation, the first session request further includes: the terminal's Tracking Area Code (TAC) information; and a processing unit specifically configured to: acquire preset area information of multiple UPF groups; and, based on the preset area information and the terminal's TAC information, determine the UPF group whose preset area is less than a preset distance from the terminal's location as the target UPF group.
[0012] In conjunction with the second aspect above, in one possible implementation, the priority of one or more DNS servers corresponding to a UPF group includes: first priority, second priority, and third priority; wherein, the one or more DNS servers corresponding to a UPF group include at least one of the following: a DNS server configured for a single APN, a DNS server configured for an APN group, and a DNS server configured for a UPF group; the APN group includes multiple APNs; the DNS server configured for a single APN is a first priority DNS server; the DNS server configured for an APN group is a second priority DNS server; and the DNS server configured for a UPF group is a third priority DNS server.
[0013] In conjunction with the second aspect above, in one possible implementation, the first session information further includes: the terminal's Access Point Name (APN); the processing unit is further specifically configured to: determine whether there is a target APN in the single APN that is the same as the terminal's APN, in the case that one or more DNS corresponding to the UPF group include a DNS configured for a single APN; if there is a target APN in the single APN that is the same as the terminal's APN, then determine that the DNS configured for the target APN is the DNS with the highest priority.
[0014] In conjunction with the second aspect above, in one possible implementation, the processing unit is further configured to: determine whether the one or more DNS corresponding to the UPF group includes a DSN configured for the APN group if the DNS configured for the APN group is not included in one or more DNS corresponding to the UPF group, and / or if the single APN does not contain a target APN that is the same as the terminal's APN; if the DSN configured for the APN group is included, determine whether a target APN group exists in the APN group; the target APN group is an APN group that includes the terminal's APN; if it exists, determine that the DNS configured for the target APN is the DNS with the highest priority.
[0015] In conjunction with the second aspect above, in one possible implementation, the processing unit is further configured to: determine the DNS corresponding to the UPF group as the DNS with the highest priority when one or more DNS corresponding to the UPF group do not include the DNS configured for the APN group, and / or when there is no target APN group in the APN group.
[0016] Thirdly, this application provides a DNS allocation apparatus, which includes a processor and a memory; wherein the memory is used to store computer execution instructions, and when the DNS allocation apparatus is running, the processor executes the computer execution instructions stored in the memory to cause the DNS allocation apparatus to perform the DNS allocation method as described in the first aspect and any possible implementation thereof.
[0017] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed by a processor of a DNS allocation device, enable the DNS allocation device to perform the DNS allocation method as described in the first aspect and any possible implementation thereof.
[0018] Fifthly, this application provides a computer program product containing instructions that, when run on a DNS allocation device, cause the DNS allocation device to perform the DNS allocation method as described in the first aspect and any possible implementation thereof.
[0019] In a sixth aspect, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the DNS allocation method as described in the first aspect and any possible implementation thereof.
[0020] Specifically, the chip provided in this application embodiment also includes a memory for storing computer programs or instructions.
[0021] In this application, the name of the aforementioned DNS allocation device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the function of each device or functional module is similar to that of this application, it falls within the scope of the claims of this application and its equivalents.
[0022] These or other aspects of this application will become more readily apparent in the following description.
[0023] The technical solution provided in this application brings at least the following beneficial effects: The SMF obtains a first session request containing terminal location information. Based on the terminal's location information, the SMF determines the target UPF group from among the multiple UPF groups under its jurisdiction, whose UPF group belongs to a preset area and whose distance from the terminal's location is a preset distance from the cell. Each UPF group corresponds to one or more DNS servers. The SMF determines the DNS with the highest priority among the one or more DNS servers corresponding to the target UPF group and assigns it to the terminal. Thus, the SMF groups multiple UPFs with the same preset area location into the same UPF group based on the preset area location of the multiple UPFs under its jurisdiction. Based on the location information of the UPF group and the terminal's location information, it determines the target UPF group as the UPF group whose distance from the terminal meets the preset distance. The SMF selects the DNS with the highest priority from the DNS servers corresponding to the UPF group and assigns it to the terminal. This enables the terminal to access the target DNS nearby, reduces routing detours during data forwarding, and improves the accuracy of flexible DNS distribution. Attached Figure Description
[0024] Figure 1 This application provides a schematic diagram of a 5G session connection establishment method.
[0025] Figure 2 This application provides a schematic diagram of an existing network DNS allocation method.
[0026] Figure 3 This is a schematic diagram of a DNS allocation method provided in an embodiment of this application;
[0027] Figure 4 This is a schematic diagram of the hardware structure of a DNS allocation device provided in an embodiment of this application;
[0028] Figure 5 A flowchart illustrating a DNS allocation method provided in this application embodiment;
[0029] Figure 6 This is yet another flowchart illustrating a DNS allocation method provided in an embodiment of this application;
[0030] Figure 7 This is yet another flowchart illustrating a DNS allocation method provided in an embodiment of this application;
[0031] Figure 8 This is a schematic diagram of a DNS allocation device applied to an SMF, provided as an embodiment of this application. Detailed Implementation
[0032] The DNS allocation method, apparatus, and storage medium provided in this application embodiment are described in detail below with reference to the accompanying drawings.
[0033] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0034] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0035] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0036] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0037] With the development of 5G technology, the number of 5G base stations and 5G mobile users is rapidly increasing. 5G networks, with their advantages of high bandwidth, low latency, optical connectivity, and high security, are widely used in various industries such as manufacturing, healthcare, education, and transportation. However, with the rapid development of 5G networks and the rapid growth of 5G users, how to conduct refined network operation to realize the output and value of 5G network capabilities, as well as optimize network construction investment and build a flexible and agile 5G network, has become an urgent problem for major operators.
[0038] Currently, in 5G networks, when a terminal user initiates an internet access request, the session management function (SMF) sends the corresponding domain name system (DNS) to the terminal user based on the Access Point Name (APN) information in the user's request. DNS is used to resolve the domain name in the terminal's session request, thereby enabling the terminal user to access the target network. Specifically, Figure 1 The diagram illustrates the establishment of a 5G session. The UE (User Equipment) initiates a session request to the 5G network, which is then transmitted to the Access and Mobility Management Function (AMF) via the base station. The AMF determines the target SMF (Service Management Function) based on slice information, data network name (DNN) information, and tracking area code (TAC) information contained in the user session request. The target SMF then determines the target UPF (User Platform Provider) based on the slice information, DNN information, and TAC information contained in the user session request. Simultaneously, the SMF or UPF assigns the UE an internet protocol (IP) address and DNS to the user based on the APN (Access Point Name) information carried in the user session information.
[0039] Furthermore, DNS servers are also used to resolve the domain name of the target network contained in session requests initiated by end users into the corresponding IP address. Moreover, DNS servers support geolocation-based domain name resolution services. For example, in an Internet content delivery network (CDN), the CDN relies on edge servers deployed in different geographical locations, and through the load balancing, content distribution, and scheduling modules of the central platform, enables users to obtain target data from the nearest location. This functionality depends on the geolocation-based domain name resolution function of DNS.
[0040] In related technologies, when a user requests to establish a session connection, the 5G network generally issues the correct DNS to the user based on the APN in two ways: Figure 2 The diagram illustrating existing network DNS allocation shows two methods for SMF (Software-Defined Network) DNS allocation: one based on APN granularity and the other based on SMF granularity. Specifically, Method 1: The SMF allocates different DNS servers to APNs based on their APN type, for example, for general user industry private network address resolution or specific user needs. Method 2: The SMF allocates a unified DNS server to all APNs within it, based on the entire SMF. For example, for general public network address resolution.
[0041] However, with the expansion of 5G network scale, the SMF manages multiple UPFs in different regions, resulting in overly centralized user control plane network elements and overly dispersed user data plane network elements. Therefore, how to allocate DNS to enable terminals to access the nearest destination network has become an urgent technical problem to be solved.
[0042] To address the aforementioned technical problems, this application provides a DNS allocation method applied to the Session Management Function (SMF). For example... Figure 3The diagram illustrates the DNS allocation method. The SMF manages multiple User Plane Function (UPF) groups. Each UPF group includes at least one UPF within a preset area, and each UPF group corresponds to one or more DNS servers. The one or more DNS servers corresponding to a UPF group include at least one of the following: a DNS configured for a single APN, a DNS configured for an APN group, and a DNS configured for the UPF group; an APN group includes multiple APNs. The SMF obtains a first session request containing terminal location information. Based on the terminal's location information, the SMF determines the target UPF group from among the multiple UPF groups it manages, specifying the UPF group whose preset area is a preset distance from the terminal's location to the target UPF group. Each UPF group corresponds to one or more DNS servers. The SMF then selects the DNS with the highest priority among the one or more DNS servers corresponding to the target UPF group and allocates it to the terminal. Thus, the SMF groups multiple UPFs with the same preset area location into the same UPF group based on the preset area locations of the multiple UPFs it manages. Based on the location information of the UPF group and the terminal's location information, the SMF determines the target UPF group to be the UPF group whose distance from the terminal meets the preset distance requirement. SMF selects the highest priority DNS from the DNS corresponding to the UPF group and assigns it to the terminal. This enables the terminal to access the target DNS from the nearest one, reduces routing detours during data forwarding, and improves the accuracy of flexible DNS distribution.
[0043] Figure 4 This is a schematic diagram of a DNS allocation device provided in an embodiment of this application. The DNS allocation device 400 includes at least one processor 401, a communication line 402, and at least one communication interface 404, and may also include a memory 403. The processor 401, memory 403, and communication interface 404 are connected via the communication line 402.
[0044] The processor 401 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
[0045] Communication line 402 may include a path for transmitting information between the aforementioned components.
[0046] Communication interface 404 is used to communicate with other devices or communication networks. It can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0047] The memory 403 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of including or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0048] In one possible design, the memory 403 can exist independently of the processor 401, meaning the memory 403 can be an external memory of the processor 401. In this case, the memory 403 can be connected to the processor 401 via a communication line 402 to store execution instructions or application code, and its execution is controlled by the processor 401 to implement the space measurement and determination method provided in the following embodiments of this application. In another possible design, the memory 403 can also be integrated with the processor 401, meaning the memory 403 can be an internal memory of the processor 401. For example, the memory 403 can be a cache, which can be used to temporarily store some data and instruction information.
[0049] As one possible implementation, processor 401 may include one or more CPUs, for example Figure 4 CPU0 and CPU1 in the example. Alternatively, the DNS allocation device 400 may include multiple processors, such as... Figure 4 The processors 401 and 407 are included. Alternatively, the DNS allocation device 400 may also include an output device 405 and an input device 406.
[0050] Through the above description of the implementation methods, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the network node can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, modules, and network nodes described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0051] Figure 5 The DNS allocation method provided in the embodiments of this application, such as Figure 5 As shown, the DNS allocation method provided in this application embodiment can be implemented through the following steps 501 to 504.
[0052] Step 501: SMF obtains the terminal's first session request.
[0053] The first session request includes: location information.
[0054] In one possible implementation, the SMF obtains the terminal's first session request. This first session request includes the terminal's location information. For example, the terminal's location information might include the province it belongs to and the cell it belongs to.
[0055] Step 502: SMF determines the target UPF group among multiple UPF groups.
[0056] The SMF manages multiple user plane function UPF groups, each UPF group includes at least one UPF within a preset area, and the distance between the preset area of the target UPF group and the location of the terminal is less than a preset distance.
[0057] In one possible implementation, the SMF (Service Management Provider) assigns at least one UPF within the same preset area to the same UPF group based on the area to which multiple UPFs under its jurisdiction belong. The SMF then determines the target UPF group from among the multiple UPF groups based on the location information obtained from the terminal's first session request, ensuring that the distance between the preset area location and the terminal's location is a preset distance from the cell's location.
[0058] In one example, if the terminal is located in City A, the SMF will select the UPF group closest to the terminal's location from the preset UPF group in City A as the target UPF group.
[0059] Step 503: SMF determines the DNS with the highest priority among one or more DNS groups corresponding to the target UPF group.
[0060] In one possible implementation, the SMF determines at least one DNS that meets the terminal's access requirements from one or more DNS groups corresponding to the target UPF group. The SMF then selects the DNS with the highest priority from these at least one DNS group as the target DNS.
[0061] In one example, the SMF identifies three DNS servers from the UPF group that meet the terminal's access requirements: DNS1, DNS2, and DNS3. DNS1 has the highest priority, DNS2 has the second highest priority, and DNS3 has the third highest priority. Therefore, the SMF determines DNS1 as the target DNS.
[0062] Step 504: SMF assigns the highest priority DNS to the terminal.
[0063] In one possible implementation, the SMF assigns the highest priority DNS determined in step 503 to the terminal.
[0064] In one example, the SMF assigns the highest-priority DNS to the terminal; that is, the SMF returns the IP address of the DNS server to the terminal. Accordingly, after receiving the IP address returned by the SMF, the terminal uses that IP address to connect to the highest-priority DNS.
[0065] The above scheme brings at least the following benefits: The SMF obtains a first session request containing terminal location information. Based on the terminal's location information, the SMF determines the target UPF group from among the multiple UPF groups under its jurisdiction, whose UPF group's location is within a preset distance from the terminal's location. Each UPF group corresponds to one or more DNS servers. The SMF then selects the DNS with the highest priority among the one or more DNS servers corresponding to the target UPF group and assigns it to the terminal. In this way, the SMF groups multiple UPFs with the same preset area location into the same UPF group based on the preset area location of the multiple UPFs under its jurisdiction. Based on the location information of the UPF group and the terminal's location information, the SMF determines the target UPF group from the UPF group whose distance from the terminal meets the preset distance. The SMF then selects the DNS with the highest priority from the DNS servers corresponding to the UPF group and assigns it to the terminal. This enables the terminal to access the target DNS nearby, reduces routing detours during data forwarding, and improves the accuracy of flexible DNS distribution.
[0066] Combination Figure 5 ,like Figure 6 As shown, step 502 above, which is the SMF determining the target UPF group among multiple UPF groups, can be specifically implemented through the following steps 601-602:
[0067] Step 601: SMF obtains preset area information for multiple UPF groups.
[0068] In one possible implementation, the SMF obtains preset regional information to which multiple UPF groups belong. For example, the province, city, and neighborhood to which the UPF group belongs.
[0069] Step 602: Based on the preset area information and the terminal's TAC information, the SMF determines the UPF group whose target UPF group is the UPF group whose distance between the preset area of the UPF group and the terminal's location is less than a preset distance.
[0070] In one possible implementation, the SMF determines the location information of the terminal based on the terminal's TAC information. The SMF then determines the target UPF group based on the preset area information of the UPF group and the terminal's TAC information, where the distance between the preset area and the terminal's location is less than a preset distance. In other words, from multiple UPF groups, the target UPF group is determined by selecting the UPF group with the smallest preset distance between the terminal's location and the terminal's location.
[0071] The above scheme offers at least the following benefits: The SMF acquires preset area information for multiple UPF groups under its jurisdiction and TAC information from the terminal's first session request. Based on the UPF location information and the terminal's TAC information, the SMF determines the target UPF group as the UPF group whose location distance between them meets a preset distance. In this way, the SMF enables the terminal to access the target network from the nearest location, solving the technical problem of proximity-based target network access, based on the terminal's location information and the UPF group's location information.
[0072] Combination Figure 5 ,like Figure 7 As shown, step 503 above, which determines the DNS with the highest priority among one or more DNS servers corresponding to the target UPF group, can be implemented through the following steps 701-706: The priorities of the one or more DNS servers corresponding to the UPF group include: first priority, second priority, and third priority; specifically, the one or more DNS servers corresponding to the UPF group include at least one of the following: a DNS configured for a single APN, a DNS configured for an APN group, and a DNS configured for a UPF group; the APN group includes multiple APNs; the DNS configured for a single APN is the first priority DNS; the DNS configured for the APN group is the second priority DNS; and the DNS configured for the UPF group is the third priority DNS.
[0073] Step 701: SMF determines whether there is a target APN in a single APN that is the same as the terminal's APN.
[0074] In one possible implementation, if the DNS configured for a single APN is included in one or more DNS corresponding to the UPF group, the SMF determines whether there is a target APN in the single APN that is the same as the APN carried in the terminal's first session request information.
[0075] In one example, the individual ANPs corresponding to at least one APN in the UPF group are APN1, APN2, and APN3, respectively, and the DNS corresponding to each APN is DNS1, DNS2, and DNS3, respectively. If the APN carried by the terminal is APN3, then the SMF determines that the individual APN3 in the UPF group is the same as the target APN as the terminal's APN.
[0076] Step 702: If a single APN contains a target APN that is the same as the terminal's APN, then the SMF determines that the DNS configured for the target APN is the DNS with the highest priority.
[0077] In one possible implementation, if there is a single APN in the UPF group that is the same as the APN carried by the terminal, then the SMF determines that the same APN is the target APN and determines that the DNS corresponding to the target APN is the DNS with the highest priority.
[0078] In one example, if APN3 is the target APN determined by SMF, then DNS3 corresponding to APN3 is the DNS with the highest priority.
[0079] Step 703: SMF determines whether one or more DNS corresponding to the UPF group include the DSN configured for the APN group.
[0080] In one possible implementation, if the DNS configured for a single APN is not included in one or more DNS instances corresponding to the UPF group, and / or if the single APN does not contain a target APN identical to the terminal's APN, the SMF determines whether an APN group exists within the UPF group. Here, an APN group corresponds to one DNS instance, and the APN group contains at least one APN with the same corresponding DNS instance.
[0081] In one example, if a single APN in a UPF group does not contain a target APN that is the same as the terminal's APN, or if the UPF group does not contain a DNS configured for a single APN, then the SMF determines whether an APN group exists in the UPF group.
[0082] Step 704: If a DSN configured for an APN group is included, the SMF determines whether the target APN group exists in the APN group.
[0083] The target APN group is an APN group that includes the terminal's APN;
[0084] In one possible implementation, if a DNS configured for an APN group exists in the UPF group, the SMF determines whether there is an APN group in the APN group that matches the terminal's APN. Here, an APN group that matches the terminal's APN group refers to an APN group containing the same APN as the terminal.
[0085] In one example, the UPF group contains APN group 1 and APN group 2. APN group 1 contains APN4, APN5, and APN6; APN group 2 contains APN7, APN8, and APN9. If the terminal's first session request carries APN5, then the SMF determines APN group 1 as the target APN group.
[0086] Step 705: If it exists, the SMF determines that the DNS configured for the target APN is the DNS with the highest priority.
[0087] In one possible implementation, if one or more DNS groups corresponding to a UPF group do not include DNS configured for a single APN, then if there is a target APN group that includes the terminal APN, the SMF determines that the DNS corresponding to that target APN group is the DNS with the highest priority.
[0088] In one example, if there is an APN in APN group 1 that is the same as the terminal's APN, and the DNS corresponding to APN group 1 is DNS4, then SMF determines DNS4 as the DNS with the highest priority.
[0089] Step 706: SMF determines that the DNS corresponding to the UPF group is the DNS with the highest priority.
[0090] In one possible implementation, if one or more DNS corresponding to a UPF group do not include DNS configured for a single APN and DNS not configured for an APN group, and / or, if there is no target APN in a single APN that is the same as the terminal's APN and there is no target APN group in the APN group, the SMF determines the single DNS corresponding to the UPF group as the DNS with the highest priority.
[0091] In one example, if the SMF assigns a uniform DNS5 to the UPF group, then the SMP determines DNS5 as the highest priority DNS.
[0092] The above scheme offers at least the following benefits: The SMF determines whether the target UPF group includes a DNS configured for a single APN. If so, the SMF determines whether the single APN is identical to the terminal's APN. If a single APN identical to the terminal's APN exists, the DNS configured for that single APN is the highest priority DNS. If the UPF group does not include a DNS configured for a single APN, or if a single APN's DNS configuration does not contain an APN identical to the terminal's APN, the SMF determines whether the target UPF group includes a DNS configured for the APN group. If so, the SMF determines whether an APN identical to the terminal's APN exists within the APN group. If so, the SMF determines that the DNS corresponding to that APN group is the highest priority DNS. If not, the SMF determines that the unified DNS corresponding to the UPF is the highest priority DNS. In this way, the SMF prioritizes the corresponding DNS based on the granularity of the APN and assigns the highest priority DNS that meets preset conditions to the terminal, solving the technical problem of accurate and nearby access to the target DNS.
[0093] The above provides a detailed description of the DNS allocation device involved in the embodiments of this application, as well as the functions of each device within the DNS allocation device and the interactions between the devices.
[0094] As can be seen, the above mainly describes the technical solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0095] This application embodiment can divide the DNS allocation device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0096] This application provides a method applied to a DNS allocation device for executing any device required in the aforementioned DNS allocation system. The DNS allocation device may be the DNS allocation device described in this application, or a module within a DNS allocation device; it may also be a chip within a DNS allocation device, or other devices for executing DNS allocation methods; this application does not limit the specific device used.
[0097] like Figure 8 The diagram shown is a structural schematic of a DNS allocation device applied to an SMF (Session Management Function) according to an embodiment of this application. The device is applied to the Session Management Function (SMF), which manages multiple User Plane Function (UPF) groups. Each UPF group includes at least one UPF within a preset area, and each UPF group corresponds to a specific user plane function. The DNS allocation device for the SMF includes a processing unit 801 and a communication unit 802.
[0098] The processing unit is used to obtain the terminal's first session request; the first session request includes: location information; the processing unit is also used to determine the target UPF group among multiple UPF groups; the distance between the preset area of the target UPF group and the terminal's location is less than a preset distance; the processing unit is also used to determine the DNS with the highest priority among one or more DNS corresponding to the target UPF group; the processing unit is also used to assign the DNS with the highest priority to the terminal.
[0099] Optionally, the processing unit is specifically used to: acquire preset area information of multiple UPF groups; and determine, based on the preset area information and the terminal's TAC information, the UPF group whose distance between the preset area of the UPF group and the terminal's location is less than a preset distance as the target UPF group.
[0100] Optionally, the processing unit is further configured to: assign priorities to one or more DNS servers corresponding to a UPF group, including: first priority, second priority, and third priority; wherein the one or more DNS servers corresponding to a UPF group include at least one of the following: a DNS server configured for a single APN, a DNS server configured for an APN group, and a DNS server configured for a UPF group; the APN group includes multiple APNs; the DNS server configured for a single APN is a first priority DNS server; the DNS server configured for an APN group is a second priority DNS server; and the DNS server configured for a UPF group is a third priority DNS server.
[0101] Optionally, the processing unit is also specifically configured to: determine whether there is a target APN in the single APN that is the same as the terminal's APN, in the case that one or more DNS corresponding to the UPF group include a DNS configured for a single APN; if there is a target APN in the single APN that is the same as the terminal's APN, then determine that the DNS configured for the target APN is the DNS with the highest priority.
[0102] Optionally, the processing unit is further configured to: determine whether the one or more DNS corresponding to the UPF group includes a DSN configured for the APN group if the DNS configured for the APN group is not included in one or more DNS corresponding to the UPF group, and / or if the single APN does not contain a target APN that is the same as the terminal's APN; if the DSN configured for the APN group is included, determine whether a target APN group exists in the APN group; the target APN group is the APN group that includes the terminal's APN; if it exists, determine that the DNS configured for the target APN is the DNS with the highest priority.
[0103] Optionally, the processing unit is also configured to: determine the DNS corresponding to the UPF group as the DNS with the highest priority if the DNS configured for the APN group is not included in one or more DNS groups corresponding to the UPF group, and / or if the target APN group does not exist in the APN group.
[0104] This application provides a DNS allocation apparatus for executing the method required by any device in the aforementioned DNS allocation system. This DNS allocation apparatus may be the DNS allocation apparatus described in this application, or a module within a DNS allocation apparatus; it may also be a chip within a DNS allocation apparatus, or other apparatus for executing the DNS allocation method; this application does not limit the specific device used.
[0105] This application also provides a computer-readable storage medium storing instructions. When a computer executes these instructions, the computer performs each step of the method flow shown in the above-described method embodiments.
[0106] Embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the DNS allocation method described in the above method embodiments.
[0107] Embodiments of this application provide a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run computer programs or instructions to implement the DNS allocation method as described in the above method embodiments.
[0108] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0109] Since the apparatus, device, computer-readable storage medium, and computer program product in the embodiments of this application can be applied to the above methods, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.
[0110] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A Domain Name System (DNS) allocation method, characterized in that, The SMF is applied to the session management function, which manages multiple user plane function UPF groups. Each UPF group includes at least one UPF within a preset area, and each UPF group corresponds to one UPF group. The method includes: Obtain the terminal's first session request and preset area information for multiple UPF groups; the first session request includes: location information and the terminal's Tracking Area Code (TAC) information; Based on the preset area information and the terminal's TAC information, UPF groups whose preset area is less than a preset distance from the terminal's location are identified as target UPF groups; the preset area of the target UPF group is less than a preset distance from the terminal's location. The DNS with the highest priority among one or more DNS servers corresponding to the target UPF group is determined; the priorities of the one or more DNS servers corresponding to the UPF group include: first priority, second priority, and third priority; wherein, the one or more DNS servers corresponding to the UPF group include at least one of the following: a DNS server configured for a single APN, a DNS server configured for an APN group, and a DNS server configured for the UPF group; the APN group includes multiple APNs; the DNS server configured for a single APN is the first priority DNS server; the DNS server configured for the APN group is the second priority DNS server; and the DNS server configured for the UPF group is the third priority DNS server. The highest priority DNS is assigned to the terminal.
2. The method according to claim 1, characterized in that, The first session information also includes: the Access Point Name (APN) of the terminal; The step of determining the DNS with the highest priority among one or more DNS servers corresponding to the target UPF group includes: If one or more DNS corresponding to the UPF group include DNS configured for a single APN, determine whether there is a target APN in the single APN that is the same as the APN of the terminal; If there is a target APN in the single APN that is the same as the terminal's APN, then the DNS configured for the target APN is determined to be the DNS with the highest priority.
3. The method according to claim 2, characterized in that, The method further includes: If the DNS configured for a single APN is not included in one or more DNS groups corresponding to the UPF group, and / or if there is no target APN in the single APN that is the same as the APN of the terminal, Determine whether one or more DNS servers corresponding to the UPF group include a DSN configured for the APN group; If a DSN configured for an APN group is included, then it is determined whether a target APN group exists in the APN group; the target APN group is an APN group that includes the APN of the terminal. If it exists, then the DNS configured for the target APN is determined to be the DNS with the highest priority.
4. The method according to claim 3, characterized in that, The method further includes: If the DNS configured for the APN group is not included in one or more DNS servers corresponding to the UPF group, and / or if the target APN group does not exist in the APN group, The DNS corresponding to the UPF group is determined to be the DNS with the highest priority.
5. A Domain Name System (DNS) allocation device, characterized in that, An application is provided for a Session Management Function (SMF), wherein the SMF manages multiple User Plane Function (UPF) groups, and each UPF group includes at least one UPF within a preset area, and one UPF group corresponds to another; the device includes: a processing unit; The processing unit is used to acquire a first session request from the terminal and preset area information of multiple UPF groups; the first session request includes: location information and the tracking area code (TAC) information of the terminal; The processing unit is further configured to determine, based on the preset area information and the terminal's TAC information, a UPF group whose distance between the preset area of the UPF group and the location of the terminal is less than a preset distance as a target UPF group; the distance between the preset area of the target UPF group and the location of the terminal is less than a preset distance; The processing unit is further configured to determine the DNS with the highest priority among one or more DNS servers corresponding to the target UPF group; the priorities of the one or more DNS servers corresponding to the UPF group include: first priority, second priority, and third priority; wherein, the one or more DNS servers corresponding to the UPF group include at least one of the following: a DNS configured for a single APN, a DNS configured for an APN group, and a DNS configured for the UPF group; the APN group includes multiple APNs; the DNS configured for a single APN is a first priority DNS; the DNS configured for an APN group is a second priority DNS; and the DNS configured for the UPF group is a third priority DNS. The processing unit is also configured to assign the highest priority DNS to the terminal.
6. The apparatus according to claim 5, characterized in that, The first session information also includes: the Access Point Name (APN) of the terminal; The processing unit is further specifically used for: If one or more DNS corresponding to the UPF group include DNS configured for a single APN, determine whether there is a target APN in the single APN that is the same as the APN of the terminal; If there is a target APN in the single APN that is the same as the terminal's APN, then the DNS configured for the target APN is determined to be the DNS with the highest priority.
7. The apparatus according to claim 6, characterized in that, The processing unit is also used for: If the DNS configured for a single APN is not included in one or more DNS groups corresponding to the UPF group, and / or if there is no target APN in the single APN that is the same as the APN of the terminal, Determine whether one or more DNS servers corresponding to the UPF group include a DSN configured for the APN group; If a DSN configured for an APN group is included, then it is determined whether a target APN group exists in the APN group; the target APN group is an APN group that includes the APN of the terminal. If it exists, then the DNS configured for the target APN is determined to be the DNS with the highest priority.
8. The apparatus according to claim 7, characterized in that, The processing unit is further configured to: If the DNS configured for the APN group is not included in one or more DNS servers corresponding to the UPF group, and / or if the target APN group does not exist in the APN group, The DNS corresponding to the UPF group is determined to be the DNS with the highest priority.
9. A DNS allocation device, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being configured to run computer programs or instructions to implement the DNS allocation method as described in any one of claims 1-4.
10. A computer-readable storage medium storing instructions, characterized in that, When the computer executes the instruction, the computer performs the DNS allocation method as described in any one of claims 1-4.
Citation Information
Patent Citations
Communication method and device
CN113473526A
Communication method and device
CN114845356A