WO2021004528A1 - Method, device and apparatus for address acquisition of application example and storage medium - Google Patents

Method, device and apparatus for address acquisition of application example and storage medium Download PDF

Info

Publication number
WO2021004528A1
WO2021004528A1 PCT/CN2020/101344 CN2020101344W WO2021004528A1 WO 2021004528 A1 WO2021004528 A1 WO 2021004528A1 CN 2020101344 W CN2020101344 W CN 2020101344W WO 2021004528 A1 WO2021004528 A1 WO 2021004528A1
Authority
WO
WIPO (PCT)
Prior art keywords
user equipment
information
application
address
edge network
Prior art date
Application number
PCT/CN2020/101344
Other languages
French (fr)
Chinese (zh)
Inventor
葛翠丽
杨艳梅
李岩
朱方园
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021004528A1 publication Critical patent/WO2021004528A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/18Service support devices; Network management devices

Definitions

  • This application relates to the field of Internet communications, and in particular to an address acquisition method, device, equipment and storage medium for application examples.
  • MEC Mobile edge computing
  • IT Information Technology
  • third-party application providers will have the need to schedule users (which users access which application instance) by themselves, but related technologies cannot provide corresponding application instances for user equipment and cannot meet the scheduling requirements of third-party application providers. demand.
  • the embodiments of the present application provide a method, device, device, and storage medium for obtaining an address of an application instance, which can solve a technical problem in related technologies that cannot meet the scheduling requirements of a third-party application provider.
  • the technical solution is as follows:
  • a method for obtaining an address of an application instance includes: obtaining information of an edge network; sending a first request message to a first server, the first request message carrying an application identifier and the edge network Information; receiving the first response message returned by the first server based on the first request message, the first response message carrying the Internet protocol of the application instance of the application corresponding to the information about the edge network (internet protocol , IP) address.
  • IP edge network
  • the method provided in the embodiments of the present application obtains the information of the edge network, uses the identification of the application and the information of the edge network to obtain the IP address of the corresponding application instance from the first server, and can quickly and accurately obtain the address of the nearest application instance. , To meet the scheduling needs of third-party application providers.
  • the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  • the update instruction message further includes updated edge network information; and the obtaining of the edge network information includes: receiving the updated edge network information.
  • the method provided in the embodiment of the application provides a trigger condition for updating the IP address of the application instance by obtaining the IP address of the application instance of the application after receiving the update instruction message, which can ensure the reliability of the IP address of the application instance .
  • the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the For a change event of the edge network corresponding to the user equipment, when the edge network corresponding to the user equipment changes, the update instruction message is received.
  • the method provided in the embodiments of the present application can obtain the update instruction message returned by the second server or the third server based on the subscription by subscribing to the event from the second server or the third server, and provides an instant and accurate acquisition of the update instruction message The way.
  • the obtaining the information of the edge network includes: sending a second request message to a second server, the second request message carrying the location information of the user equipment or the identifier of the user equipment; receiving; A second response message returned by the second server based on the second request message, where the second response message carries the information of the edge network.
  • the user equipment obtains the edge network information from the second server according to the location information of the user equipment or the user equipment identifier, and the obtained edge network information corresponds to the location information of the user equipment, so that according to the The IP address of the application instance obtained by the information of the edge network corresponds to the location information of the user equipment, which is the current closest application instance, and meets the scheduling needs of third-party application providers.
  • the second response message also carries effective area information corresponding to the information of the edge network, and the effective area information is used to indicate an area to which the information of the edge network applies.
  • the method provided by the embodiment of the present application carries the information of the edge network and the corresponding effective area information in the response message returned based on the request message, so that the receiver can know the area to which the information of the edge network is applicable, so as to be in the area Using the information of the edge network to obtain the IP address of the application instance improves the accuracy of obtaining the IP address of the application instance.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity (TAI) of the user equipment; and the user equipment The geographic location information or geographic area information of the user equipment; the latitude and longitude information of the user equipment; the data network access identifier (DNAI) corresponding to the user equipment.
  • TAI tracking area identity
  • DNAI data network access identifier
  • the method provided in the embodiments of the present application improves the flexibility of the location information of the user equipment by using at least one of the cell identity, TAI, geographic location information, geographic area information, and DNAI of the user equipment as the location information of the user equipment. And reliability, thereby obtaining the IP address of the application instance according to the location information, and improving the reliability of the IP address of the application instance.
  • the obtaining the information of the edge network includes: obtaining the information of the edge network from the locally stored edge network configuration information according to the location information of the user equipment, and the edge network configuration information Contains information about at least one edge network.
  • the method provided in the embodiments of the present application provides an accurate and rapid method for obtaining edge network information from multiple edge network information based on the location information of the user equipment. the way.
  • the method is applied to a third server deployed in the edge network, and the acquiring information about the edge network includes: the third server subscribes to the mobile data network
  • the user plane management event of the user equipment receives a notification message of the user plane management event returned by the mobile data network based on subscription, and the notification information carries the information of the edge network.
  • the method provided in the embodiments of the present application can receive notification messages by subscribing to events from a mobile data network, and obtain edge network information from the notification messages, providing a way to instantly and accurately obtain edge network information.
  • the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate an area to which the IP address of the application instance applies.
  • the method provided by the embodiment of the present application carries the IP address of the application instance and the corresponding effective area information in the response message returned based on the request message, so that the receiver can know the area to which the IP address of the application instance is applicable, so that Using the IP address of the application instance in the area ensures the accuracy of the IP address of the application instance.
  • the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server deployment In the edge network.
  • the method provided in the embodiments of the present application uses at least one of the DNAI corresponding to the edge network, the IP address of the edge network, and the IP address of the third server as the information of the edge network, thereby improving the flexibility and the information of the edge network. Reliability makes the IP address of the application instance obtained according to the location information highly reliable.
  • the IP address of the edge network or the IP address of the third server is an IP address segment.
  • the identifier of the user equipment is at least one of the following: an IP address of the user equipment; a generic public subscription identifier (GPSI) of the user equipment; The mobile station integrated services digital network (MSISDN) of the user equipment.
  • GPSI public subscription identifier
  • MSISDN mobile station integrated services digital network
  • the method provided in the embodiments of the present application improves the flexibility and reliability of the user equipment identification by using at least one of the user equipment's IP address, GPSI, and MSISDN as the user equipment identification.
  • the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
  • the method provided in the embodiments of the present application improves the flexibility and reliability of the application identifier by using at least one of the application identifier, uniform resource locator, full domain name, and application name as the application identifier.
  • a method for obtaining an address of an application instance includes: sending a third request message to a second server, the third request message carrying an application identifier and user equipment information, and the user equipment The information is the location information of the user equipment or the identifier of the user equipment; a third response message returned by the second server based on the third request message is received, the third response message carrying the location of the user equipment The Internet Protocol IP address of the application instance of the application corresponding to the information.
  • the method provided in the embodiments of this application obtains the IP address of the corresponding application instance from the second server by using the identification of the application and the information of the user equipment, which can quickly and accurately obtain the address of the application instance closest to the current application, satisfying third-party applications Provider scheduling requirements.
  • the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  • the method provided by the embodiment of the present application provides a trigger condition for updating the IP address of the application instance by obtaining the IP address of the application instance of the application after receiving the update instruction message, which can ensure the reliability of the IP address of the application instance.
  • the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the For a change event of the edge network corresponding to the user equipment, when the edge network corresponding to the user equipment changes, the update instruction message is received.
  • the method provided in the embodiments of the present application can obtain the update instruction message returned by the second server or the third server based on the subscription by subscribing to the event from the second server or the third server, and provides an instant and accurate acquisition of the update instruction message The way.
  • the method when the method is applied to a third server, before the third request message is sent to the second server, the method further includes: the third server subscribes to the user from a mobile data network The location information of the device receives a notification message returned by the mobile data network based on the subscription, where the notification information carries the location information of the user equipment.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic location information of the user equipment Area information; latitude and longitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
  • the location information of the user equipment is the DNAI corresponding to the user equipment.
  • the method When the method is applied to a third server, before the third request message is sent to the second server, the method It also includes: the third server subscribes to the user plane management event of the user equipment from the mobile data network, and receives the notification message of the user plane management event returned by the mobile data network based on the subscription, and the notification information carries all Describe the location information of the user equipment.
  • the third response message further carries at least one of the following: valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the IP address of the application instance Applicable area; the IP address of the third server corresponding to the IP address of the application instance.
  • a method for obtaining an address of an application instance comprising: receiving a second request message from a target device, the second request message carrying location information of the user equipment or an identifier of the user equipment; Determine the information of the corresponding edge network according to the location information of the user equipment or the identifier of the user equipment; and send a second response message to the target device, where the second response message carries the information of the edge network.
  • the device by receiving a request message from a user equipment, according to the location information of the user equipment or the identifier of the user equipment carried in the request message, determine and return the corresponding edge network information to the user equipment, so that the user
  • the device can obtain the information of the edge network, and use the identification of the application and the information of the edge network to quickly and accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
  • the determining the corresponding edge network information according to the location information of the user equipment or the identifier of the user equipment includes: determining the information of the user equipment according to the identifier of the user equipment Location information; according to the location information of the user equipment, determine the corresponding edge network information.
  • the request message can carry both the location information of the user equipment and the identification of the user equipment. After the location information of the user equipment is determined according to the identification of the user equipment, the edge network information is determined. Improved flexibility.
  • the determining the corresponding edge network information according to the location information of the user equipment includes: querying the location information of the user equipment and the edge network information according to the location information of the user equipment. And obtain the information of the edge network corresponding to the location information of the user equipment.
  • the information of the edge network is the IP address of the third server
  • the determining the information of the corresponding edge network according to the location information of the user equipment includes: according to the location of the user equipment Information, determine the corresponding data network access identifier DNAI; determine the Internet Protocol IP address of the third server according to the DNAI.
  • the determining the location information of the user equipment according to the identification of the user equipment includes any one of the following: according to the identification of the user equipment, reporting to the access and mobility management function (serving access and mobility management function, serving AMF) requests the location information of the user equipment, and receives a response message returned by the AMF based on the request, where the response message carries the location information of the user equipment; or according to the user
  • the identifier of the device subscribe to the location information of the user equipment from the AMF, the third server or the session management function (session management function, SMF), and receive the notification message returned by the AMF, the third server or the SMF based on the subscription,
  • the notification information carries the location information of the user equipment.
  • the method provided in the embodiment of the present application can request the location information of the user equipment from the AMF, or subscribe the location information of the user equipment from the AMF, the third server, and the SMF, which improves flexibility.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic location information of the user equipment Area information; latitude and longitude information of the user equipment; DNAI corresponding to the user equipment.
  • the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server deployment In the edge network.
  • the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile station integrated service of the user equipment Digital network MSISDN.
  • the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
  • the target device is a user equipment
  • the method further includes: sending an update instruction message to the user equipment, the update instruction The message is used to indicate the IP address of the application instance of the update application; the steps of receiving the second request message, determining the corresponding edge network information, and sending the second response message are performed again.
  • the method provided by the embodiments of the present application sends an update instruction message to the user equipment, so that the user equipment reacquires the IP address of the application instance of the application when it needs to access the application, and provides a trigger condition for updating the IP address of the application instance , Can guarantee the reliability of the IP address of the application instance.
  • the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
  • the method provided by the embodiments of the present application by monitoring the location information of the user equipment, can send an update instruction message to the user equipment when the location of the user equipment moves out of the edge network, so that the user equipment can immediately and accurately receive the update instruction message, thereby restarting Obtain the IP address of the application instance of the application to ensure the reliability of the IP address of the application instance.
  • the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment When a change occurs, an update instruction message is sent to the user equipment.
  • the method provided by the embodiments of the present application by subscribing to events, can return an update instruction message based on the subscription when the edge network corresponding to the user equipment changes, so that the user equipment can immediately and accurately receive the update instruction message, thereby reacquiring the update instruction message.
  • the IP address of the application instance of the application ensures the reliability of the IP address of the application instance.
  • the target device is the user equipment or the second server.
  • an address obtaining method of an application instance including:
  • the target device Receiving a third request message from the target device, the third request message carrying an application identifier and user equipment information, and the user equipment information is location information of the user equipment or the user equipment identifier;
  • a third response message is sent to the target device, where the third response message carries the IP address of the application instance of the application corresponding to the location information of the user equipment.
  • the method provided by the embodiments of the present application obtains and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and user device information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
  • the obtaining the IP address of the application instance of the application corresponding to the information of the user equipment according to the identifier of the application and the information of the user equipment includes:
  • the IP address of the application instance of the application corresponding to the location information of the user equipment is obtained.
  • the request message can carry both the location information of the user equipment and the identification of the user equipment. After the location information of the user equipment is determined according to the identification of the user equipment, the IP address of the application instance is determined. , Improved flexibility.
  • the obtaining the IP address of the application instance of the application corresponding to the location information of the user equipment according to the identification of the application and the information of the user equipment includes:
  • the identification of the application and the location information of the user equipment query the correspondence between the identification of the application, the location information of the user equipment, and the IP address of the application instance to obtain the application corresponding to the location information of the user equipment The IP address of the application instance.
  • the obtaining the IP address of the application instance of the application corresponding to the user equipment information according to the identification of the application and the information of the user equipment includes: according to the user equipment Determine the corresponding edge network information; obtain the IP address of the application instance of the application corresponding to the edge network information according to the identifier of the application and the edge network information.
  • the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, so The third server is deployed in the edge network.
  • the obtaining the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network includes: sending to a first server A first request message, where the first request message carries the identification of the application and the information of the edge network; receiving a first response message returned by the first server based on the first request message, the first response The message carries the IP address of the application instance of the application corresponding to the information of the edge network.
  • the determining the corresponding edge network information according to the location information of the user equipment includes: querying the location information of the user equipment and the edge network information according to the location information of the user equipment. And obtain the information of the edge network corresponding to the location information of the user equipment.
  • the information of the edge network is the IP address of the third server
  • the determining the information of the corresponding edge network according to the location information of the user equipment includes: according to the location of the user equipment Information, determine the corresponding DNAI; according to the DNAI, determine the IP address of the third server.
  • the determining the location information of the user equipment according to the identifier of the user equipment includes any one of the following:
  • the identifier of the user equipment request the access and mobility management function AMF for the location information of the user equipment, and receive a response message returned by the AMF based on the request, the response message carrying the location information of the user equipment; Or, according to the identifier of the user equipment, subscribe the location information of the user equipment to the AMF, the third server or the session management function SMF, and receive the notification message returned by the AMF, the third server or the SMF based on the subscription, so The notification information carries the location information of the user equipment.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic location information of the user equipment Area information; latitude and longitude information of the user equipment; DNAI corresponding to the user equipment.
  • the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile station integrated service of the user equipment Digital network MSISDN.
  • the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
  • the third response message also carries the IP address of the third server corresponding to the IP address of the application instance of the application.
  • the method further includes: querying the IP address of a third server corresponding to the IP address of the application instance of the application according to the IP address of the application instance of the application.
  • the target device is a user equipment
  • the method further includes: sending an update instruction message to the user equipment, the update instruction The message is used to indicate to update the IP address of the application instance of the application; re-execute the steps of receiving the third request message, obtaining the IP address of the application instance, and sending the third response message.
  • the method provided by the embodiments of the present application sends an update instruction message to the user equipment, so that the user equipment reacquires the IP address of the application instance of the application when it needs to access the application, and provides a trigger condition for updating the IP address of the application instance , Can guarantee the reliability of the IP address of the application instance.
  • the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
  • the method provided by the embodiments of the present application by monitoring the location information of the user equipment, can send an update instruction message to the user equipment when the location of the user equipment moves out of the edge network, so that the user equipment can immediately and accurately receive the update instruction message, thereby restarting Obtain the IP address of the application instance of the application to ensure the reliability of the IP address of the application instance.
  • the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment When a change occurs, an update instruction message is sent to the user equipment.
  • the method provided by the embodiments of the present application by subscribing to events, can return an update instruction message based on the subscription when the edge network corresponding to the user equipment changes, so that the user equipment can immediately and accurately receive the update instruction message, thereby reacquiring the update instruction message.
  • the IP address of the application instance of the application ensures the reliability of the IP address of the application instance.
  • the target device is the user equipment or the second server.
  • an address acquisition method of an application instance includes:
  • the method provided by the embodiments of the present application determines and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and edge network information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
  • the determining the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network includes: according to the information of the application Identify the identifier and the information of the edge network, query the correspondence between the identifier of the application, the information of the edge network, and the IP address of the application instance, to obtain the IP address of the application instance of the application corresponding to the information of the edge network.
  • the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate an area to which the IP address of the application instance applies.
  • the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, so The third server is deployed in the edge network.
  • the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
  • the target device is a user equipment, a second server, or a third server.
  • an address acquisition device of an application example includes a plurality of functional modules, and the multiple functional modules are used to implement any one of the above aspects or any one of the possible implementations provided in any one of the aspects.
  • the method of obtaining the address of the application instance is provided.
  • a computer device in a seventh aspect, includes one or more processors and one or more memories, and at least one instruction is stored in the one or more memories. Or multiple processors are loaded and executed to implement the address obtaining method of the application instance provided in any one of the foregoing aspects or any possible implementation manner of any aspect.
  • a computer-readable storage medium is provided, and at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement any one of the foregoing aspects or any possible implementation of any one of the aspects.
  • an address acquisition system of an application instance includes multiple devices of a user equipment, a first server, a second server, or a third server; the user equipment or the third server uses The method for obtaining the address of the application instance provided by the first aspect or the second aspect; the second server is configured to execute the method for obtaining the address of the application instance provided by the third or fourth aspect; the first The server is used to execute the address obtaining method of the application instance provided in the fifth aspect.
  • a computer program product includes: computer program code, when the computer program code is run by a computer device, the computer device executes any one of the foregoing aspects or any one of the foregoing The address acquisition method of the application instance provided in this possible implementation.
  • a chip including a processor, configured to call and execute instructions stored in the memory from a memory, so that a terminal installed with the chip can execute any one or any of the foregoing aspects.
  • a method for obtaining the address of the application instance provided in a possible implementation.
  • another chip including: an input interface, an output interface, a processor, and a memory.
  • the input interface, output interface, the processor, and the memory are connected by an internal connection path, and the The processor is used to execute the code in the memory, and when the code is executed, the processor is used in the address obtaining method of the application instance provided in any one of the foregoing aspects or any possible implementation manner of any one of the aspects.
  • FIG. 1 is a system architecture diagram of an address obtaining method of an application example provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a computer device 200 provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application
  • FIG. 4 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • Fig. 6 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 9 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 10 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 11 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 12 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 13 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 14 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 16 is a flowchart of an EES information acquisition method provided by an embodiment of the present application.
  • FIG. 17 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 18 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • FIG. 19 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • 20 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application.
  • FIG. 21 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application.
  • FIG. 22 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application.
  • FIG. 23 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application.
  • FIG. 24 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application.
  • FIG. 1 is a system architecture diagram of an address acquisition method of an application example provided by an embodiment of the present application.
  • the system includes a user equipment (UE), a mobile data network, an edge network, an application example, a second server, and a second server. Three servers.
  • the application instance and the third server are deployed in the edge network.
  • the mobile data network may be the 3rd generation partnership project (3GPP) network.
  • 3GPP 3rd generation partnership project
  • the edge network is the peer-to-peer concept of the central cloud. It can be understood as a local data center. It can be identified by the data network access identifier (DNAI), and it can also be called the edge computing network (edge computing network) . Multiple local data networks (local data network, local DN) can be deployed in the edge network.
  • the edge network may be an edge data network (EDN).
  • the second server can provide a resolution service from the application name to the application’s IP address, and can provide the UE with edge network configuration information (such as the name of the edge network, IP address, IP virtual address (used to represent all applications in the edge network)
  • edge network configuration information such as the name of the edge network, IP address, IP virtual address (used to represent all applications in the edge network)
  • the instance provides the IP address of the UE), the service range of the edge network (tracking area list or cell list, etc.), such as providing EES (edge enabler server, EES) information (including the name of the EES, IP address, etc.) to the UE.
  • EES edge enabler server
  • the second server may be an edge network configuration server, and the edge network configuration server is responsible for the configuration of the edge network, such as providing EES information to the UE, such as the IP address of the EES.
  • the first server may be a domain name system (DNS) server.
  • DNS domain name system
  • the DNS server provides the mapping and conversion between host names and IP addresses. If a server always has a DNS record that resolves a host name to an IP address, then the server is authoritative for the host.
  • DNS is a distributed database used for transmission control protocol (TCP)/IP applications. It provides conversion between host names and IP addresses and routing information related to emails. The distribution mentioned here means that a single site on the Internet cannot have all the information.
  • the DNS server can be operated by the operator and deployed in the operator's network.
  • the second server may also be another functional entity having the function of the second server.
  • the names in this application are only examples, and the names are not limited.
  • the third server may be an edge-enabled server.
  • EES can provide some enabling capabilities for application instances deployed in the edge network, and can better support the deployment of applications in MEC. It can support the registration of edge applications, the authentication and authentication of user equipment (UE), and provide the Internet protocol (IP) address information of application instances for the UE.
  • the third server may also be another functional entity having the function of the third server.
  • the names in this application are only examples, and the names are not limited.
  • An application instance is an application deployed in an edge network, and may also be called an edge application (edge application) or a mobile edge computing (mobile edge computing, MEC) application.
  • An application can be deployed in the cloud and one or more edge networks at the same time, and an application can correspond to multiple application instances.
  • the UE may be a device such as a mobile phone or a computer, and an application client (application client) and an edge enabler client (EEC) may be installed on the UE.
  • the application client is the peer entity of the edge application on the UE side.
  • EEC is the peer entity of EES on the UE side.
  • the application client in the UE and the application instance in the edge network can perform application data traffic.
  • the connection between EEC and EES can be established through reference point 1 (edge-1), and the 3GPP network and EES can be connected through Reference point 2 (edge-2) establishes a connection, the application instance and EES can establish a connection through reference point 3 (edge-3), and the EEC and edge network configuration server can establish a connection through reference point 4 (edge-4) .
  • Fig. 2 is a schematic structural diagram of a computer device 200 provided by an embodiment of the present application.
  • the computer device may be a user equipment or a server.
  • the computer device 200 includes relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 201 and one or more memories 202, where the memory 202 stores At least one instruction, and the at least one instruction is loaded and executed by the processor 201 to implement the methods provided in the following method embodiments.
  • the computer device 200 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output.
  • the computer device 200 may also include other components for implementing device functions, which will not be repeated here.
  • FIG. 3 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application.
  • the method may be applied to a user equipment or a third server, that is, the execution subject of the method may be the user equipment or the third server As shown in Figure 3, the method includes the following steps:
  • Step 301 Obtain edge network information.
  • Step 302 Send a first request message to the first server, where the first request message carries the identifier of the application and the information of the edge network.
  • Step 303 Receive a first response message returned by the first server based on the first request message, where the first response message carries the Internet Protocol IP address of the application instance of the application corresponding to the edge network information.
  • the method provided in the embodiments of the present application obtains the information of the edge network, uses the identification of the application and the information of the edge network to obtain the IP address of the corresponding application instance from the first server, and can quickly and accurately obtain the address of the nearest application instance. , To meet the scheduling needs of third-party application providers.
  • the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  • the update instruction information can be sent after step 301 or received before step 301.
  • the update instruction message can be used to indicate that the location of the user equipment has changed, or that the edge network where the user equipment is located has changed, or that the receiver can send a request message to obtain updated information. IP address.
  • the update instruction message further includes the updated edge network information; the acquiring the edge network information includes: receiving the updated edge network information.
  • the step of receiving the update instruction message may be performed before step 302.
  • the user equipment receives the update instruction message, that is, after receiving the updated edge network information, it may perform steps 302 to 303. Obtain the updated IP address.
  • the step of receiving the update instruction message may also be performed after step 303. For example, after the user equipment obtains the IP address of the application instance of the application by performing steps 301 to 303, if the update instruction message is received, the update is received.
  • step 302 to step 303 can be performed again to obtain the updated IP address, which corresponds to the information of the updated edge network.
  • the update instruction message may not include edge network information.
  • the step of receiving the update instruction message may be performed before step 301.
  • the user equipment may Steps 301 to 303 are performed to obtain the updated IP address, which corresponds to the updated edge network information.
  • the step of receiving the update instruction message can also be performed after step 303. For example, after the user equipment obtains the IP address of the application instance of the application by performing step 301 to step 303, if it receives the update instruction message, it can perform it again Steps 301 to 303 are used to obtain the updated IP address, which corresponds to the updated edge network information.
  • the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the edge corresponding to the user equipment. For network change events, when the edge network corresponding to the user equipment changes, the update indication message is received.
  • the acquiring information of the edge network includes: sending a second request message to a second server, the second request message carrying location information of the user equipment or an identifier of the user equipment; receiving the second server Based on the second response message returned by the second request message, the second response message carries the information of the edge network.
  • the second request message may be a subscription request message
  • the second request message is used to subscribe to the information of the edge network corresponding to the user equipment.
  • the second server learns that the location information of the user equipment has changed, the second server determines that if the edge network corresponding to the location of the user equipment changes, the second server can determine the edge network information corresponding to the current location of the user equipment, and report to the user
  • the device sends a notification message based on the subscription request.
  • the notification message carries information about the edge network. Specifically, the notification message may also carry the IP address of the third server. This notification message can be sent multiple times.
  • the second response message also carries effective area information corresponding to the information of the edge network, and the effective area information is used to indicate an area to which the information of the edge network applies.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
  • acquiring the information of the edge network includes: acquiring the information of the edge network from locally stored edge network configuration information according to the location information of the user equipment, and the edge network configuration information includes at least one Information about the edge network.
  • the method is applied to a third server deployed in the edge network, and the obtaining information about the edge network includes: the third server subscribes to the user plane of the user equipment from the mobile data network
  • the management event receives the notification message of the user plane management event returned by the mobile data network based on the subscription, and the notification information carries the information of the edge network.
  • the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
  • the information of the edge network is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge Network.
  • the IP address of the edge network or the IP address of the third server is an IP address segment.
  • Fig. 4 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a user equipment or a third server. As shown in Fig. 4, the method includes the following steps:
  • Step 401 Send a third request message to a second server, where the third request message carries an application identifier and user equipment information, where the user equipment information is the location information of the user equipment or the user equipment identifier;
  • Step 402 Receive a third response message returned by the second server based on the third request message, where the third response message carries the Internet Protocol IP address of the application instance of the application corresponding to the location information of the user equipment.
  • the method provided in the embodiments of this application obtains the IP address of the corresponding application instance from the second server by using the identification of the application and the information of the user equipment, which can quickly and accurately obtain the address of the application instance closest to the current application, satisfying third-party applications Provider scheduling requirements.
  • the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  • the update instruction message can be used to indicate that the location of the user equipment has changed, or that the edge network where the user equipment is located has changed, or that the receiver can send a request message to obtain updated information. IP address.
  • the step of receiving the update instruction message may be performed before step 401.
  • the user equipment may perform steps 401 to 402 to obtain the updated IP address, which corresponds to the updated edge Network information.
  • the step of receiving the update instruction message can also be performed after step 402. For example, after the user equipment obtains the IP address of the application instance of the application by performing step 401 to step 402, if the update instruction message is received, it can perform again Steps 401 to 402 are used to obtain the updated IP address, which corresponds to the updated edge network information.
  • the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the edge corresponding to the user equipment. For network change events, when the edge network corresponding to the user equipment changes, the update indication message is received.
  • the method when the method is applied to a third server, before sending the third request message to the second server, the method further includes: the third server subscribes to the location information of the user equipment from the mobile data network, Receive a notification message returned by the mobile data network based on the subscription, where the notification message carries the location information of the user equipment.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; Longitude and latitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
  • the location information of the user equipment is the data network access identifier DNAI corresponding to the user equipment.
  • the method is applied to a third server, before the third request message is sent to the second server, the method It also includes: the third server subscribes to the user plane management event of the user equipment from the mobile data network, and receives the notification message of the user plane management event returned by the mobile data network based on the subscription, and the notification information carries the location information of the user equipment .
  • the third response message also carries at least one of the following: valid area information corresponding to the IP address of the application instance of the application, and the valid area information is used to indicate the IP address of the application instance of the application Applicable area; the IP address of the third server corresponding to the IP address of the application instance of the application.
  • the third server corresponding to the IP address of the application instance of the application can be understood as a third server serving the application instance of the application, and the third server can provide edge-enabled services for the application instance of the application, and these edge-enabled services It can come from the third server itself, or it can come from the 3GPP network.
  • Fig. 5 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a second server. As shown in Fig. 5, the method includes the following steps:
  • Step 501 Receive a second request message from the target device, where the second request message carries the location information of the user equipment or the identifier of the user equipment.
  • Step 502 Determine corresponding edge network information according to the location information of the user equipment or the identifier of the user equipment;
  • Step 503 Send a second response message to the target device, where the second response message carries information about the edge network.
  • the method provided by the embodiment of the present application determines and returns the corresponding edge network information to the user equipment according to the location information of the user equipment or the identifier of the user equipment carried in the request message by receiving the request message of the user equipment, so that the user equipment It can obtain the information of the edge network, and use the identification of the application and the information of the edge network to quickly and accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
  • the second request message is a subscription request message
  • the second request message is used to subscribe to the information of the edge network corresponding to the user equipment.
  • the second server learns that the location information of the user equipment has changed, the second server determines that if the edge network corresponding to the location of the user equipment changes, the second server can determine the edge network information corresponding to the current location of the user equipment, and report to the user
  • the device sends a notification message based on the subscription request.
  • the notification message carries information about the edge network. Specifically, the notification message may also carry the IP address of the third server. This notification message can be sent multiple times.
  • the determining the corresponding edge network information according to the location information of the user equipment or the identification of the user equipment includes: determining the location information of the user equipment according to the identification of the user equipment; The location information of the user equipment determines the corresponding edge network information.
  • the determining the corresponding edge network information according to the location information of the user equipment includes: querying the correspondence between the location information of the user equipment and the information of the edge network according to the location information of the user equipment Relationship to obtain the edge network information corresponding to the location information of the user equipment.
  • the information of the edge network is the IP address of the third server
  • determining the information of the corresponding edge network according to the location information of the user equipment includes: determining the corresponding information according to the location information of the user equipment The data network access identifier DNAI; according to the DNAI, the Internet Protocol IP address of the third server is determined.
  • the determination of the location information of the user equipment according to the identification of the user equipment includes any one of the following: according to the identification of the user equipment, requesting the user from the access and mobility management function AMF The location information of the device, receiving the response message returned by the AMF based on the request, the response message carrying the location information of the user equipment; or, according to the identification of the user equipment, subscribe the user to the AMF, the third server or the session management function SMF The location information of the device receives the notification message returned by the AMF, the third server or the SMF based on the subscription, and the notification information carries the location information of the user device.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
  • the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
  • the target device is a user equipment
  • the method further includes: sending an update instruction message to the user equipment, the update instruction message being used to instruct to update the application The IP address of the application instance;
  • the steps of receiving the second request message, determining the corresponding edge network information, and sending the second response message may be performed again.
  • the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
  • the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment changes, The user equipment sends an update instruction message.
  • the target device is a user equipment or a second server.
  • Fig. 6 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a second server. As shown in Fig. 6, the method includes the following steps:
  • Step 601 Receive a third request message from the target device, where the third request message carries the identification of the application and the information of the user equipment, and the information of the user equipment is the location information of the user equipment or the identification of the user equipment.
  • Step 602 According to the identification of the application and the information of the user equipment, obtain the Internet Protocol IP address of the application instance of the application corresponding to the information of the user equipment.
  • Step 603 Send a third response message to the target device, where the third response message carries the IP address of the application instance of the application corresponding to the location information of the user equipment.
  • the method provided by the embodiments of the present application obtains and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and user device information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
  • the obtaining the IP address of the application instance of the application corresponding to the user equipment information according to the identification of the application and the information of the user equipment includes: determining the user according to the identification of the user equipment The location information of the device; according to the identification of the application and the location information of the user equipment, the IP address of the application instance of the application corresponding to the location information of the user equipment is obtained.
  • the obtaining the IP address of the application instance of the application corresponding to the location information of the user equipment according to the identification of the application and the information of the user equipment includes: according to the identification of the application and the user equipment
  • the location information of the application is inquired about the correspondence between the identification of the application, the location information of the user equipment and the IP address of the application instance, and the IP address of the application instance of the application corresponding to the location information of the user equipment is obtained.
  • the obtaining the IP address of the application instance of the application corresponding to the user equipment information according to the identification of the application and the information of the user equipment includes: determining the corresponding IP address according to the location information of the user equipment Information of the edge network; According to the identification of the application and the information of the edge network, obtain the IP address of the application instance of the application corresponding to the information of the edge network.
  • the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
  • the obtaining the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network includes: sending a first request message to the first server, The first request message carries the identification of the application and the information of the edge network; the first response message returned by the first server based on the first request message is received, and the first response message carries the application corresponding to the information of the edge network The IP address of the application instance.
  • the determining the corresponding edge network information according to the location information of the user equipment includes: querying the correspondence between the location information of the user equipment and the information of the edge network according to the location information of the user equipment Relationship to obtain the edge network information corresponding to the location information of the user equipment.
  • the information of the edge network is the IP address of the third server
  • determining the information of the corresponding edge network according to the location information of the user equipment includes: determining the corresponding information according to the location information of the user equipment DNAI; According to the DNAI, determine the IP address of the third server.
  • the determination of the location information of the user equipment according to the identification of the user equipment includes any one of the following: according to the identification of the user equipment, requesting the user from the access and mobility management function AMF The location information of the device, receiving the response message returned by the AMF based on the request, the response message carrying the location information of the user equipment; or, according to the identification of the user equipment, subscribe the user to the AMF, the third server or the session management function SMF The location information of the device receives the notification message returned by the AMF, the third server or the SMF based on the subscription, and the notification information carries the location information of the user device.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
  • the third response message also carries the IP address of the third server corresponding to the IP address of the application instance of the application.
  • the method further includes: The IP address of the application instance of the application is queried for the IP address of the third server corresponding to the IP address of the application instance of the application.
  • the target device is a user equipment
  • the method further includes: sending an update instruction message to the user equipment, the update instruction message being used to instruct to update the application The IP address of the application instance;
  • the steps of receiving the third request message, obtaining the IP address of the application instance, and sending the third response message may be performed again.
  • the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
  • the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment changes, The user equipment sends an update instruction message.
  • the target device is the user equipment or the second server.
  • Fig. 7 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to the first server. As shown in Fig. 7, the method includes the following steps:
  • Step 701 Receive a first request message from the target device, where the first request message carries the identification of the application and the information of the edge network.
  • Step 702 Determine the Internet Protocol IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
  • Step 703 Send a first response message to the target device, where the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
  • the method provided by the embodiments of the present application determines and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and edge network information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
  • the determination of the IP address of the application instance of the application corresponding to the information of the edge network according to the identification of the application and the information of the edge network includes: according to the identification of the application and the information of the edge network Information, query the correspondence between the identification of the application, the information of the edge network, and the IP address of the application instance, and obtain the IP address of the application instance of the application corresponding to the information of the edge network.
  • the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
  • the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
  • the target device is a user equipment, a second server, or a third server.
  • the address acquisition method of this application instance can be briefly described as follows: the UE sends a second request message to the edge network configuration server, The second request message carries the location information of the UE; the UE receives a second response message returned by the edge network configuration server based on the second request message, and the second response message carries the edge network information; the UE sends the first response message to the DNS server A request message, the first request message carrying the identification of the application and the information of the edge network; the UE receives the first response message returned by the DNS server based on the first request message, the first response message carrying the information of the edge network
  • FIG. 9 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 9, the method includes the following steps:
  • Step 901 The UE sends a second request message to the edge network configuration server, where the second request message carries location information of the UE.
  • the second request message is used to request the information of the edge network corresponding to the location information of the UE.
  • the location information of the UE is used to indicate the location of the UE.
  • the location information of the UE can be at least one of the following: the cell ID of the UE, the tracking area identity (tracking area identity, TAI), and the geographic location (or area). ) Information, latitude and longitude information, and DNAI corresponding to the UE.
  • the second request message may be a location request message, or an edge network location request message, etc.
  • the specific message name is not limited in this application.
  • the UE may execute this step 901 when receiving an access request for an application.
  • the location information of the user equipment By using at least one of the cell identification, TAI, geographic location information, geographic area information, and DNAI of the user equipment as the location information of the user equipment, the flexibility and reliability of the location information of the user equipment are improved, so that the location information can be determined according to the location.
  • the information obtains the IP address of the application instance, which improves the reliability of the IP address of the application instance.
  • the second request message may also carry an application identifier
  • the application identifier may be at least one of the following: application identifier (application ID), uniform resource locator (uniform resource locator, URL), Fully qualified domain name (FQDN), application name (application name).
  • application ID application identifier
  • uniform resource locator uniform resource locator
  • URL uniform resource locator
  • FQDN Fully qualified domain name
  • application name application name
  • Step 902 After receiving the second request message, the edge network configuration server determines the edge network information corresponding to the location information of the UE according to the location information of the UE.
  • the information of the edge network corresponding to the location information of the UE can be understood as the information of the edge network closest to the UE, which may be a distance in a physical location or a distance in a network topology.
  • the information of the edge network may be used to indicate the location of the edge network, and the information of the edge network may be understood as another type of location information of the UE.
  • the DN information may be the identification of the edge network, or the location information of the edge network, or the attribute information of the edge network.
  • the information of the edge network may be at least one of the following: DNAI corresponding to the edge network, the IP address of the edge network, and the IP address of the EES.
  • the IP address of the edge network or the IP address of the EES may be an IP address segment (address range).
  • the IP address of the edge network can be a virtual IP address, which can be used to indicate one or more application instances deployed in the edge network. Because it is not the real IP address of the application instance, it can be called a virtual IP address.
  • the edge network configuration server may store the corresponding relationship between the location information of the UE and the information of the edge network, so that the edge network configuration server can query the corresponding relationship according to the location information of the UE carried in the second request message , Obtain the information of the edge network, that is, the information of the edge network corresponding to the location information of the UE.
  • the edge network configuration server can maintain a local database, and store the correspondence between the location information of the UE and the information of the edge network in the local database, so that the edge network configuration server can use the location information of the UE in the local database as a query The filter condition of, query the information of the edge network that meets the filter condition.
  • the edge network configuration server can determine the IP address of the EES according to the location information of the UE. Specifically, the edge network configuration server can determine the corresponding DNAI according to the location information of the UE, for example, The edge network configuration server can query the corresponding relationship between the location information of the UE and the DNAI according to the location information of the UE to obtain the DNAI, and then determine the IP address of the EES according to the DNAI. In some embodiments, the edge network configuration server may also subscribe to the UE UP change management event (UE UP change management event) from the EES or the session management function (session management function, SMF), and receive the event returned by the EES or SMF based on the subscription.
  • the notification information the notification information carries DNAI.
  • the edge network configuration server may determine the information of the edge network that supports the application according to the location information of the UE and the identification of the application.
  • the edge network configuration server can also determine the effective area information corresponding to the information of the edge network, and the effective area information is used to indicate the area to which the information of the edge network is applicable, that is, the information of the edge network is in the effective area.
  • Valid in the area indicated by the area information can also be understood as the service range of the edge network.
  • step 901 and step 902 are described by taking the user equipment acquiring edge network information from the edge network configuration server as an example.
  • the user equipment may store locally based on the location information of the UE.
  • the edge network configuration information information about the edge network is acquired, the edge network configuration information includes information about at least one edge network, and the edge network is included in the plurality of edge networks.
  • Step 903 The edge network configuration server sends a second response message to the UE, where the second response message carries information about the edge network.
  • the edge network configuration server may carry the edge network information in a second response message and return it to the UE.
  • the second response message may also carry the effective area information corresponding to the edge network information.
  • the UE can know the area to which the information of the edge network is applicable, so as to use the information of the edge network in the area to obtain application examples
  • the IP address of the application instance improves the accuracy of obtaining the IP address.
  • Step 904 The UE receives a second response message returned by the edge network configuration server based on the second request message, and sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
  • the UE After obtaining the edge network information, the UE can carry the application identifier and edge network information in a first request message and send it to the DNS server.
  • the first request message is used to request the edge network information corresponding to the application of the application The IP address of the instance.
  • Step 905 After receiving the first request message, the DNS server sends a first response message to the UE, where the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
  • the DNS server may determine the IP address of the corresponding (matching) application instance according to the application identifier and edge network information carried in the first request message.
  • the DNS server can store the correspondence between the application identifier, edge network information, and the IP address of the application instance, so that the DNS server can query the application identifier and edge network information carried in the first request message.
  • the IP address of the application instance is obtained, that is, the IP address of the application instance of the application corresponding to the information of the edge network.
  • the edge network configuration server can maintain a local database, and store the correspondence between the identification of the application, the information of the edge network, and the IP address of the application instance in the local database, so that the DNS server can use the application's
  • the identification and edge network information is used as the filter condition for the query, and the IP address of the application instance that meets the filter condition is queried.
  • the edge network configuration server may carry the IP address of the application instance in the first response message and return it to the UE.
  • the UE obtains the IP address of the application instance of the application in the edge network. If the application does not deploy the application instance in the edge network, the UE obtains Can be the IP address of the application on the cloud (central cloud).
  • the DNS server can also determine the valid zone information corresponding to the IP address of the application instance, and the valid zone information is used to indicate the zone to which the IP address of the application instance applies, that is, the IP address of the application instance is valid in this valid zone.
  • the area indicated by the area information is valid. After the UE moves out of the area indicated by the valid area information, the IP address of the application instance is no longer valid.
  • the first response message may also carry valid area information corresponding to the IP address.
  • Step 906 The UE receives the first response message returned by the DNS server based on the first request message.
  • the UE After receiving the first response message, the UE can obtain the IP address of the application instance of the application from the first response message, where the IP address of the application instance is the IP address of the application instance corresponding to the current location of the UE.
  • Steps 901 to 903 are processes for the UE to obtain information of the edge network
  • steps 904 to 906 are processes for the UE to obtain the IP address of the application instance of the application by sending a first request message and receiving a first response message.
  • the UE may receive an update instruction message from the edge network server or EES, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  • the update instruction message can be used to indicate that the location of the user equipment has changed, or that the edge network where the user equipment is located has changed, or that the receiver can send a request message to obtain updated information. IP address.
  • the update instruction message further includes updated edge network information.
  • the process of obtaining the edge network information by the UE may include: receiving the updated edge network information.
  • the step for the UE to receive the update indication message may be performed before step 904.
  • the UE receives the update indication message that is, after receiving the updated edge network information, it may obtain the updated IP through steps 904 to 906. Address, the IP address corresponds to the updated edge network information.
  • the step of receiving the update instruction message can also be performed after step 906. For example, after the UE obtains the IP address of the application instance of the application through step 301 to step 303, if the update instruction message is received, the updated instruction message is received.
  • the updated IP address can be obtained through step 904 to step 906 again, and the IP address corresponds to the information of the updated edge network.
  • the update indication message may not include edge network information.
  • the step of receiving the update indication message may be performed before step 901.
  • the UE receives the update indication message it may pass Steps 901 to 906 are used to obtain the updated IP address, which corresponds to the updated edge network information.
  • the step of receiving the update instruction message can also be performed after step 906. For example, after the UE obtains the IP address of the application instance of the application through step 901 to step 906, if it receives the update instruction message, it can go through step 901 again. Go to step 906 to obtain the updated IP address, which corresponds to the updated edge network information.
  • the edge network server or EES may monitor the location information of the UE, and when it is monitored that the location of the UE moves out of the edge network determined in step 902, the edge network configuration server or EES may send an update instruction message to the UE.
  • the UE may send subscription information to the second server or the third server, and the subscription information is used to subscribe to the change event of the edge network corresponding to the user equipment.
  • the edge network configuration server or EES may be based on For the change event subscribed by the UE, when the edge network corresponding to the UE changes, an update indication message is sent to the UE, so that the UE receives the update indication message.
  • the UE can re-obtain the IP address of the application instance of the application when it needs to access the application, and provide a trigger condition for updating the IP address of the application instance, which can ensure the IP address of the application instance. reliability.
  • steps 901 to step 906 are described using a request-response mechanism as an example, that is, a request message is sent and a response message is received.
  • steps 901 to step 906 may also be a subscription-notification (subscribe-notification) mechanism, that is, one subscription message is sent and multiple notification messages are received.
  • the UE first interacts with the edge network configuration server, uses the location information of the UE to obtain the edge network information from the edge network configuration server, and then the UE interacts with the DNS server, using the application identifier and the edge network Obtain the IP address of the corresponding application instance from the DNS server. Since the IP address of the application instance is determined according to the location information of the UE, it is the IP address of the application instance closest to the UE, so it can meet the schedule of third-party application providers Demand.
  • the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
  • the second request message sent by the UE to the edge network configuration server carries the location information of the UE.
  • the second request message may not carry the location information of the UE, but instead carry the identity of the UE.
  • the steps of the address obtaining method of the application example will be described below. It should be noted that the embodiment corresponding to FIG. 10 focuses on the differences between the embodiment corresponding to FIG. 9 and the steps similar to those of the embodiment corresponding to FIG. 9 also refer to the embodiment corresponding to FIG. 9. Details are not described in the corresponding embodiment.
  • FIG. 10 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 10, the method includes the following steps:
  • Step 1001 The UE sends a second request message to the edge network configuration server, where the second request message carries an identifier of the UE.
  • the identifier of the UE may be used to determine the location information of the UE, and the second request message is used to request information of the edge network corresponding to the location information of the UE.
  • the identifier of the UE may be at least one of the following: the IP address of the UE, the generic public subscription identifier (GPSI), and the mobile station integrated services digital network (MSISDN).
  • GPSI generic public subscription identifier
  • MSISDN mobile station integrated services digital network
  • the second request message may also carry an application identifier.
  • Step 1002 After receiving the second request message, the edge network configuration server obtains the location information of the UE according to the identifier of the UE, and determines the corresponding edge network information according to the location information of the UE.
  • the edge network configuration server may obtain the location information of the UE according to the identifier of the UE in the following two methods:
  • the edge network configuration server requests the location information of the UE from the access and mobility management function (serving access and mobility management function, serving AMF) according to the identity of the UE, and receives the response message returned by the AMF based on the request.
  • the response message carries the location information of the UE.
  • the edge network configuration server subscribes to the location information of the UE from the AMF, the third server or the session management function (SMF) according to the identity of the UE, and receives the AMF, the third server or the SMF and returns based on the subscription
  • the notification message contains the location information of the UE. For example, subscribe to the "UE UP change management event" of the UE and obtain the notification information, which carries the location information of the UE, such as the DNAI of the UE.
  • the edge network configuration server may subscribe to the location information of the UE from the AMF, EES or SMF, and receive notification messages returned by the AMF, EES or SMF based on the subscription, and the notification information carries the location information of the UE.
  • the second request message is a subscription request message
  • the second request message is used to subscribe to the information of the edge network corresponding to the UE.
  • the edge network configuration server learns that the location information of the UE has changed, the edge network configuration server determines that if the edge network corresponding to the location of the UE changes, the edge network configuration server determines the edge network information corresponding to the current location of the UE and sends it to the UE Based on the notification message of the subscription request, the notification message carries the information of the edge network, specifically the IP address of the EES. This notification message can be sent multiple times.
  • step 1002 the edge network configuration server determines the corresponding edge network information according to the location information of the UE. The same is true for step 902, and will not be repeated.
  • Step 1003 The edge network configuration server sends a second response message to the UE, where the second response message carries information about the edge network.
  • Step 1004 The UE receives the second response message returned by the edge network configuration server based on the second request message, and sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
  • Step 1005 After receiving the first request message, the DNS server sends a first response message to the UE.
  • the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
  • Step 1003 to step 1005 are the same as step 903 to step 905, and will not be repeated.
  • Step 1006 The UE receives the first response message returned by the DNS server based on the first request message.
  • the UE first interacts with the edge network configuration server, uses the UE's identity to obtain the edge network information from the edge network configuration server, and then the UE interacts with the DNS server, using the application's identity and edge network information
  • the information obtains the IP address of the corresponding application instance from the DNS server, where the edge network configuration server can determine the location information of the UE according to the UE’s identity, and then determine the edge network information according to the UE’s location information, because the IP address of the application instance is The IP address of the application instance closest to the UE is determined according to the location information of the UE, so it can meet the scheduling requirements of third-party application providers.
  • the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
  • the UE first requests the edge network information from the edge network configuration server according to the location information of the UE, and then the UE requests the IP address of the application instance from the DNS server according to the application identifier and edge network information.
  • the UE does not need to interact with the DNS server, and can obtain the IP address of the application instance from the edge network configuration server. This case will be described in the embodiment corresponding to FIG. 11 below. Referring to FIG.
  • the address acquisition method of the application instance can be briefly described as: the UE sends a third request message to the edge network configuration server, the third request message carries the identification of the application and the location information of the UE; the UE receives the edge network configuration server Based on the third response message returned by the third request message, the third response message carries the IP address of the application instance of the application corresponding to the location information of the UE.
  • the edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network; the edge network configuration server receives the first response message returned by the DNS server based on the first request message , The first response message carries the IP address of the application instance.
  • the address acquisition method of this application instance can be implemented based on the interaction between the UE and the edge network configuration server. If the edge network configuration server saves the location information of the UE or the edge network information, application The corresponding relationship between the identifier of the application instance and the IP address of the application instance, the UE can directly request the IP address of the application instance from the edge network configuration server. As shown by the solid and dashed lines in Figure 11, the address acquisition method of this application instance can be implemented based on the interaction between the UE and the edge network configuration server and the interaction between the edge network configuration server and the DNS server.
  • the server only saves the correspondence between the location information of the UE and the information of the edge network, and there is no correspondence between the location information of the UE or the information of the edge network, the identification of the application, and the IP address of the application instance, the edge network configuration server can Further send a request message to the DNS server to obtain the IP address of the application instance and return it to the UE.
  • FIG. 12 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 12, the method includes the following steps:
  • Step 1201 The UE sends a third request message to the edge network configuration server, where the third request message carries the identifier of the application and the location information of the UE.
  • the third request message is used to request the IP address of the application instance of the application corresponding to the location information of the UE.
  • the identification of the application and the location information of the UE are the same as the identification of the application and the location information of the UE in step 901, and will not be repeated.
  • Step 1202 after receiving the third request message, the edge network configuration server determines the corresponding edge network information according to the location information of the UE.
  • the determination of the corresponding edge network information according to the location information of the UE in step 1202 is the same as the determination of the corresponding edge network information according to the location information of the UE in step 902, and will not be repeated.
  • Step 1203 The edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
  • Step 1204 After receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
  • This step 1204 is the same as the step 905 in which the DNS server determines the IP address of the application instance according to the identification of the application and the information of the edge network, and will not be repeated here.
  • Step 1205 The DNS server sends a first response message to the edge network configuration server, where the first response message carries the IP address of the application instance.
  • Step 1202 to step 1205 are optional steps.
  • the DNS server can also determine the effective area information corresponding to the IP address of the application instance. Accordingly, the DNS server can carry the effective area information in the first response message and return it to the edge network configuration server.
  • Step 1206 The edge network configuration server obtains the IP address of the application instance.
  • the edge network configuration server may obtain the IP address of the application instance from the DNS server. For example, through step 1202 to step 1205, the edge network configuration server may receive the first response message returned by the DNS server, and the edge network configuration server may obtain the IP address of the application instance from the first response message returned by the DNS server.
  • the edge network configuration server can resolve the IP address of the application instance by itself. For example, through step 1201, the edge network configuration server may receive the third request message, and obtain the IP address of the application instance according to the identification of the application carried in the third request message and the location information of the UE. For example, the edge network configuration server may save the corresponding relationship between the location information of the UE, the application identifier and the IP address of the application instance, and the edge network configuration server may query the corresponding relationship according to the application identifier and the location information of the UE, and obtain The IP address of the application instance. Optionally, the edge network configuration server may also determine the effective area information corresponding to the IP address of the application instance.
  • the edge network configuration server may also search for the IP address of the EES corresponding to the IP address of the application instance according to the obtained IP address of the application instance, for example, the edge network configuration server
  • the corresponding relationship between the IP address of the application instance and the IP address of the EES can be queried according to the obtained IP address of the application instance, and the IP address of the EES corresponding to the IP address of the application instance can be obtained.
  • Step 1207 The edge network configuration server sends a third response message to the UE, where the third response message carries the IP address of the application instance.
  • the edge network configuration server may also carry the effective area information corresponding to the IP address of the application instance in the third response message and return it to the UE.
  • the receiver can know the area to which the IP address of the application instance is applicable, so that the IP of the application instance can be used in this area The address ensures the accuracy of the IP address of the application instance.
  • the edge network configuration server may also carry the IP address of the EES corresponding to the IP address of the application instance in a third response message and send it to the UE.
  • Step 1208 The UE receives a third response message returned by the edge network configuration server based on the third request message.
  • the UE may obtain the IP address of the application instance from the third response message, where the IP address of the application instance is the IP address of the application instance corresponding to the current location of the UE.
  • the UE may receive an update indication message from the edge configuration network server or EES.
  • the update indication message is used to indicate to update the IP address of the application instance of the application.
  • the update indication message may be used to indicate the user equipment The location changes, or it is used to indicate that the edge network where the user equipment is located has changed, or it is used to instruct the receiver to obtain the updated IP address by sending a request message.
  • the step of receiving the update indication message by the UE may be performed before 1201. For example, after receiving the update indication message, the UE may obtain the updated IP address through steps 1201 to 1208, which corresponds to the updated edge network information.
  • the step of receiving the update instruction message can also be performed after step 1208.
  • the UE After the UE obtains the IP address of the application instance of the application by performing steps 1201 to 1208, if it receives the update instruction message, it can pass 1201 again. Go to step 1208 to obtain the updated IP address, which corresponds to the updated edge network information.
  • the two implementations of the edge network configuration server or the EES sending the update indication message to the UE have been explained in step 906, and will not be repeated here.
  • the UE By sending an update instruction message to the UE, the UE can re-obtain the IP address of the application instance of the application when it needs to access the application, and provide a trigger condition for updating the IP address of the application instance, which can ensure the IP address of the application instance. reliability.
  • step 1201 to step 1208 may be a request-response (request-response) mechanism or a subscription-notification (subscribe-notification) mechanism. If it is a subscription-notification mechanism, the UE may send a subscription message to the edge network configuration server in step 1201. If the location information of the UE corresponds to the IP address of the application instance of the application or its effective area information is updated, the edge network in step 1207 The configuration server may send a notification message to the UE, and in step 1208, the UE may receive the notification message.
  • request-response request-response
  • subscribe-notification subscribe-notification
  • the UE interacts with the edge network configuration server, and uses the location information of the UE and the application identifier to obtain the IP address of the corresponding application instance from the edge network configuration server.
  • the edge network configuration server can resolve the application by itself
  • the IP address of the instance can also interact with the DNS server to obtain the IP address of the application instance from the DNS server. Since the IP address of the application instance is determined according to the location information of the UE, it is the IP of the application instance closest to the UE. Address, so it can meet the scheduling needs of third-party application providers.
  • the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
  • the first request message sent by the UE to the edge network configuration server carries the location information of the UE.
  • the location information of the UE may not be carried in the first request message, but the identification of the UE.
  • the edge network configuration server may obtain the location information of the UE according to the identification of the UE.
  • the address obtaining method of the application example will be described below. It should be noted that the embodiment corresponding to FIG. 13 focuses on the differences between the embodiment corresponding to FIG. 12, and the same steps as the embodiment corresponding to FIG. 12, please refer to the embodiment corresponding to FIG. 12. Details are not described in the corresponding embodiment.
  • FIG. 13 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 13, the method includes the following steps:
  • Step 1301 The UE sends a third request message to the edge network configuration server, where the third request message carries the identity of the application and the identity of the UE.
  • the identification of the application is the same as the identification of the application in step 1201, and the identification of the UE is the same as the identification of the application in step 1001, and will not be repeated.
  • Step 1302 after receiving the third request message, the edge network configuration server obtains the location information of the UE according to the identifier of the UE.
  • the edge network configuration server obtains the location information of the UE according to the identifier of the UE in the same way as the edge network configuration server obtains the location information of the UE according to the identifier of the UE in step 1002, and will not be repeated.
  • Step 1303 The edge network configuration server determines the corresponding edge network information according to the location information of the UE.
  • Step 1304 The edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
  • Step 1305 After receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
  • Step 1306 The DNS server sends a first response message to the edge network configuration server, where the first response message carries the IP address of the application instance.
  • Step 1303 to step 1306 are optional steps, the same as step 1202 to step 1205, and will not be repeated here.
  • Step 1307 The edge network configuration server obtains the IP address of the application instance.
  • Step 1308 The edge network configuration server sends a third response message to the UE, where the third response message carries the IP address of the application instance.
  • Step 1309 The UE receives a third response message returned by the edge network configuration server based on the third request message.
  • Steps 1307 to 1309 are the same as steps 1206 to 1208, and will not be repeated here.
  • the UE interacts with the edge network configuration server, and uses the UE identifier and the application identifier to obtain the IP address of the application instance from the edge network configuration server.
  • the edge network configuration server can determine the UE's IP address according to the UE identifier. Location information, and then resolve the IP address of the application instance based on the location information of the UE. You can also obtain the IP address of the application instance from the DNS server by interacting with the DNS server, because the IP address of the application instance is based on the location of the UE The information determined is the IP address of the application instance closest to the UE, so it can meet the scheduling requirements of third-party application providers.
  • the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
  • the UE sends a third request message to the edge network configuration server.
  • the edge network configuration server requests the DNS server for the IP address of the application instance, it returns the IP address of the application instance to the UE.
  • the method shown in the embodiment corresponding to FIG. 12 can also be applied to a third server.
  • the following will take the third server as an EES as an example.
  • the address acquisition method of the application instance is performed Description. It should be noted that the embodiment corresponding to FIG. 14 focuses on the differences between the embodiment corresponding to FIG. 12, and the same steps as the embodiment corresponding to FIG. 12 also refer to the embodiment corresponding to FIG. 12. Details are not described in the corresponding embodiment.
  • FIG. 14 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 14, the method includes the following steps:
  • Step 1401. The EES sends a third request message to the edge network configuration server, where the third request message carries the identification of the application and the location information of the UE.
  • the EES subscribes to the location information of the UE from the 3GPP network, and receives the notification message returned by the 3GPP network based on the subscription, and the notification information carries the location information of the UE.
  • the location information of the UE can also be DNAI.
  • Step 1402 after receiving the third request message, the edge network configuration server determines the corresponding edge network information according to the location information of the UE.
  • Step 1403 The edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
  • Step 1404 After receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the edge network information according to the identification of the application and the information of the edge network.
  • Step 1405 The DNS server sends a first response message to the edge network configuration server, where the first response message carries the IP address of the application instance.
  • Step 1402 to step 1405 are optional steps, which are the same as step 1202 to step 1205, and will not be described again.
  • Step 1406 The edge network configuration server obtains the IP address of the application instance.
  • Step 1407 The edge network configuration server sends a third response message to the EES, where the third response message carries the IP address of the application instance.
  • Steps 1406 to 1407 are the same as steps 1206 to 1207, and will not be repeated here.
  • Step 1408 The EES receives a third response message returned by the edge network configuration server based on the third request message.
  • the EES interacts with the edge network configuration server, and the location information of the UE and the application identifier are used to obtain the IP address of the application instance from the edge network configuration server.
  • the edge network configuration server can resolve the application instance's IP address by itself.
  • the IP address can also interact with the DNS server to obtain the IP address of the application instance from the DNS server. Since the IP address of the application instance is determined according to the location information of the UE, it is the IP address of the application instance closest to the UE. Therefore, it can meet the scheduling needs of third-party application providers.
  • the EES sends the third request message to the edge network configuration server.
  • the edge network configuration server requests the IP address of the application instance from the DNS server, it returns the IP address of the application instance to the EES.
  • EES can directly request the IP address of the application instance from the DNS server, which will be described in the embodiment corresponding to FIG. 15 below.
  • FIG. 15 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 15, the method includes the following steps:
  • Step 1501 The EES sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
  • the EES is deployed in the edge network, and the EES can obtain the information of the edge network from the configuration information of the edge network.
  • the EES subscribes to the user plane management event of the UE from the 3GPP network, and receives the notification message of the event returned by the 3GPP network based on the subscription, and the notification information carries the information of the edge network.
  • notification messages can be received, and information about the edge network can be obtained from the notification messages, providing a way to instantly and accurately obtain information about the edge network.
  • Step 1502 after receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
  • Step 1502 is the same as step 1404 and will not be repeated here.
  • Step 1503 The DNS server sends a first response message to the EES, where the first response message carries the IP address of the application instance.
  • Step 1504 The EES receives the first response message returned by the DNS server based on the first request message.
  • the EES interacts with the DNS server, and the information of the edge network and the identification of the application are used to obtain the IP address of the application instance from the DNS server, so that EES can quickly and accurately obtain the address of the nearest application instance. Meet the scheduling needs of third-party application providers.
  • Each of the above embodiments introduces the process for the UE or EES to obtain the IP address of the application instance. After the UE or EES obtains the IP address of the application instance, it can also obtain the EES corresponding to the IP address of the application instance from the edge network configuration server.
  • the information such as the IP address of EES, will be described in the embodiment corresponding to FIG. 16 below.
  • FIG. 16 is a flowchart of an EES information acquisition method provided by an embodiment of the present application. As shown in FIG. 16, the method includes the following steps:
  • Step 1600 The target device obtains the IP address of the application instance of the application.
  • the target device may be a UE or an EES, and the process for the target device to obtain the IP address of the application instance of the application has been described in the various embodiments shown in FIG. 8 to FIG. 15 and will not be repeated here.
  • Step 1601 The target device sends a query request message to the edge network configuration server, where the query request message carries the IP address of the application instance of the application.
  • the query request message is used to request to obtain the IP address of the EES corresponding to the IP address of the application instance of the application.
  • the query request message may also carry DNAI. Accordingly, the query request message is used to request to obtain the IP address of the application instance of the application and the IP address of the EES corresponding to the DNAI.
  • DNAI By carrying DNAI in the query request message, in the process of application migration, even if the application instances of the application with the same IP address are deployed in different edge networks, the corresponding edge network can be accurately determined, and the corresponding EES can be obtained. IP address.
  • Step 1602 after receiving the query request message, the edge network configuration server queries the IP address of the EES corresponding to the IP address of the application instance of the application.
  • the edge network configuration server can query the correspondence between the IP address of the application instance and the IP address of the EES according to the IP address of the application instance of the application to obtain the corresponding The IP address of the EES.
  • the edge network configuration server can query the IP address of the application instance, DNAI and the IP address of EES according to the IP address of the application instance of the application and the DNAI. Correspondence between the two, get the IP address of the corresponding EES.
  • Step 1603 The edge network configuration server sends a query response message to the target device.
  • the query response message carries the IP address of the EES corresponding to the IP address of the application instance.
  • the edge network configuration server can carry the IP address of the queried EES after querying the IP address of the EES corresponding to the IP address of the application instance of the application Return to the target device in the query response message.
  • the edge network configuration server can query the IP address of the application instance of the application and the IP address of the EES corresponding to the DNAI.
  • the IP address of the EES is carried in the query response message and returned to the target device.
  • Step 1604 The target device receives the query response message returned by the edge network configuration server based on the query request message.
  • the target device may obtain the IP address of the EES corresponding to the IP address of the application instance of the application from the query response message.
  • the target device can obtain the IP address of the application instance of the application and the IP address of the EES corresponding to the DNAI from the query response message.
  • the UE or EES after the UE or EES obtains the IP address of the application instance of the application, it is sent to the edge network configuration server by carrying the IP address of the application instance in the query request message, and the edge network configuration server according to the application The IP address of the instance, query and return the IP address of the corresponding EES, so that the UE or EES can obtain the IP address of the EES corresponding to the IP address of the application instance.
  • the query request message sent by the UE or EES to the edge network configuration server can also carry DNAI, so that the edge network configuration server queries and returns the corresponding DNAI according to the IP address of the application instance and the DNAI.
  • the IP address of the EES enables the UE or EES to obtain the IP address of the application instance and the IP address of the EES corresponding to DNAI.
  • the user equipment may request from the second server the IP addresses of all application instances corresponding to the location information of the user equipment.
  • FIG. 17 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a user equipment or a third server. As shown in FIG. 17, the method includes the following steps:
  • Step 1701 Send a fourth request message to the second server, where the fourth request message carries the location information of the user equipment or the identifier of the user equipment.
  • Step 1702 Receive a fourth response message returned by the second server based on the fourth request message, where the fourth response message carries the IP addresses of all application instances corresponding to the location information of the user equipment.
  • the method provided by the embodiments of the present application obtains the IP address of the corresponding application instance from the second server by using the location information of the user equipment or the identification of the user equipment, which can quickly and accurately obtain the address of the application instance nearest to the Requirements for dispatching by third-party application providers.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
  • the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
  • the fourth response message also carries valid area information of the IP address of each application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
  • FIG. 18 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a second server. As shown in FIG. 18, the method includes the following steps:
  • Step 1801 Receive a fourth request message from a target device, where the fourth request message carries location information of the user equipment or an identifier of the user equipment.
  • Step 1802 according to the location information of the user equipment or the identifier of the user equipment, obtain the IP addresses of all application instances corresponding to the location information of the user equipment.
  • Step 1803 Send a fourth response message to the target device, where the fourth response message carries the IP addresses of all application instances corresponding to the location information of the user equipment.
  • the method provided by the embodiment of the present application determines and returns the address of the corresponding application instance to the target device by receiving a request message from a target device, and according to the location information of the user device or the identifier of the user device carried in the request message, so that the target device It can quickly and accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
  • the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
  • the fourth response message also carries valid area information of the IP address of each application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
  • the obtaining the IP addresses of all application instances corresponding to the location information of the user equipment according to the location information of the user equipment or the identification of the user equipment includes: determining the Location information of the user equipment; according to the location information of the user equipment, obtain the IP addresses of all application instances corresponding to the location information of the user equipment.
  • obtaining the IP addresses of all application instances corresponding to the location information of the user equipment according to the location information of the user equipment includes: querying the location information of the user equipment according to the location information of the user equipment and The corresponding relationship between the IP addresses of the application instances is obtained to obtain the IP addresses of all application instances corresponding to the location information of the user equipment.
  • the obtaining the IP addresses of all application instances corresponding to the location information of the user equipment according to the location information of the user equipment includes: determining the information of the edge network according to the location information of the user equipment; The information of the edge network obtains the IP addresses of all application instances corresponding to the location information of the user equipment.
  • the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
  • the determining the corresponding edge network information according to the location information of the user equipment includes: querying the correspondence between the location information of the user equipment and the information of the edge network according to the location information of the user equipment Relationship to obtain the edge network information corresponding to the location information of the user equipment.
  • the information of the edge network is the IP address of the third server
  • determining the information of the edge network according to the location information of the user equipment includes: determining the corresponding DNAI according to the location information of the user equipment ; According to the DNAI, determine the IP address of the third server.
  • the determining the location information of the user equipment according to the identification of the user equipment includes any of the following: requesting the location information of the user equipment from the access and mobility management function AMF, and receiving the The AMF returns a response message based on the request, the response message carries the location information of the user equipment; or, subscribes the location information of the user equipment to the AMF, the third server, or the session management function SMF, and receives the AMF, the third server, or SMF Based on the notification message returned by the subscription, the notification message carries the location information of the user equipment.
  • the UE can request the IP addresses of all application instances corresponding to the location information of the UE from the edge network configuration server. The following will be described in the embodiment corresponding to FIG. 19.
  • FIG. 19 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 19, the method includes the following steps:
  • Step 1901 The UE sends a fourth request message to the edge network configuration server, where the fourth request message carries the location information of the UE or the identity of the UE.
  • the location information of the UE in this step 1901 is the same as the location information of the UE in step 901, and the identity of the UE in this step 1901 is the same as the identity of the UE in step 1001, and will not be repeated.
  • Step 1902 after receiving the fourth request message, the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE according to the location information of the UE or the identity of the UE.
  • the edge network configuration server can first obtain the UE's location information according to the UE's identity, and then according to the UE's location Information to obtain the IP addresses of all application instances corresponding to the location information of the UE.
  • the edge network configuration server obtains the location information of the UE according to the identity of the UE in the same way as obtaining the location information of the UE according to the identity of the UE in step 1502, and will not be repeated.
  • the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE according to the location information of the UE, including: the edge network configuration server queries the UE’s location information according to the location information of the UE.
  • the corresponding relationship between the location information and the IP address of the application instance obtains the IP addresses of all application instances corresponding to the location information of the UE.
  • the edge network configuration server may store the correspondence between the location information of the UE and the IP address of the application instance in a local database.
  • the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE according to the location information of the UE, including: determining the information of the edge network according to the location information of the UE; According to the information of the edge network, the IP addresses of all application instances corresponding to the location information of the UE are obtained.
  • step 902 The process of determining the corresponding edge network information by the edge network configuration server according to the location information of the UE is the same as that of step 902, and will not be repeated.
  • the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE.
  • the edge network configuration server may send a fifth request message to the DNS server.
  • the fifth request message carries the edge network information.
  • the DNS server can store the corresponding relationship between the information of the edge network and the IP address of the application instance, so that the DNS server can query the corresponding relationship according to the information of the edge network carried in the fifth request message, and obtain all the information corresponding to the edge network.
  • the IP address of the application instance Similar to step 905, the DNS server can also determine the effective zone information corresponding to the IP address of the application instance.
  • the edge network configuration server can also determine the effective area information corresponding to the IP address of the application instance.
  • Step 1903 The edge network configuration server sends a fourth response message to the UE, where the fourth response message carries the IP addresses of all application instances corresponding to the location information of the UE.
  • Step 1904 The UE receives a fourth response message returned by the edge network configuration server based on the fourth request message.
  • the UE interacts with the edge network configuration server, and the location information of the UE is used to obtain the IP addresses of all application instances corresponding to the location information of the UE from the edge network configuration server.
  • the edge network configuration server can resolve by itself
  • the IP address of all application instances can also interact with the DNS server to request the IP address of the application instance from the DNS server.
  • the UE can quickly and accurately provide the corresponding (recent) application instance to meet the schedule of the third-party application provider. demand.
  • FIG. 20 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 20, the device includes:
  • the obtaining module 2001 is used to obtain information about the edge network
  • the sending module 2002 is configured to send a first request message to the first server, where the first request message carries the identifier of the application and the information of the edge network;
  • the receiving module 2003 is configured to receive a first response message returned by the first server based on the first request message, the first response message carrying the Internet Protocol IP address of the application instance of the application corresponding to the edge network information.
  • the obtaining module 2001 is configured to execute the process of sending the second request message in step 901 and step 1001, and the process of receiving the second response message in step 904 and step 1004.
  • the second response message also carries effective area information corresponding to the information of the edge network, and the effective area information is used to indicate an area to which the information of the edge network applies.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; Longitude and latitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
  • the obtaining module 2001 is configured to perform the process of obtaining edge network information from locally stored edge network configuration information in step 902.
  • the method is applied to a third server, and the obtaining module 2001 is configured to perform the process of subscribing to user plane management events from the mobile data network in step 1501 to obtain information of the edge network.
  • the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
  • the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
  • the IP address of the edge network or the IP address of the third server is an IP address segment.
  • the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
  • the identification of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
  • FIG. 21 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 21, the device includes:
  • the sending module 2101 is configured to send a third request message to the second server, the third request message carrying the application identifier and user equipment information, and the user equipment information is the location information of the user equipment or the user equipment identifier;
  • the receiving module 2102 is configured to receive a third response message returned by the second server based on the third request message, the third response message carrying the Internet Protocol IP address of the application instance of the application corresponding to the location information of the user equipment.
  • the device when the method is applied to a third server, the device further includes:
  • the subscription module is used to perform the process of subscribing to the location information of the UE in 1401;
  • the receiving module 2102 is also used to execute the process of receiving notification messages in 1401.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; Longitude and latitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
  • the third response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
  • the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
  • the identification of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
  • FIG. 22 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 22, the device includes:
  • the receiving module 2201 is configured to receive a second request message from a target device, where the second request message carries the location information of the user equipment or the identifier of the user equipment;
  • the determining module 2202 is configured to determine the corresponding edge network information according to the location information of the user equipment or the identifier of the user equipment;
  • the sending module 2203 is configured to send a second response message to the target device, where the second response message carries information about the edge network.
  • the determining module 2202 is used to perform the process of determining corresponding edge network information in step 902, step 1002, step 1202, step 1303, and step 1402.
  • the determining module 2202 is configured to perform the process of determining the location information of the user equipment according to the identifier of the user equipment in step 1002 and step 1302.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
  • the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
  • FIG. 23 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 23, the device includes:
  • the receiving module 2301 is configured to receive a third request message from a target device, the third request message carrying an application identifier and user equipment information, and the user equipment information is the location information of the user equipment or the user equipment identifier;
  • the obtaining module 2302 is configured to obtain the Internet Protocol IP address of the application instance of the application corresponding to the information of the user equipment according to the identification of the application and the information of the user equipment;
  • the sending module 2303 is configured to send a third response message to the target device, the third response message carrying the IP address of the application instance of the application corresponding to the location information of the user equipment.
  • the obtaining module 2302 is configured to perform the process of obtaining the IP address of the application instance in step 1206, step 1307, and step 1406.
  • the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
  • the obtaining module 2302 is configured to perform the process of determining the location information of the user equipment according to the identifier of the user equipment in step 1302.
  • the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
  • FIG. 24 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 24, the device includes:
  • the receiving module 2401 is configured to receive a first request message from the target device, where the first request message carries the identification of the application and the information of the edge network;
  • the determining module 2402 is configured to determine the Internet Protocol IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network;
  • the sending module 2403 is configured to send a first response message to the target device, where the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
  • the determining module 2402 is used to perform the process of determining the IP address of the application instance in step 1005, step 1204, step 1305, step 1404, and step 1502.
  • the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
  • the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
  • the address obtaining device of the application instance provided in the above embodiment obtains the address of the application instance
  • only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be different according to needs.
  • the function module is completed, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above.
  • the address acquisition device of the application example provided by the above-mentioned embodiment and the address acquisition method embodiment of the application example belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be repeated here.
  • a computer-readable storage medium such as a memory including instructions, which can be executed by a processor to complete the address acquisition method of the application example in the foregoing embodiment.
  • the computer-readable storage medium may be a read-only memory (read-only memory, abbreviated as: ROM), a random access memory (random access memory, abbreviated as: RAM), a compact disc read-only memory, abbreviated as: CD-ROM), magnetic tapes, floppy disks and optical data storage devices.
  • a computer program product includes: computer program code, which when the computer program code is executed by a computer device, causes the computer device to execute the address obtaining method of the application example.
  • the present application also provides a chip including at least one instruction, and when the chip runs the instruction, the method for obtaining the address of the application example in the foregoing embodiment is implemented.
  • the present application also provides a chip including program instructions, and when the chip runs the program instructions, the method for obtaining the address of the application example shown in the foregoing embodiment is implemented.
  • the computer program product includes one or more computer program instructions.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
  • the computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer program instructions can be passed from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a digital video disc (DVD), or a semiconductor medium (for example, a solid state hard disk).
  • multiple in this application means two or more than two, for example, multiple data packets refer to two or more data packets.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium can be read-only memory, magnetic disk or optical disk, etc.

