CN115277632B - Query and information processing method and device and communication equipment - Google Patents

Query and information processing method and device and communication equipment Download PDF

Info

Publication number
CN115277632B
CN115277632B CN202110485701.9A CN202110485701A CN115277632B CN 115277632 B CN115277632 B CN 115277632B CN 202110485701 A CN202110485701 A CN 202110485701A CN 115277632 B CN115277632 B CN 115277632B
Authority
CN
China
Prior art keywords
dns
information
communication device
address
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110485701.9A
Other languages
Chinese (zh)
Other versions
CN115277632A (en
Inventor
吕华章
柯小婉
吴晓波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110485701.9A priority Critical patent/CN115277632B/en
Publication of CN115277632A publication Critical patent/CN115277632A/en
Application granted granted Critical
Publication of CN115277632B publication Critical patent/CN115277632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The application discloses a query and information processing method, a query and information processing device and communication equipment, which belong to the technical field of communication, and the query method in the embodiment of the application comprises the following steps: the method comprises the steps that first communication equipment receives first information sent by a terminal; detecting the first information and determining whether the first information contains DNS inquiry or not; if the first information contains DNS inquiry, executing a first operation; wherein the first operation includes at least one of: processing the first information; forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: a DNS query and a first FQDN in the DNS query; the target communication device is a second communication device or a third communication device.

Description

Query and information processing method and device and communication equipment
Technical Field
The application belongs to the field of communication, and in particular relates to a query and information processing method and device and communication equipment.
Background
In the 3GPP standard, a 5G core network (5 GC) is currently defined to send a domain name system (Domain Name System, DNS) configuration to a User Equipment (UE, also called a terminal) through an extended protocol configuration option (extended protocol configuration options, ePCO) procedure. The DNS configuration is in fact the address of the DNS server, i.e. the DNS server address to which the DNS query sent by the UE should be sent. The architecture of the edge application server discovery function (Edge application server discovery function, EASDF) in the 5G core network is shown in fig. 1.
The biggest use of EASDF is to be able to select an edge application server (Edge application server, EAS) with the shortest route or the nearest location for the UE according to the DNS query of the UE, i.e. to ensure that the UE obtains an IP address of the server nearest to the UE after each DNS query. Thus, we can consider that EASDF is in fact an optimized service provided by the operator for the UE or APP on the UE.
However, due to the ePCO process, the DNS configuration is actually sent to the UE Operating System (OS), and the DNS configuration in the UE OS may be changed, for example, through a User Interface (UI), or rewritten by some applications, which results in a change in the DNS configuration sent to the UE by the original 5GC, unlike the previous one.
Considering that the DNS configuration sent by the 5GC to the UE is actually 5GC optimized (e.g. local DNS is provided according to the UE location, or DNS queries are sent to the EASDF, which may be optimized according to the DNS queries, and the fed-back DNS response, EAS IP address, is closer to the UE), if the DNS configuration in the UE OS is changed, these applications on the UE cannot send DNS queries to the EASDF, and DNS enhancement services provided by the operator cannot be used.
Disclosure of Invention
The embodiment of the application provides a query and information processing method, device and communication equipment, which can solve the problem that if DNS configuration in an OS of a UE is changed, the applications on the UE cannot send DNS query to an EASDF, and a terminal cannot use DNS enhancement service provided by an operator.
In a first aspect, a query method is provided, including:
the method comprises the steps that first communication equipment receives first information sent by a terminal;
detecting the first information and determining whether the first information contains Domain Name System (DNS) inquiry;
if the first information contains DNS inquiry, executing a first operation;
wherein the first operation includes at least one of:
processing the first information;
forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: at least one of a DNS query and a first fully qualified domain name, FQDN, in the DNS query;
the target communication device is a second communication device or a third communication device.
In a second aspect, a query method is provided, including:
the second communication device receives second information sent by the first communication device, the second information is obtained based on first information sent by the terminal, and the second information comprises: domain name system, DNS, query, first FQDN in the DNS query;
Determining a first fully qualified domain name FQDN according to the second information;
judging whether the first FQDN is consistent with the target FQDN, and whether the target IP address in the DNS query is the same as the first DNS server address, so as to obtain a judging result;
feeding back the judgment result to the first communication equipment;
wherein the first information includes DNS query.
In a third aspect, a query method is provided, including:
the third communication device receives second information sent by the first communication device, the second information is obtained based on the first information, and the second information comprises: domain name system DNS queries;
analyzing a DNS query, and acquiring a first full-limit domain name FQDN in the DNS query;
if the first FQDN is inconsistent with the target FQDN, executing a second operation;
wherein the first information includes DNS query.
In a fourth aspect, a query method is provided, including:
the fourth communication device sends target information to the target communication device;
wherein the target communication device includes: at least one of the first communication device, the second communication device, and the third communication device;
the target information includes: at least one of the third information and the target FQDN.
In a fifth aspect, there is provided an information processing method including:
The second communication device or the third communication device sends the first signaling;
wherein, the first signaling includes a domain name system DNS context, and the DNS context includes: processing rules for DNS queries sent by the target terminal.
In a sixth aspect, there is provided an information processing method including:
the second communication device or the third communication device updates a Domain Name System (DNS) context;
wherein, the DNS context includes: processing rules for DNS queries sent by the target terminal.
In a seventh aspect, there is provided an information processing method including:
if the deleting condition is met, deleting the DNS context by the second communication device or the third communication device;
wherein, the DNS context includes: processing rules of DNS query sent by a target terminal;
the deletion condition includes at least one of:
the IP address of the target terminal changes;
protocol data unit PDU session release;
PDU session IP changes.
In an eighth aspect, there is provided a query device applied to a first communication apparatus, including:
the first receiving module is used for receiving first information sent by the terminal;
the first determining module is used for detecting the first information and determining whether the first information contains Domain Name System (DNS) inquiry or not;
The first execution module is used for executing a first operation if the first information contains DNS inquiry;
wherein the first operation includes at least one of:
processing the first information;
forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: at least one of a DNS query and a first fully qualified domain name, FQDN, in the DNS query;
the target communication device is a second communication device or a third communication device.
In a ninth aspect, a communication device is provided, the communication device being a first communication device, comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the query method of the first aspect when executed by the processor.
In a tenth aspect, a communication device is provided, where the communication device is a first communication device, and includes a processor and a communication interface, where the communication interface is configured to receive first information sent by a terminal; the processor is used for detecting the first information and determining whether the first information contains Domain Name System (DNS) inquiry; if the first information contains DNS inquiry, executing a first operation;
Wherein the first operation includes at least one of:
processing the first information;
forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: at least one of a DNS query and a first fully qualified domain name, FQDN, in the DNS query;
the target communication device is a second communication device or a third communication device.
In an eleventh aspect, there is provided a query device applied to a second communication apparatus, including:
the second receiving module is configured to receive second information sent by the first communication device, where the second information is obtained based on first information sent by the terminal, and the second information includes: domain name system, DNS, query, first FQDN in the DNS query;
the second determining module is used for determining a first fully defined domain name FQDN according to the second information;
the judging module is used for judging whether the first FQDN is consistent with the target FQDN and whether the target IP address in the DNS query is the same as the first DNS server address or not, so as to obtain a judging result;
the feedback module is used for feeding back the judgment result to the first communication equipment;
wherein the first information includes DNS query.
In a twelfth aspect, there is provided a communication device, the communication device being a second communication device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the querying method as described in the second aspect.
In a thirteenth aspect, a communication device is provided, where the communication device is a second communication device, and the communication device includes a processor and a communication interface, where the communication interface is configured to receive second information sent by a first communication device, where the second information is obtained based on first information sent by a terminal, and the second information includes: domain name system, DNS, query, first FQDN in the DNS query; the processor is used for determining a first fully defined domain name FQDN according to the second information; judging whether the first FQDN is consistent with the target FQDN, and whether the target IP address in the DNS query is the same as the first DNS server address, so as to obtain a judging result; the communication interface is used for feeding back a judgment result to the first communication equipment;
wherein the first information includes DNS query.
In a fourteenth aspect, there is provided a query device applied to a third communication apparatus, including:
The fourth receiving module is configured to receive second information sent by the first communication device, where the second information is obtained based on the first information, and the second information includes: domain name system DNS queries;
a first obtaining module, configured to resolve a DNS query, and obtain a first fully qualified domain name FQDN in the DNS query;
the second execution module is used for executing a second operation if the first FQDN is inconsistent with the target FQDN;
wherein the first information includes DNS query.
In a fifteenth aspect, there is provided a communication device, the communication device being a third communication device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the query method as described in the third aspect.
In a sixteenth aspect, a communication device is provided, where the communication device is a third communication device, and the communication device includes a processor and a communication interface, where the communication interface is configured to receive second information sent by the first communication device, where the second information is obtained based on the first information, and the second information includes: domain name system DNS queries; the processor is used for analyzing the DNS query and acquiring a first full-limit domain name FQDN in the DNS query; if the first FQDN is inconsistent with the target FQDN, executing a second operation;
Wherein the first information includes DNS query.
In a seventeenth aspect, there is provided a query device applied to a fourth communication apparatus, including:
the first sending module is used for sending the target information to the target communication equipment;
wherein the target communication device includes: at least one of the first communication device, the second communication device, and the third communication device;
the target information includes: at least one of the third information and the target FQDN.
In an eighteenth aspect, there is provided a communication device which is a fourth communication device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the query method as described in the fourth aspect.
In a nineteenth aspect, there is provided a communication device, which is a fourth communication device, including a processor and a communication interface, where the communication interface is configured to send target information to a target communication device;
wherein the target communication device includes: at least one of the first communication device, the second communication device, and the third communication device;
The target information includes: at least one of the third information and the target FQDN.
In a twentieth aspect, there is provided an information processing apparatus applied to a second communication device or a third communication device, comprising:
the second sending module is used for sending the first signaling;
wherein, the first signaling includes a domain name system DNS context, and the DNS context includes: processing rules for DNS queries sent by the target terminal.
In a twenty-first aspect, there is provided a communication device, which is a second communication device or a third communication device, comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the information processing method according to the fifth aspect.
In a twenty-second aspect, a communication device is provided, where the communication device is a second communication device or a third communication device, and includes a processor and a communication interface, where the communication interface is configured to send a first signaling;
wherein, the first signaling includes a domain name system DNS context, and the DNS context includes: processing rules for DNS queries sent by the target terminal.
In a twenty-third aspect, there is provided an information processing apparatus applied to a second communication device or a third communication device, comprising:
the updating module is used for updating the DNS context of the domain name system;
wherein, the DNS context includes: processing rules for DNS queries sent by the target terminal.
In a twenty-fourth aspect, there is provided a communication device, which is a second communication device or a third communication device, comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the information processing method according to the sixth aspect.
In a twenty-fifth aspect, a communication device is provided, where the communication device is a second communication device or a third communication device, and includes a processor and a communication interface, where the processor is configured to update a domain name system DNS context;
wherein, the DNS context includes: processing rules for DNS queries sent by the target terminal.
A twenty-sixth aspect provides an information processing apparatus applied to a second communication device or a third communication device, comprising:
the deleting module is used for deleting the DNS context of the domain name system if the deleting condition is met;
Wherein, the DNS context includes: processing rules of DNS query sent by a target terminal;
the deletion condition includes at least one of:
the IP address of the target terminal changes;
protocol data unit PDU session release;
PDU session IP changes.
In a twenty-seventh aspect, there is provided a communication device, which is a second communication device or a third communication device, comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the information processing method according to the seventh aspect.
A twenty-eighth aspect provides a readable storage medium having stored thereon a program or instructions which when executed by a processor, implement the steps of the method of the first, second, third, fourth, fifth, sixth or seventh aspects.
In a twenty-ninth aspect, a chip is provided, the chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute a program or instructions to implement the steps of the method according to the first, second, third, fourth, fifth, sixth or seventh aspects.
In a thirty-third aspect, there is provided a computer program/program product stored in a non-volatile storage medium, the program/program product being executable by at least one processor to perform the steps of the method according to the first, second, third, fourth, fifth, sixth or seventh aspects.
In the embodiment of the application, when the first information including the DNS query sent by the terminal is received, the first information is processed or the second information obtained based on the first information is sent to the second communication device or the third communication device, so that the processing of the DNS query by the first communication device is definitely defined, the problem that the terminal cannot use the DNS enhancement service provided by the operator because the DNS query cannot be sent to the EASDF by the applications on the UE because the DNS configuration in the UE OS is changed is avoided, and the terminal can be ensured to normally access the DNS enhancement service provided by the operator is solved.
Drawings
FIG. 1 is a schematic diagram of the architecture of an EASDF in a 5G core network;
FIG. 2 is one of the flow diagrams of the query method of the embodiment of the present application;
FIG. 3 is a schematic diagram of the primary communication process of the primary functional entity according to an embodiment of the present application;
FIG. 4 is one of the application specific schematics of the application embodiment;
FIG. 5 is a second exemplary illustration of an embodiment of the present application;
FIG. 6 is a third exemplary illustration of an embodiment of the present application;
FIG. 7 is a fourth embodiment of the present invention;
FIG. 8 is a fifth application diagram of an embodiment of the present invention;
FIG. 9 is one of the block diagrams of the query device of the embodiments of the present application;
fig. 10 is a detailed structural block diagram of a communication device of an embodiment of the present application;
FIG. 11 is a second flow chart of a query method according to an embodiment of the present application;
FIG. 12 is a second block diagram of a query device according to an embodiment of the present application;
FIG. 13 is a third flow chart of a query method according to an embodiment of the present application;
FIG. 14 is a third block diagram of a query device according to an embodiment of the present application;
FIG. 15 is a fourth flow chart of a query method according to an embodiment of the present application;
FIG. 16 is a fourth block diagram of a query device according to an embodiment of the present application;
FIG. 17 is one of the flow diagrams of the information processing method of the embodiment of the present application;
FIG. 18 is one of block diagrams of an information processing apparatus according to an embodiment of the present application;
FIG. 19 is a second flow chart of the information processing method according to the embodiment of the present application;
FIG. 20 is a second block diagram of an information processing apparatus according to an embodiment of the present application;
FIG. 21 is a third flow chart of the information processing method according to the embodiment of the present application;
FIG. 22 is a third block diagram of an information processing apparatus according to an embodiment of the present application;
fig. 23 is a schematic block diagram of a communication apparatus according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the terms "first" and "second" are generally intended to be used in a generic sense and not to limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/" generally means a relationship in which the associated object is an "or" before and after.
It is noted that the techniques described in embodiments of the present application are not limited to long term evolution (Long Term Evolution, LTE)/LTE evolution (LTE-Advanced, LTE-a) systems, but may also be used in other wireless communication systems, such as code division multiple access (Code Division Multiple Access, CDMA), time division multiple access (Time Division Multiple Access, TDMA), frequency division multiple access (Frequency Division Multiple Access, FDMA), orthogonal frequency division multiple access (Orthogonal Frequency Division Multiple Access, OFDMA), single-carrier frequency division multiple access (Single-carrier Frequency-Division Multiple Access, SC-FDMA), and other systems. The terms "system" and "network" in embodiments of the present application are often used interchangeably, and the techniques described may be used for both the above-mentioned systems and radio technologies, as well as other systems and radio technologies. The following description describes a New air interface (NR) system for purposes of example and NR terminology is used in much of the description below, but these techniques may also be applied to applications other than NR system applications, such as the 6th generation (6th Generation,6G) communication system.
The query, information processing method, device and communication equipment provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As shown in fig. 2, an embodiment of the present application provides a query method, including:
step 201, a first communication device receives first information sent by a terminal;
it should be noted that, in this embodiment of the present application, the first information may be a flow sent by the terminal to the first communication device, or may be a DNS query request sent by the terminal, or may be an IP packet sent by the terminal.
Step 202, detecting the first information, and determining whether the first information contains domain name system DNS query;
specifically, the DNS query refers to a DNS query request, and specifically, the DNS query request includes a target IP address of a DNS server to be accessed by the DNS query sent by the terminal, and a FQDN to be resolved.
In step 203, if the first information includes DNS query, a first operation is performed.
Optionally, the first operation described in the embodiments of the present application includes at least one of:
a11, processing the first information;
a12, forwarding the second information to the target communication equipment;
the second information is obtained based on the first information, and the second information includes: at least one of a DNS query and a first Fully Qualified Domain Name (FQDN) in the DNS query;
The target communication device is a second communication device or a third communication device.
It should be noted that, in the embodiments of the present application, the first communication device may be a User Plane Function (UPF), an uplink classifier (Uplink Classifier, UL CL), a protocol data unit session anchor (PDU Session Anchor, PSA), a local protocol data unit session anchor (L-PSA), a central protocol data unit session anchor (Central PDU Session Anchor, C-PSA), and in the following description, only the first communication device is taken as an example of UPF, the second communication device may be a Session Management Function (SMF), and the third communication device may be an Edge Application Server Discovery Function (EASDF).
Optionally, one implementation of step 202 is:
querying a port number of the first information; if the port number of the first information is a preset port number, determining that the first information contains DNS query.
For example, the preset port number is 53 or 853.
That is, the method of IP five-tuple is adopted in the present application to detect whether the port number of the first information is a preset port number.
Embodiments of the present application are specifically described below from different implementation angles, respectively.
Implementation one, in way a11, the determination of DNS queries by the UPF using an application identifier or application descriptor
Optionally, the implementation of a11 in this manner is:
judging whether the DNS query in the first information is sent by a signing application or not according to the third information;
if the DNS query in the first information is sent by the subscription application and the target IP address of the DNS query is different from the address of the first DNS server, replacing the target IP address of the DNS query with the address of the first DNS server, or executing a forwarding operation rule FAR on the DNS query;
the FAR is used for forwarding the DNS query in the first information to the first DNS server.
It should be noted that, in the embodiment of the present application, the third information includes at least one of the following:
b11, an application identifier;
the application identifier is used for indicating an application for processing traffic and is used for detecting the traffic of the application by the UPF; the application identifier refers to an identifier that may be mapped to an application traffic detection rule.
For example, the application identifier is an application index (APP ID).
B12, application descriptor;
the terminal uses the application descriptor to identify the application traffic corresponding to the application identifier.
Optionally, the application descriptor is used to identify an Application (APP) on a terminal Operating System (OS), and may include an operating system identification (OSId) and an operating system application identification (OSAppId).
B13, target FQDN;
optionally, the target FQDN in the embodiment of the present application is an FQDN provided by an application subscribed to the operator.
It should be noted that, the target FQDN may be a determined domain name, or may be a domain name containing a wild card, for example: * Xxxx.
B14, a first DNS server address;
optionally, the first DNS server address refers to a DNS server address configured in a preset area by an operator and provided for an edge application, for use in an edge computing scenario. For example, in the embodiment of the present application, the EASDF IP address may be a DNS server address configured by an operator, i.e., a first DNS server address.
It should be noted that, in this implementation manner, whether the DNS query is sent by the subscription application is mainly determined by using the B11 or the B12 in the third information, and when the DNS query is sent by the subscription application and the target IP address of the DNS query is the same as the address of the first DNS server, the UPF directly sends the DNS query to the first DNS server; when the DNS query is sent by the subscription application but the target IP address of the DNS query is different from the address of the first DNS server, in one case, the UPF needs to replace the target IP address and replace the target IP address with the address of the first DNS server, so that the UPF can direct the DNS query sent by the subscription application to the address of the DNS server configured by the operator, and the terminal can use the DNS enhancement service provided by the operator; in another case, the UPF performs FAR directly on the DNS query, with the aim of also directing the DNS query to an operator configured DNS server address, which would also enable the terminal to use the DNS enhanced services provided by the operator.
Optionally, the third information is typically sent to the UPF by a fourth communication device, which may alternatively be an Application Function (AF). It should be further noted that the fourth communications device may also provide a second DNS server to the UPF, where the second DNS server address generally refers to an address of a specific DNS server configured for the terminal application, and the second DNS server address may be the same as the first DNS server address or may be different from the first DNS server address.
In this case, after the UPF redirects the DNS query to the DNS server configured by the operator, the UPF will send the DNS query to the EASDF, and the EASDF will send the DNS query to the corresponding DNS server, and the DNS server will feed back a DNS response (the DNS response refers to just a DNS query response) to the EASDF, and the EASDF will feed back a DNS response to the UPF, which needs to be interpreted that the source IP address in the DNS response is at least one of the third communications device address and the third DNS server address (the third DNS server address refers to the target IP in the DNS query); when the UPF receives the DNS response, the UPF directly sends the DNS response to the terminal when the source IP address in the DNS response is the address of the third DNS server, and when the source IP address in the DNS response is the address of the third communication device, the UPF needs to replace the source IP address in the DNS response with the address of the third DNS server and then send the DNS response to the terminal.
Implementation II adopts a mode A11, and the UPF judges the DNS query by utilizing the first FQDN in the DNS query
Optionally, the implementation of a11 in this manner is:
analyzing the first information to obtain DNS inquiry in the first information;
analyzing the DNS query to obtain a first FQDN in the DNS query;
if the first FQDN is consistent with the target FQDN and the target IP address of the DNS query is different from the first DNS server address, replacing the target IP address of the DNS query with the first DNS server address, or executing FAR on the DNS query;
the FAR is used for forwarding the DNS query in the first information to the first DNS server.
In particular, the target FQDN may be an FQDN provided for an application subscribed to the operator.
It should be noted that, in this implementation manner, whether the first FQDN in the DNS query is consistent with the FQDN provided by the application subscribed to the operator (the consistency here may be complete consistency, or may be suffix matching of the two, etc.), and when the first FQDN is consistent with the FQDN provided by the application subscribed to the operator, and the target IP address of the DNS query is the same as the address of the first DNS server, the UPF directly sends the DNS query to the first DNS server; when the first FQDN is consistent with the FQDN provided by the application subscribed to the operator, but the target IP address of the DNS query is different from the first DNS server address, in one case, the UPF needs to replace the target IP address and replace the target IP address with the first DNS server address, so that the UPF can direct the DNS query sent by the subscribed application to the DNS server address configured by the operator, and the terminal can use the DNS enhancement service provided by the operator; in another case, the UPF performs FAR directly on the DNS query, with the aim of also directing the DNS query to an operator configured DNS server address, which would also enable the terminal to use the DNS enhanced services provided by the operator.
It should also be noted that, as used herein, the target FQDN is typically provided by the AF, the SMF is sent, and then the SMF sends the UPF, which needs to obtain the target FQDN from the SMF before performing this method.
In this case, after the UPF redirects the DNS query to the DNS server configured by the operator, the UPF sends the DNS query to the EASDF, the EASDF sends the DNS query to the corresponding DNS server, the DNS server feeds back a DNS response to the EASDF, and the EASDF feeds back the DNS response to the UPF, where it is to be noted that the source IP address in the DNS response is at least one of the third communications device address and a third DNS server address (the third DNS server address refers to the target IP in the DNS query); when the UPF receives the DNS response, the UPF directly sends the DNS response to the terminal when the source IP address in the DNS response is the address of the third DNS server, and when the source IP address in the DNS response is the address of the third communication device, the UPF needs to replace the source IP address in the DNS response with the address of the third DNS server and then send the DNS response to the terminal.
Implementation mode III adopts mode A11, and UPF directly judges the target IP address in DNS query
Optionally, the implementation of a11 in this manner is:
replacing the target IP address of the DNS query with a first DNS server address; or alternatively
And executing FAR on the DNS query, wherein the FAR is used for forwarding the DNS query in the first information to a first DNS server.
In this way, the UPF does not determine the target IP address, but directly replaces the target IP address in the DNS query with the address of the first DNS server, or the terminal executes the FAR to directly redirect the DNS query to the first DNS server.
In this case, after the UPF redirects the DNS query to the DNS server configured by the operator, the UPF sends the DNS query to the EASDF, the EASDF sends the DNS query to the corresponding DNS server, the DNS server feeds back a DNS response to the EASDF, and the EASDF feeds back the DNS response to the UPF, where it is to be noted that the source IP address in the DNS response is at least one of the third communications device address and a third DNS server address (the third DNS server address refers to the target IP in the DNS query); when the UPF receives the DNS response, the UPF directly sends the DNS response to the terminal when the source IP address in the DNS response is the address of the third DNS server, and when the source IP address in the DNS response is the address of the third communication device, the UPF needs to replace the source IP address in the DNS response with the address of the third DNS server and then send the DNS response to the terminal.
Implementation IV, adopting modes A12 and UPF to send first FQDN to SMF or 5GC core network
It should be noted that, in this manner, before the UPF sends the first FQDN to the SMF, the first FQDN needs to be acquired, and specifically, the first FQDN is acquired in the following manner:
analyzing the first information to obtain DNS inquiry in the first information;
and analyzing the DNS query, and acquiring a first FQDN in the DNS query.
After the UPF sends the first FQDN to the SMF, the SMF determines whether the first FQDN is consistent with the target FQDN, and whether the target IP address in the DNS query is the same as the first DNS server address, to obtain a determination result (specifically, if the first FQDN is consistent with the target FQDN, and the target IP of the DNS query is not the same as the first DNS server address, to obtain a determination result indicating that the DNS query needs to be replaced by the target IP address or indicating that the forwarding operation rule FAR needs to be executed, where the FAR is used to forward the DNS query to the first DNS server; feeding back the judgment result to the first communication equipment; after the UPF receives the judging result, if the judging result indicates that the target IP address of the DNS query needs to be replaced, replacing the target IP address of the DNS query with a first DNS server address; or alternatively
And if the judging result indicates that the FAR needs to be executed, applying the FAR to the DNS query, and forwarding the DNS query to a first DNS server.
In this case, after the UPF redirects the DNS query to the DNS server configured by the operator, the UPF sends the DNS query to the EASDF, the EASDF sends the DNS query to the corresponding DNS server, the DNS server feeds back a DNS response to the EASDF, and the EASDF feeds back the DNS response to the UPF, where it is to be noted that the source IP address in the DNS response is at least one of the third communications device address and a third DNS server address (the third DNS server address refers to the target IP in the DNS query); when the UPF receives the DNS response, the UPF directly sends the DNS response to the terminal when the source IP address in the DNS response is the address of the third DNS server, and when the source IP address in the DNS response is the address of the third communication device, the UPF needs to replace the source IP address in the DNS response with the address of the third DNS server and then send the DNS response to the terminal.
Implementation five, adopting mode A12 and UPF to send DNS query to SMF
In this case, the UPF does not process the DNS query, but directly transmits the DNS query to the SMF, and the SMF processes the DNS query.
Specifically, the SMF optionally performs the following steps: analyzing the DNS inquiry to obtain a first FQDN, and judging whether the first FQDN is consistent with a target FQDN or not by the SMF, and judging whether a target IP address in the DNS inquiry is the same as a first DNS server address or not to obtain a judging result (specifically, if the first FQDN is consistent with the target FQDN and the target IP of the DNS inquiry is not the same as the first DNS server address, a judging result indicating that the target IP address of the DNS inquiry needs to be replaced or a judging result indicating that a forwarding operation rule FAR needs to be executed is obtained, wherein the FAR is used for forwarding the DNS inquiry to the first DNS server; then SMF feeds back the judging result to UPF; after the UPF receives the judging result, if the judging result indicates that the target IP address of the DNS query needs to be replaced, replacing the target IP address of the DNS query with a first DNS server address; or alternatively
And if the judging result indicates that the FAR needs to be executed, applying the FAR to the DNS query, and forwarding the DNS query to a first DNS server.
In this case, after the UPF redirects the DNS query to the DNS server configured by the operator, the UPF sends the DNS query to the EASDF, the EASDF sends the DNS query to the corresponding DNS server, the DNS server feeds back a DNS response to the EASDF, and the EASDF feeds back the DNS response to the UPF, where it is to be noted that the source IP address in the DNS response is at least one of the third communications device address and a third DNS server address (the third DNS server address refers to the target IP in the DNS query); when the UPF receives the DNS response, the UPF directly sends the DNS response to the terminal when the source IP address in the DNS response is the address of the third DNS server, and when the source IP address in the DNS response is the address of the third communication device, the UPF needs to replace the source IP address in the DNS response with the address of the third DNS server and then send the DNS response to the terminal.
Implementation six, adopting mode A12 and UPF to send DNS query to EASDF
It should be noted that, in this case, the UPF directly sends the DNS query to the EASDF, and the EASDF optionally performs the following processes:
analyzing a DNS query, and acquiring a first FQDN in the DNS query; if the first FQDN is consistent with the target FQDN, the DNS query is sent to a corresponding DNS server; if the first FQDN is inconsistent with the target FQDN, executing a second operation;
the second operation includes one of:
c11, routing according to the destination IP address indicated by the DNS query;
c12, modifying the destination IP of the DNS query into a third DNS server address, and feeding back fourth information to the first communication equipment;
and C13, transmitting fifth information to the first communication device, wherein the fifth information is used for instructing the first communication device to modify the destination IP of the DNS query into a third DNS server address.
It should be noted that, both C12 and C13 refer to that the EASDF returns the DNS query to the UPF, but the operation of modifying the destination IP of the DNS query in C12 is performed by the EASDF, that is, in the case of C12, the UPF directly receives fourth information sent by the third communications device, where the destination IP address of the DNS query included in the fourth information is the address of the third DNS server; whereas the operation of modifying the destination IP of the DNS query in C13 needs to be indicated to the UPF by the EASDF and replaced by the UPF itself, that is, after the UPF receives the fifth information sent by the third communications device in the case of C13, the destination IP of the DNS query needs to be modified to the third DNS server address.
It should be noted that, a schematic diagram of a main communication process of a main functional entity according to an embodiment of the present application is shown in fig. 3.
The following describes specific application cases of embodiments of the present application.
Application case one, UPF all replacement destination IP
As shown in fig. 4, the implementation procedure in this case is mainly:
step 401: an APP (application) signs up with an operator and agrees to use DNS value-added services provided by the operator;
that is, using DNS value added services provided by the operator, the EAS IP is the server closest to the UE location or the shortest route among DNS responses (which refer to DNS query responses) provided for the UE.
Step 402: the APP provides third information, such as a target FQDN, an APP ID and the like, to the 5GC through AF; the network elements such as SMF in 5GC can use this information to generate traffic detection rules or directly maintain this information for subsequent DNS query comparisons.
Step 403: the SMF issues DNS configuration for the UE through ePCO;
the DNS configuration is DNS server IP addresses provided by the operator for the UE and APP on the UE.
Step 404-step 405: SMF sends flow detection rule and/or DNS message processing rule to UPF and EASDF;
It should be noted that, the traffic detection is to detect the DNS query of the specific application, and the DNS message processing rule is that the EASDF is to detect the specific DNS query and perform the corresponding processing (e.g. forward to the L-DNS or forward to the C-DNS and add ECS option)
Step 406: the DNS configuration is modified;
that is, or for some reason, the DNS configuration issued by the operator inside the UE OS is changed.
Step 407: the UE sends a DNS query;
step 408: detecting all DNS queries according to the flow detection rule;
that is, the UPF directly detects the destination port number in the IP five-tuple of each packet according to the traffic detection rule, which is a DNS query if it is a 53 or 853 port;
step 409: the UPF replaces the detected destination IP addresses of all DNS queries with DNS server addresses (namely DNS server IP addresses) configured by operators, namely first DNS server addresses;
it should be noted that, instead of replacing the destination IP address, the UPF may directly execute a FAR on the DNS query, where the FAR is issued to the UPF by the SMF. The FAR also sends all DNS queries detected to the first DNS server, which in this process is the EASDF.
Step 410: the DNS query is redirected to the EASDF;
step 411: the EASDF sends DNS responses to the UPF;
step 412: replacing the source IP address in the DNS response back to the destination IP address in step 409;
the UPF detects the packet sent by the EASDF and looks at the port number to find that this is a DNS response, and then changes the source IP address from the EASDF to the destination IP address of the DNS query sent by the UE before.
Examples are:
and the transmitting end:
UE (IP Address 1) → DNS (IP Address 2) specified by some APP
The UPF changes the IP address 2 to the IP address 3 (i.e. DNS server IP configured by the operator, such as EASDF IP); alternatively, the UPF forwards the DNS query, using FAR, to IP address 3;
the receiving end:
EASDF (IP Address 3) →UE (IP Address 1)
The UPF changes the IP address 3 back to the IP address 2;
step 413: and sending the DNS response to the terminal.
Application case two, UPF all replaces destination IP of partial DNS query
As shown in fig. 5, the implementation procedure in this case is mainly:
it should be noted that, the implementation processes of steps 501-507 and steps 510-513 in this implementation manner are the same as the implementation processes of steps 401-407 and steps 410-413 in the first implementation manner, and are not described in detail herein, and only the different steps are described below.
Step 508: detecting DNS inquiry of a specific application according to a flow detection rule;
it should be noted that this specific application refers to an application that signs an SLA with an operator.
That is, the UPF receives traffic detection rules from the SMF, and detects DNS queries sent by a specific application via the UPF through analysis of the detection rules and port numbers.
Step 509: the UPF only replaces the detected destination IP of the DNS query sent by the specific application with the DNS server address (namely DNS server IP address) configured by the operator;
it should be noted that, instead of replacing the destination IP address, the UPF may directly execute a FAR on the DNS query, where the FAR is issued to the UPF by the SMF.
Step 510: DNS queries are redirected to EASDF
Step 511: EASDF sends DNS query response to UPF
Step 512: the UPF detects the packet sent by the EASDF and looks at the port number to find that this is a DNS query response, and then changes the source IP from the EASDF to the destination IP of the DNS query sent by the UE before.
Step 513: the UE receives the DNS query response.
FQDN-based decision for UPF
As shown in fig. 6, the implementation procedure in this case is mainly:
it should be noted that, the implementation processes of steps 601-607 and 610-613 in this implementation manner are the same as those of steps 401-407 and 410-413 in the first implementation manner, and are not described in detail herein, and only the different steps are described below.
Step 608-step 609: the UPF receives a flow detection rule from the SMF, and detects DNS inquiry sent by the signing application through the UPF through analysis of the detection rule and the port number;
in this example, the UPF may first screen out all DNS queries according to the port number, and then the UPF performs deep packet inspection on these packets to obtain the FQDN in the DNS query; the UPF compares the FQDN in the DNS query with the target FQDN (namely, the FQDN sent by the SMF according to the flow detection rule), if the FQDN is the same, the substitution of the target IP of the DNS query is executed, or the FAR is executed; if not, the processing is not performed.
FQDN-based decision for SMF in application case four
As shown in fig. 7, the implementation procedure in this case is mainly:
it should be noted that, the implementation processes of steps 701-707 and 711-714 in this implementation manner are the same as those of steps 401-407 and 410-413 in the first implementation manner, and are not described in detail herein, and only the different steps are described below.
Step 708: the UPF detects all DNS queries according to the port number;
step 709: the UPF unpacks and analyzes the data packets, and forwards the DNS queries or FQDN to the SMF;
Step 710: the SMF compares the obtained FQDN with a target FQDN obtained from AF, judges whether the DNS query is sent by a subscription APP, and if the FQDN is the same, the SMF indicates the UPF to replace the target IP or execute FAR; if not, no processing is performed.
Application case five, EASDF processing method
As shown in fig. 8, the implementation procedure in this case is mainly:
it should be noted that, the implementation processes of steps 801 to 807 and steps 811 to 813 in this implementation manner are the same as the implementation processes of steps 401 to 407 and steps 410 to 413 in the first implementation manner, and are not described in detail herein, and only the different steps are described below.
Step 808: the UPF detects all DNS queries according to the port number;
step 809: the UPF replaces the destination IP of the DNS queries with DNS server addresses configured by operators and sends the DNS server addresses to the EASDF;
step 810: after the EASDF receives the DNS queries, comparing the DNS queries with a target FQDN sent by a previous SMF according to FQDN in the query requests, or processing (such as routing to L-DNS and the like) the EASDF according to a policy sent by the SMF if the DNS queries are the same based on DNS processing rules (handling rules) sent by the SMF to the EASDF; if not, then:
1. The EASDF carries out routing according to the destination IP address queried by the source DNS, namely, the routing is carried out to a DNS server used by the APP;
2. the EASDF changes the destination IP address of the DNS query back to the original IP address (i.e. back to the DNS server address used by the APP) and then sends the address to the UPF;
3. the EASDF instructs the UPF to change the destination IP address of the DNS query back to the original IP address and then to do a replacement of the DNS destination IP address by the UPF.
It should be noted that, in the embodiment of the present application, when the UE modifies the DNS configuration sent by the operator, the network side may correct the DNS query sent by the APP subscribed with the operator, so as to redirect the DNS query to the DNS server configured by the operator.
It should be noted that, in the query method provided in the embodiment of the present application, the execution body may be a query device, or a control module in the query device for executing the query method. In the embodiment of the present application, an example of a query device executing a query method is described as an query device provided in the embodiment of the present application.
As shown in fig. 9, an embodiment of the present application provides a query device 900, applied to a first communication device, including:
a first receiving module 901, configured to receive first information sent by a terminal;
A first determining module 902, configured to detect the first information, and determine whether the first information includes a domain name system DNS query;
a first execution module 903, configured to execute a first operation if the first information includes a DNS query;
wherein the first operation includes at least one of:
processing the first information;
forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: at least one of a DNS query and a first fully qualified domain name, FQDN, in the DNS query;
the target communication device is a second communication device or a third communication device.
Optionally, when the first execution module 903 performs the processing of the first information, the method includes:
the first judging unit is used for judging whether the DNS query in the first information is sent by the signing application according to the third information;
the first execution unit is configured to replace a target IP address of the DNS query with a first DNS server address if the DNS query in the first information is sent by a subscription application and the target IP address of the DNS query is different from the first DNS server address, or execute a forwarding operation rule FAR for the DNS query;
The FAR is used for forwarding the DNS query in the first information to the first DNS server.
Optionally, the first DNS server address is a DNS server address configured by the operator in a preset area and provided for the edge application, and is used for an edge computing scenario.
Optionally, the third information includes at least one of:
an application identifier;
an application descriptor;
a target FQDN;
a first DNS server address.
Optionally, before the first judging unit judges whether the DNS query in the first information is sent by the subscription application according to the third information, the method further includes:
and the information receiving module is used for receiving the third information sent by the fourth communication equipment.
Optionally, when the first execution module 903 performs the processing of the first information, the method includes:
the first acquisition unit is used for analyzing the first information and acquiring DNS inquiry in the first information;
a second obtaining unit, configured to parse the DNS query and obtain a first FQDN in the DNS query;
a second execution unit, configured to replace a target IP address of the DNS query with the first DNS server address, or execute a FAR on the DNS query if the first FQDN is consistent with the target FQDN and the target IP address of the DNS query is different from the first DNS server address;
The FAR is used for forwarding the DNS query in the first information to the first DNS server.
Optionally, the target FQDN is an FQDN provided by an application subscribed to the operator.
Optionally, before the second execution unit executes the replacing the target IP address of the DNS query with the first DNS server address if the first FQDN is consistent with the target FQDN and the target IP address of the DNS query is different from the first DNS server address, the method further includes:
and the FQDN receiving module is used for receiving the target FQDN sent by the second communication equipment.
Optionally, when the first execution module 903 performs the processing of the first information, the method is configured to implement:
replacing the target IP address of the DNS query with a first DNS server address; or alternatively
And executing FAR on the DNS query, wherein the FAR is used for forwarding the DNS query in the first information to a first DNS server.
Optionally, in the case that the target communication device is a second communication device, where the second information includes the first FQDN in the DNS query, before the first execution module 903 forwards the second information to the target communication device, the method further includes:
the query acquisition module is used for analyzing the first information and acquiring DNS queries in the first information;
And the FQDN acquisition module is used for analyzing the DNS query and acquiring a first FQDN in the DNS query.
Optionally, in the case that the target communication device is a second communication device, after the first execution module 903 forwards the second information to the target communication device, the method further includes:
the result receiving module is used for receiving a judging result fed back by the second communication equipment;
the third execution module is used for replacing the target IP address of the DNS query with the address of the first DNS server if the judging result indicates that the target IP address of the DNS query needs to be replaced; or alternatively
And if the judging result indicates that the FAR needs to be executed, applying the FAR to the DNS query, and forwarding the DNS query to a first DNS server.
Optionally, after the first executing module 903 executes the first operation, the method further includes:
a third sending module, configured to send the DNS query to the third communications device;
a third receiving module, configured to receive a DNS response fed back by the third communications device, where a source IP address in the DNS response is at least one of the third communications device address and a third DNS server address;
and the fourth sending module is used for sending the DNS response to the terminal.
Optionally, in the case that the source IP address in the DNS response is the address of the third communication device, the fourth sending module is configured to:
and replacing the source IP address in the DNS response with a third DNS server address, and sending the DNS response to the terminal.
Optionally, in the case that the target communication device is a third communication device, after the first execution module 903 forwards the second information to the target communication device, the method further includes one of the following:
a fourth receiving module, configured to receive fourth information sent by a third communication device, where a destination IP address of a DNS query included in the fourth information is a third DNS server address;
and the fifth receiving module is used for receiving fifth information sent by the third communication equipment, wherein the fifth information is used for indicating the first communication equipment to modify the destination IP of the DNS query into a third DNS server address.
Optionally, the third DNS server address is a target IP address of the DNS query contained in the first information.
It should be noted that, when the first information including the DNS query sent by the terminal is received, the first information is processed or the second information obtained based on the first information is sent to the second communication device or the third communication device, which clearly defines how the first communication device performs the DNS query, so as to avoid that the DNS configuration in the UE OS is changed, and these applications on the UE cannot send the DNS query to the EASDF, which can cause the problem that the terminal cannot use the DNS enhancement service provided by the carrier, and can ensure that the terminal can normally access the DNS enhancement service provided by the carrier.
The query device in the embodiment of the present application may be a device, a device with an operating system or an electronic device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus or electronic device may be a non-mobile terminal. By way of example, the non-mobile terminal may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, or the like, and embodiments of the present application are not particularly limited.
The query device provided in this embodiment of the present application can implement each process implemented by the method embodiment of fig. 2, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The embodiment of the application also provides a communication device, which is a first communication device, and comprises a processor and a communication interface, wherein the communication interface is used for: receiving first information sent by a terminal; the processor is used for detecting the first information and determining whether the first information contains Domain Name System (DNS) inquiry; if the first information contains DNS inquiry, executing a first operation;
wherein the first operation includes at least one of:
Processing the first information;
forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: at least one of a DNS query and a first fully qualified domain name, FQDN, in the DNS query;
the target communication device is a second communication device or a third communication device.
The communication device embodiment corresponds to the first communication device side method embodiment, and each implementation process and implementation manner of the method embodiment are applicable to the communication device embodiment and can achieve the same technical effects. Specifically, fig. 10 is a schematic diagram of a hardware structure of a communication device implementing an embodiment of the present application.
The communication device 1000 includes a baseband apparatus 1003, and the baseband apparatus 1003 processes information to be transmitted.
The band processing means may be located in a baseband apparatus 1003, and the method performed by the communication device in the above embodiment may be implemented in the baseband apparatus 1003, the baseband apparatus 1003 including a processor 1004 and a memory 1005.
The baseband apparatus 1003 may, for example, include at least one baseband board, where a plurality of chips are disposed, as shown in fig. 10, where one chip, for example, a processor 1004, is connected to the memory 1005, so as to call a program in the memory 105, and perform the core network node operation shown in the above method embodiment.
The baseband apparatus 1003 may further include a network interface 1006, such as a common public radio interface (common public radio interface, CPRI for short).
Specifically, the communication device of the embodiment of the invention further comprises: instructions or programs stored in the memory 1005 and executable on the processor 1004, the processor 1004 invokes the instructions or programs in the memory 1005 to perform the method performed by the modules shown in fig. 9, and achieve the same technical effects, so repetition is avoided and will not be described herein.
Preferably, the embodiment of the present application further provides a communication device, where the communication device is a first communication device, and the communication device includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction implements each process of the query method embodiment when executed by the processor, and the process can achieve the same technical effect, and in order to avoid repetition, a description is omitted herein.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction when executed by a processor implements each process of the query method embodiment applied to the first communication device, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
As shown in fig. 11, the embodiment of the present application further provides a query method, including:
step 1101, the second communication device receives second information sent by the first communication device, where the second information is obtained based on the first information sent by the terminal, and the second information includes: domain name system, DNS, query, first FQDN in the DNS query;
step 1102, determining a first fully qualified domain name FQDN according to the second information;
step 1103, determining whether the first FQDN is consistent with the target FQDN, and whether the target IP address in the DNS query is the same as the first DNS server address, to obtain a determination result;
step 1104, feeding back the judgment result to the first communication device;
wherein the first information includes DNS query.
Optionally, in the case that the second information is a DNS query, the determining, according to the second information, the first fully qualified domain name FQDN includes:
and analyzing the DNS inquiry to acquire a first FQDN.
Optionally, the determining whether the first FQDN is consistent with the target FQDN, and whether the target IP address in the DNS query is the same as the first DNS server address, to obtain a determination result includes:
if the first FQDN is consistent with the target FQDN and the target IP of the DNS query is not the same as the address of the first DNS server, obtaining a judgment result indicating that the target IP address of the DNS query needs to be replaced or indicating that a forwarding operation rule FAR needs to be executed, wherein the FAR is used for forwarding the DNS query to the first DNS server;
And if the first FQDN is inconsistent with the target FQDN, obtaining a judging result indicating that the target IP address replacement of the DNS query is not needed.
Optionally, the target FQDN is an FQDN provided by an application subscribed to the operator.
Optionally, the first DNS server address is a DNS server address configured by the operator in a preset area and provided for the edge application, and is used for an edge computing scenario.
It should be noted that, all descriptions about the second communication device in the above embodiment are applicable to this embodiment, and the same technical effects as those of the above embodiment can be achieved, which is not repeated herein.
As shown in fig. 12, an embodiment of the present application further provides a query device, applied to a second communication device, including:
the second receiving module 1201 is configured to receive second information sent by the first communication device, where the second information is obtained based on first information sent by the terminal, and the second information includes: domain name system, DNS, query, first FQDN in the DNS query;
a second determining module 1202, configured to determine a first fully qualified domain name FQDN according to the second information;
a judging module 1203, configured to judge whether the first FQDN is consistent with the target FQDN, and whether the target IP address in the DNS query is the same as the first DNS server address, so as to obtain a judging result;
The feedback module 1204 is configured to feedback the determination result to the first communication device;
wherein the first information includes DNS query.
Optionally, in case the second information is a DNS query, the second determining module 1203 is configured to:
and analyzing the DNS inquiry to acquire a first FQDN.
Optionally, the judging module 1203 is configured to:
if the first FQDN is consistent with the target FQDN and the target IP of the DNS query is not the same as the address of the first DNS server, obtaining a judgment result indicating that the target IP address of the DNS query needs to be replaced or indicating that a forwarding operation rule FAR needs to be executed, wherein the FAR is used for forwarding the DNS query to the first DNS server;
and if the first FQDN is inconsistent with the target FQDN, obtaining a judging result indicating that the target IP address replacement of the DNS query is not needed.
Optionally, the target FQDN is an FQDN provided by an application subscribed to the operator.
Optionally, the first DNS server address is a DNS server address configured by the operator in a preset area and provided for the edge application, and is used for an edge computing scenario.
It should be noted that, the embodiment of the device is a device corresponding to the embodiment of the query method, and all the implementation manners in the embodiment of the method are applicable to the embodiment of the device, so that the same technical effects can be achieved.
Preferably, the embodiment of the present application further provides a communication device, where the communication device is a second communication device, and the communication device includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the query method embodiment applied to the second communication device side, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction, when executed by a processor, implements each process of the query method embodiment applied to the second communication device side, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the application further provides a communication device, where the communication device is a second communication device, and the communication device includes a processor and a communication interface, where the communication interface is configured to receive second information sent by the first communication device, where the second information is obtained based on first information sent by the terminal, and the second information includes: domain name system, DNS, query, first FQDN in the DNS query; the processor is used for determining a first fully qualified domain name FQDN according to the second information; judging whether the first FQDN is consistent with the target FQDN, and whether the target IP address in the DNS query is the same as the first DNS server address, so as to obtain a judging result; the communication interface is used for feeding back a judgment result to the first communication equipment;
Wherein the first information includes DNS query.
The communication device embodiment corresponds to the method embodiment on the second communication device side, and each implementation process and implementation manner of the method embodiment are applicable to the communication device embodiment and can achieve the same technical effects.
Specifically, the embodiment of the application also provides a communication device, and a specific structure of the communication device can be seen from fig. 10, and the communication device is a second communication device.
Specifically, the communication device of the embodiment of the invention further comprises: instructions or programs stored in the memory and executable on the processor call the instructions or programs in the memory to perform the method performed by each module shown in fig. 12, and achieve the same technical effects, so repetition is avoided and will not be described herein.
As shown in fig. 13, an embodiment of the present application further provides a query method, including:
in step 1301, the third communication apparatus receives second information sent by the first communication apparatus, where the second information is obtained based on the first information, and the second information includes: domain name system DNS queries;
step 1302, resolving a DNS query, and obtaining a first fully qualified domain name FQDN in the DNS query;
Step 1303, if the first FQDN is inconsistent with the target FQDN, executing a second operation;
wherein the first information includes DNS query.
Optionally, the second operation includes one of:
routing is carried out according to the destination IP address indicated by the DNS query;
modifying the destination IP of the DNS query into a third DNS server address, and feeding back fourth information to the first communication equipment;
and sending fifth information to the first communication device, wherein the fifth information is used for instructing the first communication device to modify the destination IP of the DNS query into a third DNS server address.
Optionally, the third DNS server address is a target IP address of the DNS query contained in the first information.
Optionally, the target FQDN is an FQDN provided by an application subscribed to the operator.
It should be noted that, all descriptions about the third communication device in the above embodiment are applicable to this embodiment, and the same technical effects as those of the above embodiment can be achieved, which is not repeated herein.
As shown in fig. 14, the embodiment of the present application further provides a query device, which is applied to a third communication device, including:
a fourth receiving module 1401, configured to receive second information sent by the first communication device, where the second information is obtained based on the first information, and the second information includes: domain name system DNS queries;
A first obtaining module 1402, configured to parse a DNS query and obtain a first fully qualified domain name FQDN in the DNS query;
a second execution module 1403, configured to execute a second operation if the first FQDN is inconsistent with the target FQDN;
wherein the first information includes DNS query.
Optionally, the second operation includes one of:
routing is carried out according to the destination IP address indicated by the DNS query;
modifying the destination IP of the DNS query into a third DNS server address, and feeding back fourth information to the first communication equipment;
and sending fifth information to the first communication device, wherein the fifth information is used for instructing the first communication device to modify the destination IP of the DNS query into a third DNS server address.
Optionally, the third DNS server address is a target IP address of the DNS query contained in the first information.
Optionally, the target FQDN is an FQDN provided by an application subscribed to the operator.
It should be noted that, the embodiment of the device is a device corresponding to the embodiment of the query method, and all the implementation manners in the embodiment of the method are applicable to the embodiment of the device, so that the same technical effects can be achieved.
Preferably, the embodiment of the present application further provides a communication device, where the communication device is a third communication device, and the communication device includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the query method embodiment applied to the third communication device side, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the query method embodiment applied to the third communication device side, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the application further provides a communication device, where the communication device is a third communication device, and the communication device includes a processor and a communication interface, where the communication interface is configured to receive second information sent by the first communication device, where the second information is obtained based on the first information, and the second information includes: domain name system DNS queries; the processor is used for analyzing the DNS query and acquiring a first full-limit domain name FQDN in the DNS query; if the first FQDN is inconsistent with the target FQDN, executing a second operation;
wherein the first information includes DNS query.
The communication device embodiment corresponds to the method embodiment on the third communication device side, and each implementation process and implementation manner of the method embodiment are applicable to the communication device embodiment and can achieve the same technical effects.
Specifically, the embodiment of the application also provides a communication device, and a specific structure of the communication device can be seen from fig. 10, and the communication device is a third communication device.
Specifically, the communication device of the embodiment of the invention further comprises: instructions or programs stored in the memory and executable on the processor call the instructions or programs in the memory to perform the method performed by each module shown in fig. 14, and achieve the same technical effects, so repetition is avoided and will not be described herein.
As shown in fig. 15, an embodiment of the present application further provides a query method, including:
step 1501, the fourth communication device transmits target information to the target communication device;
wherein the target communication device includes: at least one of the first communication device, the second communication device, and the third communication device;
the target information includes: at least one of the third information and the target FQDN.
Optionally, the third information includes at least one of:
an application identifier;
an application descriptor;
a target FQDN;
a first DNS server address.
Optionally, the target FQDN is an FQDN provided by an application subscribed to the operator.
It should be noted that, all descriptions about the fourth communication device in the above embodiment are applicable to this embodiment, and the same technical effects as those of the above embodiment can be achieved, which is not repeated here.
As shown in fig. 16, the embodiment of the present application further provides a query device, which is applied to a fourth communication device, including:
a first transmitting module 1601 for transmitting the target information to the target communication device;
wherein the target communication device includes: at least one of the first communication device, the second communication device, and the third communication device;
the target information includes: at least one of the third information and the target FQDN.
Optionally, the third information includes at least one of:
an application identifier;
an application descriptor;
a target FQDN;
a first DNS server address.
Optionally, the target FQDN is an FQDN provided by an application subscribed to the operator.
It should be noted that, the embodiment of the device is a device corresponding to the embodiment of the query method, and all the implementation manners in the embodiment of the method are applicable to the embodiment of the device, so that the same technical effects can be achieved.
Preferably, the embodiment of the present application further provides a communication device, where the communication device is a fourth communication device, and the communication device includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the query method embodiment applied to the fourth communication device side, and the process can achieve the same technical effect, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the present application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction, when executed by a processor, implements each process of the query method embodiment applied to the fourth communications device side, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the application also provides communication equipment, which is fourth communication equipment, and comprises a processor and a communication interface, wherein the communication interface is used for sending target information to target communication equipment;
wherein the target communication device includes: at least one of the first communication device, the second communication device, and the third communication device;
the target information includes: at least one of the third information and the target FQDN.
The communication device embodiment corresponds to the method embodiment on the fourth communication device side, and each implementation process and implementation manner of the method embodiment are applicable to the communication device embodiment and can achieve the same technical effects.
Specifically, the embodiment of the application also provides a communication device, and a specific structure of the communication device can be seen as 10, and the communication device is a fourth communication device.
Specifically, the communication device of the embodiment of the invention further comprises: instructions or programs stored in the memory and executable on the processor call the instructions or programs in the memory to perform the method performed by each module shown in fig. 16, and achieve the same technical effects, so repetition is avoided and will not be described herein.
As shown in fig. 17, an embodiment of the present application further provides an information processing method, including:
step 1701, the second communication device or the third communication device sends a first signaling;
wherein, the first signaling includes a domain name system DNS context, and the DNS context includes: processing rules for DNS queries sent by the target terminal.
Specifically, the processing rule of the DNS query mainly refers to:
it is first identified that this is a DNS query and then based on the FQDN in the DNS query and the IP address of the UE sending the query, it is determined how the DNS query should be handled, e.g., the DNS query may be sent to a C-DNS resolution, or to an L-DNS resolution, after ECS option is added to it.
It should be noted that, in the embodiment of the present application, the second communication device may be an SMF, and the third communication device may be an EASDF.
Optionally, the second communication device or the third communication device sends the first signaling, including:
when the transmission condition is met, the second communication device or the third communication device transmits the first signaling;
wherein the transmission condition includes at least one of:
d11, IP address change of the target terminal;
it should be noted that, the IP address of the target terminal refers to an IP address allocated to the target terminal by the 5GC core network, and the IP address is used when the UE initiates the PDU session.
D12, releasing the protocol data unit PDU session;
d13, reselecting the third communication equipment;
d14, PDU session IP change.
Optionally, the DNS context further includes at least one of:
d21, the IP address of the target terminal;
d22, PDU session identification;
d23, PDU session IP.
Optionally, the first signaling further includes at least one of the following:
d31, the IP address of the target terminal;
d32, PDU session identification;
d33, PDU session IP;
d34, DNS context identifier;
d35, edge Application Server Discovery Function (EASDF) context identification;
D36, session management function SMF identifier.
It should be noted that, in the embodiment of the present application, it is defined that, in the case of a change in the IP address of the terminal, a release of the PDU session, a reselection of the third communication device, or a change in the PDU session IP, a connection change of the second communication device or the third communication device occurs in the terminal, for example, when the terminal accesses the SMF1, and when the IP address of the terminal changes, the terminal is no longer served by the SMF1 but goes to be served by the SMF2, where the SMF1 needs to send the first signaling to the SMF2, that is, the SMF1 is the source SMF, and the SMF2 is the destination SMF; alternatively, when the terminal accesses the EASDF1, the terminal will not be served by the EASDF1 any more and will be served by the EASDF2 when the IP address of the terminal changes, and at this time, the EASDF1 needs to send the first signaling to the EASDF2, that is, the EASDF1 is the source EASDF and the EASDF2 is the destination EASDF.
In this embodiment, signaling may be used for DNS context transfer from EASDF1 to EASDF 2: neasdf_DNSContext_Transfer; DNS context transfer from SMF1 to SMF2, signaling may be used: nsmf_pduse_contenxtpush, or nsmf_pduse_contenxtrequest.
According to the embodiment of the application, when the access of the terminal is changed, the DNS context is sent to the target address from the source address, so that the establishment of the DNS context is not required to be repeated, the delay of terminal communication can be reduced, and resources are saved.
As shown in fig. 18, an embodiment of the present application further provides an information processing apparatus applied to a second communication device or a third communication device, including:
a second sending module 1801, configured to send a first signaling;
wherein, the first signaling includes a domain name system DNS context, and the DNS context includes: processing rules for DNS queries sent by the target terminal.
Optionally, the second sending module 1801 is configured to:
when the transmission condition is met, transmitting a first signaling;
wherein the transmission condition includes at least one of:
the IP address of the target terminal changes;
protocol data unit PDU session release;
reselecting the third communication device;
PDU session IP changes.
Optionally, the DNS context further includes at least one of:
the IP address of the target terminal;
PDU session identification;
PDU session IP.
Optionally, the first signaling further includes at least one of the following:
the IP address of the target terminal;
PDU session identification;
PDU session IP;
a DNS context identifier;
the edge application server discovers the EASDF context identification;
session management function SMF identifier.
It should be noted that, the embodiment of the apparatus is an apparatus corresponding to the embodiment of the information processing method, and all the implementation manners in the embodiment of the method are applicable to the embodiment of the apparatus, so that the same technical effects can be achieved.
Preferably, the embodiment of the present application further provides a communication device, where the communication device is a second communication device or a third communication device, and the communication device includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the information processing method embodiment applied to the second communication device or the third communication device, and the process is the same, and in order to avoid repetition, a description is omitted herein.
The embodiment of the present application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction, when executed by a processor, implements each process of the embodiment of the information processing method applied to the second communication device or the third communication device side, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the application also provides communication equipment, which is second communication equipment or third communication equipment, and comprises a processor and a communication interface, wherein the communication interface is used for sending the first signaling;
Wherein, the first signaling includes a domain name system DNS context, and the DNS context includes: processing rules for DNS queries sent by the target terminal.
The communication device embodiment corresponds to the method embodiment of the second communication device or the third communication device side, and each implementation process and implementation manner of the method embodiment are applicable to the communication device embodiment and can achieve the same technical effect.
Specifically, the embodiment of the application further provides a communication device, and the specific structure of the communication device can be seen from fig. 10, and the communication device is a second communication device or a second communication device.
Specifically, the communication device of the embodiment of the invention further comprises: instructions or programs stored in the memory and executable on the processor call the instructions or programs in the memory to perform the method performed by each module shown in fig. 18, and achieve the same technical effects, so repetition is avoided and will not be described herein.
As shown in fig. 19, the embodiment of the present application further provides an information processing method, including:
step 1901, the second communication device or the third communication device updates a domain name system DNS context;
Wherein, the DNS context includes: processing rules for DNS queries sent by the target terminal.
It should be noted that, in the embodiment of the present application, the second communication device may be an SMF, and the third communication device may be an EASDF.
Optionally, the updating, by the second communication device or the third communication device, the domain name system DNS context includes:
when the update condition is satisfied, the second communication device or the third communication device updates the DNS context;
in the embodiment of the present application, updating DNS context may use signaling as follows:
Neasdf_DNSContext_Update。
wherein the update condition includes at least one of:
e11, target terminal IP address change;
it should be noted that, the IP address of the target terminal refers to an IP address allocated to the target terminal by the 5GC core network, and the IP address is used when the UE initiates the PDU session.
E12, protocol data unit PDU session release;
e13, reselecting the third communication equipment;
e14, PDU session IP change.
Optionally, the parameters in the DNS context that can be updated include at least one of:
e21, IP address of the target terminal;
e22, PDU session identification;
e23, PDU session IP address;
e24, DNS context identifier;
e25, discovering the functional EASDF context identification by the edge application server;
E26, session management function SMF identification.
It should be noted that, in the embodiment of the present application, it is defined that, in the case of a change in the IP address of the terminal, a release of the PDU session, a reselection of the third communication device, or a change in the PDU session IP, the corresponding DNS context of the terminal will also change, and specifically, when the IP address of the terminal changes, the SMF or EASDF will update the IP address of the terminal in the DNS context.
For example, when the terminal a is served by the SMF1 and the terminal is changed in IP address (for example, from IP address 1 to IP address 2), the SMF serving the terminal is unchanged, that is, the terminal is still served by the SMF1, and at this time, the SMF1 updates the IP address of the terminal a in the DNS context corresponding to the terminal to IP address 2; for example, when the terminal a is served by the SMF1 and the terminal changes its IP address (for example, from IP address 1 to IP address 2), the SMF1 changes the IP address of the terminal a to IP address 2, and then the SMF1 may select to update the IP address of the terminal a in the DNS context corresponding to the terminal to IP address 2, and then send the DNS context to the SMF2, or the SMF1 may select to send the DNS context corresponding to the terminal to the SMF2, and then the SMF2 updates the IP address of the terminal a in the DNS context corresponding to the terminal to IP address 2.
It should be noted that, this way can ensure that the DNS context always corresponds to the current state of the terminal, and can ensure that the DNS context is accurate.
As shown in fig. 20, an embodiment of the present application further provides an information processing apparatus applied to a second communication device or a third communication device, including:
an updating module 2001 for updating the domain name system DNS context;
wherein, the DNS context includes: processing rules for DNS queries sent by the target terminal.
Optionally, the updating module 2001 is configured to:
when the update condition is satisfied, the second communication device or the third communication device updates the DNS context;
wherein the update condition includes at least one of:
the IP address of the target terminal changes;
protocol data unit PDU session release;
reselecting the third communication device;
PDU session IP changes.
Optionally, the parameters in the DNS context that can be updated include at least one of:
the IP address of the target terminal;
PDU session identification;
PDU session IP address;
a DNS context identifier;
the edge application server discovers the EASDF context identification;
session management function SMF identification.
It should be noted that, the embodiment of the apparatus is an apparatus corresponding to the embodiment of the information processing method, and all the implementation manners in the embodiment of the method are applicable to the embodiment of the apparatus, so that the same technical effects can be achieved.
Preferably, the embodiment of the present application further provides a communication device, where the communication device is a second communication device or a third communication device, and the communication device includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the information processing method embodiment applied to the second communication device or the third communication device, and the process is the same, and in order to avoid repetition, a description is omitted herein.
The embodiment of the present application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction, when executed by a processor, implements each process of the embodiment of the information processing method applied to the second communication device or the third communication device side, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the application also provides communication equipment, which is second communication equipment or third communication equipment, and comprises a processor and a communication interface, wherein the processor is used for updating the DNS context;
Wherein, the DNS context includes: processing rules for DNS queries sent by the target terminal.
The communication device embodiment corresponds to the method embodiment of the second communication device or the third communication device side, and each implementation process and implementation manner of the method embodiment are applicable to the communication device embodiment and can achieve the same technical effect.
Specifically, the embodiment of the application further provides a communication device, and the specific structure of the communication device can be seen from fig. 10, and the communication device is a second communication device or a second communication device.
Specifically, the communication device of the embodiment of the invention further comprises: instructions or programs stored in the memory and capable of running on the processor, which invokes the instructions or programs in the memory to execute the method executed by each module shown in fig. 20, achieve the same technical effects, and are not repeated here.
As shown in fig. 21, an embodiment of the present application further provides an information processing method, including:
step 2101, deleting the domain name system DNS context by the second communication device or the third communication device if the deletion condition is satisfied;
wherein, the DNS context includes: processing rules of DNS query sent by a target terminal;
The deletion condition includes at least one of:
f11, IP address change of the target terminal;
f12, protocol data unit PDU session release;
f13, PDU session IP change.
It should be noted that, in the embodiment of the present application, the second communication device may be an SMF, and the third communication device may be an EASDF.
In this case, the DNS context corresponding to the terminal is deleted as long as the deletion condition is satisfied.
In this embodiment, the DNS context is deleted, and the following signaling may be used:
Neasdf_DNSContext_Delete. For example, when the terminal a is currently served by the EASDF1 and the IP address of the terminal a changes (e.g., from IP address 1 to IP address 2), the corresponding terminal a needs to be served by the EASDF2, the EASDF1 needs to delete the DNS context corresponding to the terminal a that can be stored by itself.
It should be noted that, in the embodiment of the present application, after the terminal moves to a range that does not belong to the second communication device or the third communication device, the second communication device or the third communication device to which the terminal is originally connected deletes the DNS context related to the terminal, so that the problem that the terminal stores too much useless information and occupies a storage space can be avoided.
As shown in fig. 22, an embodiment of the present application further provides an information processing apparatus applied to a second communication device or a third communication device, including:
A deletion module 2201, configured to delete a domain name system DNS context if a deletion condition is satisfied;
wherein, the DNS context includes: processing rules of DNS query sent by a target terminal;
the deletion condition includes at least one of:
the IP address of the target terminal changes;
protocol data unit PDU session release;
PDU session IP changes.
It should be noted that, the embodiment of the apparatus is an apparatus corresponding to the embodiment of the information processing method, and all the implementation manners in the embodiment of the method are applicable to the embodiment of the apparatus, so that the same technical effects can be achieved.
Preferably, the embodiment of the present application further provides a communication device, where the communication device is a second communication device or a third communication device, and the communication device includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the information processing method embodiment applied to the second communication device or the third communication device, and the process is the same, and in order to avoid repetition, a description is omitted herein.
The embodiment of the present application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction, when executed by a processor, implements each process of the embodiment of the information processing method applied to the second communication device or the third communication device side, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the application also provides communication equipment, which is second communication equipment or third communication equipment, and comprises a processor and a communication interface, wherein the processor is used for deleting the DNS context if a deletion condition is met;
wherein, the DNS context includes: processing rules of DNS query sent by a target terminal;
the deletion condition includes at least one of:
the IP address of the target terminal changes;
protocol data unit PDU session release;
PDU session IP changes.
The communication device embodiment corresponds to the method embodiment of the second communication device or the third communication device side, and each implementation process and implementation manner of the method embodiment are applicable to the communication device embodiment and can achieve the same technical effect.
Specifically, the embodiment of the application further provides a communication device, and the specific structure of the communication device can be seen from fig. 10, and the communication device is a second communication device or a second communication device.
Specifically, the communication device of the embodiment of the invention further comprises: instructions or programs stored in the memory and executable on the processor call the instructions or programs in the memory to perform the method performed by the modules shown in fig. 22, and achieve the same technical effects, and are not repeated here.
Optionally, as shown in fig. 23, the embodiment of the present application further provides a communication device 2300, including a processor 2301, a memory 2302, and a program or an instruction stored in the memory 2302 and capable of being executed on the processor 2301, where the communication device 2300 is UPF, SMF, EASDF or AF, for example, the program or the instruction implements the respective processes of the query method embodiment described above when executed by the processor 2301, and can achieve the same technical effects. When the communication device 2300 is an SMF or EASDF, the program or the instruction when executed by the processor 2301 implements the respective processes of the above-described embodiments of the information processing method, and the same technical effects can be achieved, so that repetition is avoided and no further description is given here.
The terminal according to the embodiments of the present application may be a device that provides voice and/or data connectivity to a user, a handheld device with a wireless connection function, or other processing device connected to a wireless modem, etc. The names of the terminal devices may also be different in different systems, for example in a 5G system, the terminal devices may be referred to as User Equipment (UE). The wireless terminal device may communicate with one or more Core Networks (CNs) via a radio access Network (Radio Access Network, RAN), which may be mobile terminal devices such as mobile phones (or "cellular" phones) and computers with mobile terminal devices, e.g., portable, pocket, hand-held, computer-built-in or vehicle-mounted mobile devices that exchange voice and/or data with the radio access Network. Such as personal communication services (Personal Communication Service, PCS) phones, cordless phones, session initiation protocol (Session Initiated Protocol, SIP) phones, wireless local loop (Wireless Local Loop, WLL) stations, personal digital assistants (Personal Digital Assistant, PDAs), and the like. The wireless terminal device may also be referred to as a system, subscriber unit (subscriber unit), subscriber station (subscriber station), mobile station (mobile), remote station (remote station), access point (access point), remote terminal device (remote terminal), access terminal device (access terminal), user terminal device (user terminal), user agent (user agent), user equipment (user device), and the embodiments of the present application are not limited.
The embodiment of the application further provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, implement each process of the above-mentioned query method or the information processing method embodiment, and achieve the same technical effect, so that repetition is avoided, and no further description is given here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (25)

1. A method of querying, comprising:
the method comprises the steps that first communication equipment receives first information sent by a terminal;
detecting the first information and determining whether the first information contains Domain Name System (DNS) inquiry;
if the first information contains DNS inquiry, executing a first operation;
wherein the first operation includes at least one of:
processing the first information;
forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: a DNS query and at least one of a first fully qualified domain name, FQDN, in the DNS query;
the target communication device is a second communication device or a third communication device, the first communication device is a user plane function UPF, the second communication device is a session management function SMF, and the third communication device is an edge application server discovery function EASDF;
wherein the processing of the first information includes at least one of:
judging whether the DNS query in the first information is sent by a signing application or not according to the third information; if the DNS query in the first information is sent by the subscription application and the target IP address of the DNS query is different from the address of the first DNS server, replacing the target IP address of the DNS query with the address of the first DNS server, or executing a forwarding operation rule FAR on the DNS query; the FAR is used for forwarding the DNS query in the first information to a first DNS server;
Analyzing the first information to obtain DNS inquiry in the first information; analyzing the DNS query to obtain a first FQDN in the DNS query; if the first FQDN is consistent with the target FQDN and the target IP address of the DNS query is different from the first DNS server address, replacing the target IP address of the DNS query with the first DNS server address, or executing FAR on the DNS query; the FAR is used for forwarding the DNS query in the first information to a first DNS server;
replacing the target IP address of the DNS query with a first DNS server address; or executing FAR on the DNS query, wherein the FAR is used for forwarding the DNS query in the first information to a first DNS server;
wherein, in the case that the target communication device is the second communication device, after forwarding the second information to the target communication device, the method further includes:
receiving a judgment result fed back by the second communication equipment;
if the judging result indicates that the target IP address of the DNS query needs to be replaced, replacing the target IP address of the DNS query with a first DNS server address; or alternatively
If the judging result indicates that the FAR needs to be executed, the FAR is applied to the DNS inquiry, and the DNS inquiry is forwarded to a first DNS server;
Or alternatively
In the case that the target communication device is a third communication device, after forwarding the second information to the target communication device, one of the following is included:
receiving fourth information sent by third communication equipment, wherein a destination IP address of DNS query contained in the fourth information is a third DNS server address;
and receiving fifth information sent by the third communication device, wherein the fifth information is used for indicating the first communication device to modify the destination IP of the DNS query into a third DNS server address.
2. The method of claim 1, wherein the first DNS server address is a DNS server address provided for an edge application by an operator configured in a preset area for an edge computing scenario.
3. The method of claim 1, wherein the third information comprises at least one of:
an application identifier;
an application descriptor;
a target FQDN;
a first DNS server address.
4. The method of claim 1, further comprising, prior to said determining from the third information whether the DNS query in the first information is sent by a subscribing application:
and receiving third information sent by the fourth communication equipment.
5. The method according to claim 1 or 2, wherein the target FQDN is an FQDN provided for an application subscribed to an operator.
6. The method of claim 1, further comprising, prior to replacing the destination IP address of the DNS query with the first DNS server address if the first FQDN is consistent with the destination FQDN and the destination IP address of the DNS query is different from the first DNS server address:
and receiving the target FQDN sent by the second communication equipment.
7. The method of claim 1, wherein if the target communication device is a second communication device and the second information includes the first FQDN in the DNS query, further comprising, prior to forwarding the second information to the target communication device:
analyzing the first information to obtain DNS inquiry in the first information;
and analyzing the DNS query, and acquiring a first FQDN in the DNS query.
8. The method of any of claims 1 to 4, further comprising, after said performing the first operation:
sending the DNS query to the third communications device;
receiving a DNS response fed back by the third communication device, wherein a source IP address in the DNS response is at least one of the third communication device address and a third DNS server address;
And sending the DNS response to the terminal.
9. The method of claim 8, wherein in the case where the source IP address in the DNS response is the third communication device address, the sending the DNS response to the terminal includes:
and replacing the source IP address in the DNS response with a third DNS server address, and sending the DNS response to the terminal.
10. The method of claim 1, wherein the third DNS server address is a destination IP address of a DNS query contained in the first information.
11. A method of querying, comprising:
the second communication device receives second information sent by the first communication device, the second information is obtained based on first information sent by the terminal, and the second information comprises: domain name system, DNS, query, first FQDN in the DNS query;
determining a first fully qualified domain name FQDN according to the second information;
judging whether the first FQDN is consistent with the target FQDN and whether the target IP address in the DNS query is the same as the first DNS server address or not, and obtaining a judging result, wherein the judging result is used for replacing the target IP address of the DNS query with the first DNS server address when the judging result indicates that the target IP address of the DNS query needs to be replaced by the first communication device; or if the judging result indicates that the FAR needs to be executed, applying the FAR to the DNS query, and forwarding the DNS query to a first DNS server;
Feeding back the judgment result to the first communication equipment;
the first information includes DNS query, the second communication device is a session management function SMF, and the first communication device is a user plane function UPF.
12. The method of claim 11, wherein, in the case where the second information is a DNS query, the determining a first fully qualified domain name, FQDN, according to the second information comprises:
and analyzing the DNS inquiry to acquire a first FQDN.
13. The method of claim 11, wherein determining whether the first FQDN matches the destination FQDN and whether the destination IP address in the DNS query is the same as the first DNS server address, comprises:
if the first FQDN is consistent with the target FQDN and the target IP of the DNS query is not the same as the address of the first DNS server, obtaining a judgment result indicating that the target IP address of the DNS query needs to be replaced or indicating that a forwarding operation rule FAR needs to be executed, wherein the FAR is used for forwarding the DNS query to the first DNS server;
and if the first FQDN is inconsistent with the target FQDN, obtaining a judging result indicating that the target IP address replacement of the DNS query is not needed.
14. The method of claim 11, wherein the target FQDN is an FQDN provided by an application subscribed to an operator.
15. The method of claim 11, wherein the first DNS server address is a DNS server address provided for an edge application by an operator configured in a preset area for an edge computing scenario.
16. A method of querying, comprising:
the third communication device receives second information sent by the first communication device, the second information is obtained based on the first information, and the second information comprises: domain name system DNS queries;
analyzing a DNS query, and acquiring a first full-limit domain name FQDN in the DNS query;
if the first FQDN is inconsistent with the target FQDN, executing a second operation;
the first information comprises DNS inquiry, the third communication equipment is an edge application server discovery function EASDF, and the first communication equipment is a user plane function UPF;
wherein the second operation comprises one of:
routing is carried out according to the destination IP address indicated by the DNS query;
modifying the destination IP of the DNS query into a third DNS server address, and feeding back fourth information to the first communication equipment, wherein the destination IP address of the DNS query contained in the fourth information is the third DNS server address;
And sending fifth information to the first communication device, wherein the fifth information is used for instructing the first communication device to modify the destination IP of the DNS query into a third DNS server address.
17. The method of claim 16, wherein the third DNS server address is a destination IP address of a DNS query contained in the first information.
18. The method of claim 16, wherein the target FQDN is an FQDN provided by an application subscribed to an operator.
19. A query device for use with a first communication device, comprising:
the first receiving module is used for receiving first information sent by the terminal;
the first determining module is used for detecting the first information and determining whether the first information contains Domain Name System (DNS) inquiry or not;
the first execution module is used for executing a first operation if the first information contains DNS inquiry;
wherein the first operation includes at least one of:
processing the first information;
forwarding second information to the target communication device, wherein the second information is obtained based on the first information, and the second information comprises: at least one of a DNS query and a first fully qualified domain name, FQDN, in the DNS query;
The target communication device is a second communication device or a third communication device, the first communication device is a user plane function UPF, the second communication device is a session management function SMF, and the third communication device is an edge application server discovery function EASDF;
the first execution module is used for realizing at least one of the following when processing the first information:
judging whether the DNS query in the first information is sent by a signing application or not according to the third information; if the DNS query in the first information is sent by the subscription application and the target IP address of the DNS query is different from the address of the first DNS server, replacing the target IP address of the DNS query with the address of the first DNS server, or executing a forwarding operation rule FAR on the DNS query; the FAR is used for forwarding the DNS query in the first information to a first DNS server;
analyzing the first information to obtain DNS inquiry in the first information; analyzing the DNS query to obtain a first FQDN in the DNS query; if the first FQDN is consistent with the target FQDN and the target IP address of the DNS query is different from the first DNS server address, replacing the target IP address of the DNS query with the first DNS server address, or executing FAR on the DNS query; the FAR is used for forwarding the DNS query in the first information to a first DNS server;
Replacing the target IP address of the DNS query with a first DNS server address; or executing FAR on the DNS query, wherein the FAR is used for forwarding the DNS query in the first information to a first DNS server;
wherein, in the case that the target communication device is the second communication device, after the first execution module forwards the second information to the target communication device, the method further includes:
the result receiving module is used for receiving a judging result fed back by the second communication equipment;
the third execution module is used for replacing the target IP address of the DNS query with the address of the first DNS server if the judging result indicates that the target IP address of the DNS query needs to be replaced; or alternatively
If the judging result indicates that the FAR needs to be executed, the FAR is applied to the DNS inquiry, and the DNS inquiry is forwarded to a first DNS server;
or alternatively
In the case that the target communication device is a third communication device, after the first execution module forwards the second information to the target communication device, the method further includes one of:
a fourth receiving module, configured to receive fourth information sent by a third communication device, where a destination IP address of a DNS query included in the fourth information is a third DNS server address;
And the fifth receiving module is used for receiving fifth information sent by the third communication equipment, wherein the fifth information is used for indicating the first communication equipment to modify the destination IP of the DNS query into a third DNS server address.
20. A communication device, which is a first communication device, comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the querying method as claimed in any of claims 1 to 10.
21. A query device for use with a second communication device, comprising:
the second receiving module is configured to receive second information sent by the first communication device, where the second information is obtained based on first information sent by the terminal, and the second information includes: domain name system, DNS, query, first FQDN in the DNS query;
the second determining module is used for determining a first fully defined domain name FQDN according to the second information;
the judging module is used for judging whether the first FQDN is consistent with the target FQDN and whether the target IP address in the DNS query is the same as the first DNS server address or not, so as to obtain a judging result, wherein the judging result is used for the first communication equipment to replace the target IP address of the DNS query with the first DNS server address under the condition that the judging result indicates that the target IP address of the DNS query needs to be replaced; or if the judging result indicates that the FAR needs to be executed, applying the FAR to the DNS query, and forwarding the DNS query to a first DNS server;
The feedback module is used for feeding back the judgment result to the first communication equipment;
the first information includes DNS query, the second communication device is a session management function SMF, and the first communication device is a user plane function UPF.
22. A communication device, which is a second communication device, comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the querying method as claimed in any of claims 11 to 15.
23. A query device for use with a third communication device, comprising:
the fourth receiving module is configured to receive second information sent by the first communication device, where the second information is obtained based on the first information, and the second information includes: domain name system DNS queries;
a first obtaining module, configured to resolve a DNS query, and obtain a first fully qualified domain name FQDN in the DNS query;
the second execution module is used for executing a second operation if the first FQDN is inconsistent with the target FQDN;
the first information comprises DNS inquiry, the third communication equipment is an edge application server discovery function EASDF, and the first communication equipment is a user plane function UPF;
Wherein the second operation comprises one of:
routing is carried out according to the destination IP address indicated by the DNS query;
modifying the destination IP of the DNS query into a third DNS server address, and feeding back fourth information to the first communication equipment, wherein the destination IP address of the DNS query contained in the fourth information is the third DNS server address;
and sending fifth information to the first communication device, wherein the fifth information is used for instructing the first communication device to modify the destination IP of the DNS query into a third DNS server address.
24. A communication device, which is a third communication device, comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the querying method as claimed in any of claims 16 to 18.
25. A readable storage medium, characterized in that it stores thereon a program or instructions, which when executed by a processor, implement the steps of the query method of any of claims 1-18.
CN202110485701.9A 2021-04-30 2021-04-30 Query and information processing method and device and communication equipment Active CN115277632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485701.9A CN115277632B (en) 2021-04-30 2021-04-30 Query and information processing method and device and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485701.9A CN115277632B (en) 2021-04-30 2021-04-30 Query and information processing method and device and communication equipment

Publications (2)

Publication Number Publication Date
CN115277632A CN115277632A (en) 2022-11-01
CN115277632B true CN115277632B (en) 2024-03-29

Family

ID=83745932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485701.9A Active CN115277632B (en) 2021-04-30 2021-04-30 Query and information processing method and device and communication equipment

Country Status (1)

Country Link
CN (1) CN115277632B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547676A (en) * 2012-01-06 2012-07-04 大唐移动通信设备有限公司 Method and device for acquisition of IP (Internet Protocol) address of target network element and system switching
EP3651426A1 (en) * 2018-11-06 2020-05-13 Efficient IP SAS Method and system for detecting and blocking data transfer using dns protocol
CN112422701A (en) * 2019-08-20 2021-02-26 华为技术有限公司 Domain name system query method and communication device
CN112468604A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Method for determining domain name system server, method, device and system for processing request
WO2021042398A1 (en) * 2019-09-06 2021-03-11 Oppo广东移动通信有限公司 Communication method and apparatus, network device and terminal device
CN112654100A (en) * 2019-10-10 2021-04-13 中国移动通信有限公司研究院 Information processing method and related network equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10708716B2 (en) * 2018-10-16 2020-07-07 Cisco Technology, Inc. Methods and apparatus for selecting network resources for UE sessions based on locations of multi-access edge computing (MEC) resources and applications
US11218438B2 (en) * 2019-04-12 2022-01-04 Huawei Technologies Co., Ltd. System, apparatus and method to support data server selection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547676A (en) * 2012-01-06 2012-07-04 大唐移动通信设备有限公司 Method and device for acquisition of IP (Internet Protocol) address of target network element and system switching
EP3651426A1 (en) * 2018-11-06 2020-05-13 Efficient IP SAS Method and system for detecting and blocking data transfer using dns protocol
CN112422701A (en) * 2019-08-20 2021-02-26 华为技术有限公司 Domain name system query method and communication device
CN112468604A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Method for determining domain name system server, method, device and system for processing request
WO2021042398A1 (en) * 2019-09-06 2021-03-11 Oppo广东移动通信有限公司 Communication method and apparatus, network device and terminal device
CN112654100A (en) * 2019-10-10 2021-04-13 中国移动通信有限公司研究院 Information processing method and related network equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
3gpp. "S2-2102491 Updating Option C of EAS Discovery Procedure with Local DNS server v1".3GPP tsg_sa\wg2_arch.2021,全文. *
3gpp. "S2-2102493 Addressing ENs on SMF obtaining DNS information from AF v1".3GPP tsg_sa\wg2_arch.2021,全文. *
3gpp. "S2-2102743 - p-CR when DNS configuration in UE is changed".3GPP tsg_sa\wg2_arch.2021,正文部分. *

Also Published As

Publication number Publication date
CN115277632A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US11528770B2 (en) Session management method, apparatus, and system
CN109842906B (en) Communication method, device and system
WO2022206260A1 (en) Address information sending method and apparatus, address information obtaining method and apparatus, device, and medium
US11425604B2 (en) User plane resource management method, user plane network element, and control plane network element
WO2018006784A1 (en) Network slice selection method, apparatus and system
CN111935738B (en) Method and system for multi-operator core network docking MEC
US10999881B2 (en) Session management method and device
CN110233834B (en) Network system, method, device and equipment for intercepting attack message
WO2022033345A1 (en) Pdu session establishment method, terminal device, and chip system
WO2014119715A1 (en) Communication terminal, communication method, program, communication system, and information processing apparatus
EP3107249B1 (en) Information processing device, communication method, and computer program
US20200228618A1 (en) Content delivery method, device, and system
CN105637913B (en) Method and apparatus for providing push service in communication system
CN109196889B (en) User information acquisition method, identification corresponding relation storage method, device and equipment
WO2014029094A1 (en) Packet processing method, deep packet inspection requesting network element, and deep packet inspection device
JP2016511451A (en) System and method for opening network functions and associated network elements
US11838969B2 (en) Method for accessing local network, and related device
US20240036942A1 (en) Information processing method and apparatus, device, and storage medium
CN115277632B (en) Query and information processing method and device and communication equipment
US11265931B2 (en) Method and device for establishing connection
CN114126085B (en) Industrial field bus communication method and device, electronic equipment and storage medium
CN109076381B (en) Service data stream sending method and device
CN109150752B (en) Cache control method, network element and controller
CN115190104B (en) Information transmission method, apparatus, communication device and storage medium
WO2024061205A1 (en) Parameter acquisition method and apparatus, first network function, and second network function

Legal Events

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