Abstract

Provided by the present application is a method, device and apparatus for address acquisition of an application example and a storage medium, belonging to the technical field of Internet communication. The method comprises: acquiring information of an edge network; sending a first request message to a first server, the first request message carrying an identifier of an application and the information of the edge network; receiving a first response message returned by the first server on the basis of the first request message, the first response message carrying the Internet Protocol (IP) address of an application example of the application corresponding to the information of the edge network. The present application can satisfy the demand of scheduling by a third application provider.

Description

应用实例的地址获取方法、装置、设备及存储介质Method, device, equipment and storage medium for obtaining address of application example
本申请要求于2019年07月11日提交的申请号为201910626395.9、发明名称为“应用实例的地址获取方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on July 11, 2019, with the application number 201910626395.9 and the invention title "Method, device, equipment and storage medium for obtaining addresses of application examples", the entire content of which is incorporated by reference In this application.
本申请要求于2019年08月23日提交的申请号为201910785831.7、发明名称为“应用实例的地址获取方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on August 23, 2019 with the application number 201910785831.7 and the title of the invention "Method, device, equipment and storage medium for obtaining addresses of application examples", the entire contents of which are incorporated by reference In this application.
技术领域Technical field
本申请涉及互联网通信领域,特别涉及一种应用实例的地址获取方法、装置、设备及存储介质。This application relates to the field of Internet communications, and in particular to an address acquisition method, device, equipment and storage medium for application examples.
背景技术Background technique
移动边缘计算(mobile edge computing,MEC)是一种将数据处理和数据计算下沉到网络边缘侧,实现对网络边缘侧的快速计算,从而实现应用的快速服务响应的技术。MEC为应用开发人员和内容提供商提供了云计算功能,以及在网络边缘的信息技术(Information Technology,IT)服务环境。业务的多个应用实例会分别分布式部署在多个MEC平台上,如部署在边缘网络中,业务的每个应用实例为一定范围内的用户设备(user equipment,UE)提供服务。Mobile edge computing (MEC) is a technology that sinks data processing and data calculation to the edge of the network to realize rapid calculations on the edge of the network, thereby realizing rapid service response of applications. MEC provides cloud computing functions for application developers and content providers, as well as an Information Technology (IT) service environment at the edge of the network. Multiple application instances of the business will be distributed and deployed on multiple MEC platforms, such as deployed in an edge network. Each application instance of the business provides services for user equipment (UE) within a certain range.
在MEC的商业场景中,第三方应用提供商会产生希望自己调度用户(哪些用户访问哪个应用实例)的需求,但相关技术无法为用户设备提供对应的应用实例,无法满足第三方应用提供商调度的需求。In the business scenario of MEC, third-party application providers will have the need to schedule users (which users access which application instance) by themselves, but related technologies cannot provide corresponding application instances for user equipment and cannot meet the scheduling requirements of third-party application providers. demand.
发明内容Summary of the invention
本申请实施例提供了一种应用实例的地址获取方法、装置、设备及存储介质,能够解决相关技术中无法满足第三方应用提供商调度的需求的技术问题。所述技术方案如下:The embodiments of the present application provide a method, device, device, and storage medium for obtaining an address of an application instance, which can solve a technical problem in related technologies that cannot meet the scheduling requirements of a third-party application provider. The technical solution is as follows:
第一方面,提供一种应用实例的地址获取方法,所述方法包括:获取边缘网络的信息;向第一服务器发送第一请求消息,所述第一请求消息携带应用的标识和所述边缘网络的信息;接收所述第一服务器基于所述第一请求消息返回的第一响应消息,所述第一响应消息携带所述边缘网络的信息对应的所述应用的应用实例的互联网协议(internet protocol,IP)地址。In a first aspect, a method for obtaining an address of an application instance is provided. The method includes: obtaining information of an edge network; sending a first request message to a first server, the first request message carrying an application identifier and the edge network Information; receiving the first response message returned by the first server based on the first request message, the first response message carrying the Internet protocol of the application instance of the application corresponding to the information about the edge network (internet protocol , IP) address.
本申请实施例提供的方法,通过获取边缘网络的信息,使用应用的标识和边缘网络的信息从第一服务器获取对应的应用实例的IP地址,能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided in the embodiments of the present application obtains the information of the edge network, uses the identification of the application and the information of the edge network to obtain the IP address of the corresponding application instance from the first server, and can quickly and accurately obtain the address of the nearest application instance. , To meet the scheduling needs of third-party application providers.
在一种可能实现方式中,所述方法还包括:接收第二服务器或第三服务器的更新指示消息,所述更新指示消息用于指示更新所述应用的应用实例的IP地址。In a possible implementation, the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
在一种可能实现方式中,所述更新指示消息还包括更新后的边缘网络的信息;所述获取边缘网络的信息包括:接收所述更新后的边缘网络的信息。In a possible implementation manner, the update instruction message further includes updated edge network information; and the obtaining of the edge network information includes: receiving the updated edge network information.
本申请实施例提供的方法,通过在接收更新指示消息后,获取该应用的应用实例的IP地址,提供了一种更新应用实例的IP地址的触发条件,可以保证应用实例的IP地址的可靠性。The method provided in the embodiment of the application provides a trigger condition for updating the IP address of the application instance by obtaining the IP address of the application instance of the application after receiving the update instruction message, which can ensure the reliability of the IP address of the application instance .
在一种可能实现方式中,所述接收第二服务器或第三服务器的更新指示消息,包括:向所述第二服务器或所述第三服务器发送订阅信息,所述订阅信息用于订阅所述用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,接收所述更新指示消息。In a possible implementation manner, the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the For a change event of the edge network corresponding to the user equipment, when the edge network corresponding to the user equipment changes, the update instruction message is received.
本申请实施例提供的方法,通过向第二服务器或第三服务器订阅事件的方式,可以获得第二服务器或第三服务器基于订阅返回的更新指示消息,提供了一种即时准确地获取更新指示消息的方式。The method provided in the embodiments of the present application can obtain the update instruction message returned by the second server or the third server based on the subscription by subscribing to the event from the second server or the third server, and provides an instant and accurate acquisition of the update instruction message The way.
在一种可能实现方式中,所述获取边缘网络的信息包括:向第二服务器发送第二请求消息,所述第二请求消息携带所述用户设备的位置信息或者所述用户设备的标识;接收所述第二服务器基于所述第二请求消息返回的第二响应消息,所述第二响应消息携带所述边缘网络的信息。In a possible implementation manner, the obtaining the information of the edge network includes: sending a second request message to a second server, the second request message carrying the location information of the user equipment or the identifier of the user equipment; receiving; A second response message returned by the second server based on the second request message, where the second response message carries the information of the edge network.
本申请实施例提供的方法,通过用户设备根据用户设备的位置信息或用户设备的标识,从第二服务器获取边缘网络的信息,得到的边缘网络的信息与用户设备的位置信息对应,这样根据该边缘网络的信息获得的应用实例的IP地址与用户设备的位置信息对应,是当前距离最近的应用实例,满足了第三方应用提供商调度的需求。In the method provided by the embodiments of the present application, the user equipment obtains the edge network information from the second server according to the location information of the user equipment or the user equipment identifier, and the obtained edge network information corresponds to the location information of the user equipment, so that according to the The IP address of the application instance obtained by the information of the edge network corresponds to the location information of the user equipment, which is the current closest application instance, and meets the scheduling needs of third-party application providers.
在一种可能实现方式中,所述第二响应消息还携带所述边缘网络的信息对应的有效区域信息,所述有效区域信息用于指示所述边缘网络的信息适用的区域。In a possible implementation manner, the second response message also carries effective area information corresponding to the information of the edge network, and the effective area information is used to indicate an area to which the information of the edge network applies.
本申请实施例提供的方法,通过在基于请求消息返回的响应消息中同时携带边缘网络的信息以及对应的有效区域信息,使得接收方能够得知边缘网络的信息适用的区域,从而在该区域内使用该边缘网络的信息获取应用实例的IP地址,提高了应用实例的IP地址获取的准确性。The method provided by the embodiment of the present application carries the information of the edge network and the corresponding effective area information in the response message returned based on the request message, so that the receiver can know the area to which the information of the edge network is applicable, so as to be in the area Using the information of the edge network to obtain the IP address of the application instance improves the accuracy of obtaining the IP address of the application instance.
在一种可能实现方式中,所述用户设备的位置信息为下述至少一种:所述用户设备的小区标识;所述用户设备的跟踪区标识(tracking area identity,TAI);所述用户设备的地理位置信息或者地理区域信息;所述用户设备的经纬度信息;所述用户设备对应的数据网络接入标识(data network access identifier,DNAI)。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity (TAI) of the user equipment; and the user equipment The geographic location information or geographic area information of the user equipment; the latitude and longitude information of the user equipment; the data network access identifier (DNAI) corresponding to the user equipment.
本申请实施例提供的方法,通过将用户设备的小区标识、TAI、地理位置信息、地理区域信息、DNAI中的至少一种信息作为用户设备的位置信息,提高了用户设备的位置信息的灵活性和可靠性,从而根据该位置信息获取应用实例的IP地址,提高了应用实例的IP地址可靠性高。The method provided in the embodiments of the present application improves the flexibility of the location information of the user equipment by using at least one of the cell identity, TAI, geographic location information, geographic area information, and DNAI of the user equipment as the location information of the user equipment. And reliability, thereby obtaining the IP address of the application instance according to the location information, and improving the reliability of the IP address of the application instance.
在一种可能实现方式中,所述获取边缘网络的信息包括:根据所述用户设备的位置信息,从本地存储的边缘网络配置信息中,获取所述边缘网络的信息,所述边缘网络配置信息包括至少一个边缘网络的信息。In a possible implementation manner, the obtaining the information of the edge network includes: obtaining the information of the edge network from the locally stored edge network configuration information according to the location information of the user equipment, and the edge network configuration information Contains information about at least one edge network.
本申请实施例提供的方法,通过根据用户设备的位置信息,从多个边缘网络的信息中,获取用户设备的位置信息对应的边缘网络的信息,提供了一种准确快速获取边缘网络的信息的方式。The method provided in the embodiments of the present application provides an accurate and rapid method for obtaining edge network information from multiple edge network information based on the location information of the user equipment. the way.
在一种可能实现方式中,所述方法应用于第三服务器,所述第三服务器部署在所述边缘网络中,所述获取边缘网络的信息包括:所述第三服务器从移动数据网络订阅所述用户设备的用户面管理事件,接收所述移动数据网络基于订阅返回的所述用户面管理事件的通知消息,所述通知信息中携带所述边缘网络的信息。In a possible implementation manner, the method is applied to a third server deployed in the edge network, and the acquiring information about the edge network includes: the third server subscribes to the mobile data network The user plane management event of the user equipment receives a notification message of the user plane management event returned by the mobile data network based on subscription, and the notification information carries the information of the edge network.
本申请实施例提供的方法,通过从移动数据网络订阅事件的方式,可以接收到通知消息,从通知消息中获得边缘网络的信息,提供了一种即时准确地获取边缘网络的信息的方式。The method provided in the embodiments of the present application can receive notification messages by subscribing to events from a mobile data network, and obtain edge network information from the notification messages, providing a way to instantly and accurately obtain edge network information.
在一种可能实现方式中,所述第一响应消息还携带所述应用实例的IP地址对应的有效区域信息,所述有效区域信息用于指示所述应用实例的IP地址适用的区域。In a possible implementation manner, the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate an area to which the IP address of the application instance applies.
本申请实施例提供的方法,通过在基于请求消息返回的响应消息中同时携带应用实例的IP地址以及对应的有效区域信息,使得接收方能够得知应用实例的IP地址适用的区域,从而在该区域内使用该应用实例的IP地址,保证了应用实例的IP地址的准确性。The method provided by the embodiment of the present application carries the IP address of the application instance and the corresponding effective area information in the response message returned based on the request message, so that the receiver can know the area to which the IP address of the application instance is applicable, so that Using the IP address of the application instance in the area ensures the accuracy of the IP address of the application instance.
在一种可能实现方式中,所述边缘网络的信息为下述至少一种:所述边缘网络对应的DNAI;所述边缘网络的IP地址;第三服务器的IP地址,所述第三服务器部署在所述边缘网络中。In a possible implementation manner, the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server deployment In the edge network.
本申请实施例提供的方法,通过将边缘网络对应的DNAI、边缘网络的IP地址、第三服务器的IP地址中的至少一种信息作为边缘网络的信息,提高了边缘网络的信息的灵活性和可靠性,使得根据该位置信息获取的应用实例的IP地址可靠性高。The method provided in the embodiments of the present application uses at least one of the DNAI corresponding to the edge network, the IP address of the edge network, and the IP address of the third server as the information of the edge network, thereby improving the flexibility and the information of the edge network. Reliability makes the IP address of the application instance obtained according to the location information highly reliable.
在一种可能实现方式中,所述边缘网络的IP地址或者所述第三服务器的IP地址为IP地址段。In a possible implementation manner, the IP address of the edge network or the IP address of the third server is an IP address segment.
在一种可能实现方式中,所述用户设备的标识为下述至少一种:所述用户设备的IP地址;所述用户设备的通用公共签约标识符(generic public subscription identifier,GPSI);所述用户设备的移动台综合业务数字网(mobile station integrated services digital network,MSISDN)。In a possible implementation manner, the identifier of the user equipment is at least one of the following: an IP address of the user equipment; a generic public subscription identifier (GPSI) of the user equipment; The mobile station integrated services digital network (MSISDN) of the user equipment.
本申请实施例提供的方法,通过将用户设备的IP地址、GPSI、MSISDN中的至少一种信息作为用户设备的标识,提高了用户设备的标识的灵活性和可靠性。The method provided in the embodiments of the present application improves the flexibility and reliability of the user equipment identification by using at least one of the user equipment's IP address, GPSI, and MSISDN as the user equipment identification.
在一种可能实现方式中,所述应用的标识为下述至少一种:应用的标识符;应用的统一资源定位符;应用的全量域名;应用的应用名称。In a possible implementation manner, the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
本申请实施例提供的方法,通过将应用的标识符、统一资源定位符、全量域名、应用名称中的至少一种信息作为应用的标识,提高了应用的标识的灵活性和可靠性。The method provided in the embodiments of the present application improves the flexibility and reliability of the application identifier by using at least one of the application identifier, uniform resource locator, full domain name, and application name as the application identifier.
第二方面,提供一种应用实例的地址获取方法,所述方法包括:向第二服务器发送第三请求消息,所述第三请求消息携带应用的标识和用户设备的信息,所述用户设备的信息为所述用户设备的位置信息或者所述用户设备的标识;接收所述第二服务器基于所述第三请求消息返回的第三响应消息,所述第三响应消息携带所述用户设备的位置信息对应的所述应用的应用实例的互联网协议IP地址。In a second aspect, a method for obtaining an address of an application instance is provided. The method includes: sending a third request message to a second server, the third request message carrying an application identifier and user equipment information, and the user equipment The information is the location information of the user equipment or the identifier of the user equipment; a third response message returned by the second server based on the third request message is received, the third response message carrying the location of the user equipment The Internet Protocol IP address of the application instance of the application corresponding to the information.
本申请实施例提供的方法,通过使用应用的标识和用户设备的信息,从第二服务器获取对应的应用实例的IP地址,能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided in the embodiments of this application obtains the IP address of the corresponding application instance from the second server by using the identification of the application and the information of the user equipment, which can quickly and accurately obtain the address of the application instance closest to the current application, satisfying third-party applications Provider scheduling requirements.
在一种可能实现方式中,所述方法还包括:接收所述第二服务器或第三服务器的更新指示消息,所述更新指示消息用于指示更新所述应用的应用实例的IP地址。In a possible implementation manner, the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
本申请实施例提供的方法,通过在接收更新指示消息后,获取应用的应用实例的IP地址,提供了一种更新应用实例的IP地址的触发条件,可以保证应用实例的IP地址的可靠性。The method provided by the embodiment of the present application provides a trigger condition for updating the IP address of the application instance by obtaining the IP address of the application instance of the application after receiving the update instruction message, which can ensure the reliability of the IP address of the application instance.
在一种可能实现方式中,所述接收第二服务器或第三服务器的更新指示消息,包括:向所述第二服务器或所述第三服务器发送订阅信息,所述订阅信息用于订阅所述用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,接收所述更新指示消息。In a possible implementation manner, the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the For a change event of the edge network corresponding to the user equipment, when the edge network corresponding to the user equipment changes, the update instruction message is received.
本申请实施例提供的方法,通过向第二服务器或第三服务器订阅事件的方式,可以获得第二服务器或第三服务器基于订阅返回的更新指示消息,提供了一种即时准确地获取更新指示消息的方式。The method provided in the embodiments of the present application can obtain the update instruction message returned by the second server or the third server based on the subscription by subscribing to the event from the second server or the third server, and provides an instant and accurate acquisition of the update instruction message The way.
在一种可能实现方式中,所述方法应用于第三服务器时,所述向第二服务器发送第三请求消息之前,所述方法还包括:所述第三服务器从移动数据网络订阅所述用户设备的位置信息,接收所述移动数据网络基于订阅返回的通知消息,所述通知信息中携带所述用户设备的位置信息。In a possible implementation manner, when the method is applied to a third server, before the third request message is sent to the second server, the method further includes: the third server subscribes to the user from a mobile data network The location information of the device receives a notification message returned by the mobile data network based on the subscription, where the notification information carries the location information of the user equipment.
在一种可能实现方式中,所述用户设备的位置信息为下述至少一种:所述用户设备的小区标识;所述用户设备的跟踪区标识TAI;所述用户设备的地理位置信息或者地理区域信息;所述用户设备的经纬度信息;所述用户设备对应的数据网络接入标识DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic location information of the user equipment Area information; latitude and longitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
在一种可能实现方式中,所述用户设备的位置信息为所述用户设备对应的DNAI,所述方法应用于第三服务器时,所述向第二服务器发送第三请求消息之前,所述方法还包括:所述第三服务器从移动数据网络订阅所述用户设备的用户面管理事件,接收所述移动数据网络基于订阅返回的所述用户面管理事件的通知消息,所述通知信息中携带所述用户设备的位置信息。In a possible implementation manner, the location information of the user equipment is the DNAI corresponding to the user equipment. When the method is applied to a third server, before the third request message is sent to the second server, the method It also includes: the third server subscribes to the user plane management event of the user equipment from the mobile data network, and receives the notification message of the user plane management event returned by the mobile data network based on the subscription, and the notification information carries all Describe the location information of the user equipment.
在一种可能实现方式中,所述第三响应消息还携带下述至少一项:所述应用实例的IP地址对应的有效区域信息,所述有效区域信息用于指示所述应用实例的IP地址适用的区域;所述应用实例的IP地址对应的第三服务器的IP地址。In a possible implementation manner, the third response message further carries at least one of the following: valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the IP address of the application instance Applicable area; the IP address of the third server corresponding to the IP address of the application instance.
第三方面,提供一种应用实例的地址获取方法,所述方法包括:从目标设备接收第二请求消息,所述第二请求消息携带所述用户设备的位置信息或者所述用户设备的标识;根据所述用户设备的位置信息或者所述用户设备的标识,确定对应的边缘网络的信息;向所述目标设备发送第二响应消息,所述第二响应消息携带所述边缘网络的信息。In a third aspect, a method for obtaining an address of an application instance is provided, the method comprising: receiving a second request message from a target device, the second request message carrying location information of the user equipment or an identifier of the user equipment; Determine the information of the corresponding edge network according to the location information of the user equipment or the identifier of the user equipment; and send a second response message to the target device, where the second response message carries the information of the edge network.
本申请实施例提供的方法,通过接收用户设备的请求消息,根据请求消息中携带的用户设备的位置信息或者所述用户设备的标识,确定并向用户设备返回对应的边缘网络的信息,使得用户设备能够获取边缘网络的信息,使用应用的标识和边缘网络的信息快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。In the method provided by the embodiments of the present application, by receiving a request message from a user equipment, according to the location information of the user equipment or the identifier of the user equipment carried in the request message, determine and return the corresponding edge network information to the user equipment, so that the user The device can obtain the information of the edge network, and use the identification of the application and the information of the edge network to quickly and accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
在一种可能实现方式中,所述根据所述用户设备的位置信息或者所述用户设备的标识,确定对应的边缘网络的信息,包括:根据所述用户设备的标识,确定所述用户设备的位置信息;根据所述用户设备的位置信息,确定对应的边缘网络的信息。In a possible implementation manner, the determining the corresponding edge network information according to the location information of the user equipment or the identifier of the user equipment includes: determining the information of the user equipment according to the identifier of the user equipment Location information; according to the location information of the user equipment, determine the corresponding edge network information.
本申请实施例提供的方法,通过在请求消息中既可以携带用户设备的位置信息,也可以携带用户设备的标识,根据用户设备的标识确定用户设备的位置信息后,再确定边缘网络的信息,提高了灵活性。In the method provided by the embodiment of the present application, the request message can carry both the location information of the user equipment and the identification of the user equipment. After the location information of the user equipment is determined according to the identification of the user equipment, the edge network information is determined. Improved flexibility.
在一种可能实现方式中,所述根据所述用户设备的位置信息,确定对应的边缘网络的信息,包括:根据所述用户设备的位置信息,查询用户设备的位置信息和边缘网络的信息之间的对应关系,得到所述用户设备的位置信息对应的边缘网络的信息。In a possible implementation manner, the determining the corresponding edge network information according to the location information of the user equipment includes: querying the location information of the user equipment and the edge network information according to the location information of the user equipment. And obtain the information of the edge network corresponding to the location information of the user equipment.
在一种可能实现方式中,所述边缘网络的信息为第三服务器的IP地址,所述根据所述用户设备的位置信息,确定对应的边缘网络的信息,包括:根据所述用户设备的位置信息,确定对应的数据网络接入标识DNAI;根据所述DNAI,确定所述第三服务器的互联网协议IP地址。In a possible implementation manner, the information of the edge network is the IP address of the third server, and the determining the information of the corresponding edge network according to the location information of the user equipment includes: according to the location of the user equipment Information, determine the corresponding data network access identifier DNAI; determine the Internet Protocol IP address of the third server according to the DNAI.
在一种可能实现方式中,所述根据所述用户设备的标识,确定所述用户设备的位置信息,包括下述任一项:根据所述用户设备的标识,向接入及移动性管理功能(serving access and mobility management function,serving AMF)请求所述用户设备的位置信息,接收所述AMF基于请求返回的响应消息,所述响应消息携带所述用户设备的位置信息;或者,根据所述用户设备的标识,向所述AMF、第三服务器或者会话管理功能(session management function,SMF)订阅所述用户设备的位置信息,接收所述AMF、第三服务器或者SMF基于订阅返回的通知消息,所述通知信息中携带所述用户设备的位置信息。In a possible implementation manner, the determining the location information of the user equipment according to the identification of the user equipment includes any one of the following: according to the identification of the user equipment, reporting to the access and mobility management function (serving access and mobility management function, serving AMF) requests the location information of the user equipment, and receives a response message returned by the AMF based on the request, where the response message carries the location information of the user equipment; or according to the user The identifier of the device, subscribe to the location information of the user equipment from the AMF, the third server or the session management function (session management function, SMF), and receive the notification message returned by the AMF, the third server or the SMF based on the subscription, The notification information carries the location information of the user equipment.
本申请实施例提供的方法,既可以从AMF请求用户设备的位置信息,也可以向AMF、第三服务器和SMF订阅用户设备的位置信息,提高了灵活性。The method provided in the embodiment of the present application can request the location information of the user equipment from the AMF, or subscribe the location information of the user equipment from the AMF, the third server, and the SMF, which improves flexibility.
在一种可能实现方式中,所述用户设备的位置信息为下述至少一种:所述用户设备的小区标识;所述用户设备的跟踪区标识TAI;所述用户设备的地理位置信息或者地理区域信息;所述用户设备的经纬度信息;所述用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic location information of the user equipment Area information; latitude and longitude information of the user equipment; DNAI corresponding to the user equipment.
在一种可能实现方式中,所述边缘网络的信息为下述至少一种:所述边缘网络对应的DNAI;所述边缘网络的IP地址;第三服务器的IP地址,所述第三服务器部署在所述边缘网络中。In a possible implementation manner, the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server deployment In the edge network.
在一种可能实现方式中,所述用户设备的标识为下述至少一种:所述用户设备的IP地址;所述用户设备的通用公共签约标识符GPSI;所述用户设备的移动台综合业务数字网MSISDN。In a possible implementation manner, the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile station integrated service of the user equipment Digital network MSISDN.
在一种可能实现方式中,所述应用的标识为下述至少一种:应用的标识符;应用的统一资源定位符;应用的全量域名;应用的应用名称。In a possible implementation manner, the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
在一种可能实现方式中,所述目标设备为用户设备,所述向所述目标设备发送第二响应消息之后,所述方法还包括:向所述用户设备发送更新指示消息,所述更新指示消息用于指示更新应用的应用实例的IP地址;重新执行接收第二请求消息、确定对应的边缘网络的信息和发送第二响应消息的步骤。In a possible implementation manner, the target device is a user equipment, and after the second response message is sent to the target device, the method further includes: sending an update instruction message to the user equipment, the update instruction The message is used to indicate the IP address of the application instance of the update application; the steps of receiving the second request message, determining the corresponding edge network information, and sending the second response message are performed again.
本申请实施例提供的方法,通过向用户设备发送更新指示消息,使得用户设备在需要访问应用时,重新获取该应用的应用实例的IP地址,提供了一种更新应用实例的IP地址的触发条件,可以保证应用实例的IP地址的可靠性。The method provided by the embodiments of the present application sends an update instruction message to the user equipment, so that the user equipment reacquires the IP address of the application instance of the application when it needs to access the application, and provides a trigger condition for updating the IP address of the application instance , Can guarantee the reliability of the IP address of the application instance.
在一种可能实现方式中,所述向所述用户设备发送更新指示消息,包括:当监测到所述用户设备的位置移出所述边缘网络时,向所述用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
本申请实施例提供的方法,通过监测用户设备的位置信息,可以在用户设备的位置移出边缘网络时,向用户设备发送更新指示消息,使得用户设备可以即时准确地接收到更新指示消息,从而重新获取该应用的应用实例的IP地址,保证应用实例的IP地址的可靠性。The method provided by the embodiments of the present application, by monitoring the location information of the user equipment, can send an update instruction message to the user equipment when the location of the user equipment moves out of the edge network, so that the user equipment can immediately and accurately receive the update instruction message, thereby restarting Obtain the IP address of the application instance of the application to ensure the reliability of the IP address of the application instance.
在一种可能实现方式中,所述向所述用户设备发送更新指示消息,包括:基于所述用户 设备订阅的所述用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,向所述用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment When a change occurs, an update instruction message is sent to the user equipment.
本申请实施例提供的方法,通过订阅事件的方式,可以在用户设备对应的边缘网络发生变化时,基于订阅返回更新指示消息,使得用户设备可以即时准确地接收到更新指示消息,从而重新获取该应用的应用实例的IP地址,保证应用实例的IP地址的可靠性。The method provided by the embodiments of the present application, by subscribing to events, can return an update instruction message based on the subscription when the edge network corresponding to the user equipment changes, so that the user equipment can immediately and accurately receive the update instruction message, thereby reacquiring the update instruction message. The IP address of the application instance of the application ensures the reliability of the IP address of the application instance.
在一种可能实现方式中,所述目标设备为所述用户设备或第二服务器。In a possible implementation manner, the target device is the user equipment or the second server.
第四方面,提供一种应用实例的地址获取方法,所述方法包括:In a fourth aspect, an address obtaining method of an application instance is provided, the method including:
从目标设备接收第三请求消息,所述第三请求消息携带应用的标识和用户设备的信息,所述用户设备的信息为所述用户设备的位置信息或者所述用户设备的标识;Receiving a third request message from the target device, the third request message carrying an application identifier and user equipment information, and the user equipment information is location information of the user equipment or the user equipment identifier;
根据所述应用的标识和所述用户设备的信息,获取所述用户设备的信息对应的所述应用的应用实例的互联网协议IP地址;Obtaining, according to the identifier of the application and the information of the user equipment, the Internet Protocol IP address of the application instance of the application corresponding to the information of the user equipment;
向所述目标设备发送第三响应消息,所述第三响应消息携带所述用户设备的位置信息对应的所述应用的应用实例的IP地址。A third response message is sent to the target device, where the third response message carries the IP address of the application instance of the application corresponding to the location information of the user equipment.
本申请实施例提供的方法,通过接收目标设备的请求消息,根据请求消息中携带的应用的标识和用户设备的信息,获取并向目标设备返回对应的应用实例的IP地址,使得目标设备能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided by the embodiments of the present application obtains and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and user device information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
在一种可能实现方式中,所述根据所述应用的标识和所述用户设备的信息,获取所述用户设备的信息对应的所述应用的应用实例的IP地址,包括:In a possible implementation manner, the obtaining the IP address of the application instance of the application corresponding to the information of the user equipment according to the identifier of the application and the information of the user equipment includes:
根据所述用户设备的标识,确定所述用户设备的位置信息;Determine the location information of the user equipment according to the identifier of the user equipment;
根据所述应用的标识和所述用户设备的位置信息,获取所述用户设备的位置信息对应的所述应用的应用实例的IP地址。According to the identifier of the application and the location information of the user equipment, the IP address of the application instance of the application corresponding to the location information of the user equipment is obtained.
本申请实施例提供的方法,通过在请求消息中既可以携带用户设备的位置信息,也可以携带用户设备的标识,根据用户设备的标识确定用户设备的位置信息后,再确定应用实例的IP地址,提高了灵活性。In the method provided by the embodiments of the present application, the request message can carry both the location information of the user equipment and the identification of the user equipment. After the location information of the user equipment is determined according to the identification of the user equipment, the IP address of the application instance is determined. , Improved flexibility.
在一种可能实现方式中,所述根据所述应用的标识和所述用户设备的信息,获取所述用户设备的位置信息对应的所述应用的应用实例的IP地址,包括:In a possible implementation manner, the obtaining the IP address of the application instance of the application corresponding to the location information of the user equipment according to the identification of the application and the information of the user equipment includes:
根据所述应用的标识和所述用户设备的位置信息,查询应用的标识、用户设备的位置信息和应用实例的IP地址之间的对应关系,得到所述用户设备的位置信息对应的所述应用的应用实例的IP地址。According to the identification of the application and the location information of the user equipment, query the correspondence between the identification of the application, the location information of the user equipment, and the IP address of the application instance to obtain the application corresponding to the location information of the user equipment The IP address of the application instance.
在一种可能实现方式中,所述根据所述应用的标识和所述用户设备的信息,获取所述用户设备的信息对应的所述应用的应用实例的IP地址,包括:根据所述用户设备的位置信息,确定对应的边缘网络的信息;根据所述应用的标识和所述边缘网络的信息,获取所述边缘网络的信息对应的所述应用的应用实例的IP地址。In a possible implementation manner, the obtaining the IP address of the application instance of the application corresponding to the user equipment information according to the identification of the application and the information of the user equipment includes: according to the user equipment Determine the corresponding edge network information; obtain the IP address of the application instance of the application corresponding to the edge network information according to the identifier of the application and the edge network information.
在一种可能实现方式中,所述边缘网络的信息为下述至少一种:所述边缘网络对应的数据网络接入标识DNAI;所述边缘网络的IP地址;第三服务器的IP地址,所述第三服务器部署在所述边缘网络中。In a possible implementation, the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, so The third server is deployed in the edge network.
在一种可能实现方式中,所述根据所述应用的标识和所述边缘网络的信息,获取所述边缘网络的信息对应的所述应用的应用实例的IP地址,包括:向第一服务器发送第一请求消息, 所述第一请求消息携带所述应用的标识和所述边缘网络的信息;接收所述第一服务器基于所述第一请求消息返回的第一响应消息,所述第一响应消息携带所述边缘网络的信息对应的所述应用的应用实例的IP地址。In a possible implementation manner, the obtaining the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network includes: sending to a first server A first request message, where the first request message carries the identification of the application and the information of the edge network; receiving a first response message returned by the first server based on the first request message, the first response The message carries the IP address of the application instance of the application corresponding to the information of the edge network.
在一种可能实现方式中,所述根据所述用户设备的位置信息,确定对应的边缘网络的信息,包括:根据所述用户设备的位置信息,查询用户设备的位置信息和边缘网络的信息之间的对应关系,得到所述用户设备的位置信息对应的边缘网络的信息。In a possible implementation manner, the determining the corresponding edge network information according to the location information of the user equipment includes: querying the location information of the user equipment and the edge network information according to the location information of the user equipment. And obtain the information of the edge network corresponding to the location information of the user equipment.
在一种可能实现方式中,所述边缘网络的信息为第三服务器的IP地址,所述根据所述用户设备的位置信息,确定对应的边缘网络的信息,包括:根据所述用户设备的位置信息,确定对应的DNAI;根据所述DNAI,确定所述第三服务器的IP地址。In a possible implementation manner, the information of the edge network is the IP address of the third server, and the determining the information of the corresponding edge network according to the location information of the user equipment includes: according to the location of the user equipment Information, determine the corresponding DNAI; according to the DNAI, determine the IP address of the third server.
在一种可能实现方式中,所述根据所述用户设备的标识,确定所述用户设备的位置信息,包括下述任一项:In a possible implementation manner, the determining the location information of the user equipment according to the identifier of the user equipment includes any one of the following:
根据所述用户设备的标识,向接入及移动性管理功能AMF请求所述用户设备的位置信息,接收所述AMF基于请求返回的响应消息,所述响应消息携带所述用户设备的位置信息;或者,根据所述用户设备的标识,向所述AMF、第三服务器或者会话管理功能SMF订阅所述用户设备的位置信息,接收所述AMF、第三服务器或者SMF基于订阅返回的通知消息,所述通知信息中携带所述用户设备的位置信息。According to the identifier of the user equipment, request the access and mobility management function AMF for the location information of the user equipment, and receive a response message returned by the AMF based on the request, the response message carrying the location information of the user equipment; Or, according to the identifier of the user equipment, subscribe the location information of the user equipment to the AMF, the third server or the session management function SMF, and receive the notification message returned by the AMF, the third server or the SMF based on the subscription, so The notification information carries the location information of the user equipment.
在一种可能实现方式中,所述用户设备的位置信息为下述至少一种:所述用户设备的小区标识;所述用户设备的跟踪区标识TAI;所述用户设备的地理位置信息或者地理区域信息;所述用户设备的经纬度信息;所述用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic location information of the user equipment Area information; latitude and longitude information of the user equipment; DNAI corresponding to the user equipment.
在一种可能实现方式中,所述用户设备的标识为下述至少一种:所述用户设备的IP地址;所述用户设备的通用公共签约标识符GPSI;所述用户设备的移动台综合业务数字网MSISDN。In a possible implementation manner, the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile station integrated service of the user equipment Digital network MSISDN.
在一种可能实现方式中,所述应用的标识为下述至少一种:应用的标识符;应用的统一资源定位符;应用的全量域名;应用的应用名称。In a possible implementation manner, the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
在一种可能实现方式中,所述第三响应消息还携带所述应用的应用实例的IP地址对应的第三服务器的IP地址,所述向所述目标设备发送第三响应消息之前,所述方法还包括:根据所述应用的应用实例的IP地址,查询所述应用的应用实例的IP地址对应的第三服务器的IP地址。In a possible implementation manner, the third response message also carries the IP address of the third server corresponding to the IP address of the application instance of the application. Before sending the third response message to the target device, the The method further includes: querying the IP address of a third server corresponding to the IP address of the application instance of the application according to the IP address of the application instance of the application.
在一种可能实现方式中,所述目标设备为用户设备,所述向所述目标设备发送第三响应消息之后,所述方法还包括:向所述用户设备发送更新指示消息,所述更新指示消息用于指示更新应用的应用实例的IP地址;重新执行接收第三请求消息、获取应用实例的IP地址和发送第三响应消息的步骤。In a possible implementation manner, the target device is a user equipment, and after the third response message is sent to the target device, the method further includes: sending an update instruction message to the user equipment, the update instruction The message is used to indicate to update the IP address of the application instance of the application; re-execute the steps of receiving the third request message, obtaining the IP address of the application instance, and sending the third response message.
本申请实施例提供的方法,通过向用户设备发送更新指示消息,使得用户设备在需要访问应用时,重新获取该应用的应用实例的IP地址,提供了一种更新应用实例的IP地址的触发条件,可以保证应用实例的IP地址的可靠性。The method provided by the embodiments of the present application sends an update instruction message to the user equipment, so that the user equipment reacquires the IP address of the application instance of the application when it needs to access the application, and provides a trigger condition for updating the IP address of the application instance , Can guarantee the reliability of the IP address of the application instance.
在一种可能实现方式中,所述向所述用户设备发送更新指示消息,包括:当监测到所述用户设备的位置移出所述边缘网络时,向所述用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
本申请实施例提供的方法,通过监测用户设备的位置信息,可以在用户设备的位置移出边缘网络时,向用户设备发送更新指示消息,使得用户设备可以即时准确地接收到更新指示消息,从而重新获取该应用的应用实例的IP地址,保证应用实例的IP地址的可靠性。The method provided by the embodiments of the present application, by monitoring the location information of the user equipment, can send an update instruction message to the user equipment when the location of the user equipment moves out of the edge network, so that the user equipment can immediately and accurately receive the update instruction message, thereby restarting Obtain the IP address of the application instance of the application to ensure the reliability of the IP address of the application instance.
在一种可能实现方式中,所述向所述用户设备发送更新指示消息,包括:基于所述用户设备订阅的所述用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,向所述用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment When a change occurs, an update instruction message is sent to the user equipment.
本申请实施例提供的方法,通过订阅事件的方式,可以在用户设备对应的边缘网络发生变化时,基于订阅返回更新指示消息,使得用户设备可以即时准确地接收到更新指示消息,从而重新获取该应用的应用实例的IP地址,保证应用实例的IP地址的可靠性。The method provided by the embodiments of the present application, by subscribing to events, can return an update instruction message based on the subscription when the edge network corresponding to the user equipment changes, so that the user equipment can immediately and accurately receive the update instruction message, thereby reacquiring the update instruction message. The IP address of the application instance of the application ensures the reliability of the IP address of the application instance.
在一种可能实现方式中,所述目标设备为所述用户设备或第二服务器。In a possible implementation manner, the target device is the user equipment or the second server.
第五方面,提供一种应用实例的地址获取方法,所述方法包括:In a fifth aspect, an address acquisition method of an application instance is provided, and the method includes:
从目标设备接收第一请求消息,所述第一请求消息携带应用的标识和边缘网络的信息;根据所述应用的标识和所述边缘网络的信息,确定所述边缘网络的信息对应的所述应用的应用实例的互联网协议IP地址;向所述目标设备发送第一响应消息,所述第一响应消息携带所述边缘网络的信息对应的所述应用的应用实例的IP地址。Receive a first request message from the target device, the first request message carrying the application identifier and edge network information; according to the application identifier and the edge network information, determine the edge network information corresponding to the The Internet Protocol IP address of the application instance of the application; sending a first response message to the target device, the first response message carrying the IP address of the application instance of the application corresponding to the edge network information.
本申请实施例提供的方法,通过接收目标设备的请求消息,根据请求消息中携带的应用的标识和边缘网络的信息,确定并向目标设备返回对应的应用实例的IP地址,使得目标设备能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided by the embodiments of the present application determines and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and edge network information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
在一种可能实现方式中,所述根据所述应用的标识和所述边缘网络的信息,确定所述边缘网络的信息对应的所述应用的应用实例的IP地址,包括:根据所述应用的标识和所述边缘网络的信息,查询应用的标识、边缘网络的信息和应用实例的IP地址之间的对应关系,得到所述边缘网络的信息对应的所述应用的应用实例的IP地址。In a possible implementation manner, the determining the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network includes: according to the information of the application Identify the identifier and the information of the edge network, query the correspondence between the identifier of the application, the information of the edge network, and the IP address of the application instance, to obtain the IP address of the application instance of the application corresponding to the information of the edge network.
在一种可能实现方式中,所述第一响应消息还携带所述应用实例的IP地址对应的有效区域信息,所述有效区域信息用于指示所述应用实例的IP地址适用的区域。In a possible implementation manner, the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate an area to which the IP address of the application instance applies.
在一种可能实现方式中,所述边缘网络的信息为下述至少一种:所述边缘网络对应的数据网络接入标识DNAI;所述边缘网络的IP地址;第三服务器的IP地址,所述第三服务器部署在所述边缘网络中。In a possible implementation, the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, so The third server is deployed in the edge network.
在一种可能实现方式中,所述应用的标识为下述至少一种:应用的标识符;应用的统一资源定位符;应用的全量域名;应用的应用名称。In a possible implementation manner, the identifier of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
在一种可能实现方式中,所述目标设备为用户设备、第二服务器或第三服务器。In a possible implementation manner, the target device is a user equipment, a second server, or a third server.
第六方面,提供了一种应用实例的地址获取装置,所述装置包括多个功能模块,该多个功能模块用于执行上述任一方面或任一方面的任一种可能实现方式中所提供的应用实例的地址获取方法。In a sixth aspect, an address acquisition device of an application example is provided. The device includes a plurality of functional modules, and the multiple functional modules are used to implement any one of the above aspects or any one of the possible implementations provided in any one of the aspects. The method of obtaining the address of the application instance.
第七方面,提供了一种计算机设备,所述计算机设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条指令,所述指令由所述一个或多个处理器加载并执行以实现上述任一方面或任一方面的任一种可能实现方式中所提供的应用实例的地址获取方法。In a seventh aspect, a computer device is provided. The computer device includes one or more processors and one or more memories, and at least one instruction is stored in the one or more memories. Or multiple processors are loaded and executed to implement the address obtaining method of the application instance provided in any one of the foregoing aspects or any possible implementation manner of any aspect.
第八方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现上述任一方面或任一方面的任一种可能实现方式中所提供的应用实例的地址获取方法。In an eighth aspect, a computer-readable storage medium is provided, and at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement any one of the foregoing aspects or any possible implementation of any one of the aspects. The method of obtaining the address of the application instance provided in the method.
第九方面,提供了一种应用实例的地址获取***,所述***包括用户设备、第一服务器、第二服务器或者第三服务器中的多个设备;所述用户设备或者所述第三服务器用于执行上述第一方面或第二方面所提供的应用实例的地址获取方法;所述第二服务器用于执行上述第三方面或第四方面所提供的应用实例的地址获取方法;所述第一服务器用于执行上述第五方面所提供的应用实例的地址获取方法。In a ninth aspect, an address acquisition system of an application instance is provided, the system includes multiple devices of a user equipment, a first server, a second server, or a third server; the user equipment or the third server uses The method for obtaining the address of the application instance provided by the first aspect or the second aspect; the second server is configured to execute the method for obtaining the address of the application instance provided by the third or fourth aspect; the first The server is used to execute the address obtaining method of the application instance provided in the fifth aspect.
第十方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码被计算机设备运行时,使得计算机设备执行上述任一方面或任一方面的任一种可能实现方式中所提供的应用实例的地址获取方法。In a tenth aspect, a computer program product is provided, and the computer program product includes: computer program code, when the computer program code is run by a computer device, the computer device executes any one of the foregoing aspects or any one of the foregoing The address acquisition method of the application instance provided in this possible implementation.
第十一方面,提供了一种芯片,包括处理器,用于从存储器中调用并运行所述存储器中存储的指令,使得安装有所述芯片的终端执行上述任一方面或任一方面的任一种可能实现方式中所提供的应用实例的地址获取方法。In an eleventh aspect, a chip is provided, including a processor, configured to call and execute instructions stored in the memory from a memory, so that a terminal installed with the chip can execute any one or any of the foregoing aspects. A method for obtaining the address of the application instance provided in a possible implementation.
第十二方面,提供另一种芯片,包括:输入接口、输出接口、处理器和存储器,所述输入接口、输出接口、所述处理器以及所述存储器之间通过内部连接通路相连,所述处理器用于执行所述存储器中的代码,当所述代码被执行时,所述处理器用于上述任一方面或任一方面的任一种可能实现方式中所提供的应用实例的地址获取方法。In a twelfth aspect, another chip is provided, including: an input interface, an output interface, a processor, and a memory. The input interface, output interface, the processor, and the memory are connected by an internal connection path, and the The processor is used to execute the code in the memory, and when the code is executed, the processor is used in the address obtaining method of the application instance provided in any one of the foregoing aspects or any possible implementation manner of any one of the aspects.
附图说明Description of the drawings
图1是本申请实施例提供的一种应用实例的地址获取方法的***架构图;FIG. 1 is a system architecture diagram of an address obtaining method of an application example provided by an embodiment of the present application;
图2是本申请实施例提供的一种计算机设备200的结构示意图;FIG. 2 is a schematic structural diagram of a computer device 200 provided by an embodiment of the present application;
图3是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 3 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图4是本申请实施例提供的一种应用实例的地址获取方法的流程图;4 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图5是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 5 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图6是本申请实施例提供的一种应用实例的地址获取方法的流程图;Fig. 6 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图7是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 7 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图8是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 8 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图9是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 9 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图10是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 10 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图11是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 11 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图12是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 12 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图13是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 13 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图14是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 14 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图15是本申请实施例提供的一种应用实例的地址获取方法的流程图;15 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图16是本申请实施例提供的一种EES的信息获取方法的流程图;FIG. 16 is a flowchart of an EES information acquisition method provided by an embodiment of the present application;
图17是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 17 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图18是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 18 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图19是本申请实施例提供的一种应用实例的地址获取方法的流程图;FIG. 19 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application;
图20是本申请实施例提供的一种应用实例的地址获取装置的结构示意图;20 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application;
图21是本申请实施例提供的一种应用实例的地址获取装置的结构示意图;FIG. 21 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application;
图22是本申请实施例提供的一种应用实例的地址获取装置的结构示意图;FIG. 22 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application;
图23是本申请实施例提供的一种应用实例的地址获取装置的结构示意图;FIG. 23 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application;
图24是本申请实施例提供的一种应用实例的地址获取装置的结构示意图。FIG. 24 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
图1是本申请实施例提供的一种应用实例的地址获取方法的***架构图,该***中包括用户设备(user equipment,UE)、移动数据网络、边缘网络、应用实例、第二服务器和第三服务器。该应用实例和该第三服务器部署在该边缘网络中。FIG. 1 is a system architecture diagram of an address acquisition method of an application example provided by an embodiment of the present application. The system includes a user equipment (UE), a mobile data network, an edge network, an application example, a second server, and a second server. Three servers. The application instance and the third server are deployed in the edge network.
移动数据网络可以是第三代伙伴计划(the 3rd generation partnership project,3GPP)网络。The mobile data network may be the 3rd generation partnership project (3GPP) network.
边缘网络是中心云的对等概念,可以理解为是一个本地的数据中心,可以使用数据网络接入标识(data network access identifier,DNAI)来标识,还可以称为边缘计算网络(edge computing network)。边缘网络中可以部署多个本地数据网络(local data network,local DN)。在一种实现方式中,边缘网络可以是边缘数据网络(edge data network,EDN)。The edge network is the peer-to-peer concept of the central cloud. It can be understood as a local data center. It can be identified by the data network access identifier (DNAI), and it can also be called the edge computing network (edge computing network) . Multiple local data networks (local data network, local DN) can be deployed in the edge network. In one implementation, the edge network may be an edge data network (EDN).
第二服务器可以提供应用的名称到应用的IP地址的解析服务,可以向UE提供边缘网络的配置信息(如边缘网络的名称、IP地址、IP虚拟地址(用于表示该边缘网络中的所有应用实例对UE提供的IP地址),边缘网络的服务范围(追踪区列表或小区列表)等),如向UE提供EES(edge enabler server,EES)的信息(包括EES的名称、IP地址等)。第二服务器可以是边缘网络配置服务器,边缘网络配置服务器负责边缘网络的配置,如向UE提供EES的信息,如EES的IP地址。进一步还可以直接向UE提供应用实例的信息,以及和第一服务器交互获取应用实例的信息,第一服务器可以是域名解析***(domain name system,DNS)服务器。DNS服务器提供主机名和IP地址之间的映射和转换,如果一个服务器总是存在着将某个主机名解析为IP地址的DNS记录,那么该服务器对于该主机来说就是权威性的。DNS是一种用于传输控制协议(transmission control protocol,TCP)/IP应用程序的分布式数据库,它提供主机名和IP地址之间的转换及有关电子邮件的选路信息。这里提到的分布式是指在网络(Internet)上的单个站点不能拥有所有的信息。DNS服务器可以由运营商运营,部署在运营商的网络中。第二服务器还可以是具备第二服务器的功能的其他功能实体。本申请中的名称仅仅是举例说明,对名称不做限定。The second server can provide a resolution service from the application name to the application’s IP address, and can provide the UE with edge network configuration information (such as the name of the edge network, IP address, IP virtual address (used to represent all applications in the edge network) The instance provides the IP address of the UE), the service range of the edge network (tracking area list or cell list, etc.), such as providing EES (edge enabler server, EES) information (including the name of the EES, IP address, etc.) to the UE. The second server may be an edge network configuration server, and the edge network configuration server is responsible for the configuration of the edge network, such as providing EES information to the UE, such as the IP address of the EES. Further, it is possible to directly provide the UE with the information of the application instance, and interact with the first server to obtain the information of the application instance. The first server may be a domain name system (DNS) server. The DNS server provides the mapping and conversion between host names and IP addresses. If a server always has a DNS record that resolves a host name to an IP address, then the server is authoritative for the host. DNS is a distributed database used for transmission control protocol (TCP)/IP applications. It provides conversion between host names and IP addresses and routing information related to emails. The distribution mentioned here means that a single site on the Internet cannot have all the information. The DNS server can be operated by the operator and deployed in the operator's network. The second server may also be another functional entity having the function of the second server. The names in this application are only examples, and the names are not limited.
第三服务器可以是边缘使能服务器。EES可以为部署在边缘网络中的应用实例提供一些使能能力,可以更好的支持应用在MEC的部署情况。可以支持边缘应用的注册、对用户设备(user equipment,UE)的认证和鉴权,为UE提供应用实例的互联网协议(internet protocol,IP)地址信息等。第三服务器还可以是具备第三服务器的功能的其他功能实体。本申请中的名称仅仅是举例说明,对名称不做限定。The third server may be an edge-enabled server. EES can provide some enabling capabilities for application instances deployed in the edge network, and can better support the deployment of applications in MEC. It can support the registration of edge applications, the authentication and authentication of user equipment (UE), and provide the Internet protocol (IP) address information of application instances for the UE. The third server may also be another functional entity having the function of the third server. The names in this application are only examples, and the names are not limited.
应用实例是部署在边缘网络中的应用,也可以称为边缘应用(edge application)、移动边缘计算(mobile edge computing,MEC)应用。一个应用可以同时部署在云和一个或多个边缘网络中,一个应用可以对应多个应用实例。An application instance is an application deployed in an edge network, and may also be called an edge application (edge application) or a mobile edge computing (mobile edge computing, MEC) application. An application can be deployed in the cloud and one or more edge networks at the same time, and an application can correspond to multiple application instances.
UE可以是手机、电脑等设备,UE上可以安装有应用客户端(application client)和边缘使能客户端(edge enabler client,EEC)。应用客户端是边缘应用在UE侧的对等实体。EEC是EES在UE侧的对等实体。The UE may be a device such as a mobile phone or a computer, and an application client (application client) and an edge enabler client (EEC) may be installed on the UE. The application client is the peer entity of the edge application on the UE side. EEC is the peer entity of EES on the UE side.
UE中的应用客户端和边缘网络中的应用实例可以进行应用数据传输(application data traffic),EEC和EES之间可以通过参考点1(edge-1)建立连接,3GPP网络和EES之间可以通过参考点2(edge-2)建立连接,应用实例和EES之间可以通过参考点3(edge-3)建立连接,EEC和边缘网络配置服务器之间可以通过参考点4(edge-4)建立连接。The application client in the UE and the application instance in the edge network can perform application data traffic. The connection between EEC and EES can be established through reference point 1 (edge-1), and the 3GPP network and EES can be connected through Reference point 2 (edge-2) establishes a connection, the application instance and EES can establish a connection through reference point 3 (edge-3), and the EEC and edge network configuration server can establish a connection through reference point 4 (edge-4) .
图2是本申请实施例提供的一种计算机设备200的结构示意图,该计算机设备可以是用户设备或服务器。计算机设备200包括可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)201和一个或一个以上的存储器202,其中,该存储器202中存储有至少一条指令,该至少一条指令由该处理器201加载并执行以实现下述各个方法实施例提供的方法。当然,该计算机设备200还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该计算机设备200还可以包括其他用于实现设备功能的部件,在此不做赘述。Fig. 2 is a schematic structural diagram of a computer device 200 provided by an embodiment of the present application. The computer device may be a user equipment or a server. The computer device 200 includes relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 201 and one or more memories 202, where the memory 202 stores At least one instruction, and the at least one instruction is loaded and executed by the processor 201 to implement the methods provided in the following method embodiments. Of course, the computer device 200 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output. The computer device 200 may also include other components for implementing device functions, which will not be repeated here.
图3是本申请实施例提供的一种应用实例的地址获取方法的流程图,该方法可以应用于用户设备或第三服务器,也即是,该方法的执行主体可以是用户设备或第三服务器,如图3所示,该方法包括下述步骤:FIG. 3 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method may be applied to a user equipment or a third server, that is, the execution subject of the method may be the user equipment or the third server As shown in Figure 3, the method includes the following steps:
步骤301、获取边缘网络的信息。Step 301: Obtain edge network information.
步骤302、向第一服务器发送第一请求消息,该第一请求消息携带应用的标识和该边缘网络的信息。Step 302: Send a first request message to the first server, where the first request message carries the identifier of the application and the information of the edge network.
步骤303、接收该第一服务器基于该第一请求消息返回的第一响应消息,该第一响应消息携带该边缘网络的信息对应的该应用的应用实例的互联网协议IP地址。Step 303: Receive a first response message returned by the first server based on the first request message, where the first response message carries the Internet Protocol IP address of the application instance of the application corresponding to the edge network information.
本申请实施例提供的方法,通过获取边缘网络的信息,使用应用的标识和边缘网络的信息从第一服务器获取对应的应用实例的IP地址,能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided in the embodiments of the present application obtains the information of the edge network, uses the identification of the application and the information of the edge network to obtain the IP address of the corresponding application instance from the first server, and can quickly and accurately obtain the address of the nearest application instance. , To meet the scheduling needs of third-party application providers.
可选地,该方法还包括:接收第二服务器或第三服务器的更新指示消息,该更新指示消息用于指示更新该应用的应用实例的IP地址。Optionally, the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
该更新指示信息可以发送在301步骤之后,也可在301步骤之前收到。The update instruction information can be sent after step 301 or received before step 301.
可选地,该更新指示消息可以用于指示用户设备的位置发生变化,或,用于指示用户设备所处的边缘网络发生变化,或,用于指示接收方通过发送请求消息以获取更新后的IP地址。Optionally, the update instruction message can be used to indicate that the location of the user equipment has changed, or that the edge network where the user equipment is located has changed, or that the receiver can send a request message to obtain updated information. IP address.
在一种可能实现方式中,该更新指示消息还包括更新后的边缘网络的信息;该获取边缘网络的信息包括:接收该更新后的边缘网络的信息。这种情况下,该接收更新指示消息的步骤可以在步骤302之前执行,例如,用户设备在接收到更新指示消息,即接收到更新后的边缘网络的信息后,可以执行步骤302至步骤303来获取更新后的IP地址。该接收更新指示消息的步骤也可以在步骤303之后执行,例如,用户设备通过执行步骤301至步骤303,获得该应用的应用实例的IP地址后,如果接收到该更新指示消息,即接收到更新后的边缘网络的信息,则可以再次执行步骤302至步骤303来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。In a possible implementation manner, the update instruction message further includes the updated edge network information; the acquiring the edge network information includes: receiving the updated edge network information. In this case, the step of receiving the update instruction message may be performed before step 302. For example, after the user equipment receives the update instruction message, that is, after receiving the updated edge network information, it may perform steps 302 to 303. Obtain the updated IP address. The step of receiving the update instruction message may also be performed after step 303. For example, after the user equipment obtains the IP address of the application instance of the application by performing steps 301 to 303, if the update instruction message is received, the update is received. For the information of the later edge network, step 302 to step 303 can be performed again to obtain the updated IP address, which corresponds to the information of the updated edge network.
可选地,该更新指示消息中也可以不包括边缘网络的信息,这种情况下,该接收更新指示消息的步骤可以在步骤301之前执行,例如,用户设备在接收到更新指示消息后,可以执 行步骤301至步骤303来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。该接收更新指示消息的步骤也可以在步骤303之后执行,例如,用户设备通过执行步骤301至步骤303,获得该应用的应用实例的IP地址后,如果接收到该更新指示消息,则可以再次执行步骤301至步骤303来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。Optionally, the update instruction message may not include edge network information. In this case, the step of receiving the update instruction message may be performed before step 301. For example, after the user equipment receives the update instruction message, it may Steps 301 to 303 are performed to obtain the updated IP address, which corresponds to the updated edge network information. The step of receiving the update instruction message can also be performed after step 303. For example, after the user equipment obtains the IP address of the application instance of the application by performing step 301 to step 303, if it receives the update instruction message, it can perform it again Steps 301 to 303 are used to obtain the updated IP address, which corresponds to the updated edge network information.
在一种可能实现方式中,该接收第二服务器或第三服务器的更新指示消息,包括:向该第二服务器或该第三服务器发送订阅信息,该订阅信息用于订阅该用户设备对应的边缘网络的变化事件,当该用户设备对应的边缘网络发生变化时,接收该更新指示消息。In a possible implementation manner, the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the edge corresponding to the user equipment. For network change events, when the edge network corresponding to the user equipment changes, the update indication message is received.
在一种可能实现方式中,该获取边缘网络的信息包括:向第二服务器发送第二请求消息,该第二请求消息携带该用户设备的位置信息或者该用户设备的标识;接收该第二服务器基于该第二请求消息返回的第二响应消息,该第二响应消息携带该边缘网络的信息。In a possible implementation manner, the acquiring information of the edge network includes: sending a second request message to a second server, the second request message carrying location information of the user equipment or an identifier of the user equipment; receiving the second server Based on the second response message returned by the second request message, the second response message carries the information of the edge network.
需要说明的是,当该第二请求消息可以是一个订阅的请求消息时,可以理解该第二请求消息用于订阅用户设备对应的边缘网络的信息。当第二服务器获知用户设备的位置信息发生变化时,第二服务器判断如果用户设备的位置对应的边缘网络发生变化,那么第二服务器可以确定用户设备当前位置对应的边缘网络的信息,并向用户设备发送基于该订阅请求的通知消息,通知消息携带边缘网络的信息,具体地,该通知消息还可以携带第三服务器的IP地址。这个通知消息可以发送多次。It should be noted that when the second request message may be a subscription request message, it can be understood that the second request message is used to subscribe to the information of the edge network corresponding to the user equipment. When the second server learns that the location information of the user equipment has changed, the second server determines that if the edge network corresponding to the location of the user equipment changes, the second server can determine the edge network information corresponding to the current location of the user equipment, and report to the user The device sends a notification message based on the subscription request. The notification message carries information about the edge network. Specifically, the notification message may also carry the IP address of the third server. This notification message can be sent multiple times.
在一种可能实现方式中,该第二响应消息还携带该边缘网络的信息对应的有效区域信息,该有效区域信息用于指示该边缘网络的信息适用的区域。In a possible implementation manner, the second response message also carries effective area information corresponding to the information of the edge network, and the effective area information is used to indicate an area to which the information of the edge network applies.
在一种可能实现方式中,所该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的数据网络接入标识DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
在一种可能实现方式中,所该获取边缘网络的信息包括:根据该用户设备的位置信息,从本地存储的边缘网络配置信息中,获取该边缘网络的信息,该边缘网络配置信息包括至少一个边缘网络的信息。In a possible implementation manner, acquiring the information of the edge network includes: acquiring the information of the edge network from locally stored edge network configuration information according to the location information of the user equipment, and the edge network configuration information includes at least one Information about the edge network.
在一种可能实现方式中,该方法应用于第三服务器,该第三服务器部署在该边缘网络中,该获取边缘网络的信息包括:该第三服务器从移动数据网络订阅该用户设备的用户面管理事件,接收该移动数据网络基于订阅返回的该用户面管理事件的通知消息,该通知信息中携带该边缘网络的信息。In a possible implementation manner, the method is applied to a third server deployed in the edge network, and the obtaining information about the edge network includes: the third server subscribes to the user plane of the user equipment from the mobile data network The management event receives the notification message of the user plane management event returned by the mobile data network based on the subscription, and the notification information carries the information of the edge network.
在一种可能实现方式中,所该第一响应消息还携带该应用实例的IP地址对应的有效区域信息,该有效区域信息用于指示该应用实例的IP地址适用的区域。In a possible implementation manner, the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
在一种可能实现方式中,所该边缘网络的信息为下述至少一种:该边缘网络对应的DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation manner, the information of the edge network is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge Network.
在一种可能实现方式中,所该边缘网络的IP地址或者该第三服务器的IP地址为IP地址段。In a possible implementation manner, the IP address of the edge network or the IP address of the third server is an IP address segment.
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.
图4是本申请实施例提供的一种应用实例的地址获取方法的流程图,该方法可以应用于 用户设备或第三服务器,如图4所示,该方法包括下述步骤:Fig. 4 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a user equipment or a third server. As shown in Fig. 4, the method includes the following steps:
步骤401、向第二服务器发送第三请求消息,该第三请求消息携带应用的标识和用户设备的信息,该用户设备的信息为该用户设备的位置信息或者该用户设备的标识;Step 401: Send a third request message to a second server, where the third request message carries an application identifier and user equipment information, where the user equipment information is the location information of the user equipment or the user equipment identifier;
步骤402、接收该第二服务器基于该第三请求消息返回的第三响应消息,该第三响应消息携带该用户设备的位置信息对应的该应用的应用实例的互联网协议IP地址。Step 402: Receive a third response message returned by the second server based on the third request message, where the third response message carries the Internet Protocol IP address of the application instance of the application corresponding to the location information of the user equipment.
本申请实施例提供的方法,通过使用应用的标识和用户设备的信息,从第二服务器获取对应的应用实例的IP地址,能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided in the embodiments of this application obtains the IP address of the corresponding application instance from the second server by using the identification of the application and the information of the user equipment, which can quickly and accurately obtain the address of the application instance closest to the current application, satisfying third-party applications Provider scheduling requirements.
可选地,该方法还包括:接收该第二服务器或第三服务器的更新指示消息,该更新指示消息用于指示更新该应用的应用实例的IP地址。Optionally, the method further includes: receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
可选地,该更新指示消息可以用于指示用户设备的位置发生变化,或,用于指示用户设备所处的边缘网络发生变化,或,用于指示接收方通过发送请求消息以获取更新后的IP地址。Optionally, the update instruction message can be used to indicate that the location of the user equipment has changed, or that the edge network where the user equipment is located has changed, or that the receiver can send a request message to obtain updated information. IP address.
该接收更新指示消息的步骤可以在步骤401之前执行,例如,用户设备在接收到更新指示消息后,可以执行步骤401至步骤402来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。该接收更新指示消息的步骤也可以在步骤402之后执行,例如,用户设备通过执行步骤401至步骤402,获得该应用的应用实例的IP地址后,如果接收到该更新指示消息,则可以再次执行步骤401至步骤402来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。The step of receiving the update instruction message may be performed before step 401. For example, after receiving the update instruction message, the user equipment may perform steps 401 to 402 to obtain the updated IP address, which corresponds to the updated edge Network information. The step of receiving the update instruction message can also be performed after step 402. For example, after the user equipment obtains the IP address of the application instance of the application by performing step 401 to step 402, if the update instruction message is received, it can perform again Steps 401 to 402 are used to obtain the updated IP address, which corresponds to the updated edge network information.
在一种可能实现方式中,该接收第二服务器或第三服务器的更新指示消息,包括:向该第二服务器或该第三服务器发送订阅信息,该订阅信息用于订阅该用户设备对应的边缘网络的变化事件,当该用户设备对应的边缘网络发生变化时,接收该更新指示消息。In a possible implementation manner, the receiving the update instruction message of the second server or the third server includes: sending subscription information to the second server or the third server, and the subscription information is used to subscribe to the edge corresponding to the user equipment. For network change events, when the edge network corresponding to the user equipment changes, the update indication message is received.
在一种可能实现方式中,该方法应用于第三服务器时,该向第二服务器发送第三请求消息之前,该方法还包括:该第三服务器从移动数据网络订阅该用户设备的位置信息,接收该移动数据网络基于订阅返回的通知消息,该通知信息中携带该用户设备的位置信息。In a possible implementation manner, when the method is applied to a third server, before sending the third request message to the second server, the method further includes: the third server subscribes to the location information of the user equipment from the mobile data network, Receive a notification message returned by the mobile data network based on the subscription, where the notification message carries the location information of the user equipment.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的数据网络接入标识DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; Longitude and latitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
在一种可能实现方式中,该用户设备的位置信息为该用户设备对应的数据网络接入标识DNAI,该方法应用于第三服务器时,该向第二服务器发送第三请求消息之前,该方法还包括:该第三服务器从移动数据网络订阅该用户设备的用户面管理事件,接收该移动数据网络基于订阅返回的该用户面管理事件的通知消息,该通知信息中携带该用户设备的位置信息。In a possible implementation manner, the location information of the user equipment is the data network access identifier DNAI corresponding to the user equipment. When the method is applied to a third server, before the third request message is sent to the second server, the method It also includes: the third server subscribes to the user plane management event of the user equipment from the mobile data network, and receives the notification message of the user plane management event returned by the mobile data network based on the subscription, and the notification information carries the location information of the user equipment .
在一种可能实现方式中,该第三响应消息还携带下述至少一项:该应用的应用实例的IP地址对应的有效区域信息,该有效区域信息用于指示该应用的应用实例的IP地址适用的区域;该应用的应用实例的IP地址对应的第三服务器的IP地址。其中,应用的应用实例的IP地址对应的第三服务器可以理解为服务于该应用的应用实例的第三服务器,第三服务器可以为该应用的应用实例提供边缘使能服务,这些边缘使能服务可以来自于第三服务器自身,也可以来自于3GPP网络。In a possible implementation manner, the third response message also carries at least one of the following: valid area information corresponding to the IP address of the application instance of the application, and the valid area information is used to indicate the IP address of the application instance of the application Applicable area; the IP address of the third server corresponding to the IP address of the application instance of the application. Among them, the third server corresponding to the IP address of the application instance of the application can be understood as a third server serving the application instance of the application, and the third server can provide edge-enabled services for the application instance of the application, and these edge-enabled services It can come from the third server itself, or it can come from the 3GPP network.
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.
图5是本申请实施例提供的一种应用实例的地址获取方法的流程图,该方法可以应用于第二服务器,如图5所示,该方法包括下述步骤:Fig. 5 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a second server. As shown in Fig. 5, the method includes the following steps:
步骤501、从目标设备接收第二请求消息,该第二请求消息携带该用户设备的位置信息或者该用户设备的标识;Step 501: Receive a second request message from the target device, where the second request message carries the location information of the user equipment or the identifier of the user equipment.
步骤502、根据该用户设备的位置信息或者该用户设备的标识,确定对应的边缘网络的信息;Step 502: Determine corresponding edge network information according to the location information of the user equipment or the identifier of the user equipment;
步骤503、向该目标设备发送第二响应消息,该第二响应消息携带该边缘网络的信息。Step 503: Send a second response message to the target device, where the second response message carries information about the edge network.
本申请实施例提供的方法,通过接收用户设备的请求消息,根据请求消息中携带的用户设备的位置信息或者该用户设备的标识,确定并向用户设备返回对应的边缘网络的信息,使得用户设备能够获取边缘网络的信息,使用应用的标识和边缘网络的信息快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided by the embodiment of the present application determines and returns the corresponding edge network information to the user equipment according to the location information of the user equipment or the identifier of the user equipment carried in the request message by receiving the request message of the user equipment, so that the user equipment It can obtain the information of the edge network, and use the identification of the application and the information of the edge network to quickly and accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
需要说明的是,当该第二请求消息是一个订阅的请求消息时,可以理解该第二请求消息用于订阅用户设备对应的边缘网络的信息。当第二服务器获知用户设备的位置信息发生变化时,第二服务器判断如果用户设备的位置对应的边缘网络发生变化,那么第二服务器可以确定用户设备当前位置对应的边缘网络的信息,并向用户设备发送基于该订阅请求的通知消息,通知消息携带边缘网络的信息,具体地,该通知消息还可以携带第三服务器的IP地址。这个通知消息可以发送多次。It should be noted that when the second request message is a subscription request message, it can be understood that the second request message is used to subscribe to the information of the edge network corresponding to the user equipment. When the second server learns that the location information of the user equipment has changed, the second server determines that if the edge network corresponding to the location of the user equipment changes, the second server can determine the edge network information corresponding to the current location of the user equipment, and report to the user The device sends a notification message based on the subscription request. The notification message carries information about the edge network. Specifically, the notification message may also carry the IP address of the third server. This notification message can be sent multiple times.
在一种可能实现方式中,该根据该用户设备的位置信息或者该用户设备的标识,确定对应的边缘网络的信息,包括:根据该用户设备的标识,确定该用户设备的位置信息;根据该用户设备的位置信息,确定对应的边缘网络的信息。In a possible implementation manner, the determining the corresponding edge network information according to the location information of the user equipment or the identification of the user equipment includes: determining the location information of the user equipment according to the identification of the user equipment; The location information of the user equipment determines the corresponding edge network information.
在一种可能实现方式中,该根据该用户设备的位置信息,确定对应的边缘网络的信息,包括:根据该用户设备的位置信息,查询用户设备的位置信息和边缘网络的信息之间的对应关系,得到该用户设备的位置信息对应的边缘网络的信息。In a possible implementation manner, the determining the corresponding edge network information according to the location information of the user equipment includes: querying the correspondence between the location information of the user equipment and the information of the edge network according to the location information of the user equipment Relationship to obtain the edge network information corresponding to the location information of the user equipment.
在一种可能实现方式中,该边缘网络的信息为第三服务器的IP地址,该根据该用户设备的位置信息,确定对应的边缘网络的信息,包括:根据该用户设备的位置信息,确定对应的数据网络接入标识DNAI;根据该DNAI,确定该第三服务器的互联网协议IP地址。In a possible implementation manner, the information of the edge network is the IP address of the third server, and determining the information of the corresponding edge network according to the location information of the user equipment includes: determining the corresponding information according to the location information of the user equipment The data network access identifier DNAI; according to the DNAI, the Internet Protocol IP address of the third server is determined.
在一种可能实现方式中,该根据该用户设备的标识,确定该用户设备的位置信息,包括下述任一项:根据该用户设备的标识,向接入及移动性管理功能AMF请求该用户设备的位置信息,接收该AMF基于请求返回的响应消息,该响应消息携带该用户设备的位置信息;或者,根据该用户设备的标识,向该AMF、第三服务器或者会话管理功能SMF订阅该用户设备的位置信息,接收该AMF、第三服务器或者SMF基于订阅返回的通知消息,该通知信息中携带该用户设备的位置信息。In a possible implementation manner, the determination of the location information of the user equipment according to the identification of the user equipment includes any one of the following: according to the identification of the user equipment, requesting the user from the access and mobility management function AMF The location information of the device, receiving the response message returned by the AMF based on the request, the response message carrying the location information of the user equipment; or, according to the identification of the user equipment, subscribe the user to the AMF, the third server or the session management function SMF The location information of the device receives the notification message returned by the AMF, the third server or the SMF based on the subscription, and the notification information carries the location information of the user device.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation manner, the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
在一种可能实现方式中,该目标设备为用户设备,该向该目标设备发送第二响应消息之 后,该方法还包括:向该用户设备发送更新指示消息,该更新指示消息用于指示更新应用的应用实例的IP地址;In a possible implementation manner, the target device is a user equipment, and after the second response message is sent to the target device, the method further includes: sending an update instruction message to the user equipment, the update instruction message being used to instruct to update the application The IP address of the application instance;
此外,可选的,可重新执行接收第二请求消息、确定对应的边缘网络的信息和发送第二响应消息的步骤。In addition, optionally, the steps of receiving the second request message, determining the corresponding edge network information, and sending the second response message may be performed again.
在一种可能实现方式中,该向该用户设备发送更新指示消息,包括:当监测到该用户设备的位置移出该边缘网络时,向该用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
在一种可能实现方式中,该向该用户设备发送更新指示消息,包括:基于该用户设备订阅的该用户设备对应的边缘网络的变化事件,当该用户设备对应的边缘网络发生变化时,向该用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment changes, The user equipment sends an update instruction message.
在一种可能实现方式中,该目标设备为用户设备或第二服务器。In a possible implementation manner, the target device is a user equipment or a second server.
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.
图6是本申请实施例提供的一种应用实例的地址获取方法的流程图,该方法可以应用于第二服务器,如图6所示,该方法包括下述步骤:Fig. 6 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a second server. As shown in Fig. 6, the method includes the following steps:
步骤601、从目标设备接收第三请求消息,该第三请求消息携带应用的标识和用户设备的信息,该用户设备的信息为该用户设备的位置信息或者该用户设备的标识。Step 601: Receive a third request message from the target device, where the third request message carries the identification of the application and the information of the user equipment, and the information of the user equipment is the location information of the user equipment or the identification of the user equipment.
步骤602、根据该应用的标识和该用户设备的信息,获取该用户设备的信息对应的该应用的应用实例的互联网协议IP地址。Step 602: According to the identification of the application and the information of the user equipment, obtain the Internet Protocol IP address of the application instance of the application corresponding to the information of the user equipment.
步骤603、向该目标设备发送第三响应消息,该第三响应消息携带该用户设备的位置信息对应的该应用的应用实例的IP地址。Step 603: Send a third response message to the target device, where the third response message carries the IP address of the application instance of the application corresponding to the location information of the user equipment.
本申请实施例提供的方法,通过接收目标设备的请求消息,根据请求消息中携带的应用的标识和用户设备的信息,获取并向目标设备返回对应的应用实例的IP地址,使得目标设备能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided by the embodiments of the present application obtains and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and user device information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
在一种可能实现方式中,该根据该应用的标识和该用户设备的信息,获取该用户设备的信息对应的该应用的应用实例的IP地址,包括:根据该用户设备的标识,确定该用户设备的位置信息;根据该应用的标识和该用户设备的位置信息,获取该用户设备的位置信息对应的该应用的应用实例的IP地址。In a possible implementation manner, the obtaining the IP address of the application instance of the application corresponding to the user equipment information according to the identification of the application and the information of the user equipment includes: determining the user according to the identification of the user equipment The location information of the device; according to the identification of the application and the location information of the user equipment, the IP address of the application instance of the application corresponding to the location information of the user equipment is obtained.
在一种可能实现方式中,该根据该应用的标识和该用户设备的信息,获取该用户设备的位置信息对应的该应用的应用实例的IP地址,包括:根据该应用的标识和该用户设备的位置信息,查询应用的标识、用户设备的位置信息和应用实例的IP地址之间的对应关系,得到该用户设备的位置信息对应的该应用的应用实例的IP地址。In a possible implementation manner, the obtaining the IP address of the application instance of the application corresponding to the location information of the user equipment according to the identification of the application and the information of the user equipment includes: according to the identification of the application and the user equipment The location information of the application is inquired about the correspondence between the identification of the application, the location information of the user equipment and the IP address of the application instance, and the IP address of the application instance of the application corresponding to the location information of the user equipment is obtained.
在一种可能实现方式中,该根据该应用的标识和该用户设备的信息,获取该用户设备的信息对应的该应用的应用实例的IP地址,包括:根据该用户设备的位置信息,确定对应的边缘网络的信息;根据该应用的标识和该边缘网络的信息,获取该边缘网络的信息对应的该应用的应用实例的IP地址。In a possible implementation, the obtaining the IP address of the application instance of the application corresponding to the user equipment information according to the identification of the application and the information of the user equipment includes: determining the corresponding IP address according to the location information of the user equipment Information of the edge network; According to the identification of the application and the information of the edge network, obtain the IP address of the application instance of the application corresponding to the information of the edge network.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的数据网络接入标识DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation, the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
在一种可能实现方式中,该根据该应用的标识和该边缘网络的信息,获取该边缘网络的信息对应的该应用的应用实例的IP地址,包括:向第一服务器发送第一请求消息,该第一请求消息携带该应用的标识和该边缘网络的信息;接收该第一服务器基于该第一请求消息返回的第一响应消息,该第一响应消息携带该边缘网络的信息对应的该应用的应用实例的IP地址。In a possible implementation manner, the obtaining the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network includes: sending a first request message to the first server, The first request message carries the identification of the application and the information of the edge network; the first response message returned by the first server based on the first request message is received, and the first response message carries the application corresponding to the information of the edge network The IP address of the application instance.
在一种可能实现方式中,该根据该用户设备的位置信息,确定对应的边缘网络的信息,包括:根据该用户设备的位置信息,查询用户设备的位置信息和边缘网络的信息之间的对应关系,得到该用户设备的位置信息对应的边缘网络的信息。In a possible implementation manner, the determining the corresponding edge network information according to the location information of the user equipment includes: querying the correspondence between the location information of the user equipment and the information of the edge network according to the location information of the user equipment Relationship to obtain the edge network information corresponding to the location information of the user equipment.
在一种可能实现方式中,该边缘网络的信息为第三服务器的IP地址,该根据该用户设备的位置信息,确定对应的边缘网络的信息,包括:根据该用户设备的位置信息,确定对应的DNAI;根据该DNAI,确定该第三服务器的IP地址。In a possible implementation manner, the information of the edge network is the IP address of the third server, and determining the information of the corresponding edge network according to the location information of the user equipment includes: determining the corresponding information according to the location information of the user equipment DNAI; According to the DNAI, determine the IP address of the third server.
在一种可能实现方式中,该根据该用户设备的标识,确定该用户设备的位置信息,包括下述任一项:根据该用户设备的标识,向接入及移动性管理功能AMF请求该用户设备的位置信息,接收该AMF基于请求返回的响应消息,该响应消息携带该用户设备的位置信息;或者,根据该用户设备的标识,向该AMF、第三服务器或者会话管理功能SMF订阅该用户设备的位置信息,接收该AMF、第三服务器或者SMF基于订阅返回的通知消息,该通知信息中携带该用户设备的位置信息。In a possible implementation manner, the determination of the location information of the user equipment according to the identification of the user equipment includes any one of the following: according to the identification of the user equipment, requesting the user from the access and mobility management function AMF The location information of the device, receiving the response message returned by the AMF based on the request, the response message carrying the location information of the user equipment; or, according to the identification of the user equipment, subscribe the user to the AMF, the third server or the session management function SMF The location information of the device receives the notification message returned by the AMF, the third server or the SMF based on the subscription, and the notification information carries the location information of the user device.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
在一种可能实现方式中,该第三响应消息还携带该应用的应用实例的IP地址对应的第三服务器的IP地址,该向该目标设备发送第三响应消息之前,该方法还包括:根据该应用的应用实例的IP地址,查询该应用的应用实例的IP地址对应的第三服务器的IP地址。In a possible implementation, the third response message also carries the IP address of the third server corresponding to the IP address of the application instance of the application. Before sending the third response message to the target device, the method further includes: The IP address of the application instance of the application is queried for the IP address of the third server corresponding to the IP address of the application instance of the application.
在一种可能实现方式中,该目标设备为用户设备,该向该目标设备发送第三响应消息之后,该方法还包括:向该用户设备发送更新指示消息,该更新指示消息用于指示更新应用的应用实例的IP地址;In a possible implementation manner, the target device is a user equipment, and after sending the third response message to the target device, the method further includes: sending an update instruction message to the user equipment, the update instruction message being used to instruct to update the application The IP address of the application instance;
此外,可选的,可重新执行接收第三请求消息、获取应用实例的IP地址和发送第三响应消息的步骤。In addition, optionally, the steps of receiving the third request message, obtaining the IP address of the application instance, and sending the third response message may be performed again.
在一种可能实现方式中,该向该用户设备发送更新指示消息,包括:当监测到该用户设备的位置移出该边缘网络时,向该用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: sending an update instruction message to the user equipment when it is detected that the location of the user equipment moves out of the edge network.
在一种可能实现方式中,该向该用户设备发送更新指示消息,包括:基于该用户设备订阅的该用户设备对应的边缘网络的变化事件,当该用户设备对应的边缘网络发生变化时,向该用户设备发送更新指示消息。In a possible implementation manner, the sending an update instruction message to the user equipment includes: based on a change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment changes, The user equipment sends an update instruction message.
在一种可能实现方式中,该目标设备为该用户设备或第二服务器。In a possible implementation manner, the target device is the user equipment or the second server.
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.
图7是本申请实施例提供的一种应用实例的地址获取方法的流程图,该方法可以应用于第一服务器,如图7所示,该方法包括下述步骤:Fig. 7 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to the first server. As shown in Fig. 7, the method includes the following steps:
步骤701、从目标设备接收第一请求消息,该第一请求消息携带应用的标识和边缘网络 的信息。Step 701: Receive a first request message from the target device, where the first request message carries the identification of the application and the information of the edge network.
步骤702、根据该应用的标识和该边缘网络的信息,确定该边缘网络的信息对应的该应用的应用实例的互联网协议IP地址。Step 702: Determine the Internet Protocol IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
步骤703、向该目标设备发送第一响应消息,该第一响应消息携带该边缘网络的信息对应的该应用的应用实例的IP地址。Step 703: Send a first response message to the target device, where the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
本申请实施例提供的方法,通过接收目标设备的请求消息,根据请求消息中携带的应用的标识和边缘网络的信息,确定并向目标设备返回对应的应用实例的IP地址,使得目标设备能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided by the embodiments of the present application determines and returns the IP address of the corresponding application instance to the target device by receiving the request message of the target device, according to the application identifier and edge network information carried in the request message, so that the target device can quickly Accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
在一种可能实现方式中,该根据该应用的标识和该边缘网络的信息,确定该边缘网络的信息对应的该应用的应用实例的IP地址,包括:根据该应用的标识和该边缘网络的信息,查询应用的标识、边缘网络的信息和应用实例的IP地址之间的对应关系,得到该边缘网络的信息对应的该应用的应用实例的IP地址。In a possible implementation manner, the determination of the IP address of the application instance of the application corresponding to the information of the edge network according to the identification of the application and the information of the edge network includes: according to the identification of the application and the information of the edge network Information, query the correspondence between the identification of the application, the information of the edge network, and the IP address of the application instance, and obtain the IP address of the application instance of the application corresponding to the information of the edge network.
在一种可能实现方式中,该第一响应消息还携带该应用实例的IP地址对应的有效区域信息,该有效区域信息用于指示该应用实例的IP地址适用的区域。In a possible implementation manner, the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的数据网络接入标识DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation, the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
在一种可能实现方式中,该目标设备为用户设备、第二服务器或第三服务器。In a possible implementation manner, the target device is a user equipment, a second server, or a third server.
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.
以第一服务器为DNS服务器,第二服务器为边缘网络配置服务器为例,针对UE先从边缘网络配置服务器中获取边缘网络的信息,然后UE再从DNS服务器获取应用实例的IP地址的情况,参见图8,基于UE和边缘网络配置服务器之间的交互以及UE和DNS服务器之间的交互,该应用实例的地址获取方法可以简述为:该UE向边缘网络配置服务器发送第二请求消息,该第二请求消息携带该UE的位置信息;该UE接收该边缘网络配置服务器基于该第二请求消息返回的第二响应消息,该第二响应消息携带该边缘网络的信息;UE向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和该边缘网络的信息;UE接收该DNS服务器基于该第一请求消息返回的第一响应消息,该第一响应消息携带该边缘网络的信息对应的该应用的应用实例的互联网协议IP地址。Taking the first server as the DNS server and the second server as the edge network configuration server as an example, for the case where the UE first obtains the edge network information from the edge network configuration server, and then the UE obtains the IP address of the application instance from the DNS server, see Figure 8, based on the interaction between the UE and the edge network configuration server and the interaction between the UE and the DNS server, the address acquisition method of this application instance can be briefly described as follows: the UE sends a second request message to the edge network configuration server, The second request message carries the location information of the UE; the UE receives a second response message returned by the edge network configuration server based on the second request message, and the second response message carries the edge network information; the UE sends the first response message to the DNS server A request message, the first request message carrying the identification of the application and the information of the edge network; the UE receives the first response message returned by the DNS server based on the first request message, the first response message carrying the information of the edge network The Internet Protocol IP address of the application instance of this application.
图8对应的实施例是对应用实例的地址获取方法的简要说明,下面将在图9对应的实施例中,对应用实例的地址获取方法的步骤进行具体说明。图9是本申请实施例提供的一种应用实例的地址获取方法的流程图,如图9所示,该方法包括下述步骤:The embodiment corresponding to FIG. 8 is a brief description of the address obtaining method of the application example. In the embodiment corresponding to FIG. 9, the steps of the address obtaining method of the application example will be described in detail below. FIG. 9 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 9, the method includes the following steps:
步骤901、UE向边缘网络配置服务器发送第二请求消息,该第二请求消息携带该UE的位置信息。Step 901: The UE sends a second request message to the edge network configuration server, where the second request message carries location information of the UE.
其中,该第二请求消息用于请求UE的位置信息对应的边缘网络的信息。该UE的位置信息用于指示UE的位置,该UE的位置信息可以为下述至少一种:UE的小区标识(Cell ID)、跟踪区标识(tracking area identity,TAI)、地理位置(或区域)信息、经纬度信息、UE对应的DNAI。第二请求消息可以是位置请求消息,或边缘网络位置请求消息等,本申请对具体 的消息名称不做限定。Wherein, the second request message is used to request the information of the edge network corresponding to the location information of the UE. The location information of the UE is used to indicate the location of the UE. The location information of the UE can be at least one of the following: the cell ID of the UE, the tracking area identity (tracking area identity, TAI), and the geographic location (or area). ) Information, latitude and longitude information, and DNAI corresponding to the UE. The second request message may be a location request message, or an edge network location request message, etc. The specific message name is not limited in this application.
在一种可能实现方式中,UE可以在接收到对应用的访问请求时,执行该步骤901。In a possible implementation manner, the UE may execute this step 901 when receiving an access request for an application.
通过将用户设备的小区标识、TAI、地理位置信息、地理区域信息、DNAI中的至少一种信息作为用户设备的位置信息,提高了用户设备的位置信息的灵活性和可靠性,从而根据该位置信息获取应用实例的IP地址,提高了应用实例的IP地址可靠性高。By using at least one of the cell identification, TAI, geographic location information, geographic area information, and DNAI of the user equipment as the location information of the user equipment, the flexibility and reliability of the location information of the user equipment are improved, so that the location information can be determined according to the location. The information obtains the IP address of the application instance, which improves the reliability of the IP address of the application instance.
可选地,该第二请求消息中还可以携带应用的标识,该应用的标识可以为下述至少一种:应用的标识符(application ID)、统一资源定位符(uniform resource locator,URL)、全量域名(fully qualified domain name,FQDN)、应用名称(application name)。通过将应用的标识符、统一资源定位符、全量域名、应用名称中的至少一种信息作为应用的标识,提高了应用的标识的灵活性和可靠性。Optionally, the second request message may also carry an application identifier, and the application identifier may be at least one of the following: application identifier (application ID), uniform resource locator (uniform resource locator, URL), Fully qualified domain name (FQDN), application name (application name). By using at least one of the application identifier, uniform resource locator, full domain name, and application name as the identification of the application, the flexibility and reliability of the identification of the application are improved.
步骤902、边缘网络配置服务器在接收到第二请求消息后,根据UE的位置信息,确定UE的位置信息对应的边缘网络的信息。Step 902: After receiving the second request message, the edge network configuration server determines the edge network information corresponding to the location information of the UE according to the location information of the UE.
其中,UE的位置信息对应的边缘网络的信息,可以理解为,距离UE最近的边缘网络的信息,可以是物理位置上的距离,还可以是网络拓扑中的距离。该边缘网络的信息可以用于指示边缘网络的位置,该边缘网络的信息可以理解为UE的另一种位置信息。DN的信息可以是边缘网络的标识,或者边缘网络的位置信息,或者边缘网络的属性信息。边缘网络的信息可以为下述至少一种:边缘网络对应的DNAI、边缘网络的IP地址、EES的IP地址。其中,边缘网络的IP地址或者EES的IP地址可以是IP地址段(地址范围)。边缘网络的IP地址可以是一个虚拟IP地址,可以用于指示部署在边缘网络中的一个或多个应用实例,因为不是应用实例的真实IP地址,因此可以称为虚拟IP地址。通过将边缘网络对应的DNAI、边缘网络的IP地址、第三服务器的IP地址中的至少一种信息作为边缘网络的信息,提高了边缘网络的信息的灵活性和可靠性,使得根据该位置信息获取的应用实例的IP地址可靠性高。Wherein, the information of the edge network corresponding to the location information of the UE can be understood as the information of the edge network closest to the UE, which may be a distance in a physical location or a distance in a network topology. The information of the edge network may be used to indicate the location of the edge network, and the information of the edge network may be understood as another type of location information of the UE. The DN information may be the identification of the edge network, or the location information of the edge network, or the attribute information of the edge network. The information of the edge network may be at least one of the following: DNAI corresponding to the edge network, the IP address of the edge network, and the IP address of the EES. Among them, the IP address of the edge network or the IP address of the EES may be an IP address segment (address range). The IP address of the edge network can be a virtual IP address, which can be used to indicate one or more application instances deployed in the edge network. Because it is not the real IP address of the application instance, it can be called a virtual IP address. By using at least one of the DNAI corresponding to the edge network, the IP address of the edge network, and the IP address of the third server as the information of the edge network, the flexibility and reliability of the information of the edge network are improved, so that according to the location information The IP address of the obtained application instance is highly reliable.
本申请实施例中,边缘网络配置服务器可以保存有UE的位置信息和边缘网络的信息之间的对应关系,这样边缘网络配置服务器可以根据第二请求消息携带的UE的位置信息,查询该对应关系,得到边缘网络的信息,也即是,UE的位置信息对应的边缘网络的信息。例如,边缘网络配置服务器可以维护一个本地数据库,在该本地数据库中存储UE的位置信息和边缘网络的信息之间的对应关系,这样边缘网络配置服务器可以在本地数据库中使用UE的位置信息作为查询的过滤条件,查询到符合该过滤条件的边缘网络的信息。In the embodiment of the present application, the edge network configuration server may store the corresponding relationship between the location information of the UE and the information of the edge network, so that the edge network configuration server can query the corresponding relationship according to the location information of the UE carried in the second request message , Obtain the information of the edge network, that is, the information of the edge network corresponding to the location information of the UE. For example, the edge network configuration server can maintain a local database, and store the correspondence between the location information of the UE and the information of the edge network in the local database, so that the edge network configuration server can use the location information of the UE in the local database as a query The filter condition of, query the information of the edge network that meets the filter condition.
以边缘网络的信息为EES的IP地址为例,边缘网络配置服务器可以根据UE的位置信息,确定EES的IP地址,具体地,边缘网络配置服务器可以根据UE的位置信息,确定对应的DNAI,例如,边缘网络配置服务器可以根据UE的位置信息,查询UE的位置信息和DNAI之间的对应关系,得到DNAI,再根据DNAI,确定EES的IP地址。在一些实施例中,边缘网络配置服务器也可以向EES或会话管理功能(session management function,SMF)订阅UE的用户面管理事件(UE UP change management event),接收EES或SMF基于订阅返回的该事件的通知信息,通知信息携带DNAI。Taking the information of the edge network as the IP address of EES as an example, the edge network configuration server can determine the IP address of the EES according to the location information of the UE. Specifically, the edge network configuration server can determine the corresponding DNAI according to the location information of the UE, for example, The edge network configuration server can query the corresponding relationship between the location information of the UE and the DNAI according to the location information of the UE to obtain the DNAI, and then determine the IP address of the EES according to the DNAI. In some embodiments, the edge network configuration server may also subscribe to the UE UP change management event (UE UP change management event) from the EES or the session management function (session management function, SMF), and receive the event returned by the EES or SMF based on the subscription. The notification information, the notification information carries DNAI.
针对第二请求消息还携带应用的标识的情况,边缘网络配置服务器可以根据UE的位置信息和应用的标识,确定支持该应用的边缘网络的信息。For the case that the second request message also carries the identification of the application, the edge network configuration server may determine the information of the edge network that supports the application according to the location information of the UE and the identification of the application.
可选地,边缘网络配置服务器还可以确定该边缘网络的信息对应的有效区域信息,该有效区域信息用于指示该边缘网络的信息适用的区域,也即是,该边缘网络的信息在该有效区 域信息所指示的区域内有效(valid),还可以理解为该边缘网络的服务范围。当UE移动出该有效区域信息所指示的区域后,则该边缘网络的信息不再有效,UE需要再次发起第二请求消息,重新获取移动后的位置信息对应的边缘网络的信息。Optionally, the edge network configuration server can also determine the effective area information corresponding to the information of the edge network, and the effective area information is used to indicate the area to which the information of the edge network is applicable, that is, the information of the edge network is in the effective area. Valid in the area indicated by the area information can also be understood as the service range of the edge network. When the UE moves out of the area indicated by the effective area information, the information of the edge network is no longer valid, and the UE needs to initiate a second request message again to obtain the information of the edge network corresponding to the moved location information again.
需要说明的是,步骤901和步骤902是以用户设备从边缘网络配置服务器获取边缘网络的信息为例进行说明,在一些实施例中,该用户设备可以根据该UE的位置信息,从本地存储的边缘网络配置信息中,获取该边缘网络的信息,该边缘网络配置信息包括至少一个边缘网络的信息,该多个边缘网络中包括该边缘网络。通过根据用户设备的位置信息,从多个边缘网络的信息中,获取用户设备的位置信息对应的边缘网络的信息,提供了一种准确快速获取边缘网络的信息的方式。It should be noted that step 901 and step 902 are described by taking the user equipment acquiring edge network information from the edge network configuration server as an example. In some embodiments, the user equipment may store locally based on the location information of the UE. In the edge network configuration information, information about the edge network is acquired, the edge network configuration information includes information about at least one edge network, and the edge network is included in the plurality of edge networks. By obtaining the information of the edge network corresponding to the location information of the user equipment from the information of multiple edge networks according to the location information of the user equipment, it provides an accurate and rapid way to obtain the information of the edge network.
步骤903、边缘网络配置服务器向UE发送第二响应消息,该第二响应消息携带边缘网络的信息。Step 903: The edge network configuration server sends a second response message to the UE, where the second response message carries information about the edge network.
边缘网络配置服务器在确定UE的位置信息对应的边缘网络的信息后,可以将该边缘网络的信息携带在第二响应消息中返回给UE。针对边缘网络配置服务器还可以确定该边缘网络的信息对应的有效区域信息的情况,该第二响应消息中还可以携带该边缘网络的信息对应的有效区域信息。After determining the edge network information corresponding to the location information of the UE, the edge network configuration server may carry the edge network information in a second response message and return it to the UE. For the case where the edge network configuration server can also determine the effective area information corresponding to the edge network information, the second response message may also carry the effective area information corresponding to the edge network information.
通过在基于请求消息返回的响应消息中同时携带边缘网络的信息以及对应的有效区域信息,使得UE能够得知边缘网络的信息适用的区域,从而在该区域内使用该边缘网络的信息获取应用实例的IP地址,提高了应用实例的IP地址获取的准确性。By carrying the information of the edge network and the corresponding effective area information in the response message returned based on the request message, the UE can know the area to which the information of the edge network is applicable, so as to use the information of the edge network in the area to obtain application examples The IP address of the application instance improves the accuracy of obtaining the IP address.
步骤904、UE接收边缘网络配置服务器基于第二请求消息返回的第二响应消息,向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息。Step 904: The UE receives a second response message returned by the edge network configuration server based on the second request message, and sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
UE在获取到边缘网络的信息后,可以将应用的标识和边缘网络的信息携带在第一请求消息中发送给DNS服务器,该第一请求消息用于请求边缘网络的信息对应的该应用的应用实例的IP地址。After obtaining the edge network information, the UE can carry the application identifier and edge network information in a first request message and send it to the DNS server. The first request message is used to request the edge network information corresponding to the application of the application The IP address of the instance.
步骤905、DNS服务器在接收到第一请求消息后,向UE发送第一响应消息,该第一响应消息携带边缘网络的信息对应的该应用的应用实例的IP地址。Step 905: After receiving the first request message, the DNS server sends a first response message to the UE, where the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
本申请实施例中,DNS服务器可以根据第一请求消息携带的应用的标识和边缘网络的信息,确定对应的(匹配的)应用实例的IP地址。具体地,DNS服务器可以保存有应用的标识、边缘网络的信息和应用实例的IP地址之间的对应关系,这样DNS服务器可以根据第一请求消息携带的应用的标识和边缘网络的信息,查询该对应关系,得到应用实例的IP地址,也即是,边缘网络的信息对应的该应用的应用实例的IP地址。In the embodiment of the present application, the DNS server may determine the IP address of the corresponding (matching) application instance according to the application identifier and edge network information carried in the first request message. Specifically, the DNS server can store the correspondence between the application identifier, edge network information, and the IP address of the application instance, so that the DNS server can query the application identifier and edge network information carried in the first request message. According to the corresponding relationship, the IP address of the application instance is obtained, that is, the IP address of the application instance of the application corresponding to the information of the edge network.
例如,边缘网络配置服务器可以维护一个本地数据库,在该本地数据库中存储应用的标识、边缘网络的信息和应用实例的IP地址之间的对应关系,这样DNS服务器可以在本地数据库中,使用应用的标识和边缘网络的信息作为查询的过滤条件,查询到符合该过滤条件的应用实例的IP地址。然后,边缘网络配置服务器可以将该应用实例的IP地址携带在第一响应消息中返回给UE。For example, the edge network configuration server can maintain a local database, and store the correspondence between the identification of the application, the information of the edge network, and the IP address of the application instance in the local database, so that the DNS server can use the application's The identification and edge network information is used as the filter condition for the query, and the IP address of the application instance that meets the filter condition is queried. Then, the edge network configuration server may carry the IP address of the application instance in the first response message and return it to the UE.
需要说明的是,如果该应用在边缘网络中部署了应用实例,则UE获取到的是边缘网络中该应用的应用实例的IP地址,如果应用未在边缘网络中部署应用实例,则UE获取到的可以是云端(中心云)上的该应用的IP地址。It should be noted that if the application has an application instance deployed in the edge network, the UE obtains the IP address of the application instance of the application in the edge network. If the application does not deploy the application instance in the edge network, the UE obtains Can be the IP address of the application on the cloud (central cloud).
可选地,DNS服务器还可以确定该应用实例的IP地址对应的有效区域信息,该有效区域 信息用于指示该应用实例的IP地址适用的区域,也即是,应用实例的IP地址在该有效区域信息所指示的区域内有效,当UE移动出该有效区域信息所指示的区域后,则该应用实例的IP地址不再有效。相应地,该第一响应消息中还可以携带该IP地址对应的有效区域信息。Optionally, the DNS server can also determine the valid zone information corresponding to the IP address of the application instance, and the valid zone information is used to indicate the zone to which the IP address of the application instance applies, that is, the IP address of the application instance is valid in this valid zone. The area indicated by the area information is valid. After the UE moves out of the area indicated by the valid area information, the IP address of the application instance is no longer valid. Correspondingly, the first response message may also carry valid area information corresponding to the IP address.
步骤906、UE接收DNS服务器基于第一请求消息返回的第一响应消息。Step 906: The UE receives the first response message returned by the DNS server based on the first request message.
UE在接收到第一响应消息后,可以从该第一响应消息中获取到该应用的应用实例的IP地址,该应用实例的IP地址是UE当前位置对应的应用实例的IP地址。After receiving the first response message, the UE can obtain the IP address of the application instance of the application from the first response message, where the IP address of the application instance is the IP address of the application instance corresponding to the current location of the UE.
步骤901至步骤903是UE获取边缘网络的信息的过程,步骤904至步骤906是UE通过发送第一请求消息和接收第一响应消息,获取到应用的应用实例的IP地址的过程。Steps 901 to 903 are processes for the UE to obtain information of the edge network, and steps 904 to 906 are processes for the UE to obtain the IP address of the application instance of the application by sending a first request message and receiving a first response message.
可选地,UE可以接收边缘网络服务器或EES的更新指示消息,该更新指示消息用于指示更新该应用的应用实例的IP地址。Optionally, the UE may receive an update instruction message from the edge network server or EES, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
可选地,该更新指示消息可以用于指示用户设备的位置发生变化,或,用于指示用户设备所处的边缘网络发生变化,或,用于指示接收方通过发送请求消息以获取更新后的IP地址。Optionally, the update instruction message can be used to indicate that the location of the user equipment has changed, or that the edge network where the user equipment is located has changed, or that the receiver can send a request message to obtain updated information. IP address.
在一种可能实现方式中,该更新指示消息还包括更新后的边缘网络的信息,这种情况下,UE获取边缘网络的信息的过程可以包括:接收该更新后的边缘网络的信息。UE接收该更新指示消息的步骤可以在步骤904之前执行,例如,UE在接收到更新指示消息,即接收到更新后的边缘网络的信息后,可以通过步骤904至步骤906来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。该接收更新指示消息的步骤也可以在步骤906之后执行,例如,UE通过步骤301至步骤303,获得该应用的应用实例的IP地址后,如果接收到该更新指示消息,即接收到更新后的边缘网络的信息,则可以再次通过步骤904至步骤906来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。In a possible implementation manner, the update instruction message further includes updated edge network information. In this case, the process of obtaining the edge network information by the UE may include: receiving the updated edge network information. The step for the UE to receive the update indication message may be performed before step 904. For example, after the UE receives the update indication message, that is, after receiving the updated edge network information, it may obtain the updated IP through steps 904 to 906. Address, the IP address corresponds to the updated edge network information. The step of receiving the update instruction message can also be performed after step 906. For example, after the UE obtains the IP address of the application instance of the application through step 301 to step 303, if the update instruction message is received, the updated instruction message is received. For the information of the edge network, the updated IP address can be obtained through step 904 to step 906 again, and the IP address corresponds to the information of the updated edge network.
可选地,该更新指示消息中也可以不包括边缘网络的信息,这种情况下,该接收更新指示消息的步骤可以在步骤901之前执行,例如,UE在接收到更新指示消息后,可以通过步骤901至步骤906来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。该接收更新指示消息的步骤也可以在步骤906之后执行,例如,UE通过步骤901至步骤906,获得该应用的应用实例的IP地址后,如果接收到该更新指示消息,则可以再次通过步骤901至步骤906获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。Optionally, the update indication message may not include edge network information. In this case, the step of receiving the update indication message may be performed before step 901. For example, after the UE receives the update indication message, it may pass Steps 901 to 906 are used to obtain the updated IP address, which corresponds to the updated edge network information. The step of receiving the update instruction message can also be performed after step 906. For example, after the UE obtains the IP address of the application instance of the application through step 901 to step 906, if it receives the update instruction message, it can go through step 901 again. Go to step 906 to obtain the updated IP address, which corresponds to the updated edge network information.
在一种可能实现方式中,边缘网络服务器或EES可以监测UE的位置信息,当监测到UE的位置移出步骤902中确定的边缘网络时,边缘网络配置服务器或EES可以向UE发送更新指示消息。在另一种可能实现方式中,UE可以向该第二服务器或该第三服务器发送订阅信息,该订阅信息用于订阅该用户设备对应的边缘网络的变化事件,边缘网络配置服务器或EES可以基于UE订阅的变化事件,当UE对应的边缘网络发生变化时,向UE发送更新指示消息,使得UE接收到该更新指示消息。In a possible implementation manner, the edge network server or EES may monitor the location information of the UE, and when it is monitored that the location of the UE moves out of the edge network determined in step 902, the edge network configuration server or EES may send an update instruction message to the UE. In another possible implementation manner, the UE may send subscription information to the second server or the third server, and the subscription information is used to subscribe to the change event of the edge network corresponding to the user equipment. The edge network configuration server or EES may be based on For the change event subscribed by the UE, when the edge network corresponding to the UE changes, an update indication message is sent to the UE, so that the UE receives the update indication message.
通过向UE发送更新指示消息,使得UE可以在需要访问应用时,重新获取该应用的应用实例的IP地址,提供了一种更新应用实例的IP地址的触发条件,可以保证应用实例的IP地址的可靠性。By sending an update instruction message to the UE, the UE can re-obtain the IP address of the application instance of the application when it needs to access the application, and provide a trigger condition for updating the IP address of the application instance, which can ensure the IP address of the application instance. reliability.
需要说明的是,步骤901至步骤906是以请求-响应(request-response)机制为例进行说明,也即是,发送一个请求消息,接收一个响应消息,在一些实施例中,步骤901至步骤906也可以是订阅-通知(subscribe-notification)机制,也即是,发送一个订阅消息,接收多个通知消息。It should be noted that steps 901 to step 906 are described using a request-response mechanism as an example, that is, a request message is sent and a response message is received. In some embodiments, steps 901 to step 906 may also be a subscription-notification (subscribe-notification) mechanism, that is, one subscription message is sent and multiple notification messages are received.
本申请实施例中,通过UE先与边缘网络配置服务器进行交互,使用UE的位置信息从边缘网络配置服务器中获取边缘网络的信息,然后UE再与DNS服务器进行交互,使用应用的标识和边缘网络的信息从DNS服务器获取对应的应用实例的IP地址,由于该应用实例的IP地址是根据UE的位置信息确定的,是离UE最近的应用实例的IP地址,因此能够满足第三方应用提供商调度的需求。In the embodiment of this application, the UE first interacts with the edge network configuration server, uses the location information of the UE to obtain the edge network information from the edge network configuration server, and then the UE interacts with the DNS server, using the application identifier and the edge network Obtain the IP address of the corresponding application instance from the DNS server. Since the IP address of the application instance is determined according to the location information of the UE, it is the IP address of the application instance closest to the UE, so it can meet the schedule of third-party application providers Demand.
另外,如果DNS服务器没有部署应用实例(边缘应用),则UE获取到的是中心云上的应用的IP地址,提升了获取的效率,节省了和不同EES交互的信令,提高了应用实例的IP地址获取的准确性。In addition, if the DNS server does not deploy an application instance (edge application), the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
图9对应的实施例中,UE向边缘网络配置服务器发送的第二请求消息携带UE的位置信息。可选地,该第二请求消息中也可以不携带UE的位置信息,而是携带UE的标识。下面将针对这种情况,在图10对应的实施例中,对应用实例的地址获取方法的步骤进行说明。需要说明的是,图10对应的实施例着重描述与图9对应的实施例的区别之处,而与图9对应的实施例同理的步骤还请参见图9对应的实施例,在图10对应的实施例中不做赘述。In the embodiment corresponding to FIG. 9, the second request message sent by the UE to the edge network configuration server carries the location information of the UE. Optionally, the second request message may not carry the location information of the UE, but instead carry the identity of the UE. In view of this situation, in the embodiment corresponding to FIG. 10, the steps of the address obtaining method of the application example will be described below. It should be noted that the embodiment corresponding to FIG. 10 focuses on the differences between the embodiment corresponding to FIG. 9 and the steps similar to those of the embodiment corresponding to FIG. 9 also refer to the embodiment corresponding to FIG. 9. Details are not described in the corresponding embodiment.
图10是本申请实施例提供的一种应用实例的地址获取方法的流程图,如图10所示,该方法包括下述步骤:FIG. 10 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 10, the method includes the following steps:
步骤1001、UE向边缘网络配置服务器发送第二请求消息,该第二请求消息携带该UE的标识。Step 1001: The UE sends a second request message to the edge network configuration server, where the second request message carries an identifier of the UE.
其中,UE的标识可以用于确定UE的位置信息,该第二请求消息用于请求UE的位置信息对应的边缘网络的信息。Wherein, the identifier of the UE may be used to determine the location information of the UE, and the second request message is used to request information of the edge network corresponding to the location information of the UE.
其中,该UE的标识可以为下述至少一种:UE的IP地址、通用公共签约标识符(generic public subscription identifier,GPSI)、移动台综合业务数字网(mobile station integrated services digital network,MSISDN)。通过将用户设备的IP地址、GPSI、MSISDN中的至少一种信息作为用户设备的标识,提高了用户设备的标识的灵活性和可靠性。The identifier of the UE may be at least one of the following: the IP address of the UE, the generic public subscription identifier (GPSI), and the mobile station integrated services digital network (MSISDN). By using at least one of the IP address, GPSI, and MSISDN of the user equipment as the identification of the user equipment, the flexibility and reliability of the identification of the user equipment are improved.
可选地,与步骤901同理,该第二请求消息中还可以携带应用的标识。Optionally, as in step 901, the second request message may also carry an application identifier.
步骤1002、边缘网络配置服务器在接收到第二请求消息后,根据UE的标识,获取UE的位置信息,根据UE的位置信息,确定对应的边缘网络的信息。Step 1002: After receiving the second request message, the edge network configuration server obtains the location information of the UE according to the identifier of the UE, and determines the corresponding edge network information according to the location information of the UE.
本申请实施例中,边缘网络配置服务器根据UE的标识,获取UE的位置信息可以包括下述两种方法:In the embodiment of the present application, the edge network configuration server may obtain the location information of the UE according to the identifier of the UE in the following two methods:
方法1、边缘网络配置服务器根据该UE的标识,向接入及移动性管理功能(serving access and mobility management function,serving AMF)请求该UE的位置信息,接收该AMF基于请求返回的响应消息,该响应消息携带该UE的位置信息。Method 1. The edge network configuration server requests the location information of the UE from the access and mobility management function (serving access and mobility management function, serving AMF) according to the identity of the UE, and receives the response message returned by the AMF based on the request. The response message carries the location information of the UE.
方法2、边缘网络配置服务器根据该UE的标识,向该AMF、第三服务器或者会话管理功能(session management function,SMF)订阅该UE的位置信息,接收该AMF、第三服务器或者SMF基于订阅返回的通知消息,该通知信息中携带该UE的位置信息。如订阅UE的“UE UP change management event”并获取通知信息,通知信息携带UE的位置信息,如UE的DNAI。Method 2. The edge network configuration server subscribes to the location information of the UE from the AMF, the third server or the session management function (SMF) according to the identity of the UE, and receives the AMF, the third server or the SMF and returns based on the subscription The notification message contains the location information of the UE. For example, subscribe to the "UE UP change management event" of the UE and obtain the notification information, which carries the location information of the UE, such as the DNAI of the UE.
边缘网络配置服务器可以向AMF、EES或者SMF订阅该UE的位置信息,接收AMF、EES或者SMF基于订阅返回的通知消息,该通知信息中携带该UE的位置信息。The edge network configuration server may subscribe to the location information of the UE from the AMF, EES or SMF, and receive notification messages returned by the AMF, EES or SMF based on the subscription, and the notification information carries the location information of the UE.
需要说明的是,当第二请求消息是一个订阅的请求消息时,可以理解第二请求消息用于 订阅UE对应的边缘网络的信息。当边缘网络配置服务器获知UE的位置信息发生变化时,边缘网络配置服务器判断如果UE的位置对应的边缘网络发生变化,那么边缘网络配置服务器确定UE当前位置对应的边缘网络的信息,并向UE发送基于该订阅请求的通知消息,通知消息携带边缘网络的信息,具体地携带EES的IP地址。这个通知消息可以发送多次。It should be noted that when the second request message is a subscription request message, it can be understood that the second request message is used to subscribe to the information of the edge network corresponding to the UE. When the edge network configuration server learns that the location information of the UE has changed, the edge network configuration server determines that if the edge network corresponding to the location of the UE changes, the edge network configuration server determines the edge network information corresponding to the current location of the UE and sends it to the UE Based on the notification message of the subscription request, the notification message carries the information of the edge network, specifically the IP address of the EES. This notification message can be sent multiple times.
该步骤1002中边缘网络配置服务器根据UE的位置信息,确定对应的边缘网络的信息与步骤902同理,不再赘述。In step 1002, the edge network configuration server determines the corresponding edge network information according to the location information of the UE. The same is true for step 902, and will not be repeated.
步骤1003、边缘网络配置服务器向UE发送第二响应消息,该第二响应消息携带边缘网络的信息。Step 1003: The edge network configuration server sends a second response message to the UE, where the second response message carries information about the edge network.
步骤1004、UE接收边缘网络配置服务器基于第二请求消息返回的第二响应消息,向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息。Step 1004: The UE receives the second response message returned by the edge network configuration server based on the second request message, and sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
步骤1005、DNS服务器在接收到第一请求消息后,向UE发送第一响应消息,该第一响应消息携带边缘网络的信息对应的该应用的应用实例的IP地址。Step 1005: After receiving the first request message, the DNS server sends a first response message to the UE. The first response message carries the IP address of the application instance of the application corresponding to the edge network information.
步骤1003至步骤1005与步骤903至步骤905同理,不再赘述。Step 1003 to step 1005 are the same as step 903 to step 905, and will not be repeated.
步骤1006、UE接收DNS服务器基于第一请求消息返回的第一响应消息。Step 1006: The UE receives the first response message returned by the DNS server based on the first request message.
本申请实施例中,通过UE先与边缘网络配置服务器进行交互,使用UE的标识从边缘网络配置服务器中获取边缘网络的信息,然后UE再与DNS服务器进行交互,使用应用的标识和边缘网络的信息从DNS服务器获取对应的应用实例的IP地址,其中,边缘网络配置服务器可以根据UE的标识确定UE的位置信息,再根据UE的位置信息确定边缘网络的信息,由于该应用实例的IP地址是根据UE的位置信息确定的,是离UE最近的应用实例的IP地址,因此能够满足第三方应用提供商调度的需求。In the embodiment of this application, the UE first interacts with the edge network configuration server, uses the UE's identity to obtain the edge network information from the edge network configuration server, and then the UE interacts with the DNS server, using the application's identity and edge network information The information obtains the IP address of the corresponding application instance from the DNS server, where the edge network configuration server can determine the location information of the UE according to the UE’s identity, and then determine the edge network information according to the UE’s location information, because the IP address of the application instance is The IP address of the application instance closest to the UE is determined according to the location information of the UE, so it can meet the scheduling requirements of third-party application providers.
另外,如果DNS服务器没有部署应用实例(边缘应用),则UE获取到的是中心云上的应用的IP地址,提升了获取的效率,节省了和不同EES交互的信令,提高了应用实例的IP地址获取的准确性。In addition, if the DNS server does not deploy an application instance (edge application), the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
图9对应的实施例中,UE先根据UE的位置信息,向边缘网络配置服务器请求边缘网络的信息,UE再根据应用的标识和边缘网络的信息,向DNS服务器请求应用实例的IP地址。在一些实施例中,UE无需与DNS服务器之间进行交互,可以从边缘网络配置服务器获取应用实例的IP地址,下面将针对这种情况,在图11对应的实施例中进行说明。参见图11,该应用实例的地址获取方法可以简述为:UE向边缘网络配置服务器发送第三请求消息,该第三请求消息携带应用的标识和UE的位置信息;UE接收该边缘网络配置服务器基于该第三请求消息返回的第三响应消息,该第三响应消息携带UE的位置信息对应的该应用的应用实例的IP地址。可选地,边缘网络配置服务器向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息;边缘网络配置服务器接收DNS服务器基于第一请求消息返回的第一响应消息,该第一响应消息携带应用实例的IP地址。In the embodiment corresponding to FIG. 9, the UE first requests the edge network information from the edge network configuration server according to the location information of the UE, and then the UE requests the IP address of the application instance from the DNS server according to the application identifier and edge network information. In some embodiments, the UE does not need to interact with the DNS server, and can obtain the IP address of the application instance from the edge network configuration server. This case will be described in the embodiment corresponding to FIG. 11 below. Referring to FIG. 11, the address acquisition method of the application instance can be briefly described as: the UE sends a third request message to the edge network configuration server, the third request message carries the identification of the application and the location information of the UE; the UE receives the edge network configuration server Based on the third response message returned by the third request message, the third response message carries the IP address of the application instance of the application corresponding to the location information of the UE. Optionally, the edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network; the edge network configuration server receives the first response message returned by the DNS server based on the first request message , The first response message carries the IP address of the application instance.
如图11中的实线所示,该应用实例的地址获取方法可以基于UE和边缘网络配置服务器之间的交互来实现,如果边缘网络配置服务器保存有UE的位置信息或边缘网络的信息、应用的标识、应用实例的IP地址之间的对应关系,则UE可以直接向边缘网络配置服务器请求应用实例的IP地址。如图11中的实线和虚线所示,该应用实例的地址获取方法可以基于UE和边缘网络配置服务器之间的交互以及边缘网络配置服务器与DNS服务器之间的交互来实 现,如果边缘网络配置服务器仅保存有UE的位置信息和边缘网络的信息的对应关系,而没有UE的位置信息或边缘网络的信息、应用的标识、应用实例的IP地址之间的对应关系,则边缘网络配置服务器可以进一步向DNS服务器发送请求消息,来获取应用实例的IP地址后返回给UE。As shown by the solid line in Figure 11, the address acquisition method of this application instance can be implemented based on the interaction between the UE and the edge network configuration server. If the edge network configuration server saves the location information of the UE or the edge network information, application The corresponding relationship between the identifier of the application instance and the IP address of the application instance, the UE can directly request the IP address of the application instance from the edge network configuration server. As shown by the solid and dashed lines in Figure 11, the address acquisition method of this application instance can be implemented based on the interaction between the UE and the edge network configuration server and the interaction between the edge network configuration server and the DNS server. The server only saves the correspondence between the location information of the UE and the information of the edge network, and there is no correspondence between the location information of the UE or the information of the edge network, the identification of the application, and the IP address of the application instance, the edge network configuration server can Further send a request message to the DNS server to obtain the IP address of the application instance and return it to the UE.
下面将针对这两种情况,在图12对应的实施例中,对应用实例的地址获取方法进行说明。需要说明的是,图12对应的实施例着重描述与图9对应的实施例的区别之处,而与图9对应的实施例同理的步骤还请参见图9对应的实施例,在图12对应的实施例中不做赘述。In the following two cases, in the embodiment corresponding to FIG. 12, the address obtaining method of the application example will be described. It should be noted that the embodiment corresponding to FIG. 12 focuses on the differences between the embodiment corresponding to FIG. 9 and the steps similar to those of the embodiment corresponding to FIG. 9 also refer to the embodiment corresponding to FIG. 9. Details are not described in the corresponding embodiment.
图12是本申请实施例提供的一种应用实例的地址获取方法的流程图,如图12所示,该方法包括下述步骤:FIG. 12 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 12, the method includes the following steps:
步骤1201、UE向边缘网络配置服务器发送第三请求消息,该第三请求消息携带应用的标识和UE的位置信息。Step 1201: The UE sends a third request message to the edge network configuration server, where the third request message carries the identifier of the application and the location information of the UE.
其中,该第三请求消息用于请求UE的位置信息对应的该应用的应用实例的IP地址。The third request message is used to request the IP address of the application instance of the application corresponding to the location information of the UE.
其中,应用的标识和UE的位置信息与步骤901中的应用的标识和UE的位置信息同理,不再赘述。Wherein, the identification of the application and the location information of the UE are the same as the identification of the application and the location information of the UE in step 901, and will not be repeated.
步骤1202、边缘网络配置服务器在接收到第三请求消息后,根据UE的位置信息,确定对应的边缘网络的信息。Step 1202, after receiving the third request message, the edge network configuration server determines the corresponding edge network information according to the location information of the UE.
该步骤1202中根据UE的位置信息,确定对应的边缘网络的信息与步骤902中根据UE的位置信息,确定对应的边缘网络的信息同理,不再赘述。The determination of the corresponding edge network information according to the location information of the UE in step 1202 is the same as the determination of the corresponding edge network information according to the location information of the UE in step 902, and will not be repeated.
步骤1203、边缘网络配置服务器向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息。Step 1203: The edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
步骤1204、DNS服务器在接收到第一请求消息后,根据应用的标识和边缘网络的信息,确定边缘网络的信息对应的该应用的应用实例的IP地址。Step 1204: After receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
该步骤1204与步骤905中DNS服务器根据应用的标识和边缘网络的信息,确定应用实例的IP地址同理,不再赘述。This step 1204 is the same as the step 905 in which the DNS server determines the IP address of the application instance according to the identification of the application and the information of the edge network, and will not be repeated here.
步骤1205、DNS服务器向边缘网络配置服务器发送第一响应消息,该第一响应消息携带应用实例的IP地址。Step 1205: The DNS server sends a first response message to the edge network configuration server, where the first response message carries the IP address of the application instance.
步骤1202至步骤1205为可选步骤。Step 1202 to step 1205 are optional steps.
与步骤905同理,DNS服务器还可以确定该应用实例的IP地址对应的有效区域信息,相应地,DNS服务器可以将该有效区域信息携带在第一响应消息中返回给边缘网络配置服务器。Similar to step 905, the DNS server can also determine the effective area information corresponding to the IP address of the application instance. Accordingly, the DNS server can carry the effective area information in the first response message and return it to the edge network configuration server.
步骤1206、边缘网络配置服务器获取应用实例的IP地址。Step 1206: The edge network configuration server obtains the IP address of the application instance.
在一种可能实现方式中,边缘网络配置服务器可以从DNS服务器获取应用实例的IP地址。例如,通过步骤1202至步骤1205,边缘网络配置服务器可以接收到DNS服务器返回的第一响应消息,边缘网络配置服务器可以从DNS服务器返回的第一响应消息中,获取到应用实例的IP地址。In a possible implementation manner, the edge network configuration server may obtain the IP address of the application instance from the DNS server. For example, through step 1202 to step 1205, the edge network configuration server may receive the first response message returned by the DNS server, and the edge network configuration server may obtain the IP address of the application instance from the first response message returned by the DNS server.
在另一种可能实现方式中,边缘网络配置服务器可以自己解析出应用实例的IP地址。例如,通过步骤1201,边缘网络配置服务器可以接收到第三请求消息,根据该第三请求消息携带的应用的标识和UE的位置信息,获取应用实例的IP地址。例如,边缘网络配置服务器可以保存有UE的位置信息、应用的标识和应用实例的IP地址之间的对应关系,边缘网络配置服务器可以根据应用的标识和UE的位置信息,查询该对应关系,得到应用实例的IP地址。 可选地,边缘网络配置服务器还可以确定该应用实例的IP地址对应的有效区域信息。In another possible implementation manner, the edge network configuration server can resolve the IP address of the application instance by itself. For example, through step 1201, the edge network configuration server may receive the third request message, and obtain the IP address of the application instance according to the identification of the application carried in the third request message and the location information of the UE. For example, the edge network configuration server may save the corresponding relationship between the location information of the UE, the application identifier and the IP address of the application instance, and the edge network configuration server may query the corresponding relationship according to the application identifier and the location information of the UE, and obtain The IP address of the application instance. Optionally, the edge network configuration server may also determine the effective area information corresponding to the IP address of the application instance.
可选地,边缘网络配置服务器在获取到应用实例的IP地址后,还可以根据获取到的应用实例的IP地址,查找该应用实例的IP地址对应的EES的IP地址,例如,边缘网络配置服务器可以根据获取到的应用实例的IP地址,查询应用实例的IP地址和EES的IP地址之间的对应关系,得到该应用实例的IP地址对应的EES的IP地址。Optionally, after obtaining the IP address of the application instance, the edge network configuration server may also search for the IP address of the EES corresponding to the IP address of the application instance according to the obtained IP address of the application instance, for example, the edge network configuration server The corresponding relationship between the IP address of the application instance and the IP address of the EES can be queried according to the obtained IP address of the application instance, and the IP address of the EES corresponding to the IP address of the application instance can be obtained.
步骤1207、边缘网络配置服务器向UE发送第三响应消息,该第三响应消息携带应用实例的IP地址。Step 1207: The edge network configuration server sends a third response message to the UE, where the third response message carries the IP address of the application instance.
可选地,边缘网络配置服务器还可以将应用实例的IP地址对应的有效区域信息携带在第三响应消息中返回给UE。通过在基于请求消息返回的响应消息中同时携带应用实例的IP地址以及对应的有效区域信息,使得接收方能够得知应用实例的IP地址适用的区域,从而在该区域内使用该应用实例的IP地址,保证了应用实例的IP地址的准确性。Optionally, the edge network configuration server may also carry the effective area information corresponding to the IP address of the application instance in the third response message and return it to the UE. By carrying the IP address of the application instance and the corresponding effective area information in the response message returned based on the request message, the receiver can know the area to which the IP address of the application instance is applicable, so that the IP of the application instance can be used in this area The address ensures the accuracy of the IP address of the application instance.
可选地,边缘网络配置服务器还可以将该应用实例的IP地址对应的EES的IP地址携带在第三响应消息中发送给UE。Optionally, the edge network configuration server may also carry the IP address of the EES corresponding to the IP address of the application instance in a third response message and send it to the UE.
步骤1208、UE接收边缘网络配置服务器基于第三请求消息返回的第三响应消息。Step 1208: The UE receives a third response message returned by the edge network configuration server based on the third request message.
UE在接收到第三响应消息后,可以从该第三响应消息中获取到应用实例的IP地址,该应用实例的IP地址是UE当前位置对应的应用实例的IP地址。After receiving the third response message, the UE may obtain the IP address of the application instance from the third response message, where the IP address of the application instance is the IP address of the application instance corresponding to the current location of the UE.
可选地,UE可以接收边缘配置网络服务器或EES的更新指示消息,该更新指示消息用于指示更新该应用的应用实例的IP地址,可选地,该更新指示消息可以用于指示用户设备的位置发生变化,或,用于指示用户设备所处的边缘网络发生变化,或,用于指示接收方通过发送请求消息以获取更新后的IP地址。UE接收更新指示消息的步骤可以在1201之前执行,例如,UE在接收到更新指示消息后,可以通过步骤1201至步骤1208来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。该接收更新指示消息的步骤也可以在步骤1208之后执行,例如,UE通过执行步骤1201至步骤1208,获得该应用的应用实例的IP地址后,如果接收到该更新指示消息,则可以再次通过1201至步骤1208来获取更新后的IP地址,该IP地址对应于更新后的边缘网络的信息。边缘网络配置服务器或EES向UE发送更新指示消息的两种实现方式在步骤906中已有说明,此处不再赘述。通过向UE发送更新指示消息,使得UE可以在需要访问应用时,重新获取该应用的应用实例的IP地址,提供了一种更新应用实例的IP地址的触发条件,可以保证应用实例的IP地址的可靠性。Optionally, the UE may receive an update indication message from the edge configuration network server or EES. The update indication message is used to indicate to update the IP address of the application instance of the application. Optionally, the update indication message may be used to indicate the user equipment The location changes, or it is used to indicate that the edge network where the user equipment is located has changed, or it is used to instruct the receiver to obtain the updated IP address by sending a request message. The step of receiving the update indication message by the UE may be performed before 1201. For example, after receiving the update indication message, the UE may obtain the updated IP address through steps 1201 to 1208, which corresponds to the updated edge network information. The step of receiving the update instruction message can also be performed after step 1208. For example, after the UE obtains the IP address of the application instance of the application by performing steps 1201 to 1208, if it receives the update instruction message, it can pass 1201 again. Go to step 1208 to obtain the updated IP address, which corresponds to the updated edge network information. The two implementations of the edge network configuration server or the EES sending the update indication message to the UE have been explained in step 906, and will not be repeated here. By sending an update instruction message to the UE, the UE can re-obtain the IP address of the application instance of the application when it needs to access the application, and provide a trigger condition for updating the IP address of the application instance, which can ensure the IP address of the application instance. reliability.
需要说明的是,步骤1201至步骤1208可以是请求-响应(request-response)机制,也可以是订阅-通知(subscribe-notification)机制。如果是订阅-通知机制,步骤1201中UE可以向边缘网络配置服务器发送订阅消息,如果UE的位置信息对应的该应用的应用实例的IP地址或其有效区域信息有更新,则步骤1207中边缘网络配置服务器可以发通知消息给UE,步骤1208中UE可以接收到通知消息。It should be noted that step 1201 to step 1208 may be a request-response (request-response) mechanism or a subscription-notification (subscribe-notification) mechanism. If it is a subscription-notification mechanism, the UE may send a subscription message to the edge network configuration server in step 1201. If the location information of the UE corresponds to the IP address of the application instance of the application or its effective area information is updated, the edge network in step 1207 The configuration server may send a notification message to the UE, and in step 1208, the UE may receive the notification message.
本申请实施例中,通过UE与边缘网络配置服务器进行交互,使用UE的位置信息和应用的标识从边缘网络配置服务器获取对应的应用实例的IP地址,其中,边缘网络配置服务器可以自己解析出应用实例的IP地址,也可以通过与DNS服务器进行交互,从DNS服务器获取到应用实例的IP地址,由于该应用实例的IP地址是根据UE的位置信息确定的,是离UE最近的应用实例的IP地址,因此能够满足第三方应用提供商调度的需求。In the embodiment of this application, the UE interacts with the edge network configuration server, and uses the location information of the UE and the application identifier to obtain the IP address of the corresponding application instance from the edge network configuration server. The edge network configuration server can resolve the application by itself The IP address of the instance can also interact with the DNS server to obtain the IP address of the application instance from the DNS server. Since the IP address of the application instance is determined according to the location information of the UE, it is the IP of the application instance closest to the UE. Address, so it can meet the scheduling needs of third-party application providers.
另外,如果DNS服务器没有部署应用实例(边缘应用),则UE获取到的是中心云上的 应用的IP地址,提升了获取的效率,节省了和不同EES交互的信令,提高了应用实例的IP地址获取的准确性。In addition, if the DNS server does not deploy an application instance (edge application), the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
图12对应的实施例中,UE向边缘网络配置服务器发送的第一请求消息携带UE的位置信息。可选地,该第一请求消息中也可以不携带UE的位置信息,而是携带UE的标识,相应地,边缘网络配置服务器可以根据UE的标识,获取UE的位置信息。下面将针对这种情况,在图13对应的实施例中,对应用实例的地址获取方法进行说明。需要说明的是,图13对应的实施例着重描述与图12对应的实施例的区别之处,而与图12对应的实施例同理的步骤还请参见图12对应的实施例,在图13对应的实施例中不做赘述。In the embodiment corresponding to FIG. 12, the first request message sent by the UE to the edge network configuration server carries the location information of the UE. Optionally, the location information of the UE may not be carried in the first request message, but the identification of the UE. Accordingly, the edge network configuration server may obtain the location information of the UE according to the identification of the UE. In view of this situation, in the embodiment corresponding to FIG. 13, the address obtaining method of the application example will be described below. It should be noted that the embodiment corresponding to FIG. 13 focuses on the differences between the embodiment corresponding to FIG. 12, and the same steps as the embodiment corresponding to FIG. 12, please refer to the embodiment corresponding to FIG. 12. Details are not described in the corresponding embodiment.
图13是本申请实施例提供的一种应用实例的地址获取方法的流程图,如图13所示,该方法包括下述步骤:FIG. 13 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 13, the method includes the following steps:
步骤1301、UE向边缘网络配置服务器发送第三请求消息,该第三请求消息携带应用的标识和UE的标识。Step 1301: The UE sends a third request message to the edge network configuration server, where the third request message carries the identity of the application and the identity of the UE.
其中,应用的标识与步骤1201中的应用的标识同理,UE的标识与步骤1001中应用的标识同理,不再赘述。The identification of the application is the same as the identification of the application in step 1201, and the identification of the UE is the same as the identification of the application in step 1001, and will not be repeated.
步骤1302、边缘网络配置服务器在接收到第三请求消息后,根据UE的标识,获取UE的位置信息。Step 1302, after receiving the third request message, the edge network configuration server obtains the location information of the UE according to the identifier of the UE.
该步骤1302中边缘网络配置服务器根据UE的标识,获取UE的位置信息与步骤1002中边缘网络配置服务器根据UE的标识,获取UE的位置信息同理,不再赘述。In this step 1302, the edge network configuration server obtains the location information of the UE according to the identifier of the UE in the same way as the edge network configuration server obtains the location information of the UE according to the identifier of the UE in step 1002, and will not be repeated.
步骤1303、边缘网络配置服务器根据UE的位置信息,确定对应的边缘网络的信息。Step 1303: The edge network configuration server determines the corresponding edge network information according to the location information of the UE.
步骤1304、边缘网络配置服务器向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息。Step 1304: The edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
步骤1305、DNS服务器在接收到第一请求消息后,根据应用的标识和边缘网络的信息,确定边缘网络的信息对应的该应用的应用实例的IP地址。Step 1305: After receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
步骤1306、DNS服务器向边缘网络配置服务器发送第一响应消息,该第一响应消息携带应用实例的IP地址。Step 1306: The DNS server sends a first response message to the edge network configuration server, where the first response message carries the IP address of the application instance.
步骤1303至步骤1306为可选步骤,与步骤1202至步骤1205同理,不再赘述。Step 1303 to step 1306 are optional steps, the same as step 1202 to step 1205, and will not be repeated here.
步骤1307、边缘网络配置服务器获取应用实例的IP地址。Step 1307: The edge network configuration server obtains the IP address of the application instance.
步骤1308、边缘网络配置服务器向UE发送第三响应消息,该第三响应消息携带应用实例的IP地址。Step 1308: The edge network configuration server sends a third response message to the UE, where the third response message carries the IP address of the application instance.
步骤1309、UE接收边缘网络配置服务器基于第三请求消息返回的第三响应消息。Step 1309: The UE receives a third response message returned by the edge network configuration server based on the third request message.
步骤1307至步骤1309与步骤1206至步骤1208同理,不再赘述。Steps 1307 to 1309 are the same as steps 1206 to 1208, and will not be repeated here.
本申请实施例中,通过UE与边缘网络配置服务器进行交互,使用UE的标识和应用的标识从边缘网络配置服务器获取应用实例的IP地址,其中,边缘网络配置服务器可以根据UE的标识确定UE的位置信息,再根据UE的位置信息自己解析出应用实例的IP地址,也可以通过与DNS服务器进行交互,从DNS服务器获取到应用实例的IP地址,由于该应用实例的IP地址是根据UE的位置信息确定的,是离UE最近的应用实例的IP地址,因此能够满足第三方应用提供商调度的需求。In the embodiment of the present application, the UE interacts with the edge network configuration server, and uses the UE identifier and the application identifier to obtain the IP address of the application instance from the edge network configuration server. The edge network configuration server can determine the UE's IP address according to the UE identifier. Location information, and then resolve the IP address of the application instance based on the location information of the UE. You can also obtain the IP address of the application instance from the DNS server by interacting with the DNS server, because the IP address of the application instance is based on the location of the UE The information determined is the IP address of the application instance closest to the UE, so it can meet the scheduling requirements of third-party application providers.
另外,如果DNS服务器没有部署应用实例(边缘应用),则UE获取到的是中心云上的 应用的IP地址,提升了获取的效率,节省了和不同EES交互的信令,提高了应用实例的IP地址获取的准确性。In addition, if the DNS server does not deploy an application instance (edge application), the UE obtains the IP address of the application on the central cloud, which improves the efficiency of acquisition, saves the signaling of interaction with different EES, and improves the performance of the application instance. Accuracy of IP address acquisition.
图12对应的实施例中,UE向边缘网络配置服务器发送第三请求消息,边缘网络配置服务器向DNS服务器请求应用实例的IP地址后,将应用实例的IP地址返回给UE。可选地,图12对应的实施例所示的方法也可以应用于第三服务器,下面将以第三服务器为EES为例,在图14对应的实施例中,对应用实例的地址获取方法进行说明。需要说明的是,图14对应的实施例着重描述与图12对应的实施例的区别之处,而与图12对应的实施例同理的步骤还请参见图12对应的实施例,在图14对应的实施例中不做赘述。In the embodiment corresponding to FIG. 12, the UE sends a third request message to the edge network configuration server. After the edge network configuration server requests the DNS server for the IP address of the application instance, it returns the IP address of the application instance to the UE. Optionally, the method shown in the embodiment corresponding to FIG. 12 can also be applied to a third server. The following will take the third server as an EES as an example. In the embodiment corresponding to FIG. 14, the address acquisition method of the application instance is performed Description. It should be noted that the embodiment corresponding to FIG. 14 focuses on the differences between the embodiment corresponding to FIG. 12, and the same steps as the embodiment corresponding to FIG. 12 also refer to the embodiment corresponding to FIG. 12. Details are not described in the corresponding embodiment.
图14是本申请实施例提供的一种应用实例的地址获取方法的流程图,如图14所示,该方法包括下述步骤:FIG. 14 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 14, the method includes the following steps:
步骤1401、EES向边缘网络配置服务器发送第三请求消息,该第三请求消息携带应用的标识和UE的位置信息。Step 1401. The EES sends a third request message to the edge network configuration server, where the third request message carries the identification of the application and the location information of the UE.
针对UE的位置信息,EES从3GPP网络订阅该UE的位置信息,接收该3GPP网络基于订阅返回的通知消息,该通知信息中携带该UE的位置信息。该UE的位置信息除了可以是Cell ID/TAI,还可以是DNAI。Regarding the location information of the UE, the EES subscribes to the location information of the UE from the 3GPP network, and receives the notification message returned by the 3GPP network based on the subscription, and the notification information carries the location information of the UE. In addition to the cell ID/TAI, the location information of the UE can also be DNAI.
步骤1402、边缘网络配置服务器在接收到第三请求消息后,根据UE的位置信息,确定对应的边缘网络的信息。Step 1402, after receiving the third request message, the edge network configuration server determines the corresponding edge network information according to the location information of the UE.
步骤1403、边缘网络配置服务器向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息。Step 1403: The edge network configuration server sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
步骤1404、DNS服务器在接收到第一请求消息后,根据应用的标识和边缘网络的信息,确定边缘网络的信息对应的该应用的应用实例的IP地址。Step 1404: After receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the edge network information according to the identification of the application and the information of the edge network.
步骤1405、DNS服务器向边缘网络配置服务器发送第一响应消息,该第一响应消息携带应用实例的IP地址。Step 1405: The DNS server sends a first response message to the edge network configuration server, where the first response message carries the IP address of the application instance.
步骤1402至步骤1405为可选步骤,与步骤1202至步骤1205同理,不再赘述。Step 1402 to step 1405 are optional steps, which are the same as step 1202 to step 1205, and will not be described again.
步骤1406、边缘网络配置服务器获取应用实例的IP地址。Step 1406: The edge network configuration server obtains the IP address of the application instance.
步骤1407、边缘网络配置服务器向EES发送第三响应消息,该第三响应消息携带应用实例的IP地址。Step 1407: The edge network configuration server sends a third response message to the EES, where the third response message carries the IP address of the application instance.
步骤1406至步骤1407与步骤1206至步骤1207同理,不再赘述。Steps 1406 to 1407 are the same as steps 1206 to 1207, and will not be repeated here.
步骤1408、EES接收边缘网络配置服务器基于第三请求消息返回的第三响应消息。Step 1408: The EES receives a third response message returned by the edge network configuration server based on the third request message.
本申请实施例中,通过EES与边缘网络配置服务器进行交互,使用UE的位置信息和应用的标识从边缘网络配置服务器获取应用实例的IP地址,其中,边缘网络配置服务器可以自己解析出应用实例的IP地址,也可以通过与DNS服务器进行交互,从DNS服务器获取到应用实例的IP地址,由于该应用实例的IP地址是根据UE的位置信息确定的,是离UE最近的应用实例的IP地址,因此能够满足第三方应用提供商调度的需求。In the embodiment of this application, the EES interacts with the edge network configuration server, and the location information of the UE and the application identifier are used to obtain the IP address of the application instance from the edge network configuration server. The edge network configuration server can resolve the application instance's IP address by itself. The IP address can also interact with the DNS server to obtain the IP address of the application instance from the DNS server. Since the IP address of the application instance is determined according to the location information of the UE, it is the IP address of the application instance closest to the UE. Therefore, it can meet the scheduling needs of third-party application providers.
图14对应的实施例中EES向边缘网络配置服务器发送第三请求消息,边缘网络配置服务器向DNS服务器请求应用实例的IP地址后,将应用实例的IP地址返回给EES。可选地,EES可以直接向DNS服务器请求应用实例的IP地址,下面将在图15对应的实施例中进行说 明。In the embodiment corresponding to FIG. 14, the EES sends the third request message to the edge network configuration server. After the edge network configuration server requests the IP address of the application instance from the DNS server, it returns the IP address of the application instance to the EES. Optionally, EES can directly request the IP address of the application instance from the DNS server, which will be described in the embodiment corresponding to FIG. 15 below.
图15是本申请实施例提供的一种应用实例的地址获取方法的流程图,如图15所示,该方法包括下述步骤:FIG. 15 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 15, the method includes the following steps:
步骤1501、EES向DNS服务器发送第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息。Step 1501: The EES sends a first request message to the DNS server, where the first request message carries the identification of the application and the information of the edge network.
针对边缘网络的信息,在一种可能实现方式中,EES部署在边缘网络中,EES可以从该边缘网络的配置信息中,获取该边缘网络的信息。在另一种可能实现方式中,EES从3GPP网络订阅该UE的用户面管理事件,接收该3GPP网络基于订阅返回的该事件的通知消息,该通知信息中携带该边缘网络的信息。通过从移动数据网络订阅事件的方式,可以接收到通知消息,从通知消息中获得边缘网络的信息,提供了一种即时准确地获取边缘网络的信息的方式。Regarding the information of the edge network, in a possible implementation manner, the EES is deployed in the edge network, and the EES can obtain the information of the edge network from the configuration information of the edge network. In another possible implementation manner, the EES subscribes to the user plane management event of the UE from the 3GPP network, and receives the notification message of the event returned by the 3GPP network based on the subscription, and the notification information carries the information of the edge network. By subscribing to events from the mobile data network, notification messages can be received, and information about the edge network can be obtained from the notification messages, providing a way to instantly and accurately obtain information about the edge network.
步骤1502、DNS服务器在接收到第一请求消息后,根据应用的标识和边缘网络的信息,确定边缘网络的信息对应的该应用的应用实例的IP地址。Step 1502, after receiving the first request message, the DNS server determines the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network.
步骤1502与步骤1404同理,不再赘述。Step 1502 is the same as step 1404 and will not be repeated here.
步骤1503、DNS服务器向EES发送第一响应消息,该第一响应消息携带应用实例的IP地址。Step 1503: The DNS server sends a first response message to the EES, where the first response message carries the IP address of the application instance.
步骤1504、EES接收DNS服务器基于第一请求消息返回的第一响应消息。Step 1504: The EES receives the first response message returned by the DNS server based on the first request message.
本申请实施例中,通过EES与DNS服务器进行交互,使用边缘网络的信息和应用的标识从DNS服务器获取应用实例的IP地址,使得EES能够快速准确的获取当前距离最近的应用实例的地址,能够满足第三方应用提供商调度的需求。In the embodiment of this application, the EES interacts with the DNS server, and the information of the edge network and the identification of the application are used to obtain the IP address of the application instance from the DNS server, so that EES can quickly and accurately obtain the address of the nearest application instance. Meet the scheduling needs of third-party application providers.
上述各个实施例介绍了UE或EES获取应用的应用实例的IP地址的过程,UE或EES在获取了应用实例的IP地址后,还可以从边缘网络配置服务器获该应用实例的IP地址对应的EES的信息,如EES的IP地址,下面将在图16对应的实施例中进行说明。Each of the above embodiments introduces the process for the UE or EES to obtain the IP address of the application instance. After the UE or EES obtains the IP address of the application instance, it can also obtain the EES corresponding to the IP address of the application instance from the edge network configuration server. The information, such as the IP address of EES, will be described in the embodiment corresponding to FIG. 16 below.
图16是本申请实施例提供的一种EES的信息获取方法的流程图,如图16所示,该方法包括下述步骤:FIG. 16 is a flowchart of an EES information acquisition method provided by an embodiment of the present application. As shown in FIG. 16, the method includes the following steps:
步骤1600、目标设备获取应用的应用实例的IP地址。Step 1600: The target device obtains the IP address of the application instance of the application.
其中,目标设备可以为UE或EES,目标设备获取该应用的应用实例的IP地址的过程在图8至图15所示的各个实施例中已有说明,此处不再赘述。The target device may be a UE or an EES, and the process for the target device to obtain the IP address of the application instance of the application has been described in the various embodiments shown in FIG. 8 to FIG. 15 and will not be repeated here.
步骤1601、目标设备向边缘网络配置服务器发送查询请求消息,该查询请求消息携带该应用的应用实例的IP地址。Step 1601: The target device sends a query request message to the edge network configuration server, where the query request message carries the IP address of the application instance of the application.
该查询请求消息用于请求获取该应用的应用实例的IP地址所对应的EES的IP地址。The query request message is used to request to obtain the IP address of the EES corresponding to the IP address of the application instance of the application.
可选地,该查询请求消息中还可以携带DNAI,相应地,该查询请求消息用于请求获取该应用的应用实例的IP地址和该DNAI所对应的EES的IP地址。通过在查询请求消息中携带DNAI,这样在应用迁移的过程中,即使不同边缘网络中部署有相同IP地址的该应用的应用实例,也能准确的确定对应的边缘网络,从而得到对应的EES的IP地址。Optionally, the query request message may also carry DNAI. Accordingly, the query request message is used to request to obtain the IP address of the application instance of the application and the IP address of the EES corresponding to the DNAI. By carrying DNAI in the query request message, in the process of application migration, even if the application instances of the application with the same IP address are deployed in different edge networks, the corresponding edge network can be accurately determined, and the corresponding EES can be obtained. IP address.
步骤1602、边缘网络配置服务器在接收到查询请求消息后,查询该应用的应用实例的IP地址对应的EES的IP地址。Step 1602, after receiving the query request message, the edge network configuration server queries the IP address of the EES corresponding to the IP address of the application instance of the application.
针对查询请求消息中携带应用的应用实例的IP地址的情况,边缘网络配置服务器可以根据该应用的应用实例的IP地址,查询应用实例的IP地址与EES的IP地址之间的对应关系, 得到对应的EES的IP地址。For the case where the IP address of the application instance of the application is carried in the query request message, the edge network configuration server can query the correspondence between the IP address of the application instance and the IP address of the EES according to the IP address of the application instance of the application to obtain the corresponding The IP address of the EES.
针对查询请求消息中携带应用的应用实例的IP地址和DNAI的情况,边缘网络配置服务器可以根据该应用的应用实例的IP地址和该DNAI,查询应用实例的IP地址、DNAI和EES的IP地址之间的对应关系,得到对应的EES的IP地址。For the case where the query request message carries the IP address and DNAI of the application instance of the application, the edge network configuration server can query the IP address of the application instance, DNAI and the IP address of EES according to the IP address of the application instance of the application and the DNAI. Correspondence between the two, get the IP address of the corresponding EES.
步骤1603、边缘网络配置服务器向目标设备发送查询响应消息,该查询响应消息中携带应用实例的IP地址对应的EES的IP地址。Step 1603: The edge network configuration server sends a query response message to the target device. The query response message carries the IP address of the EES corresponding to the IP address of the application instance.
针对查询请求消息中携带应用的应用实例的IP地址的情况,边缘网络配置服务器在查询到该应用的应用实例的IP地址所对应的EES的IP地址后,可以将查询到的EES的IP地址携带在查询响应消息中返回给目标设备。For the case where the IP address of the application instance of the application is carried in the query request message, the edge network configuration server can carry the IP address of the queried EES after querying the IP address of the EES corresponding to the IP address of the application instance of the application Return to the target device in the query response message.
针对查询请求消息中携带应用的应用实例的IP地址和DNAI的情况,边缘网络配置服务器在查询到该应用的应用实例的IP地址和该DNAI所对应的EES的IP地址后,可以将查询到的EES的IP地址携带在查询响应消息中返回给目标设备。For the case that the IP address and DNAI of the application instance of the application are carried in the query request message, the edge network configuration server can query the IP address of the application instance of the application and the IP address of the EES corresponding to the DNAI. The IP address of the EES is carried in the query response message and returned to the target device.
步骤1604、目标设备接收边缘网络配置服务器基于查询请求消息返回的查询响应消息。Step 1604: The target device receives the query response message returned by the edge network configuration server based on the query request message.
针对查询请求消息中携带应用的应用实例的IP地址的情况,目标设备可以从查询响应消息中,获取到该应用的应用实例的IP地址对应的EES的IP地址。Regarding the situation where the IP address of the application instance of the application is carried in the query request message, the target device may obtain the IP address of the EES corresponding to the IP address of the application instance of the application from the query response message.
针对查询请求消息中携带应用的应用实例的IP地址和DNAI的情况,目标设备可以从查询响应消息中,获取到该应用的应用实例的IP地址和该DNAI所对应的EES的IP地址。Regarding the situation that the query request message carries the IP address and DNAI of the application instance of the application, the target device can obtain the IP address of the application instance of the application and the IP address of the EES corresponding to the DNAI from the query response message.
本申请实施例中,在UE或EES获取到应用的应用实例的IP地址后,通过将该应用实例的IP地址携带在查询请求消息中发送给边缘网络配置服务器,由边缘网络配置服务器根据该应用实例的IP地址,查询并返回对应的EES的IP地址,使得UE或EES能够获取到应用实例的IP地址对应的EES的IP地址。In the embodiment of the present application, after the UE or EES obtains the IP address of the application instance of the application, it is sent to the edge network configuration server by carrying the IP address of the application instance in the query request message, and the edge network configuration server according to the application The IP address of the instance, query and return the IP address of the corresponding EES, so that the UE or EES can obtain the IP address of the EES corresponding to the IP address of the application instance.
另外,UE或EES向边缘网络配置服务器发送的查询请求消息中除了携带应用实例的IP地址以外,还可以携带DNAI,使得边缘网络配置服务器根据该应用实例的IP地址和该DNAI,查询并返回对应的EES的IP地址,使得UE或EES能够获取到应用实例的IP地址和DNAI所对应的EES的IP地址。In addition, in addition to the IP address of the application instance, the query request message sent by the UE or EES to the edge network configuration server can also carry DNAI, so that the edge network configuration server queries and returns the corresponding DNAI according to the IP address of the application instance and the DNAI. The IP address of the EES enables the UE or EES to obtain the IP address of the application instance and the IP address of the EES corresponding to DNAI.
在一些实施例中,用户设备可以从第二服务器请求用户设备的位置信息对应的所有应用实例的IP地址。参见图17,图17是本申请实施例提供的一种应用实例的地址获取方法的流程图,该方法可以应用于用户设备或第三服务器,如图17所示,该方法包括下述步骤:In some embodiments, the user equipment may request from the second server the IP addresses of all application instances corresponding to the location information of the user equipment. Referring to FIG. 17, FIG. 17 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a user equipment or a third server. As shown in FIG. 17, the method includes the following steps:
步骤1701、向第二服务器发送第四请求消息,该第四请求消息携带用户设备的位置信息或用户设备的标识。Step 1701: Send a fourth request message to the second server, where the fourth request message carries the location information of the user equipment or the identifier of the user equipment.
步骤1702、接收第二服务器基于该第四请求消息返回的第四响应消息,该第四响应消息携带用户设备的位置信息对应的所有应用实例的IP地址。Step 1702: Receive a fourth response message returned by the second server based on the fourth request message, where the fourth response message carries the IP addresses of all application instances corresponding to the location information of the user equipment.
本申请实施例提供的方法,通过使用用户设备的位置信息或用户设备的标识,从第二服务器获取对应的应用实例的IP地址,能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided by the embodiments of the present application obtains the IP address of the corresponding application instance from the second server by using the location information of the user equipment or the identification of the user equipment, which can quickly and accurately obtain the address of the application instance nearest to the Requirements for dispatching by third-party application providers.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或地理区域信息;该用户设备的经纬度信息;该用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
在一种可能实现方式中,该用户设备的标识为下述至少一种:该用户设备的IP地址;该用户设备的通用公共签约标识符GPSI;该用户设备的移动台综合业务数字网MSISDN。In a possible implementation manner, the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
在一种可能实现方式中,该第四响应消息还携带每个应用实例的IP地址的有效区域信息,该有效区域信息用于指示应用实例的IP地址适用的区域。In a possible implementation manner, the fourth response message also carries valid area information of the IP address of each application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
参见图18,图18是本申请实施例提供的一种应用实例的地址获取方法的流程图,该方法可以应用于第二服务器,如图18所示,该方法包括下述步骤:Referring to FIG. 18, FIG. 18 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. The method can be applied to a second server. As shown in FIG. 18, the method includes the following steps:
步骤1801、从目标设备接收第四请求消息,该第四请求消息携带用户设备的位置信息或用户设备的标识。Step 1801: Receive a fourth request message from a target device, where the fourth request message carries location information of the user equipment or an identifier of the user equipment.
步骤1802、根据该用户设备的位置信息或该用户设备的标识,获取该用户设备的位置信息对应的所有应用实例的IP地址。 Step 1802, according to the location information of the user equipment or the identifier of the user equipment, obtain the IP addresses of all application instances corresponding to the location information of the user equipment.
步骤1803、向该目标设备发送第四响应消息,该第四响应消息携带该用户设备的位置信息对应的所有应用实例的IP地址。Step 1803: Send a fourth response message to the target device, where the fourth response message carries the IP addresses of all application instances corresponding to the location information of the user equipment.
本申请实施例提供的方法,通过接收目标设备的请求消息,根据请求消息中携带的用户设备的位置信息或者该用户设备的标识,确定并向目标设备返回对应的应用实例的地址,使得目标设备能够快速准确的获取当前距离最近的应用实例的地址,满足第三方应用提供商调度的需求。The method provided by the embodiment of the present application determines and returns the address of the corresponding application instance to the target device by receiving a request message from a target device, and according to the location information of the user device or the identifier of the user device carried in the request message, so that the target device It can quickly and accurately obtain the address of the nearest application instance to meet the scheduling needs of third-party application providers.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或地理区域信息;该用户设备的经纬度信息;该用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
在一种可能实现方式中,该用户设备的标识为下述至少一种:该用户设备的IP地址;该用户设备的通用公共签约标识符GPSI;该用户设备的移动台综合业务数字网MSISDN。In a possible implementation manner, the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
在一种可能实现方式中,该第四响应消息还携带每个应用实例的IP地址的有效区域信息,该有效区域信息用于指示应用实例的IP地址适用的区域。In a possible implementation manner, the fourth response message also carries valid area information of the IP address of each application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
在一种可能实现方式中,该根据该用户设备的位置信息或该用户设备的标识,获取该用户设备的位置信息对应的所有应用实例的IP地址,包括:根据该用户设备的标识,确定该用户设备的位置信息;根据该用户设备的位置信息,获取该用户设备的位置信息对应的所有应用实例的IP地址。In a possible implementation manner, the obtaining the IP addresses of all application instances corresponding to the location information of the user equipment according to the location information of the user equipment or the identification of the user equipment includes: determining the Location information of the user equipment; according to the location information of the user equipment, obtain the IP addresses of all application instances corresponding to the location information of the user equipment.
在一种可能实现方式中,该根据该用户设备的位置信息,获取该用户设备的位置信息对应的所有应用实例的IP地址,包括:根据该用户设备的位置信息,查询用户设备的位置信息和应用实例的IP地址之间的对应关系,得到该用户设备的位置信息对应的所有应用实例的IP地址。In a possible implementation manner, obtaining the IP addresses of all application instances corresponding to the location information of the user equipment according to the location information of the user equipment includes: querying the location information of the user equipment according to the location information of the user equipment and The corresponding relationship between the IP addresses of the application instances is obtained to obtain the IP addresses of all application instances corresponding to the location information of the user equipment.
在一种可能实现方式中,该根据该用户设备的位置信息,获取该用户设备的位置信息对应的所有应用实例的IP地址,包括:根据该用户设备的位置信息,确定边缘网络的信息;根据该边缘网络的信息,获取该用户设备的位置信息对应的所有应用实例的IP地址。In a possible implementation manner, the obtaining the IP addresses of all application instances corresponding to the location information of the user equipment according to the location information of the user equipment includes: determining the information of the edge network according to the location information of the user equipment; The information of the edge network obtains the IP addresses of all application instances corresponding to the location information of the user equipment.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation manner, the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
在一种可能实现方式中,该根据该用户设备的位置信息,确定对应的边缘网络的信息,包括:根据该用户设备的位置信息,查询用户设备的位置信息和边缘网络的信息之间的对应关系,得到该用户设备的位置信息对应的边缘网络的信息。In a possible implementation manner, the determining the corresponding edge network information according to the location information of the user equipment includes: querying the correspondence between the location information of the user equipment and the information of the edge network according to the location information of the user equipment Relationship to obtain the edge network information corresponding to the location information of the user equipment.
在一种可能实现方式中,该边缘网络的信息为第三服务器的IP地址,该根据该用户设备的位置信息,确定边缘网络的信息,包括:根据该用户设备的位置信息,确定对应的DNAI;根据该DNAI,确定该第三服务器的IP地址。In a possible implementation manner, the information of the edge network is the IP address of the third server, and determining the information of the edge network according to the location information of the user equipment includes: determining the corresponding DNAI according to the location information of the user equipment ; According to the DNAI, determine the IP address of the third server.
在一种可能实现方式中,该根据该用户设备的标识,确定该用户设备的位置信息,包括下述任一项:向接入及移动性管理功能AMF请求该用户设备的位置信息,接收该AMF基于请求返回的响应消息,该响应消息携带该用户设备的位置信息;或者,向该AMF、第三服务器或者会话管理功能SMF订阅该用户设备的位置信息,接收该AMF、第三服务器或者SMF基于订阅返回的通知消息,该通知信息中携带该用户设备的位置信息。In a possible implementation manner, the determining the location information of the user equipment according to the identification of the user equipment includes any of the following: requesting the location information of the user equipment from the access and mobility management function AMF, and receiving the The AMF returns a response message based on the request, the response message carries the location information of the user equipment; or, subscribes the location information of the user equipment to the AMF, the third server, or the session management function SMF, and receives the AMF, the third server, or SMF Based on the notification message returned by the subscription, the notification message carries the location information of the user equipment.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
以第二服务器为边缘网络配置服务器,目标设备为UE为例,基于UE和边缘网络配置服务器之间的交互,UE可以从边缘网络配置服务器请求UE的位置信息对应的所有应用实例的IP地址,下面将在图19对应的实施例中进行说明。Taking the second server as the edge network configuration server and the target device as the UE as an example, based on the interaction between the UE and the edge network configuration server, the UE can request the IP addresses of all application instances corresponding to the location information of the UE from the edge network configuration server. The following will be described in the embodiment corresponding to FIG. 19.
参见图19,图19是本申请实施例提供的一种应用实例的地址获取方法的流程图,如图19所示,该方法包括下述步骤:Referring to FIG. 19, FIG. 19 is a flowchart of an address obtaining method of an application example provided by an embodiment of the present application. As shown in FIG. 19, the method includes the following steps:
步骤1901、UE向边缘网络配置服务器发送第四请求消息,该第四请求消息携带UE的位置信息或UE的标识。Step 1901: The UE sends a fourth request message to the edge network configuration server, where the fourth request message carries the location information of the UE or the identity of the UE.
该步骤1901中UE的位置信息与步骤901中UE的位置信息同理,该步骤1901中UE的标识与步骤1001中UE的标识同理,不再赘述。The location information of the UE in this step 1901 is the same as the location information of the UE in step 901, and the identity of the UE in this step 1901 is the same as the identity of the UE in step 1001, and will not be repeated.
步骤1902、边缘网络配置服务器在接收到第四请求消息后,根据该UE的位置信息或该UE的标识,获取该UE的位置信息对应的所有应用实例的IP地址。Step 1902, after receiving the fourth request message, the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE according to the location information of the UE or the identity of the UE.
针对边缘网络配置服务器根据该UE的标识,获取UE的位置信息对应的所有应用实例的IP地址的情况,边缘网络配置服务器可以先根据该UE的标识,获取UE的位置信息,再根据UE的位置信息,获取UE的位置信息对应的所有应用实例的IP地址。For the case where the edge network configuration server obtains the IP addresses of all application instances corresponding to the UE's location information according to the UE's identity, the edge network configuration server can first obtain the UE's location information according to the UE's identity, and then according to the UE's location Information to obtain the IP addresses of all application instances corresponding to the location information of the UE.
其中,边缘网络配置服务器根据该UE的标识,获取UE的位置信息与步骤1502中根据该UE的标识,获取UE的位置信息同理,不再赘述。Wherein, the edge network configuration server obtains the location information of the UE according to the identity of the UE in the same way as obtaining the location information of the UE according to the identity of the UE in step 1502, and will not be repeated.
在一种可能实现方式中,边缘网络配置服务器根据该UE的位置信息,获取该UE的位置信息对应的所有应用实例的IP地址,包括:边缘网络配置服务器根据该UE的位置信息,查询UE的位置信息和应用实例的IP地址之间的对应关系,得到该UE的位置信息对应的所有应用实例的IP地址。例如,边缘网络配置服务器可以在本地数据库中保存UE的位置信息和应用实例的IP地址之间的对应关系。In a possible implementation manner, the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE according to the location information of the UE, including: the edge network configuration server queries the UE’s location information according to the location information of the UE. The corresponding relationship between the location information and the IP address of the application instance obtains the IP addresses of all application instances corresponding to the location information of the UE. For example, the edge network configuration server may store the correspondence between the location information of the UE and the IP address of the application instance in a local database.
在另一种可能实现方式中,边缘网络配置服务器根据该UE的位置信息,获取该UE的位置信息对应的所有应用实例的IP地址,包括:根据该UE的位置信息,确定边缘网络的信息;根据该边缘网络的信息,获取该UE的位置信息对应的所有应用实例的IP地址。In another possible implementation manner, the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE according to the location information of the UE, including: determining the information of the edge network according to the location information of the UE; According to the information of the edge network, the IP addresses of all application instances corresponding to the location information of the UE are obtained.
其中,边缘网络配置服务器根据UE的位置信息,确定对应的边缘网络的信息的过程与 步骤902同理,不再赘述。The process of determining the corresponding edge network information by the edge network configuration server according to the location information of the UE is the same as that of step 902, and will not be repeated.
边缘网络配置服务器根据该边缘网络的信息,获取该UE的位置信息对应的所有应用实例的IP地址包括:边缘网络配置服务器可以向DNS服务器发送第五请求消息,该第五请求消息携带边缘网络的信息;DNS服务器在接收到第五请求消息后,根据边缘网络的信息,确定边缘网络的信息对应的所有应用实例的IP地址;DNS服务器向边缘网络配置服务器发送第五响应消息,该第五响应消息中携带边缘网络的信息对应的所有应用实例的IP地址。According to the edge network information, the edge network configuration server obtains the IP addresses of all application instances corresponding to the location information of the UE. The edge network configuration server may send a fifth request message to the DNS server. The fifth request message carries the edge network information. Information; after receiving the fifth request message, the DNS server determines the IP addresses of all application instances corresponding to the edge network information according to the edge network information; the DNS server sends the fifth response message to the edge network configuration server, the fifth response The message carries the IP addresses of all application instances corresponding to the edge network information.
DNS服务器可以保存有边缘网络的信息和应用实例的IP地址之间的对应关系,这样DNS服务器可以根据第五请求消息携带的边缘网络的信息,查询该对应关系,得到边缘网络的信息对应的所有应用实例的IP地址。与步骤905同理,DNS服务器还可以确定该应用实例的IP地址对应的有效区域信息。The DNS server can store the corresponding relationship between the information of the edge network and the IP address of the application instance, so that the DNS server can query the corresponding relationship according to the information of the edge network carried in the fifth request message, and obtain all the information corresponding to the edge network. The IP address of the application instance. Similar to step 905, the DNS server can also determine the effective zone information corresponding to the IP address of the application instance.
与步骤1206同理,边缘网络配置服务器还可以确定该应用实例的IP地址对应的有效区域信息。Similar to step 1206, the edge network configuration server can also determine the effective area information corresponding to the IP address of the application instance.
步骤1903、边缘网络配置服务器向该UE发送第四响应消息,该第四响应消息携带该UE的位置信息对应的所有应用实例的IP地址。Step 1903: The edge network configuration server sends a fourth response message to the UE, where the fourth response message carries the IP addresses of all application instances corresponding to the location information of the UE.
步骤1904、UE接收边缘网络配置服务器基于第四请求消息返回的第四响应消息。Step 1904: The UE receives a fourth response message returned by the edge network configuration server based on the fourth request message.
本申请实施例中,通过UE与边缘网络配置服务器进行交互,使用UE的位置信息从边缘网络配置服务器获取UE的位置信息对应的所有应用实例的IP地址,其中,边缘网络配置服务器可以自己解析出所有应用实例的IP地址,也可以通过与DNS服务器进行交互,从DNS服务器请求应用实例的IP地址,UE能够快速准确地从提供对应的(最近的)应用实例,满足第三方应用提供商调度的需求。In the embodiment of the present application, the UE interacts with the edge network configuration server, and the location information of the UE is used to obtain the IP addresses of all application instances corresponding to the location information of the UE from the edge network configuration server. The edge network configuration server can resolve by itself The IP address of all application instances can also interact with the DNS server to request the IP address of the application instance from the DNS server. The UE can quickly and accurately provide the corresponding (recent) application instance to meet the schedule of the third-party application provider. demand.
图20是本申请实施例提供的一种应用实例的地址获取装置的结构示意图,如图20所示,该装置包括:FIG. 20 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 20, the device includes:
获取模块2001,用于获取边缘网络的信息;The obtaining module 2001 is used to obtain information about the edge network;
发送模块2002,用于向第一服务器发送第一请求消息,该第一请求消息携带应用的标识和该边缘网络的信息;The sending module 2002 is configured to send a first request message to the first server, where the first request message carries the identifier of the application and the information of the edge network;
接收模块2003,用于接收该第一服务器基于该第一请求消息返回的第一响应消息,该第一响应消息携带该边缘网络的信息对应的该应用的应用实例的互联网协议IP地址。The receiving module 2003 is configured to receive a first response message returned by the first server based on the first request message, the first response message carrying the Internet Protocol IP address of the application instance of the application corresponding to the edge network information.
在一种可能实现方式中,该获取模块2001用于执行上述步骤901、步骤1001中发送第二请求消息的过程以及步骤904、步骤1004中接收第二响应消息的过程。In a possible implementation manner, the obtaining module 2001 is configured to execute the process of sending the second request message in step 901 and step 1001, and the process of receiving the second response message in step 904 and step 1004.
在一种可能实现方式中,该第二响应消息还携带该边缘网络的信息对应的有效区域信息,该有效区域信息用于指示该边缘网络的信息适用的区域。In a possible implementation manner, the second response message also carries effective area information corresponding to the information of the edge network, and the effective area information is used to indicate an area to which the information of the edge network applies.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的数据网络接入标识DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; Longitude and latitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
在一种可能实现方式中,该获取模块2001用于执行上述步骤902中从本地存储的边缘网络配置信息中获取边缘网络的信息的过程。In a possible implementation manner, the obtaining module 2001 is configured to perform the process of obtaining edge network information from locally stored edge network configuration information in step 902.
在一种可能实现方式中,该方法应用于第三服务器,该获取模块2001用于执行上述步骤1501中从移动数据网络订阅用户面管理事件,获取边缘网络的信息的过程。In a possible implementation manner, the method is applied to a third server, and the obtaining module 2001 is configured to perform the process of subscribing to user plane management events from the mobile data network in step 1501 to obtain information of the edge network.
在一种可能实现方式中,该第一响应消息还携带该应用实例的IP地址对应的有效区域信息,该有效区域信息用于指示该应用实例的IP地址适用的区域。In a possible implementation manner, the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation manner, the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
在一种可能实现方式中,该边缘网络的IP地址或者该第三服务器的IP地址为IP地址段。In a possible implementation manner, the IP address of the edge network or the IP address of the third server is an IP address segment.
在一种可能实现方式中,该用户设备的标识为下述至少一种:该用户设备的IP地址;该用户设备的通用公共签约标识符GPSI;该用户设备的移动台综合业务数字网MSISDN。In a possible implementation manner, the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
在一种可能实现方式中,该应用的标识为下述至少一种:应用的标识符;应用的统一资源定位符;应用的全量域名;应用的应用名称。In a possible implementation manner, the identification of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
图21是本申请实施例提供的一种应用实例的地址获取装置的结构示意图,如图21所示,该装置包括:FIG. 21 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 21, the device includes:
发送模块2101,用于向第二服务器发送第三请求消息,该第三请求消息携带应用的标识和用户设备的信息,该用户设备的信息为该用户设备的位置信息或者该用户设备的标识;The sending module 2101 is configured to send a third request message to the second server, the third request message carrying the application identifier and user equipment information, and the user equipment information is the location information of the user equipment or the user equipment identifier;
接收模块2102,用于接收该第二服务器基于该第三请求消息返回的第三响应消息,该第三响应消息携带该用户设备的位置信息对应的该应用的应用实例的互联网协议IP地址。The receiving module 2102 is configured to receive a third response message returned by the second server based on the third request message, the third response message carrying the Internet Protocol IP address of the application instance of the application corresponding to the location information of the user equipment.
在一种可能实现方式中,该方法应用于第三服务器时,该装置还包括:In a possible implementation manner, when the method is applied to a third server, the device further includes:
订阅模块,用于执行1401中订阅UE的位置信息的过程;The subscription module is used to perform the process of subscribing to the location information of the UE in 1401;
该接收模块2102还用于执行1401中接收通知消息的过程。The receiving module 2102 is also used to execute the process of receiving notification messages in 1401.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的数据网络接入标识DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; Longitude and latitude information of the user equipment; the data network access identifier DNAI corresponding to the user equipment.
在一种可能实现方式中,该第三响应消息还携带该应用实例的IP地址对应的有效区域信息,该有效区域信息用于指示该应用实例的IP地址适用的区域。In a possible implementation manner, the third response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
在一种可能实现方式中,该用户设备的标识为下述至少一种:该用户设备的IP地址;该用户设备的通用公共签约标识符GPSI;该用户设备的移动台综合业务数字网MSISDN。In a possible implementation manner, the identifier of the user equipment is at least one of the following: the IP address of the user equipment; the general public subscription identifier GPSI of the user equipment; the mobile integrated service digital network MSISDN of the user equipment.
在一种可能实现方式中,该应用的标识为下述至少一种:应用的标识符;应用的统一资源定位符;应用的全量域名;应用的应用名称。In a possible implementation manner, the identification of the application is at least one of the following: the identifier of the application; the uniform resource locator of the application; the full domain name of the application; the application name of the application.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
图22是本申请实施例提供的一种应用实例的地址获取装置的结构示意图,如图22所示,该装置包括:FIG. 22 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 22, the device includes:
接收模块2201,用于从目标设备接收第二请求消息,该第二请求消息携带该用户设备的位置信息或者该用户设备的标识;The receiving module 2201 is configured to receive a second request message from a target device, where the second request message carries the location information of the user equipment or the identifier of the user equipment;
确定模块2202,用于根据该用户设备的位置信息或者该用户设备的标识,确定对应的边缘网络的信息;The determining module 2202 is configured to determine the corresponding edge network information according to the location information of the user equipment or the identifier of the user equipment;
发送模块2203,用于向该目标设备发送第二响应消息,该第二响应消息携带该边缘网络的信息。The sending module 2203 is configured to send a second response message to the target device, where the second response message carries information about the edge network.
在一种可能实现方式中,该确定模块2202用于执行步骤902、步骤1002、步骤1202、步骤1303、步骤1402中确定对应的边缘网络的信息的过程。In a possible implementation manner, the determining module 2202 is used to perform the process of determining corresponding edge network information in step 902, step 1002, step 1202, step 1303, and step 1402.
在一种可能实现方式中,该确定模块2202用于执行步骤1002和步骤1302中根据该用户设备的标识,确定该用户设备的位置信息的过程。In a possible implementation manner, the determining module 2202 is configured to perform the process of determining the location information of the user equipment according to the identifier of the user equipment in step 1002 and step 1302.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation manner, the edge network information is at least one of the following: DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, where the third server is deployed on the edge network in.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
图23是本申请实施例提供的一种应用实例的地址获取装置的结构示意图,如图23所示,该装置包括:FIG. 23 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 23, the device includes:
接收模块2301,用于从目标设备接收第三请求消息,该第三请求消息携带应用的标识和用户设备的信息,该用户设备的信息为该用户设备的位置信息或者该用户设备的标识;The receiving module 2301 is configured to receive a third request message from a target device, the third request message carrying an application identifier and user equipment information, and the user equipment information is the location information of the user equipment or the user equipment identifier;
获取模块2302,用于根据该应用的标识和该用户设备的信息,获取该用户设备的信息对应的该应用的应用实例的互联网协议IP地址;The obtaining module 2302 is configured to obtain the Internet Protocol IP address of the application instance of the application corresponding to the information of the user equipment according to the identification of the application and the information of the user equipment;
发送模块2303,用于向该目标设备发送第三响应消息,该第三响应消息携带该用户设备的位置信息对应的该应用的应用实例的IP地址。The sending module 2303 is configured to send a third response message to the target device, the third response message carrying the IP address of the application instance of the application corresponding to the location information of the user equipment.
在一种可能实现方式中,该获取模块2302用于执行步骤1206、步骤1307、步骤1406、中获取应用实例的IP地址的过程。In a possible implementation manner, the obtaining module 2302 is configured to perform the process of obtaining the IP address of the application instance in step 1206, step 1307, and step 1406.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的数据网络接入标识DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation, the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
在一种可能实现方式中,该获取模块2302用于执行步骤1302中根据该用户设备的标识,确定该用户设备的位置信息的过程。In a possible implementation manner, the obtaining module 2302 is configured to perform the process of determining the location information of the user equipment according to the identifier of the user equipment in step 1302.
在一种可能实现方式中,该用户设备的位置信息为下述至少一种:该用户设备的小区标识;该用户设备的跟踪区标识TAI;该用户设备的地理位置信息或者地理区域信息;该用户设备的经纬度信息;该用户设备对应的DNAI。In a possible implementation manner, the location information of the user equipment is at least one of the following: a cell identity of the user equipment; a tracking area identity TAI of the user equipment; geographic location information or geographic area information of the user equipment; The latitude and longitude information of the user equipment; the DNAI corresponding to the user equipment.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
图24是本申请实施例提供的一种应用实例的地址获取装置的结构示意图,如图24所示,该装置包括:FIG. 24 is a schematic structural diagram of an address obtaining device of an application example provided by an embodiment of the present application. As shown in FIG. 24, the device includes:
接收模块2401,用于从目标设备接收第一请求消息,该第一请求消息携带应用的标识和边缘网络的信息;The receiving module 2401 is configured to receive a first request message from the target device, where the first request message carries the identification of the application and the information of the edge network;
确定模块2402,用于根据该应用的标识和该边缘网络的信息,确定该边缘网络的信息对应的该应用的应用实例的互联网协议IP地址;The determining module 2402 is configured to determine the Internet Protocol IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network;
发送模块2403,用于向该目标设备发送第一响应消息,该第一响应消息携带该边缘网络的信息对应的该应用的应用实例的IP地址。The sending module 2403 is configured to send a first response message to the target device, where the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
在一种可能实现方式中,该确定模块2402用于执行步骤1005、步骤1204、步骤1305、步骤1404和步骤1502中确定应用实例的IP地址的过程。In a possible implementation manner, the determining module 2402 is used to perform the process of determining the IP address of the application instance in step 1005, step 1204, step 1305, step 1404, and step 1502.
在一种可能实现方式中,该第一响应消息还携带该应用实例的IP地址对应的有效区域信息,该有效区域信息用于指示该应用实例的IP地址适用的区域。In a possible implementation manner, the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate the area to which the IP address of the application instance applies.
在一种可能实现方式中,该边缘网络的信息为下述至少一种:该边缘网络对应的数据网络接入标识DNAI;该边缘网络的IP地址;第三服务器的IP地址,该第三服务器部署在该边缘网络中。In a possible implementation, the edge network information is at least one of the following: the data network access identifier DNAI corresponding to the edge network; the IP address of the edge network; the IP address of the third server, the third server Deploy in the edge network.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
需要说明的是,上述实施例提供的应用实例的地址获取装置在获取应用实例的地址时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的应用实例的地址获取装置与应用实例的地址获取方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the address obtaining device of the application instance provided in the above embodiment obtains the address of the application instance, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be different according to needs. The function module is completed, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the address acquisition device of the application example provided by the above-mentioned embodiment and the address acquisition method embodiment of the application example belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be repeated here.
在一个示例性实施例中,还提供了一种计算机可读存储介质,例如包括指令的存储器,上述指令可由处理器执行以完成上述实施例中的应用实例的地址获取方法。例如,计算机可读存储介质可以是只读存储器(read-only memory,简称:ROM)、随机存取存储器(random access memory,简称:RAM)、只读光盘(compact disc read-only memory,简称:CD-ROM)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a computer-readable storage medium, such as a memory including instructions, which can be executed by a processor to complete the address acquisition method of the application example in the foregoing embodiment. For example, the computer-readable storage medium may be a read-only memory (read-only memory, abbreviated as: ROM), a random access memory (random access memory, abbreviated as: RAM), a compact disc read-only memory, abbreviated as: CD-ROM), magnetic tapes, floppy disks and optical data storage devices.
在一个示例性实施例中,还提供了计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码被计算机设备运行时,使得计算机设备执行上述应用实例的地址获取方法。In an exemplary embodiment, a computer program product is further provided, and the computer program product includes: computer program code, which when the computer program code is executed by a computer device, causes the computer device to execute the address obtaining method of the application example.
在一个示例性实施例中,本申请还提供了一种芯片,该芯片包括至少一条指令,当该芯片运行该指令时,实现上述实施例中应用实例的地址获取方法。In an exemplary embodiment, the present application also provides a chip including at least one instruction, and when the chip runs the instruction, the method for obtaining the address of the application example in the foregoing embodiment is implemented.
在一个示例性实施例中,本申请还提供了一种芯片,该芯片包括程序指令,当该芯片运行程序指令时,实现上述实施例所示的应用实例的地址获取方法。In an exemplary embodiment, the present application also provides a chip including program instructions, and when the chip runs the program instructions, the method for obtaining the address of the application example shown in the foregoing embodiment is implemented.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present application, which will not be repeated here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机程序指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机 可读存储介质向另一个计算机可读存储介质传输,例如,该计算机程序指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer program instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program instructions can be passed from a website, computer, server, or data center. Wired or wireless transmission to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a digital video disc (DVD), or a semiconductor medium (for example, a solid state hard disk).
本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本申请中的字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this application is merely an association relationship that describes associated objects, indicating that there can be three types of relationships. For example, A and/or B can mean that there is A alone, and both A and B exist. There are three cases of B. In addition, the character "/" in this application generally indicates that the associated objects before and after are in an "or" relationship.
本申请中术语“多个”的含义是指两个或两个以上,例如,多个数据包是指两个或两个以上的数据包。The term "multiple" in this application means two or more than two, for example, multiple data packets refer to two or more data packets.
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,本领域技术人员可以理解,“第一”“第二”等字样不对数量和执行顺序进行限定。In this application, the terms "first", "second" and other words are used to distinguish the same items or similar items that have basically the same function and function. Those skilled in the art will understand that the words "first", "second", etc. do not correspond to the quantity. And the execution order is limited.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the above embodiments can be implemented by hardware, or by a program instructing related hardware to be completed. The program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.
以上该仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application within.

Claims (35)

  1. 一种应用实例的地址获取方法,其特征在于,所述方法包括:An address obtaining method of an application example, characterized in that the method includes:
    获取边缘网络的信息;Obtain information about the edge network;
    向第一服务器发送第一请求消息,所述第一请求消息携带应用的标识和所述边缘网络的信息;Sending a first request message to the first server, where the first request message carries the identifier of the application and the information of the edge network;
    接收所述第一服务器基于所述第一请求消息返回的第一响应消息,所述第一响应消息携带所述边缘网络的信息对应的所述应用的应用实例的互联网协议IP地址。Receiving a first response message returned by the first server based on the first request message, the first response message carrying the Internet Protocol IP address of the application instance of the application corresponding to the information about the edge network.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    接收第二服务器或第三服务器的更新指示消息,所述更新指示消息用于指示更新所述应用的应用实例的IP地址。Receive an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  3. 根据权利要求2所述的方法,其特征在于,所述更新指示消息还包括更新后的边缘网络的信息;The method according to claim 2, wherein the update instruction message further includes updated edge network information;
    所述获取边缘网络的信息包括:接收所述更新后的边缘网络的信息。The obtaining the information of the edge network includes: receiving the updated information of the edge network.
  4. 根据权利要求2所述的方法,其特征在于,所述接收第二服务器或第三服务器的更新指示消息,包括:The method according to claim 2, wherein the receiving an update instruction message from the second server or the third server comprises:
    向所述第二服务器或所述第三服务器发送订阅信息,所述订阅信息用于订阅用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,接收所述更新指示消息。Send subscription information to the second server or the third server, the subscription information is used to subscribe to the change event of the edge network corresponding to the user equipment, and receive the update when the edge network corresponding to the user equipment changes Indicates the message.
  5. 根据权利要求1所述的方法,其特征在于,所述获取边缘网络的信息包括:The method according to claim 1, wherein said obtaining information of the edge network comprises:
    向第二服务器发送第二请求消息,所述第二请求消息携带用户设备的位置信息或者所述用户设备的标识;Sending a second request message to the second server, where the second request message carries the location information of the user equipment or the identifier of the user equipment;
    接收所述第二服务器基于所述第二请求消息返回的第二响应消息,所述第二响应消息携带所述边缘网络的信息。Receiving a second response message returned by the second server based on the second request message, where the second response message carries the information of the edge network.
  6. 根据权利要求5所述的方法,其特征在于,所述第二响应消息还携带所述边缘网络的信息对应的有效区域信息,所述有效区域信息用于指示所述边缘网络的信息适用的区域。The method according to claim 5, wherein the second response message also carries effective area information corresponding to the information of the edge network, and the effective area information is used to indicate an area to which the information of the edge network applies .
  7. 根据权利要求5所述的方法,其特征在于,所述用户设备的位置信息为下述至少一种:The method according to claim 5, wherein the location information of the user equipment is at least one of the following:
    所述用户设备的小区标识;The cell identity of the user equipment;
    所述用户设备的跟踪区标识TAI;The tracking area identifier TAI of the user equipment;
    所述用户设备的地理位置信息或者地理区域信息;Geographic location information or geographic area information of the user equipment;
    所述用户设备的经纬度信息;Latitude and longitude information of the user equipment;
    所述用户设备对应的数据网络接入标识DNAI。The data network access identifier DNAI corresponding to the user equipment.
  8. 根据权利要求1所述的方法,其特征在于,所述方法应用于第三服务器,所述第三服务器部署在所述边缘网络中,所述获取边缘网络的信息包括:The method according to claim 1, wherein the method is applied to a third server, and the third server is deployed in the edge network, and the obtaining the information of the edge network comprises:
    所述第三服务器从移动数据网络订阅用户设备的用户面管理事件,接收所述移动数据网络基于订阅返回的所述用户面管理事件的通知消息,所述通知信息中携带所述边缘网络的信息。The third server subscribes to the user plane management event of the user equipment from the mobile data network, and receives the notification message of the user plane management event returned by the mobile data network based on the subscription, and the notification information carries the information of the edge network .
  9. 根据权利要求1所述的方法,其特征在于,所述第一响应消息还携带所述应用实例的 IP地址对应的有效区域信息,所述有效区域信息用于指示所述应用实例的IP地址适用的区域。The method according to claim 1, wherein the first response message also carries valid area information corresponding to the IP address of the application instance, and the valid area information is used to indicate that the IP address of the application instance is applicable Area.
  10. 根据权利要求1所述的方法,其特征在于,所述边缘网络的信息为下述至少一种:The method according to claim 1, wherein the information of the edge network is at least one of the following:
    所述边缘网络对应的DNAI;DNAI corresponding to the edge network;
    所述边缘网络的IP地址;The IP address of the edge network;
    第三服务器的IP地址,所述第三服务器部署在所述边缘网络中。The IP address of the third server, where the third server is deployed in the edge network.
  11. 一种应用实例的地址获取方法,其特征在于,所述方法包括:An address obtaining method of an application example, characterized in that the method includes:
    向第二服务器发送第三请求消息,所述第三请求消息携带应用的标识和用户设备的信息,所述用户设备的信息为所述用户设备的位置信息或者所述用户设备的标识;Sending a third request message to the second server, where the third request message carries an application identifier and user equipment information, where the user equipment information is location information of the user equipment or the user equipment identifier;
    接收所述第二服务器基于所述第三请求消息返回的第三响应消息,所述第三响应消息携带所述用户设备的位置信息对应的所述应用的应用实例的互联网协议IP地址。Receiving a third response message returned by the second server based on the third request message, the third response message carrying the Internet Protocol IP address of the application instance of the application corresponding to the location information of the user equipment.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method of claim 11, wherein the method further comprises:
    接收所述第二服务器或第三服务器的更新指示消息,所述更新指示消息用于指示更新所述应用的应用实例的IP地址。Receiving an update instruction message from the second server or the third server, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  13. 根据权利要求12所述的方法,其特征在于,所述接收第二服务器或第三服务器的更新指示消息,包括:The method according to claim 12, wherein the receiving an update instruction message from the second server or the third server comprises:
    向所述第二服务器或所述第三服务器发送订阅信息,所述订阅信息用于订阅所述用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,接收所述更新指示消息。Send subscription information to the second server or the third server, the subscription information is used to subscribe to the change event of the edge network corresponding to the user equipment, and when the edge network corresponding to the user equipment changes, receive The update instruction message.
  14. 根据权利要求11所述的方法,其特征在于,所述方法应用于第三服务器时,所述向第二服务器发送第三请求消息之前,所述方法还包括:The method according to claim 11, wherein when the method is applied to a third server, before the sending the third request message to the second server, the method further comprises:
    所述第三服务器从移动数据网络订阅所述用户设备的位置信息,接收所述移动数据网络基于订阅返回的通知消息,所述通知信息中携带所述用户设备的位置信息。The third server subscribes to the location information of the user equipment from a mobile data network, and receives a notification message returned by the mobile data network based on the subscription, where the notification information carries the location information of the user equipment.
  15. 根据权利要求11所述的方法,其特征在于,所述用户设备的位置信息为下述至少一种:The method according to claim 11, wherein the location information of the user equipment is at least one of the following:
    所述用户设备的小区标识;The cell identity of the user equipment;
    所述用户设备的跟踪区标识TAI;The tracking area identifier TAI of the user equipment;
    所述用户设备的地理位置信息或者地理区域信息;Geographic location information or geographic area information of the user equipment;
    所述用户设备的经纬度信息;Latitude and longitude information of the user equipment;
    所述用户设备对应的数据网络接入标识DNAI。The data network access identifier DNAI corresponding to the user equipment.
  16. 根据权利要求11所述的方法,其特征在于,所述第三响应消息还携带下述至少一项:The method according to claim 11, wherein the third response message further carries at least one of the following:
    所述应用实例的IP地址对应的有效区域信息,所述有效区域信息用于指示所述应用实例的IP地址适用的区域;Effective area information corresponding to the IP address of the application instance, where the effective area information is used to indicate the area to which the IP address of the application instance applies;
    所述应用实例的IP地址对应的第三服务器的IP地址。The IP address of the third server corresponding to the IP address of the application instance.
  17. 一种应用实例的地址获取方法,其特征在于,所述方法包括:An address obtaining method of an application example, characterized in that the method includes:
    从目标设备接收第二请求消息,所述第二请求消息携带用户设备的位置信息或者所述用户设备的标识;Receiving a second request message from the target device, the second request message carrying location information of the user equipment or an identifier of the user equipment;
    根据所述用户设备的位置信息或者所述用户设备的标识,确定对应的边缘网络的信息;Determine the corresponding edge network information according to the location information of the user equipment or the identifier of the user equipment;
    向所述目标设备发送第二响应消息,所述第二响应消息携带所述边缘网络的信息。Send a second response message to the target device, where the second response message carries the information of the edge network.
  18. 根据权利要求17所述的方法,其特征在于,所述用户设备的位置信息为下述至少一 种:The method according to claim 17, wherein the location information of the user equipment is at least one of the following:
    所述用户设备的小区标识;The cell identity of the user equipment;
    所述用户设备的跟踪区标识TAI;The tracking area identifier TAI of the user equipment;
    所述用户设备的地理位置信息或者地理区域信息;Geographic location information or geographic area information of the user equipment;
    所述用户设备的经纬度信息;Latitude and longitude information of the user equipment;
    所述用户设备对应的DNAI。The DNAI corresponding to the user equipment.
  19. 根据权利要求17所述的方法,其特征在于,所述边缘网络的信息为下述至少一种:The method according to claim 17, wherein the information of the edge network is at least one of the following:
    所述边缘网络对应的DNAI;DNAI corresponding to the edge network;
    所述边缘网络的IP地址;The IP address of the edge network;
    第三服务器的IP地址,所述第三服务器部署在所述边缘网络中。The IP address of the third server, where the third server is deployed in the edge network.
  20. 根据权利要求17所述的方法,其特征在于,所述目标设备为用户设备,所述向所述目标设备发送第二响应消息之后,所述方法还包括:The method according to claim 17, wherein the target device is a user equipment, and after the second response message is sent to the target device, the method further comprises:
    当监测到所述用户设备的位置移出所述边缘网络时,向所述用户设备发送更新指示消息,所述更新指示消息用于指示更新应用的应用实例的IP地址。When it is detected that the location of the user equipment moves out of the edge network, an update instruction message is sent to the user equipment, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  21. 根据权利要求20所述的方法,其特征在于,所述向所述用户设备发送更新指示消息,包括:The method according to claim 20, wherein the sending an update instruction message to the user equipment comprises:
    基于所述用户设备订阅的所述用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,向所述用户设备发送所述更新指示消息。Based on the change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment changes, the update instruction message is sent to the user equipment.
  22. 一种应用实例的地址获取方法,其特征在于,所述方法包括:An address obtaining method of an application example, characterized in that the method includes:
    从目标设备接收第三请求消息,所述第三请求消息携带应用的标识和用户设备的信息,所述用户设备的信息为所述用户设备的位置信息或者所述用户设备的标识;Receiving a third request message from the target device, the third request message carrying an application identifier and user equipment information, and the user equipment information is location information of the user equipment or the user equipment identifier;
    根据所述应用的标识和所述用户设备的信息,获取所述用户设备的信息对应的所述应用的应用实例的互联网协议IP地址;Obtaining, according to the identifier of the application and the information of the user equipment, the Internet Protocol IP address of the application instance of the application corresponding to the information of the user equipment;
    向所述目标设备发送第三响应消息,所述第三响应消息携带所述用户设备的位置信息对应的所述应用的应用实例的IP地址。A third response message is sent to the target device, where the third response message carries the IP address of the application instance of the application corresponding to the location information of the user equipment.
  23. 根据权利要求22所述的方法,其特征在于,所述根据所述应用的标识和所述用户设备的信息,获取所述用户设备的信息对应的所述应用的应用实例的IP地址,包括:The method according to claim 22, wherein the obtaining the IP address of the application instance of the application corresponding to the information of the user equipment according to the identifier of the application and the information of the user equipment comprises:
    根据所述用户设备的标识,确定所述用户设备的位置信息;Determine the location information of the user equipment according to the identifier of the user equipment;
    根据所述应用的标识和所述用户设备的位置信息,获取所述用户设备的位置信息对应的所述应用的应用实例的IP地址。According to the identifier of the application and the location information of the user equipment, the IP address of the application instance of the application corresponding to the location information of the user equipment is obtained.
  24. 根据权利要求23所述的方法,其特征在于,所述根据所述用户设备的标识,确定所述用户设备的位置信息,包括下述任一项:The method according to claim 23, wherein the determining the location information of the user equipment according to the identifier of the user equipment comprises any one of the following:
    根据所述用户设备的标识,向接入及移动性管理功能AMF请求所述用户设备的位置信息,接收所述AMF基于请求返回的响应消息,所述响应消息携带所述用户设备的位置信息;或者,According to the identifier of the user equipment, request the access and mobility management function AMF for the location information of the user equipment, and receive a response message returned by the AMF based on the request, the response message carrying the location information of the user equipment; or,
    根据所述用户设备的标识,向所述AMF、第三服务器或者会话管理功能SMF订阅所述用户设备的位置信息,接收所述AMF、第三服务器或者SMF基于订阅返回的通知消息,所述通知信息中携带所述用户设备的位置信息。According to the identifier of the user equipment, subscribe the location information of the user equipment to the AMF, the third server, or the session management function SMF, and receive the notification message returned by the AMF, the third server or the SMF based on the subscription, the notification The information carries the location information of the user equipment.
  25. 根据权利要求22所述的方法,其特征在于,所述用户设备的位置信息为下述至少一 种:The method according to claim 22, wherein the location information of the user equipment is at least one of the following:
    所述用户设备的小区标识;The cell identity of the user equipment;
    所述用户设备的跟踪区标识TAI;The tracking area identifier TAI of the user equipment;
    所述用户设备的地理位置信息或者地理区域信息;Geographic location information or geographic area information of the user equipment;
    所述用户设备的经纬度信息;Latitude and longitude information of the user equipment;
    所述用户设备对应的DNAI。The DNAI corresponding to the user equipment.
  26. 根据权利要求22所述的方法,其特征在于,所述第三响应消息还携带所述应用的应用实例的IP地址对应的第三服务器的IP地址,The method according to claim 22, wherein the third response message also carries the IP address of the third server corresponding to the IP address of the application instance of the application,
    所述向所述目标设备发送第三响应消息之前,所述方法还包括:Before the sending the third response message to the target device, the method further includes:
    根据所述应用的应用实例的IP地址,查询所述应用的应用实例的IP地址对应的第三服务器的IP地址。According to the IP address of the application instance of the application, query the IP address of the third server corresponding to the IP address of the application instance of the application.
  27. 根据权利要求22所述的方法,其特征在于,所述目标设备为用户设备,所述向所述目标设备发送第三响应消息之后,所述方法还包括:The method according to claim 22, wherein the target device is a user equipment, and after the third response message is sent to the target device, the method further comprises:
    当监测到所述用户设备的位置移出所述边缘网络时,向所述用户设备发送更新指示消息,所述更新指示消息用于指示更新所述应用的应用实例的IP地址。When it is monitored that the location of the user equipment moves out of the edge network, an update instruction message is sent to the user equipment, where the update instruction message is used to instruct to update the IP address of the application instance of the application.
  28. 根据权利要求27所述的方法,其特征在于,所述向所述用户设备发送更新指示消息,包括:The method according to claim 27, wherein the sending an update instruction message to the user equipment comprises:
    基于所述用户设备订阅的所述用户设备对应的边缘网络的变化事件,当所述用户设备对应的边缘网络发生变化时,向所述用户设备发送更新指示消息。Based on the change event of the edge network corresponding to the user equipment subscribed by the user equipment, when the edge network corresponding to the user equipment changes, an update instruction message is sent to the user equipment.
  29. 一种应用实例的地址获取方法,其特征在于,所述方法包括:An address obtaining method of an application example, characterized in that the method includes:
    从目标设备接收第一请求消息,所述第一请求消息携带应用的标识和边缘网络的信息;Receiving a first request message from the target device, the first request message carrying the identification of the application and the information of the edge network;
    根据所述应用的标识和所述边缘网络的信息,确定所述边缘网络的信息对应的所述应用的应用实例的互联网协议IP地址;Determine the Internet Protocol IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network;
    向所述目标设备发送第一响应消息,所述第一响应消息携带所述边缘网络的信息对应的所述应用的应用实例的IP地址。Send a first response message to the target device, where the first response message carries the IP address of the application instance of the application corresponding to the edge network information.
  30. 根据权利要求29所述的方法,其特征在于,所述根据所述应用的标识和所述边缘网络的信息,确定所述边缘网络的信息对应的所述应用的应用实例的IP地址,包括:The method according to claim 29, wherein the determining the IP address of the application instance of the application corresponding to the information of the edge network according to the identifier of the application and the information of the edge network comprises:
    根据所述应用的标识和所述边缘网络的信息,查询应用的标识、边缘网络的信息和应用实例的IP地址之间的对应关系,得到所述边缘网络的信息对应的所述应用的应用实例的IP地址。According to the identification of the application and the information of the edge network, query the correspondence between the identification of the application, the information of the edge network and the IP address of the application instance to obtain the application instance of the application corresponding to the information of the edge network IP address.
  31. 根据权利要求29所述的方法,其特征在于,所述边缘网络的信息为下述至少一种:The method according to claim 29, wherein the information of the edge network is at least one of the following:
    所述边缘网络对应的数据网络接入标识DNAI;The data network access identifier DNAI corresponding to the edge network;
    所述边缘网络的IP地址;The IP address of the edge network;
    第三服务器的IP地址,所述第三服务器部署在所述边缘网络中。The IP address of the third server, where the third server is deployed in the edge network.
  32. 一种应用实例的地址获取装置,其特征在于,所述装置包括多个功能模块,所述多个功能模块用于执行权利要求1至权利要求10中任一项,或者权利要求11至权利要求16中任一项,或者权利要求17至权利要求21中任一项,或者权利要求22至权利要求28中任一项,或者权利要求29至权利要求31中任一项所述的应用实例的地址获取方法。An address acquisition device of an application example, characterized in that the device includes multiple functional modules, and the multiple functional modules are used to execute any one of claims 1 to 10, or claims 11 to Any one of 16, or any one of claims 17 to 21, or any one of claims 22 to 28, or any one of claims 29 to 31 of the application example Address acquisition method.
  33. 一种计算机设备,其特征在于,所述计算机设备包括一个或多个处理器和一个或多 个存储器,所述一个或多个存储器中存储有至少一条指令,所述指令由所述一个或多个处理器加载并执行以实现如权利要求1至权利要求10中任一项,或者权利要求11至权利要求16中任一项,或者权利要求17至权利要求21中任一项,或者权利要求22至权利要求28中任一项,或者权利要求29至权利要求31中任一项所述的应用实例的地址获取方法。A computer device, wherein the computer device includes one or more processors and one or more memories, and at least one instruction is stored in the one or more memories, and the instruction is controlled by the one or more Loaded and executed by two processors to implement any one of claim 1 to claim 10, or any one of claim 11 to claim 16, or any one of claim 17 to claim 21, or claim The address acquisition method of any one of 22 to claim 28, or any one of claim 29 to claim 31.
  34. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求1至权利要求10中任一项,或者权利要求11至权利要求16中任一项,或者权利要求17至权利要求21中任一项,或者权利要求22至权利要求28中任一项,或者权利要求29至权利要求31中任一项所述的应用实例的地址获取方法。A computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement any one of claim 1 to claim 10, or claim According to any one of 11 to claim 16, or any one of claim 17 to claim 21, or any one of claim 22 to claim 28, or any one of claim 29 to claim 31 The method of obtaining the address of the application instance.
  35. 一种应用实例的地址获取***,其特征在于,所述***包括第一服务器和第二服务器:An address obtaining system of an application example, characterized in that the system includes a first server and a second server:
    所述第二服务器用于执行如权利要求17至权利要求21中任一项,或者权利要求22至权利要求28中任一项所述的应用实例的地址获取方法;The second server is configured to execute the address acquisition method of the application instance according to any one of claims 17 to 21, or any one of claims 22 to 28;
    所述第一服务器用于执行如权利要求29至权利要求31中任一项所述的应用实例的地址获取方法。The first server is configured to execute the address obtaining method of the application instance according to any one of claims 29 to 31.
PCT/CN2020/101344 2019-07-11 2020-07-10 Method, device and apparatus for address acquisition of application example and storage medium WO2021004528A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910626395.9 2019-07-11
CN201910626395 2019-07-11
CN201910785831.7 2019-08-23
CN201910785831.7A CN112217856A (en) 2019-07-11 2019-08-23 Address acquisition method, device, equipment and storage medium of application example

Publications (1)

Publication Number Publication Date
WO2021004528A1 true WO2021004528A1 (en) 2021-01-14

Family

ID=74048203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101344 WO2021004528A1 (en) 2019-07-11 2020-07-10 Method, device and apparatus for address acquisition of application example and storage medium

Country Status (2)

Country Link
CN (1) CN112217856A (en)
WO (1) WO2021004528A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11937314B2 (en) * 2020-03-25 2024-03-19 Samsung Electronics Co., Ltd. Communication method and device for edge computing system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114945016A (en) * 2021-02-10 2022-08-26 维沃移动通信有限公司 Information processing method, device and equipment
CN115226247A (en) * 2021-03-31 2022-10-21 华为技术有限公司 Method and apparatus for wireless communication
CN115190104B (en) * 2021-04-06 2024-03-22 维沃移动通信有限公司 Information transmission method, apparatus, communication device and storage medium
CN113852948B (en) * 2021-07-07 2023-05-05 华为技术有限公司 Method and device for transmitting application context migration information
CN113840293B (en) * 2021-08-18 2023-04-18 华为技术有限公司 Method and device for acquiring edge service
CN115460271B (en) * 2022-08-05 2023-07-04 深圳前海环融联易信息科技服务有限公司 Network control method and device based on edge calculation and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231607A (en) * 2016-09-21 2016-12-14 北京佰才邦技术有限公司 The method of a kind of resource distribution and base station
CN107305502A (en) * 2016-04-21 2017-10-31 中兴通讯股份有限公司 A kind of method and apparatus of application example migration
US20180098195A1 (en) * 2016-10-05 2018-04-05 Saguna Networks Ltd. Methods Circuits Devices Systems and Functionally Associated Computer Executable Code to Support Location Based Services to a Wireless Devices Communicatively Coupled to a Communication Network
CN108737271A (en) * 2017-04-14 2018-11-02 华为技术有限公司 A kind of packet routing method, apparatus and system
WO2018215046A1 (en) * 2017-05-22 2018-11-29 Telefonaktiebolaget Lm Ericsson (Publ) Edge cloud broker and method therein for allocating edge cloud resources
US20180352594A1 (en) * 2015-12-11 2018-12-06 Nec Corporation Radio base station, edge server, and methods therein
CN109040337A (en) * 2018-07-19 2018-12-18 网宿科技股份有限公司 A kind of information query method, Edge Server and information query system
CN109218455A (en) * 2017-06-30 2019-01-15 华为技术有限公司 A kind of conversion method and device of application example address
CN109429284A (en) * 2017-08-31 2019-03-05 华为技术有限公司 Example switching method and relevant apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997755B (en) * 2009-08-28 2012-08-15 ***通信集团公司 Method for exchanging mapping information and mapping node
CN108234681B (en) * 2016-12-14 2021-02-26 中国电信股份有限公司 Address resource automatic recovery method, address resource management device and network system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180352594A1 (en) * 2015-12-11 2018-12-06 Nec Corporation Radio base station, edge server, and methods therein
CN107305502A (en) * 2016-04-21 2017-10-31 中兴通讯股份有限公司 A kind of method and apparatus of application example migration
CN106231607A (en) * 2016-09-21 2016-12-14 北京佰才邦技术有限公司 The method of a kind of resource distribution and base station
US20180098195A1 (en) * 2016-10-05 2018-04-05 Saguna Networks Ltd. Methods Circuits Devices Systems and Functionally Associated Computer Executable Code to Support Location Based Services to a Wireless Devices Communicatively Coupled to a Communication Network
CN108737271A (en) * 2017-04-14 2018-11-02 华为技术有限公司 A kind of packet routing method, apparatus and system
WO2018215046A1 (en) * 2017-05-22 2018-11-29 Telefonaktiebolaget Lm Ericsson (Publ) Edge cloud broker and method therein for allocating edge cloud resources
CN109218455A (en) * 2017-06-30 2019-01-15 华为技术有限公司 A kind of conversion method and device of application example address
CN109429284A (en) * 2017-08-31 2019-03-05 华为技术有限公司 Example switching method and relevant apparatus
CN109040337A (en) * 2018-07-19 2018-12-18 网宿科技股份有限公司 A kind of information query method, Edge Server and information query system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11937314B2 (en) * 2020-03-25 2024-03-19 Samsung Electronics Co., Ltd. Communication method and device for edge computing system

Also Published As

Publication number Publication date
CN112217856A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2021004528A1 (en) Method, device and apparatus for address acquisition of application example and storage medium
EP3886404B1 (en) Domain name server allocation method and device
US20210058363A1 (en) Method and system for scheduling edge cdn node
US20230171618A1 (en) Communication method and apparatus
WO2021040827A1 (en) Method, system, and computer readable media for discovering and tracking addresses
KR101549765B1 (en) Method and apparatus for accessing services affiliated with a discovered service provider
CN115442423A (en) Method for discovering services provided by a network repository function
US9401962B2 (en) Traffic steering system
US20140280803A1 (en) Optimized Content Distribution Based on Metrics Derived from the End User
US8428592B2 (en) Method and apparatus for determining a server which should respond to a service request
US20220329649A1 (en) Method for determining application instance, apparatus, and system
CN110381131B (en) Method for realizing MEC node identification, mobile terminal, server and storage medium
US10341288B2 (en) Methods circuits devices systems and associated computer executable code for providing conditional domain name resolution
CN114902634A (en) Apparatus and method for providing information of application server in mobile communication system
US8762519B2 (en) System and method for providing location services for multiple access networks from a single location server
US11456989B2 (en) Systems and methods for virtualized network function (“VNF”) selection in a wireless telecommunications network
US11411839B1 (en) System and method to correlate end user experience with location
CN113037855A (en) Multimedia access system, method, device, terminal and medium
CN112533177A (en) Method, device, apparatus and medium for providing and discovering moving edge calculation
CN109547508B (en) Method, device and system for realizing resource access
US20220263759A1 (en) Addressing method, addressing system, and addressing apparatus
US8239483B2 (en) System and method for generic application of location determination for network attached devices
CN113382031A (en) Domain name query method and device
US20240137269A1 (en) Method for instantiating edge application server and apparatus
EP3166284B1 (en) Methods circuits devices systems and associated computer executable code for providing conditional domain name resolution

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20836351

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20836351

Country of ref document: EP

Kind code of ref document: A1