WO2020200207A1 - 一种获取终端设备互联网协议ip地址方法、设备及系统 - Google Patents

一种获取终端设备互联网协议ip地址方法、设备及系统 Download PDF

Info

Publication number
WO2020200207A1
WO2020200207A1 PCT/CN2020/082489 CN2020082489W WO2020200207A1 WO 2020200207 A1 WO2020200207 A1 WO 2020200207A1 CN 2020082489 W CN2020082489 W CN 2020082489W WO 2020200207 A1 WO2020200207 A1 WO 2020200207A1
Authority
WO
WIPO (PCT)
Prior art keywords
group
network element
terminal device
address
registration request
Prior art date
Application number
PCT/CN2020/082489
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP20784230.3A priority Critical patent/EP3937471A4/en
Publication of WO2020200207A1 publication Critical patent/WO2020200207A1/zh
Priority to US17/491,024 priority patent/US20220021642A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • H04W8/10Mobility data transfer between location register and external networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/186Processing of subscriber group data

Definitions

  • This application relates to the field of communication technology, and in particular to a method, device and system for obtaining an Internet Protocol IP address of a terminal device.
  • the communication between terminal devices usually adopts the "client-server” mode; this communication mode requires the help of external networks
  • the application server realizes the information forwarding between terminal devices.
  • IP Internet protocol
  • the IP packet of terminal device A will be sent to the application server of the external network (such as the Internet) through the gateway, and the application server will be based on the application layer in the IP packet of terminal device A.
  • the message obtains the destination identifier of the IP packet of terminal device A to determine the destination of the IP packet of terminal device A.
  • the application server reconstructs the IP Message, the constructed IP message is sent to the terminal device B through the gateway.
  • the IP packets exchanged between the terminal devices directly carry the IP address of the destination end, so that after the gateway receives the IP packet, The IP packet is forwarded according to the IP address of the destination; however, based on the existing mechanism, the terminal device cannot obtain the IP address of the destination, and therefore cannot construct an IP packet carrying the IP address of the destination.
  • This application provides a method, device and system for obtaining an Internet Protocol IP address of a terminal device to solve the problem that the terminal device cannot obtain the IP address of the destination in the prior art.
  • an embodiment of the present application provides a method for obtaining an IP address of a terminal device.
  • the method includes: the application function network element may send a first event registration request to the capability opening network element, and the first event registration request is used to open the capability
  • the network element requests to obtain the IP address of the terminal device in the group; then, the application function network element receives a first event notification message from the capability opening network element, the first event notification message includes the IP address of the first terminal device in the group; After obtaining the IP address of the first terminal device, the application function network element can send a first message to other terminal devices that have been assigned IP addresses in the group.
  • the first message includes the IP address of the first terminal device and the first terminal device. The identification of the device and the group identification of the group.
  • the application function network element can obtain the IP address of the terminal device in the group from the capability opening network element, and can also notify other terminal devices in the group of the IP address of the terminal device in the group, so that The terminal devices can learn IP addresses from each other.
  • the first event registration request may include some information for indicating the group.
  • it may include the group identification of the group, such as the group identification of the group at the application layer.
  • the first event registration request carrying the group identifier of the group can clearly indicate the request to obtain the IP address of the terminal device in the group identified by the group identifier.
  • the first event registration request may also carry related information of terminal devices in the group.
  • it may include an identifier of one or more terminal devices in the group, such as an application layer identifier, and one or more terminal devices in the group include the first terminal device.
  • the first event notification message may only include the IP address of the first terminal device, and may also include part or all of the following: the identity of the first terminal device and the group identity of the group.
  • the identification of the first terminal device or the group identification of the group can more intuitively indicate which terminal device's IP address is the IP address carried in the first event notification message, or which terminal in the group The IP address of the device.
  • the first event registration request may also carry a first indication message for indicating the response mode of the capability opening network element.
  • the first indication information indicates that the capability opening network element returns the IP addresses of all terminal devices in the group at one time (one-time response) or indicates that the capability opening network element is acquiring any one or more terminal devices in the group When the IP address is selected, the obtained IP address of the terminal device is returned (response one by one).
  • the first indication message can indicate the capability opening network element more conveniently, and the feedback mode desired by the application function network element can be applied to different application scenarios.
  • the first event notification message includes the IP addresses of all terminal devices in the group.
  • the application function network element can obtain the IP addresses of all terminal devices in the group at one time through a one-time response, which can effectively reduce signaling interaction.
  • the application function network element needs to determine which terminal devices in the group have been assigned IP addresses before sending the first message to the other terminal devices in the group that have been assigned IP addresses; exemplary , The application function network element can locally store the IP address of each terminal device and the group to which each terminal device belongs; the application function network element can determine the assigned IP address in the group from the locally stored terminal devices that have been assigned IP addresses Other terminal equipment. This application does not limit the number of other terminal devices, and there may be one or more.
  • the application function network element can clarify the allocation status of the IP address of the terminal device in the group, and ensure that the IP address of the terminal device in the group can be notified to other terminal devices in the group in a timely and accurate manner.
  • the application function network element when the application function network element sends the first message to other terminal devices in the group to which the first terminal device belongs, the first message can be sent to the other terminal devices through the user plane network element corresponding to the other terminal device . If there are multiple terminal devices, the application function network element can adopt a multicast mode or a unicast mode.
  • the application function network element can send the IP address of the first terminal device to other terminal devices more conveniently.
  • the application function network element sends a second message to the first terminal device.
  • the second message includes the IP address of other terminal devices in the group, and may also include the identification of the other terminal device and the group.
  • the application function network element can also notify the first terminal device of the IP addresses of other terminal devices in the group, so that the first terminal device can learn the IP addresses of other terminal devices in the group, thereby ensuring the group
  • the terminal devices in can learn each other’s IP addresses.
  • the first message is an application layer message.
  • an embodiment of the present application provides a method for obtaining an IP address of a terminal device.
  • the method includes: a capability opening network element can receive a first event registration request from an application function network element, and the first event registration request is used to request the acquisition The IP address of the terminal device in the group; afterwards, the capability opening network element obtains the IP address of the first terminal device in the group from the core network element; then, sends the first event notification message to the application function network element, the first event notification The message includes the IP address of the first terminal device.
  • the first terminal device may be any terminal device in the group.
  • the capability opening network element receives the first event registration request, and can feed back the IP address of the first terminal device to the application function network element, so that the application function network element can obtain the IP address of the first terminal device in time for notification to Other terminal devices in the group.
  • the capability openness network element when it obtains the IP address of the first terminal device from the core network element, it can send query information, or other methods can be used; for example, the capability openness network element can report to the core network
  • the network element sends a second event registration request, the second event registration request is used to request to obtain the IP address of the terminal device in the group; after that, the capability opening network element receives the second event notification message from the core network element, the second event notification The message includes the IP address of the first terminal device.
  • the capability opening network element can easily and quickly obtain the IP address of the first terminal device by interacting with the core network element to feed it back to the application function network element, so that the application function network element can promptly connect the first terminal device
  • the IP address is sent to other terminal devices in the group.
  • the first event registration request may include some information for indicating the group.
  • it may include the group identification of the group, such as the group identification of the group at the application layer.
  • the first event registration request carrying the group identifier of the group can clearly indicate the request to obtain the IP address of the terminal device in the group identified by the group identifier.
  • the first event registration request may also carry related information of terminal devices in the following groups.
  • the identity of the terminal device in the group may be carried, such as an application layer identity, and the identity of the terminal device in the group includes the identity of the first terminal device.
  • the first event registration request further includes first indication information, which is used to indicate the response mode of the capability opening network element.
  • the first indication information indicates that the capability opening network element returns the IP addresses of all terminal devices in the group at one time (one-time response) or indicates that when the capability opening network element obtains the IP address of any terminal device in the group, Return the obtained IP address of the terminal device (response one by one).
  • the first indication message can indicate the capability opening network element more conveniently, and the feedback mode desired by the application function network element can be applied to different application scenarios.
  • the capability open network element obtains the IP addresses of all terminal devices in the group from the core network element. After the address, the first event notification message is sent to the application function network element, and the first event notification message includes the IP addresses of all terminal devices in the group.
  • the capability opening network element can feed back the IP addresses of all terminal devices in the group at one time, which can effectively reduce signaling interaction and improve information transmission efficiency.
  • the capability opening network element can obtain the group from the unified data management network element according to the group identification of the group. The identification of the terminal device.
  • the capability opening network element can learn about the terminal devices in the group more conveniently.
  • the capability opening network element when the capability opening network element sends the second event registration request to the core network element, since the core network element can only learn the group ID of the group at the network layer, if the first event registration request It includes the group identification of the group at the application layer.
  • the capability opening network element needs to do some identification conversion; for example, the capability opening network element can convert the group identification at the application layer to the group identification at the network layer.
  • Group identification after that, a second event registration request is sent to the core network element, and the second event registration request includes the group identification of the group at the network layer.
  • the capability opening network element when the capability opening network element sends the second event registration request to the core network element, since the core network element can only learn the network layer identification of the terminal device, if the first event registration request also includes For the application layer identification of the terminal devices in the group, the capability opening network element needs to do some identification conversion; for example, the capability opening network element can convert the application layer identification of the terminal device in the group into a network layer identification, and the group is applied The group ID of the layer is converted to the group ID of the group at the network layer, and the network layer ID is the network layer ID of the terminal device; after that, a second event registration request is sent to the core network element, and the second event registration request includes the group The network layer identification of the terminal device and the group identification of the group at the network layer.
  • carrying the group identification at the network layer and the network layer identification of the terminal device in the second event registration request can enable the core network element to pass the group identification at the network layer and the network of the terminal device.
  • the layer identifier accurately determines the IP addresses of which terminal devices in which group the IP addresses requested by the second thing registration request are.
  • the second event registration request may also carry second indication information, which is used to indicate the response mode of the core network element.
  • the second indication information indicates that the core network element returns the IP addresses of all terminal devices in the group at one time (one-time response) or indicates that the core network element is acquiring the IP addresses of any one or more terminal devices in the group In case of address, the obtained IP address of the terminal device is returned (response one by one).
  • the core network network element can be indicated more conveniently through the second indication message, and the feedback mode desired by the capability opening network element can be better extended to the application scenario.
  • the second event notification message includes the IP addresses of all terminal devices in the group.
  • the capability opening network element can obtain the IP addresses of all terminal devices in the group at one time, which can effectively reduce signaling interaction.
  • the second event notification message may also carry related information of terminal devices in the group.
  • it may include part or all of the following: the identification of the first terminal device, such as the network layer identification, and the identification of the group, such as the group identification of the group at the network layer.
  • the identification of the first terminal device or the group identification of the group can intuitively indicate which terminal device's IP address is the IP address carried in the second event notification message, or which terminal device in the group IP address.
  • the capability opening network element may also send the second event registration request to the core network element according to the group
  • the group identification obtains the identification of the terminal device in the group (such as the application layer identification or the network layer identification) from the unified data management network element.
  • the capability opening network element can determine the terminal devices included in the group and the corresponding identification information.
  • the application function network element can only learn the application layer identification of the terminal device and the group at the application layer.
  • Group identification if the first event registration request includes the application layer identification of the terminal device in the group and/or the group identification of the group at the application layer, the capability opening network element needs to do some identification conversion; exemplary, capability opening
  • the network element may convert the network layer identifier of the first terminal device to the application layer identifier of the first terminal device, and/or convert the group identifier of the group at the network layer to the group identifier of the group at the application layer; afterwards, Send a first event notification message to the core network element.
  • the first event notification message includes some or all of the following: the identification of the first terminal device (such as the application layer identification) and the group identification of the group (the group at the application layer) Group ID).
  • the identification of the first terminal device and/or the group identification of the group can intuitively indicate which terminal device's IP address is the IP address carried in the first event notification message, or which group is in the group.
  • the IP address of the terminal device is the IP address carried in the first event notification message, or which group is in the group.
  • an embodiment of the present application provides a method for obtaining an IP address of a terminal device.
  • the method includes: a core network element receives a second event registration request from a capability opening network element, and the second event registration request is used to request to obtain a group The IP address of the terminal device in the group; afterwards, after determining the IP address of the first terminal device in the group, the core network element sends a second event notification message to the capability opening network element, and the second event notification message includes the first terminal The IP address of the device.
  • the capability opening network element interacts with the core network network element, and the core network network element can feed back the IP address of the first terminal device conveniently and quickly, so that the capability opening network element can feed back to the application function network element. Further, it can be ensured that the application function network element sends the IP address of the first terminal device to other terminal devices in the group in time.
  • the second event registration request includes the group identification of the group, such as the group identification of the group at the network layer.
  • the second event registration request carries the group ID of the group at the network layer, and the core network element can more accurately determine which is requested by the second event registration request through the group ID at the network layer.
  • the IP address of the terminal device of a group is a group.
  • the second event registration request further includes the identification of the terminal device in the group, such as the network layer identification.
  • the core network element can accurately determine which terminal in which group the IP address requested by the second event registration request is The IP address of the device.
  • the second event registration request may also carry second indication information, which is used to indicate the response mode of the core network element.
  • second indication information indicates that the core network element returns the IP addresses of all terminal devices in the group at one time (one-time response) or indicates that the core network element obtains the IP address of any terminal device in the group, Return the obtained IP address of the terminal device (response one by one).
  • the core network network element can be indicated more conveniently through the second indication message, and the feedback mode desired by the capability opening network element can be flexibly applied to different scenarios.
  • the core network element determines the IP addresses of all the terminal devices in the group, and then The capability opening network element sends a second event notification message, and the second event notification message includes the IP addresses of all terminal devices in the group.
  • the core network element can feed back the IP addresses of all terminal devices in the group at one time through a one-time response, which can effectively reduce signaling interaction.
  • the core network element determines the IP address of the first terminal device. For example, if the core network element is a session management network element, the session management network element receives the IP address from the first terminal device. After the session establishment request of the terminal device, the first terminal device is allocated an IP address, and then the IP address of the first terminal device is obtained; wherein the session establishment request is used to request the establishment of a group session of the group.
  • the session management network element may determine the network layer group identification and session of the group carried in the second event registration request
  • the group ID carried in the establishment request is the same at the network layer group ID, or the network layer ID of the terminal device in the group carried in the second event registration request is the same as the network layer ID of the first terminal device carried in the session establishment request Whether they are consistent, if they are consistent, send a second event notification message to the capability opening network element.
  • the unified data management network element may determine the IP address of the first terminal device according to the contract information of the first terminal device.
  • the core network element before the core network element sends the second event notification message to the capability opening network element, it first determines the network layer group identification of the group carried in the second event registration request and the group in the subscription information. Whether the group's group ID at the network layer is consistent, or whether the network layer ID of the terminal device in the group carried in the second event registration request is consistent with the network layer ID of the first terminal device in the subscription information, in the case of both being consistent , Sending a second event notification message to the capability opening network element.
  • the second event notification message further includes part or all of the following: the network layer identifier of the first terminal device and the group identifier of the group at the network layer.
  • the network layer identification of the first terminal device or the group identification of the group at the network layer can intuitively indicate which terminal device's IP address or which group the IP address carried in the second event notification message is.
  • the IP address of the terminal device in the group is the IP address of the terminal device in the group.
  • an embodiment of the present application provides a method for obtaining an IP address of a terminal device.
  • the method includes: a second terminal device receives a first message from an application function network element, and the first message includes the first message of the first terminal device.
  • the IP address can be recorded locally, so that the subsequent second terminal device can conveniently interact with the first terminal through the group session of the first group.
  • the first terminal device may belong to a different group, such as a second group, and the second terminal device may also receive a third message from an application function network element, and the third message includes the first terminal The identifier of the device, the group identifier of the second group to which the first terminal device belongs, and the second IP address of the first terminal device;
  • the second terminal device may save the correspondence between the identifier of the first terminal device, the group identifier of the second group to which the first terminal device belongs, and the second IP address of the first terminal device.
  • the IP address can be recorded locally, so that the subsequent second terminal device can conveniently interact with the first terminal through the group session of the second group.
  • an IP packet is sent to the first terminal device through the user plane network element, and the destination address of the IP packet is the first terminal The first IP address of the device.
  • the second terminal device obtains the IP address of the destination, and when interacting with terminal devices of different groups, it can directly send IP packets through the user plane network element without going through the server of the external network. Text transmission efficiency.
  • the second terminal device before the second terminal device sends an IP packet to the first terminal device through the user plane network element, it may also be based on the identity of the first terminal device and the group of the first terminal device to which the first terminal device belongs.
  • the group identifier acquires the first IP address of the first terminal device.
  • an embodiment of the present application also provides a communication device, which is applied to an application function network element, and the beneficial effects can be referred to the description of the first aspect and will not be repeated here.
  • the device has the function of realizing the behavior in the method example of the first aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the structure of the device includes a sending unit, a processing unit, and a receiving unit. These units can perform the corresponding functions in the above-mentioned method example of the first aspect. For details, please refer to the detailed description in the method example, which will not be repeated here. .
  • an embodiment of the present application also provides a communication device, which is applied to a capability opening network element, and the beneficial effects can be referred to the description of the second aspect and will not be repeated here.
  • the device has the function of realizing the behavior in the method example of the second aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the structure of the device includes a receiving unit, a processing unit, and a sending unit. These units can perform the corresponding functions in the method example of the second aspect. For details, please refer to the detailed description in the method example, which will not be repeated here. .
  • an embodiment of the present application also provides a communication device, which is applied to a core network element, and the beneficial effects can be referred to the description of the third aspect, which will not be repeated here.
  • the device has the function of realizing the behavior in the method example of the third aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the structure of the device includes a receiving unit, a processing unit, and a sending unit. These units can perform the corresponding functions in the above-mentioned method example of the third aspect. For details, please refer to the detailed description in the method example, which will not be repeated here. .
  • an embodiment of the present application also provides a communication device, which is applied to a second terminal device, and the beneficial effects can be referred to the description of the fourth aspect and will not be repeated here.
  • the device has the function of realizing the behavior in the method example of the fourth aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the structure of the device includes a receiving unit, a processing unit, and a sending unit. These units can perform the corresponding functions in the method example of the fourth aspect. For details, please refer to the detailed description in the method example, which will not be repeated here. .
  • an embodiment of the present application also provides a communication device, which is applied to an application function network element, and the beneficial effects can be referred to the description of the first aspect and will not be repeated here.
  • the structure of the communication device includes a processor and a memory, and the processor is configured to support the terminal to perform the corresponding functions in the above-mentioned method in the first aspect.
  • the memory is coupled with the processor, and it stores program instructions and data necessary for the communication device.
  • the structure of the communication device also includes a communication interface for communicating with other devices.
  • an embodiment of the present application also provides a communication device, which is applied to a capability opening network element, and the beneficial effects can be referred to the description of the second aspect and will not be repeated here.
  • the structure of the communication device includes a processor and a memory, and the processor is configured to support the terminal to perform the corresponding function in the above-mentioned second aspect method.
  • the memory is coupled with the processor, and it stores program instructions and data necessary for the communication device.
  • the structure of the communication device also includes a communication interface for communicating with other devices.
  • an embodiment of the present application also provides a communication device.
  • the communication device is applied to a core network element.
  • the structure of the communication device includes a processor and a memory, and the processor is configured to support the terminal to perform the corresponding function in the method of the third aspect.
  • the memory is coupled with the processor, and it stores program instructions and data necessary for the communication device.
  • the structure of the communication device also includes a communication interface for communicating with other devices.
  • the embodiments of the present application also provide a communication device, which is applied to the second terminal device, and the beneficial effects can be referred to the description of the fourth aspect, which will not be repeated here.
  • the structure of the communication device includes a processor and a memory, and the processor is configured to support the terminal to perform the corresponding function in the above-mentioned fourth aspect method.
  • the memory is coupled with the processor, and it stores program instructions and data necessary for the communication device.
  • the structure of the communication device also includes a transceiver for communicating with other devices.
  • the embodiments of the present application also provide a communication system.
  • the communication system includes capability opening network elements and core network network elements;
  • the capability opening network element is used to receive a first event registration request from an application function network element, and the first event registration request is used to request to obtain the Internet Protocol IP address of the terminal device in the group;
  • the element sends a second event registration request, and the second event registration request is used to request to obtain the IP address of the terminal device in the group.
  • the core network element is configured to receive the second event registration request; and after determining the IP address of the terminal device in the group, send a second event notification message to the capability opening network element, the The second event notification message includes the IP address of the terminal device in the group.
  • the capability opening network element is further configured to receive the second event notification message, and send a first event notification message to the application function network element, where the first event notification message includes the information of the terminal devices in the group IP address.
  • the first event registration request includes the group identification of the group, such as the group identification of the group at the application layer.
  • the first event registration request includes the identification of one or more terminal devices in the group, such as the application layer identification of the terminal device.
  • the first event notification message includes part or all of the following: the application layer identification of the terminal device and the group identification of the group.
  • the first event registration request includes first indication information.
  • the first indication information indicates that the capability opening network element returns the IP addresses of all terminal devices in the group at one time or indicates that the capability opening network element is When the IP address of any one or more terminal devices in the group is described, the obtained IP address of the terminal device is returned.
  • the capability open network element when the first indication information indicates that the capability open network element returns the IP addresses of all terminal devices in the group at one time, the capability open network element obtains all terminals in the group from the core network element. After the IP address of the device, a first event notification message is sent to the application function network element, and the first event notification message includes the IP addresses of all terminal devices in the group.
  • the communication system may further include an application function network element, and the application function network element may send a first event registration request to the capability opening network element. It can also receive a first event notification message; and send a first message to the terminal device that has been assigned an IP address in the group.
  • the first message includes the IP addresses of other terminal devices in the group and the information of the first terminal device. ID and the group ID of the group.
  • the second event registration request includes the group identification of the group, such as the group identification of the group at the network layer.
  • the second event registration request further includes one or more terminal device identifiers, such as the network layer identifier of the terminal device, and the network layer identifier is the network layer identifier of the terminal device.
  • the group identifier of the group is the group identifier of the group at the application layer.
  • the capability open network element sends the second event registration request to the core network element, the capability open network element can set the group The group identification at the application layer is converted to the group identification at the network layer; a second event registration request is sent to the core network element, and the second event registration request includes the group identification at the network layer.
  • the capability opening network element may also use the group identification before sending the second event registration request to the core network element. Obtain the identification of the terminal device in the group from the unified data management network element.
  • the group ID of the group is the group ID of the group at the application layer
  • the ID of one or more terminal devices in the group is the application layer ID
  • the capability opening network element is the core network element
  • the second event registration request includes second indication information
  • the second indication information instructs the core network element to return the IP addresses of all terminal devices in the group at one time or instruct the core network element to obtain the group When the IP address of any one or more terminal devices in the group, the obtained IP address of the terminal device is returned.
  • the core network element determines the IP addresses of all the terminal devices in the group, and then The capability opening network element sends a second event notification message, and the second event notification message includes the IP addresses of all terminal devices in the group.
  • the session management network element may receive the session establishment request from the first terminal device , Allocate an IP address for the first terminal device, obtain the IP address of the first terminal device, and the session establishment request is used to request the establishment of a group session of the group.
  • the core network element is a session management network element
  • the core network element when the core network element sends the second event notification message to the capability opening network element, it is determined that the group carried in the second event registration request is in the network
  • the group ID of the layer is consistent with the group ID at the network layer of the group carried in the session establishment request, or the network layer ID of the terminal device in the group carried in the second event registration request and the terminal carried in the session establishment request
  • the second event notification message is sent to the capability opening network element.
  • the unified data management network element may determine the IP address of the first terminal device according to the contract information of the first terminal device.
  • the core network element is a unified data management network element
  • the unified data management network element determines the second event registration request
  • the network-layer group identifier of the carried group is the same as the network-layer group identifier of the group in the subscription information, or the network-layer identifier of the terminal device in the group carried in the second event registration request and the subscription information
  • the second event notification message is sent to the capability opening network element.
  • the second event notification message further includes part or all of the following: the identification of the terminal device and the group identification of the group.
  • the application function network element before the application function network element sends the first message to other terminal devices that have been assigned IP addresses in the group, it determines other terminal devices that have been assigned IP addresses in the group.
  • the application function network element when the application function network element sends the first message to the terminal device in the group to which the first terminal device belongs, the first message is sent to the terminal device through the user plane network element corresponding to the terminal device.
  • the first message is an application layer message.
  • the present application also provides a computer-readable storage medium that stores instructions in the computer-readable storage medium, which when run on a computer, causes the computer to execute the methods of the above aspects.
  • this application also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the methods of the above-mentioned aspects.
  • the present application also provides a computer chip, which is connected to a memory, and the chip is used to read and execute a software program stored in the memory, and execute the methods of the above aspects.
  • Figure 1 is a schematic diagram of the architecture of a network system provided by this application.
  • Figure 2 is a schematic diagram of a method for obtaining an IP address of a terminal device provided by this application;
  • FIG. 3 is a flowchart of a method for obtaining an IP address of a terminal device provided by this application
  • FIG. 5 is a flowchart of a method for obtaining an IP address of a terminal device provided by this application
  • FIG. 6 is a flowchart of a method for obtaining an IP address of a terminal device provided by this application.
  • FIG. 7 is a schematic structural diagram of a communication device provided by this application.
  • FIG. 8 is a schematic structural diagram of a communication device provided by this application.
  • FIG. 9 is a schematic structural diagram of a communication device provided by this application.
  • FIG. 10 is a schematic structural diagram of a communication device provided by this application.
  • FIG. 11 is a schematic structural diagram of a communication device provided by this application.
  • FIG. 12 is a schematic structural diagram of a communication device provided by this application.
  • FIG. 13 is a schematic structural diagram of a communication system provided by this application.
  • This application provides a method, device and system for obtaining the IP address of a terminal device to solve the problem that the terminal device cannot obtain the IP address of the destination in the prior art.
  • system and “network” in the embodiments of this application Can be used interchangeably.
  • At least one means one or more, and “plurality” means two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are in an "or” relationship.
  • the following at least one item (a)” or similar expressions refers to any combination of these items, including any combination of a single item (a) or plural items (a).
  • the ordinal numbers such as “first” and “second” mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the order, timing, priority, or order of multiple objects. Importance.
  • the first priority criterion and the second priority criterion are only for distinguishing different criteria, but do not indicate the difference in content, priority, or importance of the two criteria.
  • the network architecture is a 5G network architecture.
  • the network elements in the 5G architecture include terminal equipment.
  • the terminal equipment is the UE as an example.
  • the network architecture also includes radio access network (RAN), access and mobility management function (access and mobility management function, AMF) network elements, session management function (session management function, SMF) network elements, user plane Function (user plane function, UPF) network element, unified data management (unified data management, UDM) network element, application function (AF) network element, capability opening function (network exposure function, NEF) network element, etc.
  • RAN radio access network
  • AMF access and mobility management function
  • SMF session management function
  • UPF user plane Function
  • UDM unified data management
  • AF application function
  • capability opening function network exposure function
  • NEF network exposure function
  • RAN The main function of RAN is to control users to access the mobile communication network through wireless.
  • RAN is a part of mobile communication system. It implements a wireless access technology. Conceptually, it resides between a certain device (such as a mobile phone, a computer, or any remote control machine) and provides a connection to its core network.
  • the AMF network element is responsible for terminal access management and mobility management. In practical applications, it includes the mobility management function in the MME in the LTE network framework, and adds the access management function.
  • the SMF network element is responsible for session management, such as user session establishment, etc.
  • the SMF network element can allocate an IP address for the terminal device, and can also send the allocated IP address to the UDM network element, so that the UDM network
  • the meta can update the IP address of the terminal device to the contract information of the terminal device.
  • UPF network element is a functional network element of the user plane, which is mainly responsible for connecting to external networks. It includes LTE service gateway (serving gateway, SGW) and public data network gateway (public data network gateway, PDN-GW) related functions;
  • the UPF network element can be regarded as composed of multiple logical functional entities for implementing path management.
  • UPF#1 and UPF#2 are used to represent the path management logic Functional entity.
  • UE A, UE B, UE C, and UE D are four UEs included in a group.
  • UE A and UE B are connected to UPF#1 through RAN, and UE A and UE B respectively correspond to a port of UPF#1.
  • the port number corresponding to UPF#1 of UE A is A
  • the port number corresponding to UPF#1 of UE B is B
  • UE C and UE D are connected to UPF#2 through RAN
  • UE C and UE D respectively correspond to a port of UPF#2
  • the port number corresponding to UPF#1 of UE C is C
  • the port number corresponding to UPF#1 of UE D is D.
  • UPF#1 and UPF#2 can realize the forwarding of IP packets.
  • UPF#1 can determine whether the IP packet is based on the IP address and port number A of UPF#1 in the destination address of the IP packet on the Internet Need to be sent to UE A.
  • the UE can learn the IP address of the UE, so that the data or message sent by the UE A or the UE B may not be sent to the UE C or the UE D through an external server.
  • UE A wants to communicate with UE B, UE A can directly fill in the destination address of UE B in the destination address field of the IP packet header, and send the IP packet to UPF#1.
  • UPF#1 is determined to be UE B according to the destination IP address, and UPF#1 sends the message directly to UE B.
  • the UDM network element can store the user's subscription information to implement a backend similar to the HSS in 4G.
  • the UDM stores the session context of the UE.
  • the AF network element can be a third-party application control platform, or the operator’s own equipment.
  • the AF network element can be a group server, which can be used to create a group, such as determining the group ID and the group Group members can also be functional entities serving other group servers, servers that can store the IP addresses of group members (also known as terminal devices in the group) in the group, etc., or from the group server Obtain the group ID of the group and the list of group members in the group; in this embodiment of the application, the AF network element can subscribe to the registration event through the NEF network element, that is, send an event registration request to the NEF network element (implemented in this application) Take the first event registration request as an example), request to obtain the IP addresses of all group members or specific group members in the group; and obtain all group members or specific group members of the group from NEF network elements After the member's IP address, the IP address can be saved, and other group members that have been assigned an IP address in the group can be queried, and the IP address can be sent to
  • NEF network elements open the capabilities and events of other network elements to third-party partners or AF network elements. It provides a method for AF network elements to safely provide information to the 3rd generation partnership project (3GPP) network.
  • NEF network elements can verify and authorize and assist in restricting AF network elements.
  • the NEF network element can also convert the information exchanged by the AF network element and the information exchanged by the core network function network element; in the embodiment of this application, the NEF network element receives the AF network element for requesting group members of the group After obtaining the IP address of any group member or all group members of the group from the core network element (such as SMF network element, UDM network element), the event registration request for the IP address of the group is sent to the AF network element.
  • the event registration notification message of the address is used to notify the AF network element of the IP address of the group member of the group.
  • the network architecture shown in Figure 1 may also include a unified data repository (UDR) network element.
  • the UDR network element is mainly used to store user-related subscription data, policy data, and open structured data. Data, application data. Under normal circumstances, UDR network elements can be considered as part of UDM network elements.
  • the UDR network element can also be deployed separately, and the UDM network element manages user data stored in the UDR network element through a data interface.
  • the terminal equipment in this application also known as user equipment (UE), can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; or on the water (such as ships); Deploy in the air (for example, on airplanes, balloons, satellites, etc.).
  • the terminal device may be a mobile phone (mobile phone), a tablet computer (pad), a computer with wireless transceiver function, virtual reality (VR) equipment, augmented reality (AR) equipment, industrial control (industrial control) Wireless devices in ), wireless devices in self-driving (self-driving), wireless devices in remote medical, wireless devices in smart grid, wireless devices in transportation safety (transportation safety) , Wireless devices in a smart city, wireless devices in a smart home, etc.
  • the application function network element may send to the capability opening network element an event registration request for requesting the IP address of the terminal device in the group (in Corresponding to the first event registration request in the embodiment of this application); after the capability opening network element obtains the IP address of the first terminal device in the group from the core network network element, it sends the application function network element with the first terminal device The first event notification message of the IP address, then the application function network element can send the first message carrying the IP address of the first terminal device to other terminal devices in the group that have been assigned an IP address, so that other terminal devices can learn about the first event An IP address of a terminal device, so that when other terminal devices need to send a message to the first terminal device and other terminal devices construct an IP message, the destination address of the IP message can be set to the IP address of the first terminal device,
  • the gateway (such as the UPF network element) can forward the message to the first terminal device according to the destination address.
  • the method includes:
  • Step 201 The application function network element sends a first event registration request to the capability opening network element.
  • the first event registration request is used to request the IP address of the terminal device in the group.
  • the first event registration request can carry the group's group
  • the group identifier such as the group identifier of the group at the application layer, indicates that the application function network element needs to obtain the IP address of the terminal device in the group indicated by the group identifier.
  • the application function network element may be a group server. Before the application function network element sends the first event registration request to the capability opening network element, the application function network element may create the group. For example, the group ID of the group can be determined and the group can be determined. Group members in the group, etc.
  • the application function network element may also be a functional entity serving other group servers. Before the application function network element sends the first event registration request to the capability opening network element, it may receive the sent service request from the group server.
  • the service request It may include the group identifier of the group; optionally, it may also include a list of group members of the group.
  • Step 202 After the capability openness network element receives the first event registration request from the application function network element, the capability openness network element obtains the IP address of the first terminal device from the core network element.
  • the core network element may be a session management network element or It may be a unified data management network element, which is not limited in the embodiment of the present application, and the first terminal device belongs to the group.
  • Step 203 The capability opening network element sends a first event notification message to the application function network element, where the first event notification message includes the IP address of the first terminal device.
  • Step 204 After the application function network element receives the first event notification message from the capability opening network element, the application function network element may send a first message to other terminal devices in the group that have been assigned an IP address.
  • the first message includes the first event notification message.
  • the embodiment of this application does not limit the information type of the first event registration request, and any message that can be used to request to obtain the IP address of the terminal device of the group is applicable to the embodiment of this application.
  • the application function network element may set the event number corresponding to the group; carry the event number in the first event registration request to indicate that the first event registration request is a request message corresponding to the group; in the first event registration request
  • the type of the registration event can also be indicated.
  • the type of the registration event is to obtain the IP address of the terminal device in the group.
  • the first event registration request may also carry the identities of one or more terminal devices in the group, such as application layer identities.
  • the number of terminal device identities carried in the group is not limited.
  • the event registration request can carry the identities of all terminal devices that have joined the group; the first event registration request can also carry the identities of one or more terminal devices, for example, only the identity of the first terminal device is carried. In this case, the first event registration request is used to request the IP address of the first terminal device.
  • the first event registration request may also carry first indication information, and the first indication information may be used to indicate how the capability opening network element responds to the event.
  • the first indication information indicates that the capability opening network element returns the IP addresses of all terminal devices in the group to the application function network element at one time.
  • This response method is a one-time response. After the capability opening network element needs to obtain the IP addresses of all terminal devices in the group, it sends the first event notification message carrying the IP addresses of all terminal devices in the group to the application function network element.
  • the first indication information indicates that when the capability opening network element obtains the IP address of any terminal device in the group, it returns the obtained IP address of the terminal device, or it may indicate that the capability opening network element is obtaining the IP address of the When the IP address of any number of terminal devices in the group, the obtained IP address of the terminal device is returned.
  • This response method is one-by-one response.
  • the capability opening network element obtains the IP address of one terminal device in the group, it can send the first event notification message carrying the IP address of the terminal device to the application function network element; , The first event notification message needs to be sent multiple times, and the IP addresses carried in the first event notification message sent each time belong to different terminal devices in the group.
  • the first indication information may instruct the capability opening network element to return the IP address of the part of the terminal device in the group to the application function at one time Network element (one-time response); it can also instruct the capability opening network element to return the acquired IP address of the terminal device to the application function network element after obtaining the IP address of any terminal device in this part of the terminal device (response one by one). If the first event registration request only carries the identification of one terminal device, there is no difference between the two response modes.
  • the application layer identity of the terminal device refers to the identity of the terminal device in the application.
  • the application layer identity of the terminal device can be the global public subscriber identifier (GPSI) of the terminal device and the mobile station international ISDN number. , MSISND), user identity (user identity), etc.
  • GPSI global public subscriber identifier
  • MSISND mobile station international ISDN number
  • user identity user identity
  • ISDN integrated service digital network
  • the group ID of the group at the application layer refers to the ID of the user group defined by the application, such as the external group ID (External Group ID).
  • terminal devices can belong to multiple different groups at the same time, for example, terminal devices can belong to groups A, B, and C at the same time.
  • the network side device (such as the session management network element) may assign different IP addresses to the terminal device for different group sessions (such as sessions of groups A, B, and C).
  • the group identifier of the group carried in the first event registration request may indicate that the IP address requested by the first event registration request is an IP address allocated by the terminal device in the group indicated by the group identifier of the group.
  • the first event notification message fed back to the application function network element should carry the group identifier of the terminal device in the group (for example, the group is in the application The IP address allocated in the group indicated by the layer group ID).
  • the method for obtaining the IP address of the terminal device in the group from the core network element is as follows:
  • the capability opening network element first sends a second event registration request to the core network element.
  • the second event registration request is used to request the IP address of the terminal device of the group.
  • the second event registration request can indicate the type of registration event.
  • the type of registration event is obtaining the IP address of the terminal device in the group.
  • the core network element can only know the group ID at the network layer and the network layer ID of the terminal device, in order to enable the core network element to determine the IP address of the terminal device in which group requested by the capability opening network element , Or the IP addresses of which terminal devices in which group.
  • the capability opening network element may be based on the correspondence between the group ID at the application layer and the group ID at the network layer, and the correspondence between the application layer ID of the terminal device and the network layer ID Relationship, do some information conversion operations; the capability opening network element can convert the group ID at the application layer to the group ID of the group at the network layer, and carry the group in the network in the second event registration request Group ID at the network layer; the group ID at the network layer refers to the ID of the terminal device group defined by the 3GPP network, such as 5G LAN Group ID and internal group ID , Data network name (data network name, DNN), or a combination of DNN and single network slice selection assistance information (single network slice selection assistance information, S-NSSAI).
  • 5G LAN Group ID and internal group ID Data network name (data network name, DNN), or a combination of DNN and single network slice selection assistance information (single network slice selection assistance information, S-NSSAI).
  • the capability opening network element can also convert the application layer identification of the terminal device into the network layer identification of the terminal device, and carry the network layer identification of the terminal device in The second event registration request.
  • the network layer identity of a terminal device refers to the identity of the terminal device defined by the 3GPP network, such as the international mobile subscriber identification number (IMSI), the subscription permanent identifier (SUPI), and the global unique temporary UE identity (Globally unique temporary UE identity, GUTI).
  • the correspondence between the group ID at the application layer and the group ID at the network layer, and the correspondence between the application layer ID of the terminal device and the network layer ID can be stored locally by the capability opening network element, or it can be The capability opening network element is obtained from the unified data management network element.
  • the capability opening network element can query the terminal equipment in the group according to the group identification of the group, and determine the terminal equipment in the group Logo.
  • the capability opening network element may locally store the corresponding relationship between the group identifier of the group at the application layer and the application layer identifier of the terminal device in the group, and the corresponding relationship between the application layer identifier of the terminal device and the network layer identifier;
  • the capability opening network element may determine the network layer identifier of the terminal device in the group based on locally stored information, and carry the network layer identifier of the terminal device in the group in the second event registration request.
  • the capability opening network element may obtain the identification of the terminal device in the group from the unified data management network element, such as the network layer identification.
  • the capability opening network element may send a query message for querying the network layer identification of the terminal device in the group to the unified data management network element.
  • the query message carries the group identification at the application layer or the group at the network layer.
  • Group ID the unified data management network element queries the network layer ID of the terminal device in the group according to the group ID at the application layer or the group ID at the network layer from the stored information, and will find The network layer identifier of the terminal device in the group is carried in the query response and sent to the capability opening network element.
  • the manner in which the capability opening network element obtains the network layer identifier of the terminal device is only an example, and the embodiment of the present application is not limited.
  • the capability opening network element may not query the terminal device in the group, and only the group identification of the group is carried in the second event registration request; , Can instruct the core network element to feed back the IP addresses of all terminal devices in the group indicated by the group identifier of the group.
  • the second event registration request may also carry second indication information, and the second indication information may be used to indicate how the core network element responds to the event.
  • the second indication information instructs the core network element to return the IP addresses of all terminal devices in the group to the capability opening network element at one time.
  • This response method is a one-time response.
  • the core network element needs to obtain the IP addresses of all terminal devices in the group before sending the second event notification message that carries the IP addresses of all terminal devices in the group to the capability opening network element.
  • the core network element may obtain the IP addresses of all terminal devices indicated by the network layer identifier in the group and send The capability opening network element feeds back the second event notification message carrying the IP addresses of all terminal devices in the group.
  • the core network element can query the identification of all the terminal equipment in the group from the unified data management network element through the group identification at the network layer, such as network Layer identification to identify the terminal equipment in the group. After obtaining the IP addresses of all the terminal devices in the group, the core network element feeds back the second event notification message carrying the IP addresses of all the terminal devices in the group.
  • the embodiment of the present application does not limit the manner in which the core network element obtains the identity of the terminal device, and any method that can obtain the network layer identity of the terminal device in the group is applicable to the embodiment of the present application.
  • the second indication information indicates that the core network element returns the acquired IP address of the terminal device when acquiring the IP address of any one or more terminal devices in the group.
  • This response method is a one-by-one response.
  • the core network element obtains the IP address of one or more terminal devices in the group, it can send a second event notification message carrying the IP address of the terminal device to the capability opening network element; In other words, the second event notification message needs to be sent multiple times.
  • the core network element can open the capability to the capability after obtaining the IP address of any terminal device in the group indicated by the identifier The network element feeds back the second event notification message carrying the IP address of the terminal device.
  • the core network element can query the identification of all the terminal devices in the group from the unified data management network element through the group identification of the group, such as the network layer identification , To identify the terminal equipment in the group. After obtaining the IP address of any terminal device in the group, the core network element feeds back the second event notification message carrying the IP address of the terminal device.
  • the core network element After receiving the second event registration request, the core network element first determines the IP address of the terminal device in the group, and then sends the second event notification message to the capability opening network element.
  • a core network element determines the IP address of a terminal device in a group. Taking the first terminal device as any terminal device in the group as an example, different core network elements determine the IP address of the first terminal device. Ways to explain, two of them are listed below:
  • the core network element is a session management network element.
  • the session management network element has the function of assigning an IP address to the terminal device.
  • the session management network element receives a session establishment request from the first terminal device, it can assign an IP address to the first terminal device.
  • the session management network element can assign an IP address to the first terminal device through the user plane network element, or it can request the dynamic host configuration protocol (DHCP) server to assign an IP address to the first terminal device through the user plane network element. And obtain the IP address of the first terminal device from the DHCP server.
  • DHCP dynamic host configuration protocol
  • the session management network element will allocate different IP addresses for different sessions to ensure the independence of the session of the first terminal device.
  • the session establishment request is a session establishment request for requesting access to a group session of the group; the group session is a session between the first terminal device and other terminal devices of the group.
  • the IP address assigned to the first terminal device is the IP address used by the first terminal device for data transmission with other terminal devices in the group.
  • the session establishment request from the first terminal device may also carry the identification of the first terminal device (such as the network layer identification) and the group identification of the group to which the first terminal device belongs (such as the group identification of the group at the network layer),
  • the session management network element may obtain the identity of the first terminal device and the group identity of the group from it.
  • the session management network element After the session management network element assigns an IP address to the first terminal device or assigns an IP address to the first terminal device through the DHCP server, if the second event registration request includes the group identifier of the group, the session management network element can determine the first terminal device 2. Whether the group ID of the group carried in the event registration request is consistent with the group ID of the group carried in the session establishment request. If they are the same, send the IP address of the first terminal device to the capability opening network element The second event notification message.
  • the session management network element determines whether the identification of the first terminal device carried in the session establishment request is consistent with the identification of the first terminal device carried in the second event registration request , Whether the group ID of the group carried in the second event registration request is the same as the group ID of the group carried in the session establishment request, if they are the same, the session management network element sends to the capability opening network element The second event notification message of the IP address of the first terminal device.
  • the core network network element is a unified data management network element.
  • the unified data management network element determines the IP address of the first terminal device according to the contract information of the first terminal device. Specifically, when the first terminal device initiates a session establishment request, the session management network element receives the session establishment request, assigns an IP address to the first terminal device, and can update the subscription information of the first terminal device. The IP address of the first terminal device is added to the information. Exemplarily, the session management network element may send a subscription information update notification to the unified data management network element.
  • the subscription information update notification carries the IP address of the first terminal device and may also carry the group identifier of the group (for example, the group is in Network layer group identification), the unified data management network element can update the contract information of the first terminal device after receiving the subscription information update notification.
  • the unified data management network element receives the second event registration request, and if the second event registration request includes the group identification of the group, the unified data management network element can determine the group identification and the group identification carried in the second event registration request Whether the group identifiers of the groups in the subscription information of the first terminal device are consistent, and if they are consistent, a second event notification message carrying the IP address of the first terminal device is sent to the capability opening network element.
  • the unified data management network element determines whether the identification of the first terminal device in the subscription information of the first terminal device is consistent with the identification carried in the second event registration request, And whether the group identifier of the group carried in the second event registration request is consistent with the group identifier of the group in the subscription information of the first terminal device; in the case of the same, the unified data management network element will open the network to the capability The meta sends a second event notification message carrying the IP address of the first terminal device.
  • the core network element only sends the second event notification message (corresponding to the response mode indicated by the second indication information) to the capability opening network element after acquiring the IP address of a terminal device (the first terminal device)
  • the core network element can also send a second event notification message (corresponding to the one-time response mode indicated by the second indication information) to the capability opening network element after obtaining the IP addresses of all terminal devices in the group. Sexual response).
  • the second event notification message may also include third indication information, and the third indication message indicates that the notification of the IP addresses of all terminal devices in the group has been completed.
  • the core network element may, after obtaining the IP address of the last terminal device in the group, carry the third indication message in the second event notification message sent to the capability opening network element; corresponding to In the one-time response mode, the core network element may also carry the third indication message in the second event notification message sent to the capability opening network element.
  • the second event notification message may only carry the IP address of the first terminal device and the identity of the first terminal device, such as the network layer identifier.
  • the capability opening network element may indirectly use the correspondence between the event registration request and the event notification message. It is determined that the IP address carried in the second event notification message is the IP address of the first terminal device in the group. For the case where the application function network element only requests the IP address of the first terminal device, the second event notification message may not carry the identifier of the first terminal device.
  • the event registration request message carries an event number or sequence number
  • the event notification message carries the same Event number or serial number.
  • the capability opening network element may determine according to the event number or the sequence number that the second event notification message is a response to the previous second event registration request message. The capability opening network element may determine based on this that the IP address carried in the second event notification message is the IP address of the first terminal device in the group.
  • the second event notification message may also carry the group identification of the group, such as the group identification of the group at the network layer, and may also carry the identification of the first terminal device, such as the network layer identification.
  • the capability opening network element After the capability opening network element receives the second event notification message, it can obtain the IP address of the first terminal device from the second event notification message.
  • the response mode indicated by the first indication information is one response
  • the response mode indicated by the second indication information is also one response; after the capability opening network element receives the second event notification message, the second event notification message carries the first terminal device If the network layer identifier of the capability opening network element can convert the network layer identifier of the first terminal device into the application layer identifier of the first terminal device, and carry the application layer identifier of the first terminal device in the first event notification message; if The second event notification message also carries the group ID of the group at the network layer. The capability opening network element can convert the group ID at the network layer to the group ID at the application layer. The group identifier of the application layer is carried in the first event notification message.
  • the first event notification message carries the application layer identifier of the first terminal device or the group identifier of the group at the application layer, so that the application function network element can more intuitively determine that the IP address in the first event notification message is the group IP address of the first terminal device in the
  • the capability opening network element may first save the application layer identification and the terminal device after receiving the second event notification message. IP address, until the capability opening network element determines to receive the IP addresses of all terminal devices in the group, the first event notification message is returned to the application function network element.
  • the capability opening network element can also determine to receive the IP addresses of all terminal devices in the group according to the third instruction information; it can also query the IP addresses of the terminal devices in the group saved locally to determine whether there are terminals with missing IP addresses in the group equipment. If it does not exist, the first event notification message may be returned to the application function network element.
  • the capability opening network element can directly return to the application function network element after receiving the second event notification message The first event notification message.
  • the response mode indicated by the first indication information is a one-time response
  • the response mode indicated by the second indication information is also a one-time response.
  • the capability opening network element can return to the application function network element one by one. There is a first event notification message for the IP addresses of different terminal devices in the group.
  • the first event notification message may only carry the IP address and identification of the terminal device (such as the first terminal device), such as the application layer identification.
  • the application function network element may indirectly pass the corresponding relationship between the event registration request and the event notification message. It is determined that the IP address carried in the first event notification message is the IP address of the first terminal device. Exemplarily, the application function network element may determine that the first event notification message is a response to the previous first event registration request message according to the event number or the sequence number. For the case where the application function network element only requests the IP address of the first terminal device, the first event notification message may not carry the identifier of the first terminal device.
  • the application function network element can store the IP address of the first terminal device, and can also notify other terminal devices in the group of the IP address of the first terminal device, for example, the group The second terminal device that has been assigned an IP address in.
  • the application function network element After the application function network element receives the IP address of the first terminal device, it will query whether the IP address of the first terminal device in the group has been saved locally; if it has been saved, the application function network element You can check whether the group already has the IP address records of other group members, if not, stop; if so, send the IP address of the first terminal to the other group members respectively, and also send the IP address of the other group members Send the IP address to the first terminal device.
  • the application function network element may locally store the IP address of the terminal device, the group identification of the group to which the terminal device belongs, and the identification of the terminal device. After obtaining the IP address of the first terminal device, the application function network element can query the locally stored terminal devices to which the IP address has been assigned, and determine the terminal devices belonging to the same group as the first terminal device.
  • the application function network element After the application function network element finds other terminal devices, it may send the first message to the other terminal devices.
  • This embodiment of the application does not limit the number of other terminal devices, it can be multiple or one; if there are multiple other terminal devices, the application function network element can use multicast to send the first terminal device to multiple other terminal devices.
  • the first message can also be sent in a unicast manner.
  • the application function network element may send the first message carrying the IP address of the first terminal device to other terminal devices through the user plane network element.
  • the first message may be an application layer message, and the first message may also carry the group identifier of the group (such as the group identifier of the group at the application layer, the group identifier of the group at the network layer); optional, It may also include an identifier of the first terminal device, such as an application layer identifier or a network layer identifier of the first terminal.
  • other terminal devices After receiving the first message, other terminal devices can determine that the group identifier of the group carried in the first message is consistent with the group identifier of the group to which the other terminal device belongs.
  • the terminal devices belong to the same group; the IP address carried in the first message is determined by the identification of the first terminal device as the IP address of the first terminal device; other terminal devices can save the IP address of the first terminal device carried in the first message The address, the identification of the first terminal device, or the group identification of the group.
  • the application function network element may construct an IP message.
  • the IP message includes an application layer message.
  • the application layer message carries the IP address of the first terminal device and the identification of the first terminal device.
  • the message is sent to other terminal devices through packet data unit (PDU) sessions of other terminal devices.
  • PDU packet data unit
  • other terminal devices After receiving the IP message, other terminal devices can obtain the IP address of the first terminal device from the application layer message.
  • the destination address of the IP message can be set to the first terminal when constructing the IP message.
  • the IP address of the device is sent to the user plane network element corresponding to the first terminal device, and the user plane network element can directly send the IP message to the first terminal device according to the destination address of the IP message.
  • the application function network element can send to the second terminal device that the first terminal device is in different groups (for example, in the first group and the second group). Group as an example).
  • the second terminal device may receive a first message from an application function network element, and the first message includes the first IP address of the first terminal device, the identifier of the first terminal device, and the first group to which the first terminal device belongs The group ID of the group.
  • the second terminal device may save the correspondence between the identifier of the first terminal device, the group identifier of the first group to which the first terminal device belongs, and the first IP address of the first terminal device.
  • the second terminal device may also receive a third message from the application function network element.
  • the third message includes the second IP address of the first terminal device, the identifier of the first terminal device, and the group of the second group to which the first terminal device belongs.
  • the corresponding relationship between the identifier of the first terminal device, the group identifier of the second group to which the first terminal device belongs, and the second IP address of the first terminal device is stored.
  • the second terminal device may need to transfer the IP
  • the destination address of the message is set to the first IP address of the first terminal device, and the IP message is sent to the first terminal device through the user plane network element.
  • the second terminal device may need to transfer the IP
  • the destination address of the message is set to the second IP address of the first terminal device, and the IP message is sent to the first terminal device through the user plane network element.
  • the second terminal device can interact with the first terminal device by setting the destination address of the IP message to the corresponding IP address of the first terminal device; the first message and the third message
  • the group identifier in and the identifier of the first terminal device in can intuitively indicate which group the IP address carried in the message is the IP address of which terminal device in which group, and can effectively distinguish the IP addresses of terminal devices in different groups.
  • the application function network element may also send the IP addresses of other terminal devices to the first terminal device.
  • the application function network element may send a second message that carries the IP address of other terminal devices to the first terminal device.
  • the second message includes the IP address of the other terminal device, the identifier of the other terminal device, and the group identifier of the group.
  • the manner in which the application function network element sends the IP address of other terminal devices to the first terminal device is similar to the manner in which the application function network element sends the IP address of the first terminal device to other terminal devices. For details, please refer to the foregoing content and will not be repeated here. .
  • the application function network element can store the IP addresses of all the terminal devices in the group, and can also store all the IP addresses of all the terminal devices in the group.
  • the IP address of the terminal device is notified to all the terminal devices in the group; the application function network element can send a message carrying the IP addresses of all the terminal devices in the group to all the terminal devices in the group by multicast, or In a unicast manner, a message carrying the IP addresses of all terminal devices in the group is sent to each terminal device in the group.
  • the application function network element can send to other terminal devices carrying terminals other than other terminal devices in the group Message of the IP address of the device.
  • the first terminal device is UE A
  • the other terminal devices are UE B.
  • UE B constructs an IP message
  • it sets the destination address of the IP message to the IP of UE A.
  • Address, sent to UPF#1, UPF#1 can perform local exchange of IP packets according to the destination address of the IP packets, and directly send the IP packets to UE A.
  • the UE ID can be the network layer identification of the UE.
  • the first type, the core network element is the SMF network element.
  • a method for obtaining the IP address of a terminal device is provided in this embodiment of the application.
  • the AF network element requires the network side (such as the NEF network element) to return the IP addresses of all UEs in the group ,
  • the method includes:
  • Step 301 The AF network element sends a first event registration request to the NEF network element, which carries the External Group ID.
  • the first event registration request is used to request the NEF network element to obtain the IP addresses of all UEs in the group indicated by the External Group ID.
  • the first event registration request may also carry the GPSI of each UE in the group to indicate that the AF network element needs to obtain the IP address of the UE indicated by each GPSI.
  • the first event registration request may further include first indication information, where the first indication information is used to indicate how the NEF network element responds to the event.
  • the response mode can be one-time response and one-by-one response:
  • the first indication message is used to instruct the NEF network element to return the IP addresses of all UEs in the group at once.
  • Step 302 After receiving the first event registration request, the NEF network element converts the External Group ID into a 5GLAN group identifier (such as 5GLAN DNN).
  • the NEF network element may also convert the GPSI of each UE into the UE ID.
  • the NEF network element can realize the conversion between the External Group ID and the 5GLAN group ID and the conversion between the GPSI and the UE ID based on the correspondence between the GPSI and the UE ID, and the External Group ID and the 5GLAN group ID.
  • NEF network element can also be obtained by request from UDM network element, or pre-configured by UDM network element For NEF network elements.
  • the NEF network element can obtain the GPSI of the UE in the group according to the received External Group ID (that is, the group member ID list in the group) .
  • the group member list is obtained from the UDM network element.
  • the group information can be stored in advance on the UDM network element: the group information includes but is not limited to the group identifier and the group member list.
  • Step 303 The NEF network element sends a second event registration request to the SMF network element, where the second event registration request includes the 5GLAN group identifier, and the second event registration request is used to request the SMF network element to obtain the group indicated by the 5GLAN group identifier IP addresses of all UEs in the
  • the second event registration request may also carry the UE ID of each UE in the group to indicate that the SMF network element needs to obtain the IP address of the UE indicated by each UE ID.
  • the second event registration request may further include second indication information, where the second indication information is used to indicate how the SMF network element responds to the event.
  • the response method is similar to the response method in step 301.
  • the second indication information is for the SMF network element, and the first indication information is for the NEF network element, which will not be repeated here.
  • Step 304 After the SMF network element receives the second event registration request, the SMF may send a second event registration response to the NEF network element, indicating that the event registration is successful.
  • the SMF network element may obtain the UE ID of each UE in the group according to the 5GLAN group identifier.
  • the SMF network element may determine the UE ID of each UE in the group according to the corresponding relationship between the 5GLAN group identifier and the UE in the group.
  • the corresponding relationship between the 5GLAN group identifier and the UEs in the group may be stored locally in the SMF network element, or may be obtained by the SMF network element from the UDM network element.
  • the corresponding relationship between the group identifier and the UEs in the group may be in the form of a list, which includes the 5GLAN group identifier and the member list of all UEs in the group, and the member list includes the UE ID of the UE.
  • Step 305 After receiving the second event registration response, the NEF network element sends the first event registration response to the AF network element, indicating that the event registration is successful.
  • Step 306 The UE sends a packet data unit (PDU) session establishment request to the SMF network element.
  • the PDU session establishment request may carry a 5GLAN group identifier for establishing a group session of the 5GLAN group to which the UE belongs.
  • Step 307 The SMF network element obtains the 5GLAN group identifier in the PDU session establishment request, and determines whether it is consistent with the 5GLAN group identifier (5GLAN group identifier in the second event registration request) obtained from NEF. If they are consistent, the SMF network element After the IP address is allocated to the UE through the UPF network element, the second event notification message is sent to the NEF network element.
  • the SMF network element may obtain the UE ID from the PDU session establishment request, and determine whether it is consistent with the UE ID obtained from the NEF network element (or UDM network element, or determined according to locally stored information). In the case that the 5GLAN group ID and the UE ID are the same, the second event notification message is returned to the NEF network element.
  • the SMF network element If the second event registration request includes the second indication information, and the SMF network element returns the obtained IP address of the UE when obtaining the IP address of any UE in the group, the SMF network element is After the UE allocates the IP address, it sends a second event notification message to the NEF network element.
  • the second event notification message includes the UE ID of the UE and the corresponding IP address.
  • the SMF network element If the second event registration request includes the second indication information, and the second indication information SMF network element returns the IP addresses of all UEs in the group to the NEF network element at one time, the SMF network element first allocates IP addresses to the UEs. Save the UE ID of the UE and the corresponding IP address. All UEs in the group initiate a PDU session establishment process. After the SMF network element assigns IP addresses to all UEs in the group, it returns a second event notification message to the NEF network element. The second event notification message includes the group
  • the UE IDs and corresponding IP addresses of all UEs in the group may optionally also include a 5GLAN group identifier. Among them, the UE IDs and corresponding IP addresses of all UEs in the group may be in the form of a list.
  • the second event notification message may also include third indication information, and the third indication message indicates that the notification of the IP addresses of all UEs in the group has been completed.
  • Step 308 The NEF network element converts the UE ID in the second event notification message to GPSI, and returns the first event notification message to the AF network element.
  • the first event notification message includes the GPSI of all UEs in the group and the corresponding IP address.
  • the GPSIs and corresponding IP addresses of all UEs in the group can be in the form of a list.
  • the first registration request message contains the first indication information
  • the response mode indicated by the first indication message is a one-time response
  • the response mode indicated by the second indication message is a one-time response
  • the network element may directly return the first event notification message to the AF network element. If the response mode indicated by the second indication message is to respond one by one; after the NEF network element receives the second event notification message, the NEF network element can first save the GPSI and IP address of the UE until the NEF network element determines that the group has received all the information. The IP address of the UE returns the first event notification message to the AF network element.
  • the NEF network element may determine to receive the IP addresses of all UEs in the group according to the third indication information; it may also query the IP addresses of the UEs in the locally saved group to determine whether there are UEs with missing IP addresses in the group. If it does not exist, the first event notification message can be returned to the AF network element.
  • the NEF network element may also convert the 5GLAN group identifier into an External Group ID, and carry the External Group ID in the first event notification message.
  • Step 309 After the AF network element obtains the IP addresses of all UEs in the group indicated by the External Group ID from the first event notification message, the AF network element sends an application layer message to the UEs in the group indicated by the External Group ID to remove the GPSI and IP addresses of UEs other than the UE.
  • the 5GLAN group includes UE A, UE B, and UE C.
  • the AF network element obtains the GPSI and IP addresses of UE A, UE B, and UE C from the first event notification message of the NEF network element, and the AF network element sends the GPSI and IP addresses of UE B and UE C to UE A through an application layer message , Send the GPSI and IP addresses of UE A and UE C to UE B, and send the GPSI and IP addresses of UE A and UE B to UE C.
  • the AF network element When the AF network element sends the GPSI and IP addresses of other UEs other than the UE to the UE in the group indicated by the External Group ID through an application layer message, it can carry the External Group ID to indicate the group to which the other UE belongs.
  • UEs When other UEs receive application layer messages from AF network elements, they can determine whether it is a group to which other UEs belong according to the External Group ID carried in the application layer message; if so, they can save the GPSI of other UEs carried in the application layer message And the IP address.
  • the AF network element needs to wait a long time to receive the first event notification message; in order to ensure that the AF network element can obtain the group in time The IP address of the UE in the group; the AF network element can start a timer after sending the first event registration request. If the first event notification message is not received after the timer expires, it will send the first request.
  • a request is used to request the NEF network element for the IP address of the terminal device in the group that the current NEF network element has acquired; after receiving the first request, the NEF network element will send the currently acquired IP address of the terminal device in the group It is carried in the first response and sent to the AF network element; after receiving the first response, the AF network element saves the IP address of the terminal device in the group carried in the first response, and can also assign IP addresses to those in the group Any terminal device notifies the IP address of other terminal devices in the group.
  • a method for obtaining the IP address of a terminal device is provided in this embodiment of the application.
  • the AF network element requires the network side (such as NEF network element) returns the IP address of the newly added UE in the group.
  • the number of newly added UEs can be one or more.
  • the AF network element is used to request a new UE in the group.
  • the method includes:
  • Step 401 The AF network element sends a third event registration request to the NEF network element, which carries the GPSI and External Group ID of the UE.
  • the third event registration request is used to request the NEF network element to obtain the GPSI indication in the group indicated by the External Group ID The IP address of the UE.
  • the group currently includes UE A, UE B, and UE C.
  • the AF network element adds UE D to the group, and can carry the GPSI of UE D in the third event registration request.
  • Step 402 After receiving the third event registration request, the NEF network element converts the External Group ID into a 5GLAN group identifier (such as 5GLAN DNN), and converts GPSI into a UE ID.
  • a 5GLAN group identifier such as 5GLAN DNN
  • Step 403 The NEF network element sends a fourth event registration request to the SMF network element, which includes the UE ID and the 5GLAN group identifier.
  • the fourth event registration request is used to request the SNF network element to obtain the UE in the group indicated by the 5GLAN group identifier The IP address of the UE indicated by the ID.
  • Step 404 The SMF may send a fourth event registration response to the NEF network element, indicating that the event registration is successful.
  • Step 405 After receiving the fourth event registration response, the NEF network element sends a third event registration response to the AF network element, indicating that the event registration is successful.
  • Step 406 The UE sends a PDU session establishment request to the SMF network element.
  • the PDU session establishment request may carry the 5GLAN group identifier and the UE ID for establishing a group session of the 5GLAN group to which the UE belongs.
  • Step 407 The SMF network element obtains the UE ID and the 5GLAN group identifier in the PDU session establishment request, and judges whether they are consistent with the UE ID and the 5GLAN group identifier obtained from the NEF. If they are consistent, the SMF network element returns a fourth event notification message to the NEF network element after assigning an IP address to the UE.
  • the fourth event notification message includes the UE ID and the corresponding IP address. Optionally, it may also include a 5GLAN group. Group ID.
  • Step 408 The NEF network element converts the UE ID to GPSI, and returns a third event notification message to the AF network element.
  • the third event notification message includes the GPSI of the UE and the corresponding IP address.
  • the NEF network element may also convert the 5GLAN group identifier into an External Group ID, and carry the External Group ID in the third event notification message.
  • Step 409 After the AF network element obtains the External Group ID and the IP address of the UE indicated by the GPSI from the third event notification message, the AF network element sends the GPSI and IP address of the UE to other UEs in the group through an application layer message.
  • the AF network element After the AF network element receives the IP address of the UE, it will check whether the IP address record of the UE in the group has been saved locally. If not, it will save the IP address of the UE. For example, it can save 5GLAN ID, UE ID and corresponding IP address; you can also check whether the group has other group members' IP address records, if not, stop; if so, send the UE's IP address to other group members with IP address records; Optionally, the IP addresses of other group members with IP address records can also be sent to the UE.
  • the AF network element obtains the GPSI and IP address of UE D from the third event notification message of the NEF network element, and the AF sends the GPSI and IP address of UE D to UE A, UE B, and UE C through application layer messages.
  • the AF network element can also send the GPSI and IP addresses of UE A, UE B, and UE C to UE D.
  • the AF network element group sends to the UE an application layer message carrying the IP addresses of other UEs.
  • the application layer message may also include the GPSI and External Group ID of other UEs.
  • Figures 3 and 4 show an example in which other UEs are UE2 and UE3.
  • the second type, core network elements are UDM network elements.
  • the AF network element requires the network side (such as the NEF network element) to return the information of all UEs in the group at once.
  • IP address the method includes:
  • Step 501 same as step 301, please refer to the related description of step 301, which will not be repeated here.
  • Step 502 Same as step 302, please refer to the related description of step 302, which will not be repeated here.
  • Step 503 The NEF network element sends a second event registration request to the UDM network element, where the second event registration request includes the 5GLAN group identifier, and the second event registration request is used to request the UDM network element to obtain the group indicated by the 5GLAN group identifier.
  • the IP addresses of all UEs in the group are not limited to the group.
  • step 303 For the description of the second event registration request, refer to the related description in step 303, which will not be repeated here.
  • Step 504 After receiving the second event registration request, the UDM network element saves the UE ID and the 5GLAN group identifier, and sends a second event registration response to the NEF network element, indicating that the event registration is successful.
  • the UDM network element can obtain the UE ID of each UE in the group according to the 5GLAN group identifier.
  • the manner in which the UDM network element obtains the UE ID of each UE in the group can refer to the manner in which the SMF network element obtains the UE ID of each UE in the group in step 304, which will not be repeated here.
  • Step 505 same as step 305, please refer to the related description of step 305, which will not be repeated here.
  • Step 506 The UE sends a PDU session establishment request to the SMF network element.
  • the PDU session establishment request may carry a 5GLAN group identifier for establishing a group session of the 5GLAN group to which the UE belongs.
  • Step 507 The SMF network element establishes a PDU session for the UE and allocates an IP address for the UE.
  • Step 508 The SMF network element sends a subscription information update notification to the UDM network element.
  • the subscription information update notification carries the UE ID, the 5GLAN group identifier and the IP address of the UE.
  • Step 509 The UDM network element saves the UE ID, the 5GLAN group identifier, and the IP address of the UE as the context of the UE in the subscription information of the UE.
  • the UDM network element determines whether the 5GLAN group identifier received from the SMF network element (or the 5GLAN group identifier in the UE’s subscription information) is consistent with the 5GLAN group identifier obtained from NEF, and if they are consistent, it returns the first to the NEF network element. 2.
  • Event notification message The UDM network element saves the UE ID, the 5GLAN group identifier, and the IP address of the UE as the context of the UE in the subscription information of the UE.
  • the UDM network element determines whether the 5GLAN group identifier received from the SMF network element (or the 5GLAN group identifier in the UE’s subscription information) is consistent with the 5GLAN group identifier obtained from NEF, and if they are consistent, it returns the first to the NEF network element
  • the UDM network element can also determine whether the UE ID received from the SMF network element (or the UE ID in the UE’s subscription information) is consistent with the UE ID obtained from the NEF network element.
  • the 5GLAN group identification and UE In the case where the IDs are all consistent, the second event notification message is returned to the NEF network element.
  • step 307 The manner in which the UDM network element sends the second event notification message according to the second indication information in the second event registration request and the manner in which the SMF network element sends the second event notification message according to the second indication information in the second event registration request in step 307
  • the related description in step 307 please refer to the related description in step 307, which will not be repeated here.
  • Step 510 Same as step 308, please refer to the related description of step 308, which will not be repeated here.
  • Step 511 Same as step 309, please refer to the related description of step 309, which will not be repeated here.
  • a method for obtaining the IP address of a terminal device is provided in this embodiment of the application.
  • the AF network element requires the network side (such as NEF network element) returns the IP address of the newly added UE in the group.
  • the number of newly added UEs can be one or more.
  • the AF network element is used to request a new UE in the group.
  • the method includes:
  • Step 601 the same as step 401, please refer to the related description of step 401, which will not be repeated here.
  • Step 602 same as step 402, please refer to the related description of step 402, which will not be repeated here.
  • Step 603 The NEF network element sends a fourth event registration request to the UDM network element, where the fourth event registration request includes the UE ID and the 5GLAN group identifier, and the fourth event registration request is used to request the UDM network element to obtain the 5GLAN group identifier The IP address of the UE indicated by the UE ID in the indicated group.
  • Step 604 After receiving the fourth event registration request, the UDM network element saves the UE ID and the 5GLAN group identifier, and sends a fourth event registration response to the NEF network element, indicating that the event registration is successful.
  • Step 605 same as step 405, please refer to the related description of step 405, which will not be repeated here.
  • Step 606 same as step 406, please refer to the related description of step 406, which will not be repeated here.
  • Step 607 The SMF network element establishes a PDU session for the UE and allocates an IP address for the UE.
  • Step 608 The SMF network element sends a subscription information update notification to the UDM network element, and the subscription information update notification carries the UE ID, the 5GLAN group identifier and the IP address of the UE.
  • Step 609 The UDM network element saves the UE ID, the 5GLAN group identifier and the IP address of the UE as the context of the UE in the subscription information of the UE.
  • the UDM network element determines whether the 5GLAN group identifier received from the SMF network element (or the 5GLAN group identifier in the subscription information of the UE) is consistent with the 5GLAN group identifier obtained from NEF, and the UE ID received from the SMF network element (It may also be the UE ID in the subscription information of the UE) Whether it is consistent with the UE ID obtained from the NEF network element, if they are consistent, the fourth event notification message is returned to the NEF network element.
  • the fourth event notification message includes the UE ID and the corresponding IP address, and optionally, the 5GLAN group identifier.
  • Step 610 same as step 408, please refer to the related description of step 408, which will not be repeated here.
  • Step 611 Same as step 409, please refer to the related description of step 409, which will not be repeated here.
  • the embodiments shown in Figures 4 and 6 are based on obtaining the IP address of a UE. It is conceivable that the AF network element can also request to obtain the IP addresses of certain UEs in the group. Refer to the embodiment shown in FIG. 4, the difference is that the third event registration request carries the GPSIs of multiple UEs, and the fourth event registration request carries the UE IDs of multiple UEs.
  • the first indication information may indicate that the NEF network element returns the IP addresses of multiple UEs at one time, or returns the IP address of one UE.
  • the NEF network element needs to determine that the multiple UEs are acquired before sending the third event notification message; the second indication message is similar.
  • a third indication message may also be added, and the third indication information may indicate that the notification of the IP addresses of the multiple UEs has been completed.
  • the method in which a terminal device in a group obtains the IP addresses of other terminal devices in the group is taken as an example for description; and according to the above embodiment, when two terminal devices (Take UE A and UE B as examples) Both belong to multiple groups (take the first group and the second group as examples); UE A can obtain the IP address of UE B in the first group and the second group The IP address of UE B in the group.
  • UE B can obtain the IP address of UE A in the first group and the IP address of UE A in the second group; when UE A needs to pass the first group or the second group
  • UE A can determine the IP address of UE B in the corresponding group according to the identity of UE B and the group identity (such as the first group or the second group) , And set the destination address of the IP message to the determined IP address of UE B, and send the IP message through the user plane network element.
  • the embodiment of the application also provides a communication device for executing the method executed by the application function network element in the above method embodiment.
  • the device includes a sending unit 701 and a receiving unit 702:
  • the sending unit 701 is configured to send a first event registration request to the capability opening network element, and the first event registration request is used to request to obtain the Internet Protocol IP address of the terminal device in the group.
  • the receiving unit 702 is configured to receive a first event notification message from a capability opening network element, where the first event notification message includes the IP address of the first terminal device in the group.
  • the sending unit 701 is further configured to send a first message to other terminal devices that have been assigned an IP address in the group.
  • the first message includes the IP address of the first terminal device, the identification of the first terminal device, and the group of the group Logo.
  • the first event registration request may include some information for indicating the group.
  • the first event registration request may include the group identification of the group, such as the group identification of the group at the application layer.
  • the first event registration request may also carry related information of terminal devices in the group.
  • the first event registration request may include an identification of one or more terminal devices in the group, such as an application layer identification, and the one or more terminal devices in the group include the first terminal device.
  • the first event notification message includes part or all of the following: the identification of the first terminal device and the group identification of the group.
  • the first event registration request may also carry a first indication message, which is used to indicate the response mode of the capability opening network element.
  • the first event registration request includes first indication information.
  • the first indication information may indicate that the capability openness network element returns the IP addresses of all terminal devices in the group at one time, or may indicate that the capability openness network element is acquiring the group When the IP address of any one or more terminal devices in the group, the obtained IP address of the terminal device is returned.
  • the first event notification message includes the IP addresses of all terminal devices in the group .
  • the communication device further includes a processing unit 703.
  • the processing unit 703 can store the first message locally before the sending unit 701 sends the first message to other terminal devices that have been assigned IP addresses in the group. Among the terminal devices that have been assigned IP addresses, determine other terminal devices that have been assigned IP addresses in the group.
  • the sending unit 701 may send the first message to other terminal devices through user plane network elements corresponding to the other terminal devices. news.
  • the first message is an application layer message.
  • the sending unit 701 may also send a second message to the first terminal device, the second message including the IP address of the other terminal device, the identifier of the other terminal device, and the group identifier of the group.
  • the embodiment of the application also provides a communication device for executing the method performed by the capability opening network element in the above method embodiment.
  • the device includes a receiving unit 801, a processing unit 802, and a sending unit 803:
  • the receiving unit 801 is configured to receive a first event registration request from an application function network element, and the first event registration request is used to request to obtain an Internet Protocol IP address of a terminal device in the group.
  • the processing unit 802 is configured to obtain the IP address of the first terminal device in the group from the core network element.
  • the sending unit 803 is configured to send a first event notification message to the application function network element after the processing unit 802 obtains the IP address of the first terminal device in the group from the core network element, where the first event notification message includes the first terminal device IP address.
  • the processing unit 802 triggers the sending unit 803 to send a second event registration request to the core network element, and the second event registration request is used to request to obtain the IP address of the terminal device in the group; then, the receiving unit 801 may receive a second event notification message from a core network element, where the second event notification message includes the IP address of the first terminal device.
  • the first event registration request may include some information for indicating the group.
  • the first event registration request includes the group identification of the group, such as the group identification of the group at the application layer.
  • the first event registration request may also carry related information of terminal devices in the group.
  • the first event registration request also includes an identification of one or more terminal devices in the group, such as an application layer identification, where the terminal device in the group includes the first terminal device.
  • the first event notification message may only include the IP address of the first terminal device, and may also include some or all of the following: the identity of the first terminal device (such as the application layer identity) and the group’s Group ID (such as the group ID of the group at the application layer).
  • the first event registration request may include first indication information, which is used to indicate the response mode of the capability opening network element.
  • the first indication information indicates that the capability opening network element returns the IP addresses of all terminal devices in the group at one time or indicates that when the capability opening network element obtains the IP addresses of any one or more terminal devices in the group, Return the obtained IP address of the terminal device.
  • the sending unit 803 may obtain all the IP addresses in the group from the core network element. After the IP address of the terminal device, a first event notification message is sent to the application function network element, and the first event notification message includes the IP addresses of all terminal devices in the group.
  • the processing unit 802 may also obtain the identification of the terminal device in the group from the unified data management network element according to the group identification.
  • the processing unit 802 may convert the group identification at the application layer into a group identification at the network layer.
  • Group ID the group ID of the group at the network layer is the group ID of the group at the network layer;
  • the sending unit 803 may then send a second event registration request to the core network element, and the second event registration request includes the group being in the network The group ID of the layer.
  • the processing unit 802 may also convert the application layer identification of the terminal device in the group Is the network layer identification, the group identification at the application layer is converted to the group identification at the network layer, and the network layer identification is the network layer identification of the terminal device; after that, the sending unit 803 sends the first to the core network element Two event registration request, the second event registration request includes the network layer identifier of the terminal device in the group and the group identifier of the group at the network layer.
  • the second event registration request includes second indication information, which is used to indicate the response mode of the core network element.
  • the second indication information indicates that the core network element returns the IP addresses of all terminal devices in the group at one time or indicates that when the core network element obtains the IP addresses of any one or more terminal devices in the group, Return the obtained IP address of the terminal device.
  • the second event notification message includes the IP addresses of all terminal devices in the group .
  • the second event notification message includes some or all of the following: the identification of the first terminal device (such as the network layer identification) and the group identification of the group (such as the group at the network layer) logo).
  • the first event registration request includes the application layer identification of the terminal device in the group and/or the group identification of the group at the application layer
  • the processing unit 802 may also transfer the network of the first terminal device
  • the layer identifier is converted to the application layer identifier of the first terminal device, and/or the group identifier at the network layer is converted to the group identifier at the application layer; the sending unit 803 may send the first terminal device to the core network element.
  • the event notification message, the first event notification message includes part or all of the following: the application layer identifier of the first terminal device and the group identifier of the group at the application layer.
  • the embodiment of the application also provides a communication device for executing the method executed by the core network element in the above method embodiment.
  • the device includes a receiving unit 901, a processing unit 902, and a sending unit 903:
  • the receiving unit 901 is configured to receive a second event registration request from the capability opening network element, and the second event registration request is used to request to obtain the Internet Protocol IP address of the terminal device in the group.
  • the processing unit 902 is configured to determine the IP address of the first terminal device in the group.
  • the sending unit 903 is configured to send a second event notification message to the capability opening network element after the processing unit 902 determines the IP address of the first terminal device in the group, where the second event notification message includes the IP address of the first terminal device.
  • the second event registration request includes the group identification of the group, such as the group identification of the group at the network layer.
  • the second event registration request further includes an identifier of the terminal device in the group, such as a network layer identifier.
  • the second event registration request further includes second indication information, which is used to indicate the response mode of the core network element.
  • the second indication information indicates that the core network element returns the IP addresses of all terminal devices in the group at one time or indicates that when the core network element obtains the IP addresses of any one or more terminal devices in the group, Return the obtained IP address of the terminal device.
  • the core network element may determine the IP addresses of all the terminal devices in the group. After the IP address, a second event notification message is sent to the capability opening network element, and the second event notification message includes the IP addresses of all terminal devices in the group.
  • the processing unit 902 may allocate an IP address to the first terminal device after the receiving unit 901 receives the session establishment request from the first terminal device, and the session establishment request is used to request the establishment of a group group. Group conversation.
  • the processing unit 902 may determine that the group identification of the group carried in the second event registration request is consistent with the group identification of the group carried in the session establishment request, or that the group identification of the group carried in the second event registration request The carried identifier of the terminal device in the group is consistent with the identifier of the first terminal device carried in the session establishment request; the sending unit 903 may then send the second event notification message to the capability opening network element.
  • the processing unit 902 may determine the IP address of the first terminal device according to the subscription information of the first terminal device.
  • the processing unit 902 determines that the group identification of the group carried in the second event registration request is consistent with the group identification of the group in the subscription information, or the group identification carried in the second event registration request
  • the identifier of the terminal device in the group is consistent with the identifier of the first terminal device in the subscription information; after that, the sending unit 903 may send a second event notification message to the capability opening network element.
  • the second event notification message further includes part or all of the following: the identity of the first terminal device (such as the network layer identity) and the group identity of the group (such as the group at the network layer). Group ID).
  • the embodiment of the application also provides a communication device for executing the method executed by other terminal equipment in the above method embodiment.
  • the device includes a receiving unit 1001 and a processing unit 1002:
  • the receiving unit 1001 is configured to receive a first message from an application function network element, where the first message includes the first IP address of the first terminal device, the identifier of the first terminal device, and the group of the first group to which the first terminal device belongs Group ID.
  • the processing unit 1002 is configured to store the correspondence between the identifier of the first terminal device, the group identifier of the first group to which the first terminal device belongs, and the first IP address of the first terminal device.
  • the receiving unit 1001 is further configured to receive a third message from the application function network element.
  • the third message includes the second IP address of the first terminal device, the identifier of the first terminal device, and the first terminal device.
  • the processing unit 1002 may also save the correspondence between the identifier of the first terminal device, the group identifier of the second group to which the first terminal device belongs, and the second IP address of the first terminal device.
  • the device also includes a sending unit 1003, which is used to send an IP packet to the first terminal device through a user plane network element if it needs to send data to the first terminal device in the first group.
  • the destination end of the IP packet The address is the first IP address of the first terminal device.
  • the processing unit 1002 may use the identity of the first terminal device and the first group to which the first terminal device belongs.
  • the group identifier of the group obtains the first IP address of the first terminal device.
  • the division of units in the embodiments of this application is illustrative, and is only a logical function division. In actual implementation, there may be other division methods.
  • the functional units in the various embodiments of this application can be integrated into one process. In the device, it can also exist alone physically, or two or more units can be integrated into a module.
  • the above-mentioned integrated unit can be realized in the form of hardware or software function module.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including a number of instructions to enable a terminal device (which may be a personal computer, a mobile phone, or a network device, etc.) or a processor to execute all or part of the steps of the method in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .
  • module can refer to a specific ASIC, circuit, processor and memory that executes one or more software or firmware programs, integrated logic circuit, and/or other devices that can provide the above-mentioned functions.
  • the communication device 1100 shown in FIG. 11 includes at least one processor 1101, a memory 1102, and optionally, a communication interface 1103.
  • the memory 1102 may be a volatile memory, such as random access memory; the memory may also be a non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD) or solid-state drive (solid-state drive, SSD) or the memory 1102 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory 1102 may be a combination of the foregoing memories.
  • connection medium between the foregoing processor 1101 and the memory 1102 is not limited in the embodiment of the present application. It is represented by only a thick line in Figure 11.
  • the processor 1101 may have a data transceiver function and can communicate with other devices.
  • an independent data transceiver module such as a communication interface 1103, may be used to send and receive data; the processor 1101 is communicating with other devices. During communication, data transmission can be performed through the communication interface 1103.
  • the processor 1101 in FIG. 11 can call the computer execution instructions stored in the memory 1102, so that the application function network element can execute the application function in any of the above method embodiments. The method performed by the network element.
  • the functions/implementation processes of the sending unit, the receiving unit, and the processing unit in FIG. 7 can all be implemented by the processor 1101 in FIG. 11 calling a computer execution instruction stored in the memory 1102.
  • the function/implementation process of the processing unit in FIG. 7 may be implemented by the processor 1101 in FIG. 11 calling computer execution instructions stored in the memory 1102
  • the function/implementation process of the sending unit and the receiving unit in FIG. 7 may be implemented by The communication interface 1103 in FIG. 11 is implemented.
  • the processor 1101 in FIG. 11 can invoke the computer execution instructions stored in the memory 1102, so that the capability opening network element can perform the capability opening in any of the foregoing method embodiments. The method performed by the network element.
  • the functions/implementation processes of the sending unit, the receiving unit, and the processing unit in FIG. 8 can all be implemented by the processor 1101 in FIG. 11 calling a computer execution instruction stored in the memory 1102.
  • the function/implementation process of the processing unit in FIG. 8 may be implemented by the processor 1101 in FIG. 11 calling computer execution instructions stored in the memory 1102
  • the function/implementation process of the sending unit and the receiving unit in FIG. 8 may be implemented by The communication interface 1103 in FIG. 11 is implemented.
  • the processor 1101 in FIG. 11 can call the computer execution instructions stored in the memory 1102, so that the core network element can execute the core network in any of the foregoing method embodiments. The method performed by the network element.
  • the functions/implementation processes of the receiving unit, the sending unit, and the processing unit in FIG. 9 can all be implemented by the processor 1101 in FIG. 11 calling a computer execution instruction stored in the memory 1102.
  • the function/implementation process of the processing unit in FIG. 9 may be implemented by the processor 1101 in FIG. 11 calling computer execution instructions stored in the memory 1102
  • the function/implementation process of the receiving unit and the sending unit in FIG. 9 may be implemented by The communication interface 1103 in FIG. 11 is implemented.
  • the communication device 1200 shown in FIG. 12 includes at least one processor 1201, a memory 1202, and optionally, a transceiver 1203.
  • the memory 1202 may be a volatile memory, such as a random access memory; the memory may also be a non-volatile memory, such as read only memory, flash memory, hard disk drive (HDD) or solid-state drive (solid-state drive, SSD) or the memory 1202 is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory 1202 may be a combination of the above-mentioned memories.
  • connection medium between the foregoing processor 1201 and the memory 1202 is not limited in the embodiment of the present application.
  • the processor 1201 may have a data transceiving function and can communicate with other devices.
  • an independent data transceiving module such as a transceiver 1203, can be set to transmit and receive data; the processor 1201 is communicating with other devices.
  • the transceiver 1203 can be used for data transmission.
  • the processor 1201 in FIG. 12 can call the computer execution instructions stored in the memory 1202, so that the second terminal device can execute the second method in any of the foregoing method embodiments. The method executed by the terminal device.
  • the functions/implementation processes of the receiving unit and the processing unit in FIG. 10 can all be implemented by the processor 1201 in FIG. 12 calling the computer execution instructions stored in the memory 1202.
  • the function/implementation process of the processing unit in FIG. 10 may be implemented by the processor 1201 in FIG. 12 calling computer execution instructions stored in the memory 1202, and the function/implementation process of the receiving unit in FIG.
  • the transceiver 1203 is implemented.
  • the embodiment of the present application also provides a communication system for executing the method of any of the foregoing embodiments.
  • a communication system for executing the method of any of the foregoing embodiments.
  • the communication system includes a core network network element and a capability opening network element; optionally, it may also include an application function network element.
  • the application function network element is used to perform the method performed by the application function network element in the above method embodiment
  • the capability open network element is used to perform the method performed by the capability open network element in the above method embodiment
  • the core network element is used to perform The method executed by the core network element in the above method embodiment.
  • the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

一种获取终端设备互联网协议IP地址方法、设备及系统,用以解决现有技术中终端设备无法获取目的端的IP地址的问题。本申请中:应用功能网元可以向能力开放网元发送第一事件注册请求,第一事件注册请求用于向能力开放网元请求获取群组中终端设备的IP地址;之后,应用功能网元接收来自能力开放网元接收第一事件通知消息,第一事件通知消息包括群组中第一终端设备的IP地址;在获取了第一终端设备的IP地址之后,应用功能网元可以向群组中已分配了IP地址的其他终端设备发送第一消息,第一消息中包括第一终端设备的IP地址、第一终端设备的标识以及群组的群组标识,使得群组中的终端设备可以互相获知其他终端设备的IP地址。

Description

一种获取终端设备互联网协议IP地址方法、设备及系统
相关申请的交叉引用
本申请要求在2019年03月31日提交中国专利局、申请号为201910254751.9、申请名称为“一种获取终端设备互联网协议IP地址方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种获取终端设备互联网协议IP地址方法、设备及系统。
背景技术
在第三代通信合作伙伴计划(the 3rd generation partnership project,3GPP)系统中终端设备之间的通信通常采用“客户端到服务端(client-server)”模式;这种通信模式需要借助外部网络中的应用服务器,实现终端设备之间的信息转发。
以互联网协议(internet protocol,IP)通信为例,终端设备A的IP报文会通过网关发送至外部网络(如Internet)的应用服务器中,应用服务器根据终端设备A的IP报文中的应用层消息获取终端设备A的IP报文的目的端标识,以确定终端设备A的IP报文的目的端,以终端设备A的IP报文的目的端为终端设备B为例,应用服务器重新构建IP报文,将构建后的IP报文通过网关发送给终端设备B。
而为了实现终端设备之间可以直接进行信息交互,不依赖外部网络的应用服务器,目前设想终端设备之间交互的IP报文中直接携带目的端的IP地址,使得网关在接收到IP报文后,根据目的端的IP地址转发IP报文;但是基于现有的机制,终端设备无法获取目的端的IP地址,故而也无法构建携带有目的端的IP地址的IP报文。
发明内容
本申请提供一种获取终端设备互联网协议IP地址的方法、设备及系统,用以解决现有技术中终端设备无法获取目的端的IP地址的问题。
第一方面,本申请实施例提供了一种获取终端设备IP地址方法,该方法包括:应用功能网元可以向能力开放网元发送第一事件注册请求,第一事件注册请求用于向能力开放网元请求获取群组中终端设备的IP地址;之后,应用功能网元接收来自能力开放网元的第一事件通知消息,第一事件通知消息包括群组中第一终端设备的IP地址;在获取了第一终端设备的IP地址之后,应用功能网元可以向群组中已分配了IP地址的其他终端设备发送第一消息,第一消息中包括第一终端设备的IP地址、第一终端设备的标识以及群组的群组标识。
通过上述方法,应用功能网元可以从能力开放网元获取群组中终端设备的IP地址,并且还能将群组中终端设备的IP地址通知给群组中的其他终端设备,使得群组中的终端设备可以互相获知IP地址。
在一种可能的设计中,第一事件注册请求可以包括用于指示群组的一些信息。示例性的,可以包括群组的群组标识,如群组在应用层的群组标识。
通过上述方法,第一事件注册请求携带群组的群组标识可以较为明确的指示请求获取群组的群组标识所标识的群组中终端设备的IP地址。
在一种可能的设计中,第一事件注册请求还可以携带群组中终端设备的相关信息。示例性的,可以包括群组中一个或多个终端设备的标识,如应用层标识,群组中一个或多个终端设备包括第一终端设备。
通过上述方法,通过携带群组中终端设备的标识,可以明确的指示群组中包括哪些终端设备,以便能力开放网元可以更加准确的获取群组中终端设备的IP地址。
在一种可能的设计中,第一事件通知消息可以只包括第一终端设备的IP地址,还可以包括下列的部分或全部:第一终端设备的标识和群组的群组标识。
通过上述方法,通过第一终端设备的标识或群组的群组标识可以较为直观的指示第一事件通知消息中携带的IP地址为哪一个终端设备的IP地址,或哪一个群组中的终端设备的IP地址。
在一种可能的设计中,第一事件注册请求还可以携带第一指示消息,用于指示能力开放网元的响应方式。示例性的,第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址(一次性响应)或指示能力开放网元在获取所述群组中任意一个或者多个终端设备的IP地址时,返回获取到的终端设备的IP地址(逐个响应)。
通过上述方法,通过第一指示消息可以更加便捷的指示能力开放网元,应用功能网元所希望的反馈方式,可以适用于不同的应用场景。
在一种可能的设计中,若第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址,第一事件通知消息中包括群组中所有终端设备的IP地址。
通过上述方法,通过一次性响应的方式,应用功能网元可以一次性获取群组中所有终端设备的IP地址,可以有效减少信令交互。
在一种可能的设计中,应用功能网元在向所群组中已分配了IP地址的其他终端设备发送第一消息之前,需要确定群组中哪些终端设备已分配了IP地址;示例性的,应用功能网元在本地可以保存各个终端设备的IP地址以及各个终端设备所属群组;应用功能网元可以从本地保存的已分配了IP地址的终端设备中确定群组中已分配IP地址的其他终端设备。本申请并不限定其他终端设备的数量,可以是一个也可以是多个。
通过上述方法,应用能功能网元可以明确群组中终端设备的IP地址的分配状况,保证能够及时、准确将群组中终端设备的IP地址通知给群组中其他终端设备。
在一种可能的设计中,应用功能网元向第一终端设备所属群组中的其他终端设备发送第一消息时,可以通过其他终端设备对应的用户面网元向其他终端设备发送第一消息。若存在多个终端设备,应用功能网元可以采用组播的方式,也可以采用单播的方式。
通过上述方法,应用功能网元可以较为方便的将第一终端设备的IP地址发送给其他终端设备。
在一种可能的设计中,应用功能网元向第一终端设备发送第二消息,第二消息中包括群组中其他终端设备的IP地址,还可以包括所述其他终端设备的标识以及群组的群组标识。
通过上述方法,应用功能网元还可以将群组中的其他终端设备的IP地址通知给第一终端设备,使得第一终端设备可以获知群组中其他终端设备的IP地址,进而可以保证群组中 的终端设备可以互相获知彼此的IP地址。
在一种可能的设计中,第一消息为应用层消息。
第二方面,本申请实施例提供了一种获取终端设备IP地址方法,该方法包括:能力开放网元可以接收来自应用功能网元的第一事件注册请求,第一事件注册请求用于请求获取群组中终端设备的IP地址;之后,能力开放网元从核心网网元获取群组中第一终端设备的IP地址;然后,向应用功能网元发送第一事件通知消息,第一事件通知消息包括第一终端设备的IP地址。第一终端设备可以为群组中任一终端设备。
通过上述方法,能力开放网元接收到第一事件注册请求,可以向应用功能网元反馈第一终端设备的IP地址,使得应用功能网元可以及时获取第一终端设备的IP地址,以便通知给群组中的其他终端设备。
在一种可能的设计中,能力开放网元从核心网网元获取第一终端设备的IP地址时,可以发送查询信息,也可以采用其他方式;示例性的,能力开放网元可以向核心网网元发送第二事件注册请求,第二事件注册请求用于请求获取群组中终端设备的IP地址;之后,能力开放网元接收来自核心网网元的第二事件通知消息,第二事件通知消息包括第一终端设备的IP地址。
通过上述方法,能力开放网元通过与核心网网元交互,可以方便、快捷的获取第一终端设备的IP地址,以反馈给应用功能网元,使得应用功能网元可以及时将第一终端设备的IP地址发送给群组中的其他终端设备。
在一种可能的设计中,第一事件注册请求可以包括用于指示群组的一些信息。示例性的,可以包括群组的群组标识,如群组在应用层的群组标识。
通过上述方法,第一事件注册请求携带群组的群组标识可以较为明确的指示请求获取群组的群组标识所标识的群组中终端设备的IP地址。
在一种可能的设计中,第一事件注册请求还可以携带以下群组中终端设备的相关信息。示例性的,可以携带群组中终端设备的标识,如应用层标识,群组中终端设备的标识包括第一终端设备的标识。
通过上述方法,通过携带群组中终端设备的标识,可以较为直观的指示群组中包括哪些终端设备,以便能力开放网元可以更加准确的获取群组中终端设备的IP地址。
在一种可能的设计中,第一事件注册请求还包括第一指示信息,用于指示能力开放网元的响应方式。示例性的,第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址(一次性响应)或指示能力开放网元在获取群组中任一终端设备的IP地址时,返回获取到的终端设备的IP地址(逐个响应)。
通过上述方法,通过第一指示消息可以更加便捷的指示能力开放网元,应用功能网元所希望的反馈方式,可以适用于不同的应用场景。
在一种可能的设计中,若第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址,能力开放网元在从核心网网元获取群组中所有终端设备的IP地址后,向应用功能网元发送第一事件通知消息,第一事件通知消息包括群组中所有终端设备的IP地址。
通过上述方法,通过一次性响应的方式,能力开放网元可以一次性反馈群组中所有终端设备的IP地址,能够有效减少信令交互,提高信息传输效率。
在一种可能的设计中,若第一事件注册请求不包括群组中一个或者多个终端设备的标 识,能力开放网元根据群组的群组标识可以从统一数据管理网元获取群组中终端设备的标识。
通过上述方法,能力开放网元可以较为方便获知群组中的终端设备。
在一种可能的设计中,能力开放网元向核心网网元发送第二事件注册请求时,由于核心网网元仅是能获知群组在网络层的群组标识,若第一事件注册请求中包括群组在应用层的群组标识,能力开放网元需要做一些标识转换;示例性的,能力开放网元可以将群组在应用层的群组标识转换为群组在网络层的群组标识;之后,向核心网网元发送第二事件注册请求,第二事件注册请求包括群组在网络层的群组标识。
通过上述方法,将群组在应用层的群组标识转换为群组在网络层的群组标识,并在第二事件注册请求中携带群组在网络层的群组标识可以使得核心网网元可以通过群组在网络层的群组标识准确的确定第二事情注册请求所请求的是哪一个群组的终端设备的IP地址。
在一种可能的设计中,能力开放网元向核心网网元发送第二事件注册请求时,由于核心网网元仅是能获知终端设备的网络层标识,若第一事件注册请求中还包括群组中终端设备的应用层标识,能力开放网元需要做一些标识转换;示例性的,能力开放网元可以将群组中终端设备的应用层标识转换为网络层标识,将群组在应用层的群组标识转换为群组在网络层的群组标识,网络层标识为终端设备的网络层标识;之后,向核心网网元发送第二事件注册请求,第二事件注册请求包括群组中终端设备的网络层标识、群组在网络层的群组标识。
通过上述方法,在第二事件注册请求中携带群组在网络层的群组标识和终端设备的网络层标识可以使得核心网网元可以通过群组在网络层的群组标识和终端设备的网络层标识准确的确定第二事情注册请求所请求IP地址为哪一个群组中的哪些终端设备的IP地址。
在一种可能的设计中,第二事件注册请求还可以携带第二指示信息,用于指示核心网网元的响应方式。示例性的,第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址(一次性响应)或指示核心网网元在获取群组中任意一个或者多个终端设备的IP地址时,返回获取到的终端设备的IP地址(逐个响应)。
通过上述方法,通过第二指示消息可以更加便捷的指示核心网网元,能力开放网元所希望的反馈方式,可以较好的扩展应用场景。
在一种可能的设计中,若第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址,第二事件通知消息包括群组中所有终端设备的IP地址。
通过上述方法,通过一次性响应的方式,能力开放网元可以一次性获取群组中所有终端设备的IP地址,可以有效减少信令交互。
在一种可能的设计中,第二事件通知消息还可以携带群组中终端设备的相关信息。示例性的,可以包括下列的部分或全部:第一终端设备的标识,如网络层标识、和群组的标识,如群组在网络层的群组标识。
通过上述方法,通过第一终端设备的标识或群组的群组标识可以直观的指示第二事件通知消息中携带的IP地址为哪一个终端设备的IP地址,或哪一个群组中的终端设备的IP地址。
在一种可能的设计中,若第一事件注册请求不包括群组中一个或者多个终端设备的标识,能力开放网元在向核心网网元发送第二事件注册请求之前,还可以根据群组标识从统 一数据管理网元获取群组中终端设备的标识(如应用层标识或网络层标识)。
通过上述方法,能力开放网元可以确定出群组中包括的终端设备,以及相应的标识信息。
在一种可能的设计中,能力开放网元在从核心网网元获取第一终端设备的IP地址后,由于应用功能网元仅是能获知终端设备的应用层标识和群组在应用层的群组标识,若第一事件注册请求中包括群组中终端设备的应用层标识和/或群组在应用层的群组标识,能力开放网元需要做一些标识转换;示例性的,能力开放网元可以将第一终端设备的网络层标识转换为第一终端设备的应用层标识,和/或将群组在网络层的群组标识转换为群组在应用层的群组标识;之后,向核心网网元发送第一事件通知消息,第一事件通知消息包括下列部分或全部:第一终端设备的标识(如应用层标识)和群组的群组标识(群组在应用层的群组标识)。
通过上述方法,通过第一终端设备的标识和/或群组的群组标识可以直观的指示第一事件通知消息中携带的IP地址为哪一个终端设备的IP地址,或哪一个群组中的终端设备的IP地址。
第三方面,本申请实施例提供了一种获取终端设备IP地址方法,该方法包括:核心网网元接收来自能力开放网元的第二事件注册请求,第二事件注册请求用于请求获取群组中终端设备的IP地址;之后,核心网网元在确定群组中的第一终端设备的IP地址后,向能力开放网元发送第二事件通知消息,第二事件通知消息包括第一终端设备的IP地址。
通过上述方法,能力开放网元与核心网网元交互,核心网网元可以方便、快捷的反馈第一终端设备的IP地址,以使得能力开放网元可以再反馈给应用功能网元,进一步,可以保证应用功能网元及时将第一终端设备的IP地址发送给群组中的其他终端设备。
在一种可能的设计中,第二事件注册请求包括群组的群组标识,如群组在网络层的群组标识。
通过上述方法,第二事件注册请求中携带群组在网络层的群组标识,核心网网元可以通过群组在网络层的群组标识较为准确的确定第二事情注册请求所请求的是哪一个群组的终端设备的IP地址。
在一种可能的设计中,第二事件注册请求还包括群组中终端设备的标识,如网络层标识。
通过上述方法,通过第二事件注册请求中携带群组的群组标识和终端设备的标识,核心网网元可以准确的确定第二事情注册请求所请求IP地址为哪一个群组中的哪些终端设备的IP地址。
在一种可能的设计中,第二事件注册请求还可以携带第二指示信息,用于指示核心网网元的响应方式。示例性的,第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址(一次性响应)或指示核心网网元在获取群组中任一终端设备的IP地址时,返回获取到的终端设备的IP地址(逐个响应)。
通过上述方法,通过第二指示消息可以更加便捷的指示核心网网元,能力开放网元所希望的反馈方式,使得可以灵活的应用于不同场景。
在一种可能的设计中,若第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址,核心网网元在确定群组中的所有终端设备的IP地址后,向能力开放网元发送第二事件通知消息,第二事件通知消息包括群组中所有终端设备的IP地址。
通过上述方法,通过一次性响应的方式,核心网网元可以一次性反馈群组中所有终端设备的IP地址,可以有效减少信令交互。
在一种可能的设计中,核心网网元确定第一终端设备的IP地址的方式有许多种,示例性的,若核心网网元为会话管理网元,会话管理网元接收到来自第一终端设备的会话建立请求后,为第一终端设备分配IP地址,进而获取第一终端设备的IP地址;其中,会话建立请求用于请求建立群组的群组会话。
在一种可能的设计中,核心网网元向能力开放网元发送第二事件通知消息之前,会话管理网元可以确定第二事件注册请求中携带的群组在网络层的群组标识与会话建立请求中携带的群组在网络层的群组标识一致、或第二事件注册请求中携带的群组中的终端设备的网络层标识与会话建立请求中携带的第一终端设备的网络层标识是否一致,在均一致的情况下,向能力开放网元发送第二事件通知消息。
在一种可能的设计中,若核心网网元为统一数据管理网元,统一数据管理网元可以根据第一终端设备的签约信息确定第一终端设备的IP地址。
在一种可能的设计中,核心网网元向能力开放网元发送第二事件通知消息之前,先确定第二事件注册请求中携带的群组在网络层的群组标识与签约信息中的群组在网络层的群组标识一致、或第二事件注册请求中携带的群组中终端设备的网络层标识与签约信息中的第一终端设备的网络层标识是否一致,在均一致的情况下,向能力开放网元发送第二事件通知消息。
在一种可能的设计中,第二事件通知消息还包括下列的部分或全部:第一终端设备的网络层标识和群组在网络层的群组标识。
通过上述方法,通过第一终端设备的网络层标识或群组在网络层的群组标识可以直观的指示第二事件通知消息中携带的IP地址为哪一个终端设备的IP地址,或哪一个群组中的终端设备的IP地址。
第四方面,本申请实施例提供了一种获取终端设备的IP地址方法,该方法包括:第二终端设备接收来自应用功能网元的第一消息,第一消息中包括第一终端设备的第一IP地址、第一终端设备的标识以及第一终端设备所属第一群组的群组标识;第二终端设备可以保存第一终端设备的标识、第一终端设备所属第一群组标识与第一终端设备的第一IP地址的对应关系。
通过上述方法,可以在本地记录IP地址,以便后续第二终端设备可以方便的通过第一群组的群组会话与第一终端进行交互。
在一种可能的设计中,第一终端设备可以属于不同的群组,例如第二群组,第二终端设备还可以接收来自应用功能网元的第三消息,第三消息中包括第一终端设备的标识、第一终端设备所属第二群组的群组标识以及第一终端设备的第二IP地址;
第二终端设备可以保存第一终端设备的标识、第一终端设备所属第二群组的群组标识与第一终端设备的第二IP地址的对应关系。
通过上述方法,可以在本地记录IP地址,以便后续第二终端设备可以方便的通过第二群组的群组会话与第一终端进行交互。
在一种可能的设计中,若需要向第一群组中的第一终端设备发送数据,通过用户面网元向第一终端设备发送IP报文,IP报文的目的端地址为第一终端设备的第一IP地址。
通过上述方法,第二终端设备获取了目的端的IP地址,在与不同群组的终端设备进行 交互时,可以通过用户面网元直接发送IP报文,无需通过外部网络的服务器,能够提高IP报文的传输效率。
在一种可能的设计中,第二终端设备通过用户面网元向第一终端设备发送IP报文之前,还可以根据第一终端设备的标识、第一终端设备的所属第一群组的群组标识获取第一终端设备的第一IP地址。
第五方面,本申请实施例还提供了一种通信装置,通信装置应用于应用功能网元,有益效果可以参见第一方面的描述此处不再赘述。该装置具有实现上述第一方面的方法实例中行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,装置的结构中包括发送单元、处理单元和接收单元,这些单元可以执行上述第一方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。
第六方面,本申请实施例还提供了一种通信装置,通信装置应用于能力开放网元,有益效果可以参见第二方面的描述此处不再赘述。该装置具有实现上述第二方面的方法实例中行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,装置的结构中包括接收单元、处理单元和发送单元,这些单元可以执行上述第二方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。
第七方面,本申请实施例还提供了一种通信装置,通信装置应用于核心网网元,有益效果可以参见第三方面的描述此处不再赘述。该装置具有实现上述第三方面的方法实例中行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,装置的结构中包括接收单元、处理单元和发送单元,这些单元可以执行上述第三方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。
第八方面,本申请实施例还提供了一种通信装置,通信装置应用于第二终端设备,有益效果可以参见第四方面的描述此处不再赘述。该装置具有实现上述第四方面的方法实例中行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,装置的结构中包括接收单元、处理单元和发送单元,这些单元可以执行上述第四方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。
第九方面,本申请实施例还提供了一种通信装置,通信装置应用于应用功能网元,有益效果可以参见第一方面的描述此处不再赘述。通信装置的结构中包括处理器和存储器,处理器被配置为支持终端执行上述第一方面方法中相应的功能。存储器与处理器耦合,其保存通信装置必要的程序指令和数据。通信装置的结构中还包括通信接口,用于与其他设备进行通信。
第十方面,本申请实施例还提供了一种通信装置,通信装置应用于能力开放网元,有益效果可以参见第二方面的描述此处不再赘述。通信装置的结构中包括处理器和存储器,处理器被配置为支持终端执行上述第二方面方法中相应的功能。存储器与处理器耦合,其保存通信装置必要的程序指令和数据。通信装置的结构中还包括通信接口,用于与其他设备进行通信。
第十一方面,本申请实施例还提供了一种通信装置,通信装置应用于核心网网元,有 益效果可以参见第三方面的描述此处不再赘述。通信装置的结构中包括处理器和存储器,处理器被配置为支持终端执行上述第三方面方法中相应的功能。存储器与处理器耦合,其保存通信装置必要的程序指令和数据。通信装置的结构中还包括通信接口,用于与其他设备进行通信。
第十二方面,本申请实施例还提供了一种通信装置,通信装置应用于第二终端设备,有益效果可以参见第四方面的描述此处不再赘述。通信装置的结构中包括处理器和存储器,处理器被配置为支持终端执行上述第四方面方法中相应的功能。存储器与处理器耦合,其保存通信装置必要的程序指令和数据。通信装置的结构中还包括收发器,用于与其他设备进行通信。
第十三方面,本申请实施例还提供了一种通信系统,有益效果可以参见上个各个方面的描述此处不再赘述,通信系统包括能力开放网元和核心网网元;
所述能力开放网元,用于接收来自应用功能网元的第一事件注册请求,所述第一事件注册请求用于请求获取群组中终端设备的互联网协议IP地址;向所述核心网网元发送第二事件注册请求,所述第二事件注册请求用于请求获取所述群组中终端设备的IP地址。
所述核心网网元,用于接收所述第二事件注册请求;以及在确定所述群组中的终端设备的IP地址后,向所述能力开放网元发送第二事件通知消息,所述第二事件通知消息包括所述群组中的终端设备的IP地址。
所述能力开放网元,还用于接收所述第二事件通知消息,向所述应用功能网元发送第一事件通知消息,所述第一事件通知消息包括所述群组中的终端设备的IP地址。
在一种可能的设计中,第一事件注册请求包括群组的群组标识,如群组在应用层的群组标识。
在一种可能的设计中,第一事件注册请求包括群组中一个或多个终端设备的标识,如终端设备的应用层标识。
在一种可能的设计中,第一事件通知消息包括下列的部分或全部:终端设备的应用层标识和群组的群组标识。
在一种可能的设计中,第一事件注册请求包括第一指示信息,第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址或指示能力开放网元在获取到所述群组中任意一个或者多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
在一种可能的设计中,在第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址的情况下,能力开放网元在从核心网网元获取群组中所有终端设备的IP地址后,向应用功能网元发送第一事件通知消息,第一事件通知消息包括群组中所有终端设备的IP地址。
在一种可能的设计中,该通信系统还可以包括应用功能网元,应用功能网元可以向能力开放网元发送第一事件注册请求。还可以接收第一事件通知消息;以及向群组中已分配了IP地址的终端设备发送第一消息,第一消息中包括所述群组中的其他终端设备的IP地址、第一终端设备的标识以及群组的群组标识。
在一种可能的设计中,第二事件注册请求包括群组的群组标识,如群组在网络层的群组标识。
在一种可能的设计中,第二事件注册请求还包括一个或者多个终端设备的标识,如终端设备的网络层标识,网络层标识为终端设备的网络层标识。
在一种可能的设计中,群组的群组标识为群组在应用层的群组标识,能力开放网元向核心网网元发送第二事件注册请求时,能力开放网元可以将群组在应用层的群组标识转换为群组在网络层的群组标识;向核心网网元发送第二事件注册请求,第二事件注册请求包括群组在网络层的群组标识。
在一种可能的设计中,若第一事件注册请求不包括群组中一个或者多个终端设备的标识,能力开放网元向核心网网元发送第二事件注册请求之前还可以根据群组标识从统一数据管理网元获取群组中终端设备的标识。
在一种可能的设计中,群组的群组标识为群组在应用层的群组标识,群组中一个或者多个终端设备的标识为应用层标识,能力开放网元向核心网网元发送第二事件注册请求时,可以将群组中一个或者多个终端设备的应用层标识转换为终端设备的网络层标识,将群组在应用层的群组标识转换为群组在网络层的群组标识;之后,向核心网网元发送第二事件注册请求,第二事件注册请求包括群组中一个或者多个终端设备的网络层标识和群组在网络层的群组标识。
一种可能的设计中,第二事件注册请求包括第二指示信息,第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址或指示核心网网元在获取所述群组中任意一个或多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
在一种可能的设计中,若第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址,核心网网元在确定群组中的所有终端设备的IP地址后,向能力开放网元发送第二事件通知消息,第二事件通知消息包括群组中所有终端设备的IP地址。
在一种可能的设计中,若核心网网元为会话管理网元,核心网网元确定第一终端设备的IP地址时,会话管理网元可以接收到来自第一终端设备的会话建立请求后,为第一终端设备分配IP地址,获取第一终端设备的IP地址,会话建立请求用于请求建立群组的群组会话。
在一种可能的设计中,若核心网网元为会话管理网元,核心网网元向能力开放网元发送第二事件通知消息时,在确定第二事件注册请求中携带的群组在网络层的群组标识与会话建立请求中携带的群组在网络层的群组标识一致、或第二事件注册请求中携带的群组中的终端设备的网络层标识与会话建立请求中携带的终端设备的网络层标识一致后,向能力开放网元发送第二事件通知消息。
在一种可能的设计中,若核心网网元为统一数据管理网元,统一数据管理网元可以根据第一终端设备的签约信息确定第一终端设备的IP地址。
在一种可能的设计中,若核心网网元为统一数据管理网元,核心网网元向能力开放网元发送第二事件通知消息时,统一数据管理网元在确定第二事件注册请求中携带的群组在网络层的群组标识与签约信息中的群组在网络层的群组标识一致、或第二事件注册请求中携带的群组中终端设备的网络层标识与签约信息中的终端设备的网络层标识一致后,向能力开放网元发送第二事件通知消息。
在一种可能的设计中,第二事件通知消息还包括下列的部分或全部:终端设备的标识和群组的群组标识。
在一种可能的设计中,应用功能网元向所群组中已分配了IP地址的其他终端设备发送第一消息之前,确定群组中已分配IP地址的其他终端设备。
在一种可能的设计中,应用功能网元向第一终端设备所属群组中的终端设备发送第一消息时,通过终端设备对应的用户面网元向终端设备发送第一消息。
在一种可能的设计中,第一消息为应用层消息。
第十四方面,本申请还提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面的方法。
第十五方面,本申请还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面的方法。
第十六方面,本申请还提供一种计算机芯片,芯片与存储器相连,芯片用于读取并执行存储器中存储的软件程序,执行上述各方面的方法。
附图说明
图1为本申请提供的一种网络系统的架构示意图;
图2为本申请提供的一种获取终端设备的IP地址方法的示意图;
图3为本申请提供的一种获取终端设备的IP地址方法的流程图;
图4为本申请提供的一种获取终端设备的IP地址方法的流程图;
图5为本申请提供的一种获取终端设备的IP地址方法的流程图;
图6为本申请提供的一种获取终端设备的IP地址方法的流程图;
图7为本申请提供的一种通信装置的结构示意图;
图8为本申请提供的一种通信装置的结构示意图;
图9为本申请提供的一种通信装置的结构示意图;
图10为本申请提供的一种通信装置的结构示意图;
图11为本申请提供的一种通信装置的结构示意图;
图12为本申请提供的一种通信装置的结构示意图;
图13为本申请提供的一种通信系统的结构示意图。
具体实施方式
本申请提供了一种获取终端设备的IP地址方法、设备及系统,用以解决现有技术中终端设备无法获知目的端的IP地址的问题,本申请实施例中的术语“系统”和“网络”可被互换使用。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。以及,除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。例如,第一优先级准则和第二优先级准则,只是为了区分不同的准则,而并不是表示这两种准则的内容、优先级或者重要程度等的不同。
参阅图1所示,一种本申请适用的具体的网络架构示意图。该网络架构为5G网络架构。该5G架构中的网元包括终端设备,图1中以终端设备为UE为例。网络架构还包括 无线接入网(radio access network,RAN)、接入和移动性管理功能(access and mobility management function,AMF)网元、会话管理功能(session management function,SMF)网元、用户面功能(user plane function,UPF)网元、统一数据管理(unified data management,UDM)网元、应用功能(application function,AF)网元、能力开放网元(network exposure function,NEF)网元等。
RAN的主要功能是控制用户通过无线接入到移动通信网络。RAN是移动通信系统的一部分。它实现了一种无线接入技术。从概念上讲,它驻留某个设备之间(如移动电话、一台计算机,或任何远程控制机),并提供与其核心网的连接。
AMF网元负责终端的接入管理和移动性管理,在实际应用中,其包括了LTE中网络框架中MME里的移动性管理功能,并加入了接入管理功能。
SMF网元负责会话管理,如用户的会话建立等,在本申请实施例中,SMF网元可以为终端设备分配IP地址,并且还可以将分配的IP地址发送给UDM网元,以使得UDM网元可以将终端设备的IP地址更新到终端设备的签约信息中。
UPF网元是用户面的功能网元,主要负责连接外部网络,其包括了LTE的服务网关(serving gateway,SGW)和公用数据网网关(public data network GateWay,PDN-GW)的相关功能;在本申请实施例中,UPF网元中可以看做由多个用于实现路径管理的逻辑功能实体构成,在图1所示的网络架构中,用UPF#1、UPF#2表示路径管理的逻辑功能实体,图1所示的网络架构中UE A、UE B、UE C、UE D为一个群组中包括的四个UE,其中,UE A、UE B通过RAN与UPF#1连接,其中UE A和UE B分别对应UPF#1的一个端口,例如UE A对应UPF#1的端口号为A,UE B对应UPF#1的端口号为B;UE C、UE D通过RAN与UPF#2连接,其中UE C和UE D分别对应UPF#2的一个端口,例如UE C对应UPF#1的端口号为C,UE D对应UPF#1的端口号为D。UPF#1和UPF#2可以实现IP报文的转发,例如UPF#1可以根据来自Internet上的IP报文中目的端地址中UPF#1的IP地址和端口号A,确定该IP报文是需要发送给UE A的。
而采用本申请实施例的方式,UE之间可以获知UE的IP地址,使得UE A或UE B发送的数据或报文可以不通过外部的服务器发送给UE C或UE D。例如UE A希望与UE B通信,UE A可以在IP报文头中的目的地址段直接填写UE B的目的地址,并将该IP报文发送至UPF#1。UPF#1根据目的IP地址确定为UE B,UPF#1将该报文直接发送给UE B。
UDM网元可存储用户的签约信息,实现类似于4G中的HSS的后端,在本申请实施例UDM存储有UE的会话上下文。
AF网元可以是第三方的应用控制平台,也可以是运营商自己的设备,例如AF网元可以是群组服务器,可以用于创建群组,例如确定群组的群组标识以及群组中群组成员,也可以是为其他群组服务器服务的功能实体,可以存储群组中群组成员(也可以称为群组中终端设备)的IP地址的服务器等,还可以从群组服务器中获取群组的群组标识以及群组中群组成员列表;在本申请实施例中,AF网元可以通过NEF网元订阅注册事件,也就是向NEF网元发送事件注册请求(在本申请实施例中以第一事件注册请求为例),请求获取群组中所有群组成员或特定的群组成员的IP地址;并且在从NEF网元获取群组的所有群组成员或特定的群组成员的IP地址后,可以保存该IP地址,并且查询该群组中已分配有IP地址的其他群组成员,将该IP地址发送给该群组中已分配有IP地址的其他群组成员。
NEF网元将其他网元的能力和事件开放给第三方合作伙伴或AF网元。它为AF网元 提供了一种安全地向第三代合作伙伴计划(3rd generation partnership project,3GPP)网络提供信息的方法,NEF网元可以验证和授权并协助限制AF网元。此外,NEF网元还可以将AF网元交换的信息和核心网功能网元交换的信息进行转换;在本申请实施例中,NEF网元接收到AF网元用于请求群组的群组成员的IP地址的事件注册请求,在从核心网网元(如SMF网元、UDM网元)获取该群组的任一群组成员或所有群组成员的IP地址后,向AF网元发送携带有IP地址的事件注册通知消息,以通知AF网元该群组的群组成员的IP地址。
尽管未示出,图1所示的网络架构还可以包括统一数据仓储(unified data repository,UDR)网元,UDR网元主要用来存储用户相关的签约数据、策略数据、用于开放的结构化数据、应用数据。通常情况下,可以认为UDR网元属于UDM网元的一部分。UDR网元也可以单独部署,UDM网元通过数据接口对UDR网元中存储的用户数据进行管理。
本申请中的终端设备,又可称之为用户设备(user equipment,UE),可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线设备、无人驾驶(self driving)中的无线设备、远程医疗(remote medical)中的无线设备、智能电网(smart grid)中的无线设备、运输安全(transportation safety)中的无线设备、智慧城市(smart city)中的无线设备、智慧家庭(smart home)中的无线设备等等。
为了能够使得终端设备获取群组中其他终端设备的IP地址,本申请实施例中,应用功能网元可以向能力开放网元发送用于请求群组中终端设备的IP地址的事件注册请求(在本申请实施例中对应第一事件注册请求);能力开放网元在从核心网网元获取群组中的第一终端设备的IP地址后,向应用功能网元发送携带有第一终端设备的IP地址的第一事件通知消息,之后应用功能网元可以向群组中已分配了IP地址的其他终端设备发送携带有第一终端设备的IP地址的第一消息,使得其他终端设备可以获知第一终端设备的IP地址,这样当其他终端设备需要向第一终端设备发送报文,其他终端设备构造IP报文时,可以将IP报文的目的端地址设置为第一终端设备的IP地址,使得网关(如UPF网元)可以根据目的端地址将报文转发给第一终端设备。
下面基于如图1所示的网络架构,结合附图,本申请实施例提供的一种获取终端设备的互联网协议IP地址方法进行说明,如图2所示,该方法包括:
步骤201:应用功能网元向能力开放网元发送第一事件注册请求,第一事件注册请求用于请求获取群组中的终端设备的IP地址,第一事件注册请求中可以携带群组的群组标识,如群组在应用层的群组标识,以表明应用功能网元需要获取群组标识指示的群组中的终端设备的IP地址。
应用功能网元可以是群组服务器,在应用功能网元向能力开放网元发送第一事件注册请求之前,应用功能网元可以创建该群组,如可以确定群组的群组标识以及确定群组中的群组成员等。
应用功能网元也可以是为其他群组服务器服务的功能实体,在应用功能网元向能力开放网元发送第一事件注册请求之前,可以从群组服务器接收发送的业务请求,该业务请求中可以包括群组的群组标识;可选的,还可以包括群组的群组成员列表。
步骤202:能力开放网元从应用功能网元接收第一事件注册请求后,能力开放网元从核心网网元获取第一终端设备的IP地址,核心网网元可以是会话管理网元,也可以是统一数据管理网元,本申请实施例并不限定,第一终端设备属于该群组。
步骤203:能力开放网元向应用功能网元发送第一事件通知消息,第一事件通知消息包括第一终端设备的IP地址。
步骤204:应用功能网元接收来自能力开放网元的第一事件通知消息后,应用功能网元可以向群组中已分配了IP地址的其他终端设备发送第一消息,第一消息中包括第一终端设备的IP地址、第一终端设备的标识以及群组的群组标识,其中,其他终端设备为群组中除第一终端设备外的任一终端设备。
本申请实施例并不限定第一事件注册请求的信息类型,凡是可以用于请求获取群组的终端设备的IP地址的消息均适用于本申请实施例。示例性的,应用功能网元可以设置群组对应的事件号;在第一事件注册请求中携带该事件号,以指示第一事件注册请求为群组对应的请求消息;第一事件注册请求中还可以指示注册事件类型,在本申请实施例中注册事件类型为获取群组中的终端设备的IP地址。
第一事件注册请求还可以携带群组中一个或多个终端设备的标识,如应用层标识,在本申请实施例中,并不限定群组中携带的终端设备的标识的个数,第一事件注册请求中可以携带有已加入该群组中的所有终端设备的标识;第一事件注册请求中也可以携带一个或多个终端设备的标识,例如只携带第一终端设备的标识,这种情况下,第一事件注册请求用于请求第一终端设备的IP地址。
第一事件注册请求中还可以携带第一指示信息,第一指示信息可以用于指示能力开放网元对该事件的响应方式。
示例性的,可以分为两种:
第一种,第一指示信息指示能力开放网元将群组中所有终端设备的IP地址一次性返回给应用功能网元。
这种响应方式为一次性响应,能力开放网元需要获取群组中所有终端设备的IP地址后,向应用功能网元发送携带有群组中所有终端设备的IP地址的第一事件通知消息。
第二种,第一指示信息指示能力开放网元在获取所述群组中任一终端设备的IP地址时,返回获取到的终端设备的IP地址,也可以指示能力开放网元在获取所述群组中任意多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
这种响应方式为逐个响应,能力开放网元只要获取群组中一个终端设备的IP地址,就可以向应用功能网元发送携带有该终端设备的IP地址的第一事件通知消息;也就是说,需要多次发送第一事件通知消息,每次发送的第一事件通知消息携带的IP地址是群组中不同终端设备的。
应需理解的是,若第一事件注册请求中携带部分终端设备的标识,相应的,第一指示信息可以指示能力开放网元将群组中该部分终端设备的IP地址一次性返回给应用功能网元(一次性响应);也可以指示能力开放网元在获取该部分终端设备中任一终端设备的IP地址后,向应用功能网元返回获取到的终端设备的IP地址(逐个响应)。若第一事件注册请求中只携带一个终端设备的标识,则这两种响应方式并无区别。
其中,终端设备的应用层标识是指终端设备在应用中的标识,例如终端设备的应用层标识可以是终端设备全球公共注册标识(global public subscriber identifier,GPSI)、手机号 码(mobile station international ISDN number,MSISND)、用户标识(user identity)等,其中,ISDN(integrated service digital network)为综合业务数字网。群组在应用层的群组标识是指应用所定义的用户群组的标识,如外部群组标识(External Group ID)。
由于终端设备可以同时属于多个不同的群组,例如终端设备可以同时属于群组A,B和C。而网络侧设备(如会话管理网元)针对不同的群组会话(如A,B,C群组的会话)为终端设备分配IP地址可以是不同的。在第一事件注册请求中携带有群组的群组标识可以指明第一事情注册请求所请求的IP地址为终端设备在群组的群组标识指示的群组中被分配的IP地址。相应的,能力开放网元在接收到第一事情注册请求后,向应用功能网元反馈的第一事件通知消息中携带的应当是终端设备在该群组的群组标识(如群组在应用层的群组标识)指示的群组中被分配的IP地址。
能力开放网元接收第一事件注册请求后,从核心网网元中获取群组中的终端设备的IP地址的方式如下:
能力开放网元先向核心网网元发送第二事件注册请求,第二事件注册请求用于请求获取群组的终端设备的IP地址,第二事件注册请求中可以指示注册事件类型,在本申请实施例中注册事件类型为获取群组中的终端设备的IP地址。
由于核心网网元只能获知群组在网络层的群组标识和终端设备的网络层标识,为了能够使得核心网网元可以确定能力开放网元请求的哪个群组中的终端设备的IP地址,或者为哪一个群组中的哪些终端设备的IP地址。能力开放网元在发送第二事件注册请求之前可以基于群组在应用层的群组标识与群组在网络层的群组标识的对应关系、以及终端设备的应用层标识与网络层标识的对应关系,做一些信息转换操作;能力开放网元可以将群组在应用层的群组标识转换为群组的群组在网络层的群组标识,在第二事件注册请求中携带群组在网络层的群组标识;群组在网络层的群组标识是指3GPP网络所定义的终端设备群组的标识,如5G局域网群组标识(5GLAN Group ID)、内部群组标识(internal group ID)、数据网络名称(data network name,DNN)、或者DNN与单网络切片选择辅助信息(single network slice selection assistance inforamation,S-NSSAI)的组合。
若第一事件注册请求中携带群组中终端设备的应用层标识,能力开放网元还可以将终端设备的应用层标识转换为终端设备的网络层标识,并将终端设备的网络层标识携带在第二事件注册请求中。终端设备的网络层标识是指3GPP网络所定义的终端设备的标识,如国际移动用户识别码(international mobile subscriber identification number,IMSI),用户永久标识(subscription permanent identifier,SUPI),全球唯一临时UE标识(globally unique temporary UE identity,GUTI)。
群组在应用层的群组标识与群组在网络层的群组标识的对应关系、以及终端设备的应用层标识与网络层标识的对应关系可以是能力开放网元本地存储的,也可以是能力开放网元从统一数据管理网元获取的。
需要说明的是,若第一事件注册请求中未携带群组中终端设备的标识,能力开放网元可以根据群组的群组标识,查询群组中的终端设备,并确定群组中终端设备的标识。示例性的,能力开放网元可以在本地存储有群组在应用层的群组标识与群组中终端设备的应用层标识对应关系,以及终端设备的应用层标识与网络层标识的对应关系;能力开放网元可以基于本地存储的信息确定群组中终端设备的网络层标识,并将群组中终端设备的网络层标识携带在第二事件注册请求中。作为另一种可能的实施方式,能力开放网元可以从统一 数据管理网元获取群组中终端设备的标识,如网络层标识。例如,能力开放网元可以向统一数据管理网元发送用于查询群组中终端设备的网络层标识的查询消息,该查询消息中携带群组在应用层的群组标识或群组在网络层的群组标识;统一数据管理网元从存储的信息中,根据群组在应用层的群组标识或群组在网络层的群组标识查询群组中终端设备的网络层标识,将查询到的群组中终端设备的网络层标识携带在查询响应中,发送给能力开放网元。上述能力开放网元获取终端设备的网络层标识的方式仅是举例,本申请实施例并不限定。
若第一事件注册请求中未携带群组中终端设备的标识,能力开放网元也可以不查询群组中的终端设备,仅是在第二事件注册请求中携带群组的群组标识;这样,可以指示核心网网元要反馈群组的群组标识所指示的群组中所有终端设备的IP地址。
第二事件注册请求中还可以携带第二指示信息,第二指示信息可以用于指示核心网网元对该事件的响应方式。
示例性的,可以分为两种:
第一种,第二指示信息指示核心网网元将群组中所有终端设备的IP地址一次性返回给能力开放网元。
这种响应方式为一次性响应,核心网网元需要获取群组中所有终端设备的IP地址,才向能力开放网元发送携带有群组中所有终端设备的IP地址的第二事件通知消息。在这种情况下,若第二事件注册请求中携带了群组中终端设备的网络层标识,核心网网元可以在获取该群组中网络层标识指示的所有终端设备的IP地址后,向能力开放网元反馈携带该群组中所有终端设备的IP地址的第二事件通知消息。若第二事件注册请求中未携带群组中终端设备的标识,核心网网元可以通过群组在网络层的群组标识从统一数据管理网元查询群组中所有终端设备的标识,如网络层标识,以明确群组中的终端设备。核心网网元在获取该群组中所有终端设备的IP地址后,再反馈携带该群组中所有终端设备的IP地址的第二事件通知消息。
本申请实施例并不限定核心网网元获取终端设备的标识的方式,凡是可以获取群组中终端设备的网络层标识的方式均适用于本申请实施例。
第二种,第二指示信息指示核心网网元在获取所述群组中任意一个或多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
这种响应方式为逐个响应,核心网网元只要获取群组中一个或多个终端设备的IP地址,就可以向能力开放网元发送携带有该终端设备的IP地址的第二事件通知消息;也就是说,需要多次发送第二事件通知消息。在这种情况下,若第二事件注册请求中携带了群组中终端设备的标识,核心网网元可以在获取该群组中、标识指示的任一终端设备的IP地址后,向能力开放网元反馈携带该终端设备的IP地址的第二事件通知消息。若第二事件注册请求中未携带群组中终端设备的标识,核心网网元可以通过群组、的群组标识从统一数据管理网元查询群组中所有终端设备的标识,如网络层标识,以明确群组中的终端设备。核心网网元在获取该群组中任一终端设备的IP地址后,反馈携带该终端设备的IP地址的第二事件通知消息。
核心网网元接收到第二事件注册请求后,先确定群组中的终端设备的IP地址,之后再向能力开放网元发送第二事件通知消息。
核心网网元确定群组中终端设备的IP地址方式有多种,以第一终端设备为群组中任一 终端设备为例,对不同的核心网网元确定第一终端设备的IP地址的方式进行说明,下面列举其中两种:
一、若核心网网元为会话管理网元。
会话管理网元具备为终端设备分配IP地址的功能,当会话管理网元接收到来自第一终端设备的会话建立请求后,可以为第一终端设备分配IP地址。会话管理网元可以通过用户面网元为第一终端设备分配IP地址,也可以通过用户面网元向动态主机设置协议(dynamic host configuration protocol,DHCP)服务器请求为第一终端设备分配IP地址,并从DHCP服务器获得第一终端设备的IP地址。
需要说明的是,由于第一终端设备会建立不同的会话,对于不同的会话,会话管理网元会分配不同的IP地址,以保证第一终端设备的会话的独立性。在本申请实施例中,会话建立请求为用于请求接入群组的群组会话的会话建立请求;群组会话为第一终端设备与群组的其他终端设备之间的会话。也就是说,为第一终端设备分配的IP地址是第一终端设备与群组中的其他终端设备进行数据传输所使用的IP地址。
来自第一终端设备的会话建立请求中还可以携带第一终端设备的标识(如网络层标识)和第一终端设备所属群组的群组标识(如群组在网络层的群组标识),会话管理网元可以从中获取第一终端设备的标识和群组的群组标识。
会话管理网元为第一终端设备分配了IP地址或通过DHCP服务器为第一终端设备分配了IP地址之后,若第二事件注册请求中包括群组的群组标识,会话管理网元可以确定第二事件注册请求中携带的群组的群组标识与会话建立请求中携带的群组的群组标识是否一致,在一致的情况下,向能力开放网元发送携带有第一终端设备的IP地址的第二事件通知消息。若第二事件注册请求中还包括第一终端设备的标识,会话管理网元确定会话建立请求中携带的第一终端设备的标识与第二事件注册请求中携带的第一终端设备的标识是否一致、第二事件注册请求中携带的群组的群组标识与会话建立请求中携带的群组的群组标识是否一致,在均一致的情况下,会话管理网元向能力开放网元发送携带有第一终端设备的IP地址的第二事件通知消息。
二、若核心网网元为统一数据管理网元。
统一数据管理网元根据第一终端设备的签约信息确定第一终端设备的IP地址。具体的,当第一终端设备发起会话建立请求,会话管理网元接收该会话建立请求,为第一终端设备分配IP地址,并且可以更新第一终端设备的签约信息,在第一终端设备的签约信息中增加第一终端设备的IP地址。示例性的,会话管理网元可以向统一数据管理网元发送签约信息更新通知,该签约信息更新通知中携带第一终端设备的IP地址,还可以携带群组的群组标识(如群组在网络层的群组标识),统一数据管理网元在接收到该签约信息更新通知后,可以更新第一终端设备的签约信息。
统一数据管理网元接收到第二事件注册请求,若第二事件注册请求中包括群组的群组标识,统一数据管理网元可以确定第二事件注册请求中携带的群组的群组标识与第一终端设备的签约信息中的群组的群组标识是否一致,在一致的情况下,向能力开放网元发送携带有第一终端设备的IP地址的第二事件通知消息。若第二事件注册请求中还包括第一终端设备的标识,统一数据管理网元确定第一终端设备的签约信息中的第一终端设备的标识与第二事件注册请求中携带的标识是否一致,以及第二事件注册请求中携带的群组的群组标识与第一终端设备的签约信息中的群组的群组标识是否一致;在均一致的情况下,统一数 据管理网元向能力开放网元发送携带有第一终端设备的IP地址的第二事件通知消息。
在上述说明中,仅是以核心网网元在获取一个终端设备(第一终端设备)的IP地址后向能力开放网元发送第二事件通知消息(对应于第二指示信息指示的响应方式为逐个响应)为例,核心网网元也可以在获取群组中所有终端设备的IP地址之后,再向能力开放网元发送第二事件通知消息(对应于第二指示信息指示的响应方式为一次性响应)。
第二事件通知消息中还可以包括第三指示信息,第三指示消息指示群组中的所有终端设备的IP地址已完成通知。对应于逐个响应的响应方式,核心网网元可以在获取了群组中最后一个终端设备的IP地址后,在向能力开放网元发送的第二事件通知消息中携带第三指示消息;对应于一次性响应的响应方式,核心网网元也可以在向能力开放网元发送的第二事件通知消息中携带第三指示消息。
需要说明的,第二事件通知消息中可以只携带第一终端设备的IP地址和第一终端设备的标识,如网络层标识,能力开放网元可以通过事件注册请求和事件通知消息的对应关系间接确定第二事件通知消息中携带的IP地址是群组中第一终端设备的IP地址。对于应用功能网元只请求第一终端设备的IP地址的情况,第二事件通知消息中可以不携带第一终端设备的标识。
示例性的,作为事件注册请求和事件通知消息的对应关系的一种实施方式,事件注册请求消息中携带一个事件号或序列号,作为对事件注册请求中的响应,事件通知消息中携带同样的事件号或序列号。当能力开放网元接收到第二事件通知消息时,可以根据事件号或序列号确定第二事件通知消息是对之前第二事件注册请求消息的响应。能力开放网元可以据此确定第二事件通知消息中携带的IP地址是群组中第一终端设备的IP地址。
作为另一种可能的实施方式,第二事件通知消息中也可以携带群组的群组标识,如群组在网络层的群组标识,还可以携带第一终端设备的标识,如网络层标识。能力开放网元接收第二事件通知消息后,则可从第二事件通知消息中获取第一终端设备的IP地址。
若第一指示信息指示的响应方式为逐个响应,第二指示信息指示的响应方式也为逐个响应;能力开放网元接收第二事件通知消息后,第二事件通知消息中携带了第一终端设备的网络层标识,能力开放网元可以将第一终端设备的网络层标识转换为第一终端设备的应用层标识,并将第一终端设备的应用层标识携带在第一事件通知消息中;若第二事件通知消息中还携带了群组在网络层的群组标识,能力开放网元可以将群组在网络层的群组标识转换为群组在应用层的群组标识,将群组在应用层的群组标识携带在第一事件通知消息中。第一事件通知消息中携带第一终端设备的应用层标识、或群组在应用层的群组标识,使得应用功能网元可以更加直观的确定出第一事件通知消息中的IP地址为群组中第一终端设备的IP地址。
若第一指示信息指示的响应方式为一次性响应,第二指示信息指示的响应方式为逐个响应,能力开放网元在接收到第二事件通知消息后,可以先保存终端设备的应用层标识和IP地址,直到能力开放网元确定接收到该群组所有终端设备的IP地址,再向应用功能网元返回第一事件通知消息。
能力开放网元也可以根据第三指示信息确定接收该群组所有终端设备的IP地址;也可以查询本地已保存的群组中终端设备的IP地址,判断群组中是否存在缺失IP地址的终端设备。若不存在,则可以向应用功能网元返回第一事件通知消息。
若第一指示信息指示的响应方式为一次性响应,第二指示信息指示的响应方式也为一 次性响应,能力开放网元在接收到第二事件通知消息后,可以直接向应用功能网元返回第一事件通知消息。
若第一指示信息指示的响应方式为逐个响应,第二指示信息指示的响应方式也为一次性响应,能力开放网元在接收到第二事件通知消息后,可以逐次向应用功能网元返回携带有群组中不同终端设备的IP地址的第一事件通知消息。
需要说明的,第一事件通知消息中可以只携带终端设备(如第一终端设备)的IP地址和标识,如应用层标识,应用功能网元可以通过事件注册请求和事件通知消息的对应关系间接确定第一事件通知消息中携带的IP地址是第一终端设备的IP地址。示例性的,应用功能网元可以通过根据事件号或序列号确定第一事件通知消息是对之前第一事件注册请求消息的响应。对于应用功能网元只请求第一终端设备的IP地址的情况,第一事件通知消息中可以不携带第一终端设备的标识。
应用功能网元在获取了第一终端设备的IP地址后,可以存储第一终端设备的IP地址,还可以将第一终端设备的IP地址通知给群组中的其他终端设备,例如,群组中已分配了IP地址的第二终端设备。
作为一种可能的实施方式,应用功能网元接收到第一终端设备的IP地址之后,会查询一下本地是否已保存有群组中第一终端设备的IP地址;如果已保存,应用功能网元可以检查一下该群组是否已经有其他群组成员的IP地址记录,如果没有则结束;如果有,则分别向其他群组成员发送第一终端的IP地址,还可以将所述其他群组成员的IP地址发送给第一终端设备。
应用功能网元可以在本地存储终端设备的IP地址,终端设备所属群组的群组标识以及终端设备的标识。应用功能网元在获取了第一终端设备的IP地址后,可以查询本地存储的已分配了IP地址的终端设备,确定与第一终端设备属于相同群组的终端设备。
应用功能网元在查询到其他终端设备之后,可以向其他终端设备发送第一消息。本申请实施例并不限定其他终端设备的数量,可以是多个,也可以是一个;若存在多个其他终端设备,应用功能网元可以采用组播的方式向多个其他终端设备发送第一消息,也可以采用单播的方式发送第一消息。
应用功能网元可以通过用户面网元向其他终端设备发送携带有第一终端设备的IP地址的第一消息。其中第一消息可以是应用层消息,第一消息中还可以携带群组的群组标识(如群组在应用层的群组标识、群组在网络层的群组标识);可选的,还可以包括第一终端设备的标识,如第一终端的应用层标识或网络层标识。
其他终端设备在接收到第一消息后,可以根据第一消息中携带的群组的群组标识确定与其他终端设备所属群组的群组标识一致,也就是说,其他终端设备确定与第一终端设备属于相同的群组;通过第一终端设备的标识确定第一消息中携带的IP地址为第一终端设备的IP地址;其他终端设备可以保存第一消息中携带的第一终端设备的IP地址、第一终端设备的标识、或群组的群组标识。
示例性的,应用功能网元可以构建IP报文,IP报文中包括应用层消息,应用层消息中携带第一终端设备的IP地址和第一终端设备的标识,应用功能网元将该IP报文通过其他终端设备的分组数据单元(packet data unit,PDU)会话发送给其他终端设备。其他终端设备在接收到IP报文后可以从应用层消息中获取第一终端设备的IP地址。
对于已经获知了第一终端设备的IP地址的其他终端设备,若存在需要向第一终端设备 发送的信息时,可以在构造IP报文时,将IP报文的目的端地址设置为第一终端设备的IP地址,发送给与第一终端设备对应的用户面网元,用户面网元可以根据IP报文的目的端地址直接将IP报文发送给第一终端设备。
由于第一终端设备与第二终端设备可能属于一个或多个不同的群组,应用功能网元可以向第二终端设备发送第一终端设备在不同群组(如以第一群组和第二群组为例)中分配的IP地址。
示例性的,第二终端设备可以接收来自应用功能网元的第一消息,第一消息中包括第一终端设备的第一IP地址、第一终端设备的标识以及第一终端设备所属第一群组的群组标识。
第二终端设备可以保存第一终端设备的标识、第一终端设备的所属第一群组的群组标识与第一终端设备的第一IP地址的对应关系。
第二终端设备还可以接收来自应用功能网元的第三消息,第三消息中包括第一终端设备的第二IP地址、第一终端设备的标识和第一终端设备所属第二群组的群组标识;
保存第一终端设备的标识、第一终端设备所属第二群组的群组标识与第一终端设备的第二IP地址的对应关系。
若第二终端设备需要通过第一群组的群组会话与第一终端设备交互,也就是说,需要向第一群组中的第一终端设备发送数据,第二终端设备可以将需要将IP报文的目的端地址设置为第一终端设备的第一IP地址,通过用户面网元向第一终端设备发送IP报文。
若第二终端设备需要通过第二群组的群组会话与第一终端设备交互,也就是说,需要向第二群组中的第一终端设备发送数据,第二终端设备可以将需要将IP报文的目的端地址设置为第一终端设备的第二IP地址,通过用户面网元向第一终端设备发送IP报文。
第二终端设备在不同的群组会话中,可以通过将IP报文的目的端地址设置为第一终端设备的相应的IP地址,实现与第一终端设备的交互;第一消息和第三消息中的群组标识和第一终端设备的标识可以直观的指示消息中的携带的IP地址为哪一个群组中哪一个终端设备的IP地址,可以有效区分不同群组中终端设备的IP地址。
当然,应用功能网元也可以将其他终端设备的IP地址发送给第一终端设备。示例性的,应用功能网元可以向第一终端设备发送携带有其他终端设备的IP地址刷的第二消息。第二消息包括其他终端设备的IP地址、其他终端设备的标识以及群组的群组标识。应用功能网元向第一终端设备发送其他终端设备的IP地址的方式与应用功能网元向其他终端设备发送第一终端设备的IP地址的方式相似,具体可参见前述内容,此处不再赘述。
作为一种可能的实施方式,若应用功能网元一次性获取了群组中所有终端设备的IP地址,应用功能网元可以存储群组中所有终端设备的IP地址,还可以将群组中所有终端设备的IP地址通知给群组中的所有终端设备;应用功能网元可以采用组播的方式向群组中的所有终端设备发送携带有群组中所有终端设备的IP地址的消息,也可以采用单播的方式,分别向群组中每个终端设备发送携带有群组中所有终端设备的IP地址的消息。
以应用功能网元向群组中的其他终端设备发送群组中所有终端设备的IP地址的消息为例,应用功能网元可以向其他终端设备发送携带有群组中除其他终端设备外的终端设备的IP地址的消息。
以如图1所示的网络架构为例,第一终端设备为UE A,其他终端设备为UE B,UE B在构造IP报文时,将IP报文的目的端地址设置为UE A的IP地址,发送给UPF#1,UPF#1 可以根据IP报文的目的端地址将IP报文做本地交换,直接将IP报文发送给UE A。
将如图2所示的实施例应用于具体场景中,以应用功能网元为AF网元、能力开放功能网元为NEF网元、核心网网元分别为SMF网元、UDM网元为例,对本申请实施例提供的一种获取终端设备的IP地址方法进行进一步介绍:
在图3~6所示的实施例中,用UE ID可以为UE的网络层标识。
第一种、核心网网元为SMF网元。
如图3所示,为本申请实施例提供的一种获取终端设备的IP地址方法,在该方法实施例中,AF网元要求网络侧(如NEF网元)返回群组所有UE的IP地址,该方法包括:
步骤301:AF网元向NEF网元发送第一事件注册请求,其中携带External Group ID,第一事件注册请求用于向NEF网元请求获取External Group ID指示的群组中所有UE的IP地址。
可选的,第一事件注册请求中还可以携带群组中每个UE的GPSI,以指示AF网元需要获取各个GPSI指示的UE的IP地址。
可选的,第一事件注册请求中还可以包括第一指示信息,该第一指示信息用于指示NEF网元对该事件的响应方式。
具体的,响应方式可以为一次性响应和逐个响应两种:
在如图3所示的实施例中,第一指示消息用于指示NEF网元一次性返回群组中所有UE的IP地址。
步骤302:NEF网元接收到第一事件注册请求后,将External Group ID转换为5GLAN群组标识(如5GLAN DNN)。
若第一事件注册请求中携带了群组中每个UE的GPSI,则NEF网元还可以将每个UE的GPSI转换成UE ID。
NEF网元可以基于有GPSI和UE ID、以及External Group ID和5GLAN群组标识的对应关系,以实现External Group ID与5GLAN群组标识的转换、以及GPSI和UE ID的转换。
GPSI和UE ID、以及External Group ID和5GLAN群组标识的对应关系可以是NEF网元本地保存的,也可以是NEF网元也可以向UDM网元请求获取的,还可以是UDM网元预先配置给NEF网元的。
若第一事件注册请求中携带了群组中任一UE的GPSI,此时NEF网元可以根据接收到的External Group ID获取群组中UE的GPSI(也就是群组中群组成员标识列表)。示例性的,从UDM网元获取该群组成员列表。其中,UDM网元上预先可以保存有群组信息:群组信息包括但不限于群组标识、群组成员列表。
步骤303:NEF网元向SMF网元发送第二事件注册请求,其中第二事件注册请求包括5GLAN群组标识,第二事件注册请求用于向SMF网元请求获取5GLAN群组标识指示的群组中所有UE的IP地址。
可选的,第二事件注册请求中还可以携带群组中每个UE的UE ID,以指示SMF网元需要获取各个UE ID指示的UE的IP地址。
可选的,第二事件注册请求中还可以包括第二指示信息,该第二指示信息用于指示SMF网元对该事件的响应方式。响应的方式与步骤301中的响应方式类似,第二指示信息针对的是SMF网元,第一指示信息针对的是NEF网元,此处不再赘述。
步骤304:SMF网元接收到第二事件注册请求后,SMF可以向NEF网元发送第二事件注册响应,指示事件注册成功。
若第二事件注册请求未携带群组中每个UE的UE ID,SMF网元可以根据5GLAN群组标识获取群组中每个UE的UE ID。
示例性的,与NEF网元获取群组成员列表类似,SMF网元可以根据5GLAN群组标识和群组中UE之间对应关系确定群组中每个UE的UE ID。5GLAN群组标识和群组中UE之间对应关系可以存储在SMF网元本地的,也可以是SMF网元从UDM网元获取的。群组标识和群组中UE之间对应关系可以为列表的形式,其中包括5GLAN群组标识以及该群组中所有UE的成员列表,成员列表中包括UE的UE ID。
步骤305:NEF网元接收到第二事件注册响应后,向AF网元发送第一事件注册响应,指示事件注册成功。
步骤306:UE向SMF网元发送分组数据单元(packet data unit,PDU)会话建立请求,PDU会话建立请求中可以携带5GLAN群组标识,用于建立UE所属5GLAN群组的群组会话。
步骤307:SMF网元获取PDU会话建立请求中的5GLAN群组标识,判断与从NEF获取的5GLAN群组标识(第二事件注册请求中的5GLAN群组标识)是否一致,若一致,SMF网元在通过UPF网元为UE分配IP地址后,向NEF网元发送第二事件通知消息。
可选的,SMF网元可从PDU会话建立请求获取UE ID,判断与从NEF网元(或UDM网元、或根据本地保存的信息确定的)获取的UE ID是否一致。在5GLAN群组标识以及UE ID均一致的情况下,向NEF网元返回第二事件通知消息。
若第二事件注册请求中包括第二指示信息,且第二指示信息SMF网元在获取所述群组中任一UE的IP地址时,返回获取到的UE的IP地址,SMF网元在为UE分配IP地址后,向NEF网元发送第二事件通知消息,第二事件通知消息包括该UE的UE ID和对应的IP地址。
若第二事件注册请求中包括第二指示信息,且第二指示信息SMF网元将群组中所有UE的IP地址一次性返回给NEF网元,SMF网元在为UE分配IP地址后,先保存UE的UE ID以及对应的IP地址。在群组中所有的UE均发起PDU会话建立流程,SMF网元为群组中所有的UE都分配了IP地址后,向NEF网元返回第二事件通知消息,第二事件通知消息中包括群组的所有UE的UE ID以及对应的IP地址,可选的,还可以包括5GLAN群组标识。其中,群组的所有UE的UE ID以及对应的IP地址可以采用列表的形式。
可选的,第二事件通知消息中还可以第三指示信息,第三指示消息指示群组中的所有UE的IP地址已完成通知。
步骤308:NEF网元将第二事件通知消息中的UE ID转换为GPSI,向AF网元返回第一事件通知消息,第一事件通知消息中包括群组中所有UE的GPSI、以及对应的IP地址。群组的所有UE的GPSI以及对应的IP地址可以采用列表的形式。
作为一种可能的实施方式,第一注册请求消息中包含了第一指示信息,且第一指示消息指示的响应方式为一次性响应;若第二指示消息指示的响应方式为一次性响应,NEF网元在接收到第二事件通知消息后,可以直接向AF网元返回第一事件通知消息。若第二指示消息指示的响应方式为逐个响应;NEF网元在接收到第二事件通知消息后,NEF网元可以先保存UE的GPSI和IP地址,直到NEF网元确定接收到该群组所有UE的IP地址, 再向AF网元返回第一事件通知消息。
NEF网元可以根据第三指示信息确定接收该群组所有UE的IP地址;也可以查询本地已保存的群组中UE的IP地址,判断群组中是否存在缺失IP地址的UE。若不存在,则可以向AF网元返回第一事件通知消息。
可选的,若第二事件通知消息还包括5GLAN群组标识,NEF网元还可以将5GLAN群组标识转换为External Group ID,在第一事件通知消息中携带External Group ID。
步骤309:AF网元从第一事件通知消息获取External Group ID所指示的群组所有UE的IP地址后,AF网元通过应用层消息向External Group ID所指示的群组中的UE发送除该UE之外的其他UE的GPSI以及IP地址。
例如,5GLAN群组中包含UE A,UE B,和UE C。AF网元从NEF网元的第一事件通知消息获取了UE A,UE B和UE C的GPSI和IP地址,AF网元通过应用层消息向UE A发送UE B和UE C的GPSI和IP地址,向UE B发送UE A和UE C的GPSI和IP地址,向UE C发送UE A和UE B的GPSI和IP地址。
AF网元通过应用层消息向External Group ID所指示的群组中的UE发送除该UE之外的其他UE的GPSI以及IP地址时,可以携带External Group ID,以指示其他UE所属的群组。
其他UE在接收到来自AF网元的应用层消息时,可以根据应用层消息中携带的External Group ID确定是否为其他UE所属的群组;若是,可以保存应用层消息中携带的其他UE的GPSI以及IP地址。
需要说明的是,若群组中的一个或多个UE在很长一段时间内不上线,AF网元需要等待一段较长时间才能接收第一事件通知消息;为了保证AF网元可以及时获取群组中UE的IP地址;AF网元可以在发送第一事件注册请求之后,启动一个定时器,若在定时器超时后仍没有接收到第一事件通知消息,则会发送第一请求,该第一请求用于向NEF网元请求当前NEF网元已获取的群组中终端设备的IP地址;NEF网元在接收到第一请求后,会将当前已获取的群组中终端设备的IP地址携带在第一响应中发送给AF网元;AF网元在接收到第一响应之后,保存第一响应中携带的群组中终端设备的IP地址,还可以向群组中已分配IP地址的任一终端设备通知该群组中其他终端设备的IP地址。
如图4所示,为本申请实施例提供的一种获取终端设备的IP地址方法,在该方法实施例中,若群组中要增加新的群组成员,AF网元要求网络侧(如NEF网元)返回群组中新加入的UE的IP地址,新加入的UE的个数是可以是一个也可以是多个,在该方法中以AF网元请求获取群组中新加入一个UE的IP地址为例,进行说明,该方法包括:
步骤401:AF网元向NEF网元发送第三事件注册请求,其中携带UE的GPSI,External Group ID,第三事件注册请求用于向NEF网元请求获取External Group ID指示的群组中GPSI指示的UE的IP地址。
例如,群组中当前包含UE A,UE B,和UE C。AF网元添加了UE D加入该群组,可以向第三事件注册请求中携带UE D的GPSI。
步骤402:NEF网元接收到第三事件注册请求后,将External Group ID转换为5GLAN群组标识(如5GLAN DNN),将GPSI转换成UE ID。
步骤403:NEF网元向SMF网元发送第四事件注册请求,其中包括UE ID和5GLAN群组标识,第四事件注册请求用于向SNF网元请求获取5GLAN群组标识指示的群组中 UE ID指示的UE的IP地址。
步骤404:SMF可以向NEF网元发送第四事件注册响应,指示事件注册成功。
步骤405:NEF网元接收到第四事件注册响应后,向AF网元发送第三事件注册响应,指示事件注册成功。
步骤406:UE向SMF网元发送PDU会话建立请求,PDU会话建立请求中可以携带5GLAN群组标识和UE ID,用于建立UE所属5GLAN群组的群组会话。
步骤407:SMF网元获取PDU会话建立请求中的UE ID和5GLAN群组标识,判断与从NEF获取的UE ID和5GLAN群组标识是否一致。若一致,SMF网元在为UE分配IP地址后,向NEF网元返回第四事件通知消息,第四事件通知消息中包括UE ID、以及对应的IP地址,可选的,还可以包括5GLAN群组标识。
步骤408:NEF网元将UE ID转换为GPSI,向AF网元返回第三事件通知消息,第三事件通知消息中包括UE的GPSI、以及对应的IP地址。
可选的,若第四事件通知消息包括5GLAN群组标识,NEF网元还可以将5GLAN群组标识转换为External Group ID,在第三事件通知消息中携带External Group ID。
步骤409:AF网元从第三事件通知消息获取External Group ID和GPSI所指示的UE的IP地址后,AF网元通过应用层消息向群组中其他UE发送该UE的GPSI以及IP地址。
AF网元接收到UE的IP地址之后,会查询一下本地是否已保存群组中该UE的IP地址记录,如果没有,则保存该UE的IP地址,如可以保存5GLAN ID、UE ID以及对应的IP地址;还可以检查一下该群组是否已有其他群组成员的IP地址记录,如果没有则结束;如果有,则分别向有IP地址记录的其他群组成员发送该UE的IP地址;可选的,还可以将有IP地址记录的其他群组成员的IP地址发送给UE。
例如,AF网元从NEF网元的第三事件通知消息获取了UE D的GPSI和IP地址,AF通过应用层消息向UE A,UE B和UE C发送UE D的GPSI和IP地址。AF网元还可以向UE D发送UE A,UE B和UE C的GPSI和IP地址。
可选的,AF网元群组向该UE发送携带有其他UE的IP地址的应用层消息,可选的,该应用层消息中还可以包括其他UE的GPSI和External Group ID。
图3、4所示的是实施例中,已其他UE为UE2、UE3为例。
第二种、核心网网元为UDM网元。
如图5所示,为本申请实施例提供的一种获取终端设备的IP地址方法,在该方法实施例中,AF网元要求网络侧(如NEF网元)一次性返回群组所有UE的IP地址,该方法包括:
步骤501:同步骤301,可参见步骤301的相关描述,此处不再赘述。
步骤502:同步骤302,可参见步骤302的相关描述,此处不再赘述。
步骤503:NEF网元向UDM网元发送第二事件注册请求,其中,第二事件注册请求包括5GLAN群组标识,第二事件注册请求用于向UDM网元请求获取5GLAN群组标识指示的群组中所有UE的IP地址。
第二事件注册请求的描述可以参见步骤303中的相关描述,此处不再赘述。
步骤504:UDM网元接收到第二事件注册请求后,保存该UE ID和5GLAN群组标识,并向NEF网元发送第二事件注册响应,指示事件注册成功。
若第二事件注册请求未携带群组中每个UE的UE ID,UDM网元可以根据5GLAN群 组标识获取群组中每个UE的UE ID。
UDM网元获取群组中每个UE的UE ID的方式可以参见步骤304中SMF网元获取群组中每个UE的UE ID的方式,此处不再赘述。
步骤505:同步骤305,可参见步骤305的相关描述,此处不再赘述。
步骤506:UE向SMF网元发送PDU会话建立请求,PDU会话建立请求中可以携带5GLAN群组标识,用于建立UE所属5GLAN群组的群组会话。
步骤507:SMF网元为UE建立PDU会话,为UE分配IP地址。
步骤508:SMF网元向UDM网元发送签约信息更新通知,签约信息更新通知携带UE ID,5GLAN群组标识和UE的IP地址。
步骤509:UDM网元将UE ID,5GLAN群组标识和UE的IP地址作为UE的上下文保存在UE的签约信息中。UDM网元判断从SMF网元接收的5GLAN群组标识(也可以是UE的签约信息中的5GLAN群组标识)与从NEF获取的5GLAN群组标识是否一致,若一致,向NEF网元返回第二事件通知消息。
可选的,UDM网元还可以判断从SMF网元接收的UE ID(也可以是UE的签约信息中的UE ID)与从NEF网元获取的UE ID是否一致,在5GLAN群组标识以及UE ID均一致的情况下,向NEF网元返回第二事件通知消息。
UDM网元根据第二事件注册请求中的第二指示信息发送第二事件通知消息的方式与步骤307中SMF网元根据第二事件注册请求中的第二指示信息发送第二事件通知消息的方式相似,可以参见步骤307中的相关描述,此处不再赘述。
步骤510:同步骤308,可参见步骤308的相关描述,此处不再赘述。
步骤511:同步骤309,可参见步骤309的相关描述,此处不再赘述。
如图6所示,为本申请实施例提供的一种获取终端设备的IP地址方法,在该方法实施例中,若群组中要增加新的群组成员,AF网元要求网络侧(如NEF网元)返回群组中新加入的UE的IP地址,新加入的UE的个数是可以是一个也可以是多个,在该方法中以AF网元请求获取群组中新加入一个UE的IP地址为例,进行说明,该方法包括:
步骤601:同步骤401,可参见步骤401的相关描述,此处不再赘述。
步骤602:同步骤402,可参见步骤402的相关描述,此处不再赘述。
步骤603:NEF网元向UDM网元发送第四事件注册请求,其中,第四事件注册请求包括UE ID和5GLAN群组标识,第四事件注册请求用于向UDM网元请求获取5GLAN群组标识指示的群组中UE ID指示的UE的IP地址。
步骤604:UDM网元接收到第四事件注册请求后,保存该UE ID和5GLAN群组标识,并向NEF网元发送第四事件注册响应,指示事件注册成功。
步骤605:同步骤405,可参见步骤405的相关描述,此处不再赘述。
步骤606:同步骤406,可参见步骤406的相关描述,此处不再赘述。
步骤607:SMF网元为UE建立PDU会话,为UE分配IP地址。
步骤608:SMF网元向UDM网元发送签约信息更新通知,签约信息更新通知携带UE ID,5GLAN群组标识和UE的IP地址。
步骤609:UDM网元将UE ID,5GLAN群组标识和UE的IP地址作为UE的上下文保存在UE的签约信息中。UDM网元判断从SMF网元接收的5GLAN群组标识(也可以是UE的签约信息中的5GLAN群组标识)与从NEF获取的5GLAN群组标识是否一致、 以及从SMF网元接收的UE ID(也可以是UE的签约信息中的UE ID)与从NEF网元获取的UE ID是否一致,若一致,向NEF网元返回第四事件通知消息。第四事件通知消息中包括UE ID、以及对应的IP地址,可选的,还可以包括5GLAN群组标识。
步骤610:同步骤408,可参见步骤408的相关描述,此处不再赘述。
步骤611:同步骤409,可参见步骤409的相关描述,此处不再赘述。
需要理解的是,如图4、6所示的实施例中是以获取一个UE的IP地址为例,可以想到,AF网元也可以请求获取群组中某几个UE的IP地址,获取方式可参见如图4所示的实施例,区别在于第三事件注册请求中携带多个UE的GPSI,第四事件注册请求携带为多个UE的UE ID。第一指示信息可以指示NEF网元一次性返回多个UE的IP地址,或返回一个UE的IP地址。若第一指示信息可以指示NEF网元一次性返回多个UE的IP地址,NEF网元需要确定获取了该多个UE之后在发送第三事件通知消息;第二指示消息也类似。另外,也可以增加第三指示消息,第三指示信息可以指示该多个UE的IP地址已完成通知。
如图3~6所示的实施例中,是以一个群组中终端设备获取该群组中其他终端设备的IP地址的方法为例进行说明的;而按照上述实施例,当两个终端设备(以UE A和UE B为例)都属于多个群组(以第一群组和第二群组为例);UE A可以获取第一群组中UE B的IP地址,以及第二群组中UE B的IP地址,同样的,UE B可以获取第一群组中UE A的IP地址,以及第二群组中UE A的IP地址;当UE A需要通过第一群组或第二群组的群组会话与UE B进行交互时,UE A可以根据UE B的标识和群组标识(如第一群组或第二群组)确定在对应的群组中的UE B的IP地址,并将IP报文的目的端地址设置为确定的UE B的IP地址,通过用户面网元发送该IP报文。
基于与方法实施例同一发明构思,本申请实施例还提供了一种通信装置,用于执行上述方法实施例中应用功能网元执行的方法,相关特征可参见上述方法实施例,此处不再赘述,如图7所示,该装置包括发送单元701和接收单元702:
发送单元701,用于向能力开放网元发送第一事件注册请求,第一事件注册请求用于请求获取群组中终端设备的互联网协议IP地址。
接收单元702,用于接收来自能力开放网元的第一事件通知消息,第一事件通知消息包括群组中第一终端设备的IP地址。
发送单元701,还用于向群组中已分配了IP地址的其他终端设备发送第一消息,第一消息中包括第一终端设备的IP地址、第一终端设备的标识以及群组的群组标识。
在一种可能的实施方式中,第一事件注册请求可以包括用于指示群组的一些信息。示例性的,第一事件注册请求可以包括群组的群组标识,如群组在应用层的群组标识。
在一种可能的实施方式中,第一事件注册请求还可以携带群组中终端设备的相关信息。示例性的,第一事件注册请求可以包括群组中一个或多个终端设备的标识,如应用层标识,群组中一个或多个终端设备包括第一终端设备。
在一种可能的实施方式中,第一事件通知消息包括下列的部分或全部:第一终端设备的标识和群组的群组标识。
在一种可能的实施方式中,第一事件注册请求还可以携带第一指示消息,用于指示能力开放网元的响应方式。示例性的,第一事件注册请求包括第一指示信息,第一指示信息可以指示能力开放网元一次性返回群组中所有终端设备的IP地址,也可以指示能力开放网元在获取所述群组中任意一个或多个终端设备的IP地址时,返回获取到的终端设备的IP 地址。
在一种可能的实施方式中,在第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址的情况下,第一事件通知消息包括群组中所有终端设备的IP地址。
在一种可能的实施方式中,该通信装置还包括处理单元703,处理单元703在发送单元701向所群组中已分配了IP地址的其他终端设备发送第一消息之前,可以从本地保存的已分配了IP地址的终端设备中确定群组中已分配IP地址的其他终端设备。
在一种可能的实施方式中,发送单元701在向第一终端设备所属群组中的其他终端设备发送第一消息时,可以通过其他终端设备对应的用户面网元向其他终端设备发送第一消息。
在一种可能的实施方式中,第一消息为应用层消息。
在一种可能的实施方式中,发送单元701还可以向第一终端设备发送第二消息,第二消息包括其他终端设备的IP地址、其他终端设备的标识以及群组的群组标识。
基于与方法实施例同一发明构思,本申请实施例还提供了一种通信装置,用于执行上述方法实施例中能力开放网元执行的方法,相关特征可参见上述方法实施例,此处不再赘述,如图8所示,该装置包括接收单元801、处理单元802以及发送单元803:
接收单元801,用于接收来自应用功能网元的第一事件注册请求,第一事件注册请求用于请求获取群组中终端设备的互联网协议IP地址。
处理单元802,用于从核心网网元获取群组中第一终端设备的IP地址。
发送单元803,用于在处理单元802从核心网网元获取群组中第一终端设备的IP地址后,向应用功能网元发送第一事件通知消息,第一事件通知消息包括第一终端设备的IP地址。
在一种可能的实施方式中,处理单元802触发发送单元803向核心网网元发送第二事件注册请求,第二事件注册请求用于请求获取群组中终端设备的IP地址;之后,接收单元801可以接收来自核心网网元的第二事件通知消息,第二事件通知消息包括第一终端设备的IP地址。
在一种可能的实施方式中,第一事件注册请求可以包括用于指示群组的一些信息。示例性的,第一事件注册请求包括群组的群组标识,如群组在应用层的群组标识。
在一种可能的实施方式中,第一事件注册请求还可以携带群组中终端设备的相关信息。第一事件注册请求还包括群组中一个或多个终端设备的标识,如应用层标识,其中,群组中终端设备包括第一终端设备。
在一种可能的实施方式中,第一事件通知消息可以只包括第一终端设备的IP地址,还可以包括下列的部分或全部:第一终端设备的标识(如应用层标识)和群组的群组标识(如群组在应用层的群组标识)。
在一种可能的实施方式中,第一事件注册请求可以包括第一指示信息,用于指示能力开放网元的响应方式。示例性的,第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址或指示能力开放网元在获取所述群组中任意一个或多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
在一种可能的实施方式中,在第一指示信息指示能力开放网元一次性返回群组中所有终端设备的IP地址的情况下,发送单元803可以在从核心网网元获取群组中所有终端设备的IP地址后,向应用功能网元发送第一事件通知消息,第一事件通知消息包括群组中所有 终端设备的IP地址。
在一种可能的实施方式中,处理单元802还可以根据群组标识从统一数据管理网元获取群组中终端设备的标识。
在一种可能的实施方式中,若第一事件注册请求中包括群组在应用层的群组标识,处理单元802可以将群组在应用层的群组标识转换为群组在网络层的群组标识,群组在网络层的群组标识是群组在网络层的群组标识;发送单元803之后可以向核心网网元发送第二事件注册请求,第二事件注册请求包括群组在网络层的群组标识。
在一种可能的实施方式中,若第一事件注册请求中包括群组在应用层的群组标识和终端设备的应用层标识,处理单元802还可以将群组中终端设备的应用层标识转换为网络层标识,将群组在应用层的群组标识转换为群组在网络层的群组标识,网络层标识为终端设备的网络层标识;之后,发送单元803向核心网网元发送第二事件注册请求,第二事件注册请求包括群组中终端设备的网络层标识和群组在网络层的群组标识。
在一种可能的实施方式中,第二事件注册请求包括第二指示信息,用于指示核心网网元的响应方式。示例性的,第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址或指示核心网网元在获取所述群组中任意一个或多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
在一种可能的实施方式中,在第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址的情况下,第二事件通知消息包括群组中所有终端设备的IP地址。
在一种可能的实施方式中,第二事件通知消息包括下列的部分或全部:第一终端设备的标识(如网络层标识)和群组的群组标识(如群组在网络层的群组标识)。
在一种可能的实施方式中,第一事件注册请求中包括群组中终端设备的应用层标识和/或群组在应用层的群组标识,处理单元802还可以将第一终端设备的网络层标识转换为第一终端设备的应用层标识,和/或将群组在网络层的群组标识转换为群组在应用层的群组标识;发送单元803可以向核心网网元发送第一事件通知消息,第一事件通知消息包括下列部分或全部:第一终端设备的应用层标识和群组在应用层的群组标识。
基于与方法实施例同一发明构思,本申请实施例还提供了一种通信装置,用于执行上述方法实施例中核心网网元执行的方法,相关特征可参见上述方法实施例,此处不再赘述,如图9所示,该装置包括接收单元901、处理单元902和发送单元903:
接收单元901,用于接收来自能力开放网元的第二事件注册请求,第二事件注册请求用于请求获取群组中终端设备的互联网协议IP地址。
处理单元902,用于确定群组中的第一终端设备的IP地址。
发送单元903,用于在处理单元902确定群组中的第一终端设备的IP地址后,向能力开放网元发送第二事件通知消息,第二事件通知消息包括第一终端设备的IP地址。
在一种可能的实施方式中,第二事件注册请求包括群组的群组标识,如群组在网络层的群组标识。
在一种可能的实施方式中,第二事件注册请求还包括群组中终端设备的标识,如网络层标识。
在一种可能的实施方式中,第二事件注册请求还包括第二指示信息,用于指示核心网网元的响应方式。示例性的,第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址或指示核心网网元在获取所述群组中任意一个或多个终端设备的IP地址时, 返回获取到的终端设备的IP地址。
在一种可能的实施方式中,在第二指示信息指示核心网网元一次性返回群组中所有终端设备的IP地址的情况下,核心网网元可以在确定群组中的所有终端设备的IP地址后,向能力开放网元发送第二事件通知消息,第二事件通知消息包括群组中所有终端设备的IP地址。
在一种可能的实施方式中,处理单元902可以在接收单元901接收到来自第一终端设备的会话建立请求后,为第一终端设备分配IP地址,会话建立请求用于请求建立群组的群组会话。
在一种可能的实施方式中,处理单元902可以确定第二事件注册请求中携带的群组的群组标识与会话建立请求中携带的群组的群组标识一致、或第二事件注册请求中携带的群组中的终端设备的标识与会话建立请求中携带的第一终端设备的标识一致;之后发送单元903可以向能力开放网元发送第二事件通知消息。
在一种可能的实施方式中,处理单元902可以根据第一终端设备的签约信息确定第一终端设备的IP地址。
在一种可能的实施方式中,处理单元902确定第二事件注册请求中携带的群组的群组标识与签约信息中的群组的群组标识一致、或第二事件注册请求中携带的群组中终端设备的标识与签约信息中的第一终端设备的标识一致;之后,发送单元903可以向能力开放网元发送第二事件通知消息。
在一种可能的实施方式中,第二事件通知消息还包括下列的部分或全部:第一终端设备的标识(如网络层标识)和群组的群组标识(如群组在网络层的群组标识)。
基于与方法实施例同一发明构思,本申请实施例还提供了一种通信装置,用于执行上述方法实施例中其他终端设备执行的方法,相关特征可参见上述方法实施例,此处不再赘述,如图10所示,该装置包括接收单元1001、处理单元1002:
接收单元1001,用于接收来自应用功能网元的第一消息,第一消息中包括第一终端设备的第一IP地址、第一终端设备的标识和第一终端设备所属第一群组的群组标识。
处理单元1002,用于保存第一终端设备的标识、第一终端设备的所属第一群组的群组标识与第一终端设备的第一IP地址的对应关系。
在一种可能的实施方式中,接收单元1001,还用于接收来自应用功能网元的第三消息,第三消息中包括第一终端设备的第二IP地址、第一终端设备的标识和第一终端设备所属第二群组的群组标识。
处理单元1002还可以保存第一终端设备的标识、第一终端设备所属第二群组的群组标识与第一终端设备的第二IP地址的对应关系。
该装置还包括发送单元1003,发送单元1003用于若需要向第一群组中的第一终端设备发送数据,通过用户面网元向第一终端设备发送IP报文,IP报文的目的端地址为第一终端设备的第一IP地址。
在一种可能的实施方式中,在发送单元1003通过用户面网元向第一终端设备发送IP报文之前,处理单元1002可以根据第一终端设备的标识、第一终端设备的所属第一群组的群组标识获取第一终端设备的第一IP地址。
本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能单元可以集成在一个处理器 中,也可以是单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是个人计算机,手机,或者网络设备等)或处理器(processor)执行本申请各个实施例该方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
在本申请实施例中,应用功能网元、能力开放网元、核心网网元接收均可以采用集成的方式划分各个功能模块的形式来呈现。这里的“模块”可以指特定ASIC,电路,执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。
在一个简单的实施例中,本领域的技术人员可以想到应用功能网元、能力开放网元、核心网网元均可采用图11所示的形式。
如图11所示的通信装置1100,包括至少一个处理器1101、存储器1102,可选的,还可以包括通信接口1103。
存储器1102可以是易失性存储器,例如随机存取存储器;存储器也可以是非易失性存储器,例如只读存储器,快闪存储器,硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)、或者存储器1102是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1102可以是上述存储器的组合。
本申请实施例中不限定上述处理器1101以及存储器1102之间的具体连接介质。图11中仅用一条粗线表示。
处理器1101可以具有数据收发功能,能够与其他设备进行通信,在如图11装置中,也可以设置独立的数据收发模块,例如通信接口1103,用于收发数据;处理器1101在与其他设备进行通信时,可以通过通信接口1103进行数据传输。
当应用功能网元采用图11所示的形式时,图11中的处理器1101可以通过调用存储器1102中存储的计算机执行指令,使得应用功能网元可以执行上述任一方法实施例中的应用功能网元执行的方法。
具体的,图7中的发送单元、接收单元和处理单元的功能/实现过程均可以通过图11中的处理器1101调用存储器1102中存储的计算机执行指令来实现。或者,图7中的处理单元的功能/实现过程可以通过图11中的处理器1101调用存储器1102中存储的计算机执行指令来实现,图7中的发送单元和接收单元的功能/实现过程可以通过图11中的通信接口1103来实现。
当能力开放网元采用图11所示的形式时,图11中的处理器1101可以通过调用存储器1102中存储的计算机执行指令,使得能力开放网元可以执行上述任一方法实施例中的能力开放网元执行的方法。
具体的,图8中的发送单元、接收单元和处理单元的功能/实现过程均可以通过图11 中的处理器1101调用存储器1102中存储的计算机执行指令来实现。或者,图8中的处理单元的功能/实现过程可以通过图11中的处理器1101调用存储器1102中存储的计算机执行指令来实现,图8中的发送单元和接收单元的功能/实现过程可以通过图11中的通信接口1103来实现。
当核心网网元采用图11所示的形式时,图11中的处理器1101可以通过调用存储器1102中存储的计算机执行指令,使得核心网网元可以执行上述任一方法实施例中的核心网网元执行的方法。
具体的,图9中的接收单元、发送单元和处理单元的功能/实现过程均可以通过图11中的处理器1101调用存储器1102中存储的计算机执行指令来实现。或者,图9中的处理单元的功能/实现过程可以通过图11中的处理器1101调用存储器1102中存储的计算机执行指令来实现,图9中的接收单元、发送单元的功能/实现过程可以通过图11中的通信接口1103来实现。
在一个简单的实施例中,本领域的技术人员可以想到其他终端设备均可采用图12所示的形式。
如图12所示的通信装置1200,包括至少一个处理器1201、存储器1202,可选的,还可以包括收发器1203。
存储器1202可以是易失性存储器,例如随机存取存储器;存储器也可以是非易失性存储器,例如只读存储器,快闪存储器,硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)、或者存储器1202是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1202可以是上述存储器的组合。
本申请实施例中不限定上述处理器1201以及存储器1202之间的具体连接介质。
处理器1201可以具有数据收发功能,能够与其他设备进行通信,在如图12装置中,也可以设置独立的数据收发模块,例如收发器1203,用于收发数据;处理器1201在与其他设备进行通信时,可以通过收发器1203进行数据传输。
当第二终端设备采用图12所示的形式时,图12中的处理器1201可以通过调用存储器1202中存储的计算机执行指令,使得第二终端设备可以执行上述任一方法实施例中的第二终端设备执行的方法。
具体的,图10中的接收单元、处理单元的功能/实现过程均可以通过图12中的处理器1201调用存储器1202中存储的计算机执行指令来实现。或者,图10中的处理单元的功能/实现过程可以通过图12中的处理器1201调用存储器1202中存储的计算机执行指令来实现,图10中的接收单元的功能/实现过程可以通过图12中的收发器1203来实现。
基于与方法实施例同一发明构思,本申请实施例还提供了一种通信系统,用于执行上述任一实施例的方法,相关特征可参见上述方法实施例,此处不再赘述。
本申请实施例提供的一种通信系统的结构示意图可参见图13,具体的,所述通信系统包括核心网网元以及能力开放网元;可选的,还可以包括应用功能网元。
应用功能网元用于可以执行上述方法实施例中应用功能网元执行的方法,能力开放网元用于可以执行上述方法实施例中能力开放网元执行的方法;核心网网元用于可以执行上述方法实施例中核心网网元执行的方法。具体可参见前述内容,此处不再赘述。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产 品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (72)

  1. 一种获取终端设备互联网协议IP地址方法,其特征在于,所述方法包括:
    应用功能网元向能力开放网元发送第一事件注册请求,所述第一事件注册请求用于请求获取群组中终端设备的互联网协议IP地址;
    所述应用功能网元接收来自所述能力开放网元的第一事件通知消息,所述第一事件通知消息包括群组中第一终端设备的IP地址;
    所述应用功能网元向所述群组中已分配了IP地址的其他终端设备发送第一消息,所述第一消息中包括所述第一终端设备的IP地址、第一终端设备的标识以及所述群组的群组标识。
  2. 如权利要求1所述的方法,其特征在于,所述第一事件注册请求包括所述群组的群组标识。
  3. 如权利要求2所述的方法,其特征在于,所述第一事件注册请求包括所述群组中一个或者多个终端设备的标识,所述群组中一个或者多个终端设备包括所述第一终端设备。
  4. 如权利要求1~3任一所述的方法,其特征在于,所述第一事件通知消息包括下列的部分或全部:所述第一终端设备的标识和所述群组的群组标识。
  5. 如权利要求1~4任一所述的方法,其特征在于,所述第一事件注册请求还包括第一指示信息,所述第一指示信息指示所述能力开放网元一次性返回所述群组中所有终端设备的IP地址或指示所述能力开放网元在获取到所述群组中任意一个或者多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
  6. 如权利要求5所述的方法,其特征在于,若所述第一指示信息指示能力开放网元一次性返回所述群组中所有终端设备的IP地址,所述第一事件通知消息中包括所述群组中所有终端设备的IP地址。
  7. 如权利要求1~6任一所述的方法,其特征在于,所述应用功能网元向所群组中已分配了IP地址的其他终端设备发送第一消息之前,还包括:
    所述应用功能网元确定所述群组中已分配IP地址的其他终端设备。
  8. 如权利要求1~7任一所述的方法,其特征在于,所述应用功能网元向所述第一终端设备所属群组中的其他终端设备发送第一消息,包括:
    所述应用功能网元通过所述其他终端设备对应的用户面网元向所述其他终端设备发送所述第一消息。
  9. 如权利要求1~8任一所述的方法,其特征在于,所述应用功能网元接收来自所述能力开放网元的第一事件通知消息之后,还包括:
    所述应用功能网元向所述第一终端设备发送第二消息,所述第二消息包括所述其他终端设备的IP地址、所述其他终端设备的标识以及所述群组的群组标识。
  10. 如权利要求1~7任一所述的方法,其特征在于,所述第一消息为应用层消息。
  11. 一种获取终端设备互联网协议IP地址的方法,其特征在于,所述方法包括:
    能力开放网元接收来自应用功能网元的第一事件注册请求,所述第一事件注册请求用于请求获取群组中终端设备的互联网协议IP地址;
    所述能力开放网元在从核心网网元获取所述群组中第一终端设备的IP地址后,向所述应用功能网元发送第一事件通知消息,所述第一事件通知消息包括所述第一终端设备的IP 地址。
  12. 如权利要求11所述的方法,其特征在于,所述能力开放网元从核心网网元获取所述第一终端设备的IP地址,包括:
    所述能力开放网元向所述核心网网元发送第二事件注册请求,所述第二事件注册请求用于请求获取群组中终端设备的IP地址;
    所述能力开放网元接收来自所述核心网网元的第二事件通知消息,所述第二事件通知消息包括所述第一终端设备的IP地址。
  13. 如权利要求11或12所述的方法,其特征在于,所述第一事件注册请求包括所述群组的群组标识。
  14. 如权利要求13所述的方法,其特征在于,所述第一事件注册请求还包括所述群组中一个或者多个终端设备的标识,其中,所述群组中一个或者多个终端设备包括所述第一终端设备。
  15. 如权利要求11~14任一所述的方法,其特征在于,所述第一事件注册请求包括第一指示信息,所述第一指示信息指示所述能力开放网元一次性返回所述群组中所有终端设备的IP地址或指示所述能力开放网元在获取所述群组中任意一个或多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
  16. 如权利要求15所述的方法,其特征在于,在所述第一指示信息指示所述能力开放网元一次性返回所述群组中所有终端设备的IP地址的情况下,所述能力开放网元在从核心网网元获取所述群组中第一终端设备的IP地址后,向所述应用功能网元发送第一事件通知消息,包括:
    所述能力开放网元在从所述核心网网元获取所述群组中所有终端设备的IP地址后,向所述应用功能网元发送第一事件通知消息,所述第一事件通知消息包括所述群组中所有终端设备的IP地址。
  17. 如权利要求13所述的方法,其特征在于,所述群组的群组标识为所述群组在应用层的群组标识,所述能力开放网元向所述核心网网元发送第二事件注册请求,包括:
    所述能力开放网元将所述群组在应用层的群组标识转换为所述群组在网络层的群组标识;
    所述能力开放网元向所述核心网网元发送第二事件注册请求,所述第二事件注册请求包括所述群组在网络层的群组标识。
  18. 如权利要求13所述的方法,其特征在于,若所述第一事件注册请求不包括所述群组中一个或者多个终端设备的标识,所述能力开放网元向所述核心网网元发送第二事件注册请求之前,还包括:
    所述能力开放网元根据所述群组标识从统一数据管理网元获取所述群组中终端设备的标识。
  19. 如权利要求14所述的方法,其特征在于,所述群组的群组标识为所述群组在应用层的群组标识,所述群组中一个或者多个终端设备的标识为应用层标识,所述能力开放网元向所述核心网网元发送第二事件注册请求,包括:
    所述能力开放网元将所述群组中所述一个或者多个终端设备的应用层标识转换为终端设备的网络层标识,将所述群组在应用层的群组标识转换为群组在网络层的群组标识;
    所述能力开放网元向所述核心网网元发送第二事件注册请求,所述第二事件注册请求 包括所述群组中所述一个或者多个终端设备的网络层标识和所述群组在网络层的群组标识。
  20. 如权利要求12-19任一所述的方法,其特征在于,所述第二事件注册请求包括第二指示信息,所述第二指示信息指示所述核心网网元一次性返回所述群组中所有终端设备的IP地址或指示所述核心网网元在获取到所述群组中任意一个或者多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
  21. 如权利要求20所述的方法,其特征在于,在所述第二指示信息指示所述核心网网元一次性返回群组中所有终端设备的IP地址的情况下,所述第二事件通知消息包括所述群组中所有终端设备的IP地址。
  22. 如权利要求11~21任一所述的方法,其特征在于,所述第一事件通知消息包括下列部分或全部:所述第一终端设备的标识和所述群组的群组标识。
  23. 一种获取终端设备互联网协议IP地址方法,其特征在于,该方法包括:
    核心网网元接收来自能力开放网元的第二事件注册请求,所述第二事件注册请求用于请求获取群组中终端设备的IP地址;
    所述核心网网元在确定所述群组中的第一终端设备的IP地址后,向所述能力开放网元发送第二事件通知消息,所述第二事件通知消息包括所述第一终端设备的IP地址。
  24. 如权利要求23所述的方法,其特征在于,所述第二事件注册请求包括所述群组的群组标识。
  25. 如权利要求23或24所述的方法,其特征在于,所述第二事件注册请求还包括所述群组中终端设备的标识。
  26. 如权利要求23~25任一所述的方法,其特征在于,所述第二事件注册请求还可以携带第二指示信息,所述第二指示信息指示所述核心网网元一次性返回所述群组中所有终端设备的IP地址或指示所述核心网网元在获取到所述群组中任意一个或者多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
  27. 如权利要求26所述的方法,其特征在于,若所述第二指示信息指示核心网网元一次性返回所述群组中所有终端设备的IP地址,所述核心网网元在确定所述群组中的所有终端设备的IP地址后,向所述能力开放网元发送第二事件通知消息,所述第二事件通知消息包括所述群组中所有终端设备的IP地址。
  28. 如权利要求23~27任一所述的方法,其特征在于,所述核心网网元为会话管理网元,所述核心网网元确定所述群组中的第一终端设备的IP地址,包括:
    所述会话管理网元接收到来自所述第一终端设备的会话建立请求后,为所述第一终端设备分配IP地址,获取所述第一终端设备的IP地址;其中,所述会话建立请求用于请求建立群组的群组会话。
  29. 如权利要求28所述的方法,其特征在于,所述核心网网元向所述能力开放网元发送第二事件通知消息之前,还包括:
    所述会话管理网元确定所述第二事件注册请求中携带的所述群组在网络层的群组标识与所述会话建立请求中携带的所述群组的群组标识一致、或所述第二事件注册请求中携带的所述群组中的终端设备的标识与所述会话建立请求中携带的所述第一终端设备的标识是否一致;
    在一致的情况下,所述会话管理网元向所述能力开放网元发送所述第二事件通知消息。
  30. 如权利要求23~27任一所述的方法,其特征在于,所述核心网网元为统一数据管理网元,所述核心网网元确定所述群组中的第一终端设备的IP地址,包括:
    所述统一数据管理网元根据所述第一终端设备的签约信息确定所述第一终端设备的IP地址。
  31. 如权利要求30所述的方法,其特征在于,所述核心网网元向能力开放网元发送第二事件通知消息之前,还包括:
    所述统一数据管理网元确定所述第二事件注册请求中携带的所述群组的群组标识与所述签约信息中的群组的群组标识一致、或所述第二事件注册请求中携带的所述群组中终端设备的标识与所述签约信息中的所述第一终端设备的标识是否一致;
    在均一致的情况下,所述会话管理网元向所述能力开放网元发送所述第二事件通知消息。
  32. 如权利要求23~31任一所述的方法,其特征在于,所述第二事件通知消息还包括下列的部分或全部:所述第一终端设备的标识和所述群组的群组标识。
  33. 一种获取终端设备互联网协议IP地址方法,其特征在于,该方法包括:
    接收来自应用功能网元的第一消息,所述第一消息中包括第一终端设备的第一IP地址、所述第一终端设备的标识和所述第一终端设备所属第一群组的群组标识;
    保存第一终端设备的标识、所述第一终端设备的所属第一群组的群组标识与所述第一终端设备的第一IP地址的对应关系。
  34. 如权利要求33所述的方法,其特征在于,所述方法还包括:
    接收来自应用功能网元的第三消息,所述第三消息中包括第一终端设备的第二IP地址、所述第一终端设备的标识和所述第一终端设备所属第二群组的群组标识;
    保存所述第一终端设备的标识、所述第一终端设备所属第二群组的群组标识与第一终端设备的第二IP地址的对应关系。
  35. 如权利要求33或34所述的方法,其特征在于,所述接收来自应用功能网元的第一消息之后,还包括:
    若需要向所述第一群组中的第一终端设备发送数据,通过用户面网元向所述第一终端设备发送所述IP报文,所述IP报文的目的端地址为所述第一终端设备的第一IP地址。
  36. 如权利要求35所述的方法,其特征在于,所述通过用户面网元向所述第一终端设备发送所述IP报文之前,还包括:
    根据所述第一终端设备的标识、所述第一终端设备的所属第一群组的群组标识获取所述第一终端设备的第一IP地址。
  37. 一种通信系统,其特征在于,所述通信系统包括能力开放网元和核心网网元;
    所述能力开放网元,用于接收来自应用功能网元的第一事件注册请求,所述第一事件注册请求用于请求获取群组中终端设备的互联网协议IP地址;向所述核心网网元发送第二事件注册请求,所述第二事件注册请求用于请求获取所述群组中终端设备的IP地址;
    所述核心网网元,用于接收所述第二事件注册请求;以及在确定所述群组中的第一终端设备的IP地址后,向所述能力开放网元发送第二事件通知消息,所述第二事件通知消息包括所述群组中的第一终端设备的IP地址;
    所述能力开放网元,还用于接收所述第二事件通知消息,向所述应用功能网元发送第一事件通知消息,所述第一事件通知消息包括所述群组中的第一终端设备的IP地址。
  38. 如权利要求37所述的系统,其特征在于,所述第一事件注册请求包括所述群组的群组标识。
  39. 如权利要求37或38所述的系统,其特征在于,所述第一事件注册请求包括所述群组中一个或多个终端设备的标识,所述群组中一个或者多个终端设备包括所述第一终端设备。
  40. 如权利要求37~39任一所述的系统,其特征在于,所述第一事件通知消息包括下列的部分或全部:所述群组中第一终端设备的标识和所述群组的群组标识。
  41. 如权利要求37~40任一所述的系统,其特征在于,所述第一事件注册请求包括第一指示信息,所述第一指示信息指示所述能力开放网元一次性返回所述群组中所有终端设备的IP地址或指示所述能力开放网元在获取到所述群组中任意一个或者多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
  42. 如权利要求41所述的系统,其特征在于,在所述第一指示信息指示能力开放网元一次性返回所述群组中所有终端设备的IP地址的情况下,所述第一事件通知消息包括所述群组中所有终端设备的IP地址。
  43. 如权利要求37~42任一所述的系统,其特征在于,所述通信系统还可以包括应用功能网元;
    所述应用功能网元,用于向所述能力开放网元发送所述第一事件注册请求;接收所述第一事件通知消息;以及向所述群组中已分配了IP地址的终端设备发送第一消息,所述第一消息中包括所述群组中的其他终端设备的IP地址、所述第一终端设备的标识以及所述群组的群组标识。
  44. 如权利要求37~43所述的系统,其特征在于,所述第二事件注册请求包括群组的群组标识。
  45. 如权利要求37~44所述的系统,其特征在于,所述第二事件注册请求还包括一个或者多个终端设备的标识。
  46. 如权利要求37~45任一所述的系统,其特征在于,所述群组的群组标识为所述群组在应用层的群组标识,所述能力开放网元向核心网网元发送第二事件注册请求时,具体用于:
    将所述群组在应用层的群组标识转换为所述群组在网络层的群组标识;向所述核心网网元发送所述第二事件注册请求,所述第二事件注册请求包括所述群组在网络层的群组标识。
  47. 如权利要求37~46任一所述的系统,其特征在于,若所述第一事件注册请求不包括群组中一个或者多个终端设备的标识,所述能力开放网元向核心网网元发送第二事件注册请求之前,用于:根据所述群组标识从统一数据管理网元获取所述群组中终端设备的标识。
  48. 如权利要求37~47任一所述的系统,其特征在于,所述群组的群组标识为所述群组在应用层的群组标识,所述群组中一个或者多个终端设备的标识为应用层标识,所述能力开放网元向核心网网元发送第二事件注册请求时,具体用于:
    将所述群组中一个或者多个终端设备的应用层标识转换为所述终端设备的网络层标识,将所述群组在应用层的群组标识转换为群组在网络层的群组标识;
    向所述核心网网元发送所述第二事件注册请求,所述第二事件注册请求包括群组中一 个或者多个终端设备的网络层标识和群组在网络层的群组标识。
  49. 如权利要求37~48任一所述的系统,其特征在于,所述第二事件注册请求包括第二指示信息,所述第二指示信息指示所述核心网网元一次性返回所述群组中所有终端设备的IP地址或指示所述核心网网元在获取所述群组中任意一个或多个终端设备的IP地址时,返回获取到的终端设备的IP地址。
  50. 如权利要求49所述的系统,其特征在于,若所述第二指示信息指示所述核心网网元一次性返回所述群组中所有终端设备的IP地址,所述第二事件通知消息包括群组中所有终端设备的IP地址。
  51. 如权利要求37~49任一所述的系统,其特征在于,若所述核心网网元为会话管理网元,所述核心网网元确定所述第一终端设备的IP地址时,具体用于:
    接收到来自所述第一终端设备的会话建立请求后,为所述第一终端设备分配IP地址,获取第一终端设备的IP地址,所述会话建立请求用于请求建立所述群组的群组会话。
  52. 如权利要求51所述的系统,其特征在于,所述核心网网元向发送第二事件通知消息时,具体用于:
    在确定所述第二事件注册请求中携带的所述群组的群组标识与所述会话建立请求中携带的群组的群组标识一致、或所述第二事件注册请求中携带的所述群组中的终端设备的标识与所述会话建立请求中携带的终端设备的标识一致后,
    向所述能力开放网元发送第二事件通知消息。
  53. 如权利要求37~49任一所述的系统,其特征在于,若所述核心网网元为统一数据管理网元,所述核心网网元确定所述第一终端设备的IP地址时,具体用于:
    根据所述第一终端设备的签约信息确定所述第一终端设备的IP地址。
  54. 如权利要求53所述的系统,其特征在于,所述核心网网元向能力开放网元发送第二事件通知消息时,具体用于:
    在确定所述第二事件注册请求中携带的所述群组的群组标识与所述签约信息中的群组的群组标识一致、或所述第二事件注册请求中携带的所述群组中终端设备的标识与所述签约信息中的终端设备的标识一致后,向所述能力开放网元发送所述第二事件通知消息。
  55. 如权利要求37~54任一所述的系统,其特征在于,所述第二事件通知消息还包括下列的部分或全部:所述第一终端设备的标识和所述群组的群组标识。
  56. 如权利要求43~55任一所述的系统,其特征在于,所述应用功能网元向所述群组中已分配了IP地址的其他终端设备发送第一消息之前,还用于:确定所述群组中已分配IP地址的其他终端设备。
  57. 如权利要求43~56任一所述的系统,其特征在于,所述应用功能网元向第一终端设备所属群组中的终端设备发送第一消息时,具体用于:通过所述终端设备对应的用户面网元向所述终端设备发送所述第一消息。
  58. 如权利要求43或56所述的系统,其特征在于,所述第一消息为应用层消息。
  59. 一种通信装置,其特征在于,用于实现如权利要求1至10任一项所述的方法。
  60. 一种通信装置,其特征在于,用于实现如权利要求11至22任一项所述的方法。
  61. 一种通信装置,其特征在于,用于实现如权利要求23至32任一项所述的方法。
  62. 一种通信装置,其特征在于,用于实现如权利要求33至36任一项所述的方法。
  63. 一种通信装置,其特征在于,包括处理器和存储器,所述存储器中存储有指令, 所述处理器执行所述指令时,使得所述装置执行权利要求1至10任一项所述的方法。
  64. 一种通信装置,其特征在于,包括处理器和存储器,所述存储器中存储有指令,所述处理器执行所述指令时,使得所述装置执行权利要求11至22任一项所述的方法。
  65. 一种通信装置,其特征在于,包括处理器和存储器,所述存储器中存储有指令,所述处理器执行所述指令时,使得所述装置执行权利要求23至32任一项所述的方法。
  66. 一种通信装置,其特征在于,包括处理器和存储器,所述存储器中存储有指令,所述处理器执行所述指令时,使得所述装置执行权利要求33至36任一项所述的方法。
  67. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1至10中任一项所述的方法。
  68. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求11至22中任一项所述的方法。
  69. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求23至32中任一项所述的方法。
  70. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求33至36中任一项所述的方法。
  71. 一种计算机芯片,其特征在于,所述芯片与存储器相连,所述芯片用于读取并执行所述存储器中存储的软件程序,执行如权利要求1到36任一项所述的方法。
  72. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1到36任一项所述的方法。
PCT/CN2020/082489 2019-03-31 2020-03-31 一种获取终端设备互联网协议ip地址方法、设备及系统 WO2020200207A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20784230.3A EP3937471A4 (en) 2019-03-31 2020-03-31 METHOD OF DETECTING THE INTERNET PROTOCOL (IP) ADDRESS OF A TERMINAL DEVICE, DEVICE AND SYSTEM
US17/491,024 US20220021642A1 (en) 2019-03-31 2021-09-30 Method for obtaining internet protocol ip address of terminal device, device, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910254751.9 2019-03-31
CN201910254751.9A CN111770207B (zh) 2019-03-31 2019-03-31 一种获取终端设备互联网协议ip地址方法、设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/491,024 Continuation US20220021642A1 (en) 2019-03-31 2021-09-30 Method for obtaining internet protocol ip address of terminal device, device, and system

Publications (1)

Publication Number Publication Date
WO2020200207A1 true WO2020200207A1 (zh) 2020-10-08

Family

ID=72664636

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/082489 WO2020200207A1 (zh) 2019-03-31 2020-03-31 一种获取终端设备互联网协议ip地址方法、设备及系统

Country Status (4)

Country Link
US (1) US20220021642A1 (zh)
EP (1) EP3937471A4 (zh)
CN (1) CN111770207B (zh)
WO (1) WO2020200207A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891303A (zh) * 2021-10-28 2022-01-04 中国联合网络通信集团有限公司 一种ip地址改变信息获取方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022170518A1 (zh) * 2021-02-09 2022-08-18 Oppo广东移动通信有限公司 一种确定终端设备的地址的方法及装置、网络设备
EP4315894A1 (en) * 2021-03-22 2024-02-07 Telefonaktiebolaget LM Ericsson (publ) Method and apparatus for exposing user equipment address information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083535A (zh) * 2006-05-30 2007-12-05 华为技术有限公司 群组业务中实现个性化服务的方法及其系统
WO2016074224A1 (zh) * 2014-11-14 2016-05-19 华为技术有限公司 一种策略与计费规则功能选择方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056140B (zh) * 2009-11-06 2013-08-07 中兴通讯股份有限公司 机器类通讯终端信息的获取方法和系统
US9596299B2 (en) * 2013-04-06 2017-03-14 Citrix Systems, Inc. Systems and methods for dynamically expanding load balancing pool
CN109548137B (zh) * 2017-08-11 2022-04-22 华为技术有限公司 会话信息管理方法和装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083535A (zh) * 2006-05-30 2007-12-05 华为技术有限公司 群组业务中实现个性化服务的方法及其系统
WO2016074224A1 (zh) * 2014-11-14 2016-05-19 华为技术有限公司 一种策略与计费规则功能选择方法和装置

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
HUAWEI ET AL.: ""Retrieval of target UE IP address for 5GLAN communication"", "3GPP TSG-SA WG2 MEETING #134 S2-1907609", 18 June 2019 (2019-06-18), XP051752576, DOI: 20200513162351PX *
HUAWEI ET AL.: ""Update to Solution 15"", "3GPP TSG-SA WG2 MEETING #129BIS S2-1812414", 20 November 2018 (2018-11-20), XP051499117, DOI: 20200513163119X *
HUAWEI ET AL.: ""Update to Solution 15: Management of 5GLAN Groups"", "3GPP TSG-SA WG2 MEETING #129 S2-1810785", 9 October 2018 (2018-10-09), XP051539734, DOI: 20200518160148X *
See also references of EP3937471A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891303A (zh) * 2021-10-28 2022-01-04 中国联合网络通信集团有限公司 一种ip地址改变信息获取方法及装置
CN113891303B (zh) * 2021-10-28 2023-07-28 中国联合网络通信集团有限公司 一种ip地址改变信息获取方法及装置

Also Published As

Publication number Publication date
CN111770207A (zh) 2020-10-13
US20220021642A1 (en) 2022-01-20
CN111770207B (zh) 2022-02-25
EP3937471A1 (en) 2022-01-12
EP3937471A4 (en) 2022-03-30

Similar Documents

Publication Publication Date Title
US11917498B2 (en) Communication method and communications apparatus
JP7013498B2 (ja) データスケジューリング方法、基地局およびシステム
WO2020200207A1 (zh) 一种获取终端设备互联网协议ip地址方法、设备及系统
US8661137B2 (en) Network-based information processing method and system, and mobility management network element
WO2017147751A1 (zh) 一种确定控制面节点的方法、装置及无线通信系统
US11212866B2 (en) Method and apparatus for providing cellular IoT service in mobile communication system
WO2018006279A1 (zh) 业务处理的方法、设备和系统
WO2011082538A1 (zh) 机器型通信中基于组的移动性优化方法和设备
WO2012113282A1 (zh) 群组的管理方法及push服务器
EP4187941A1 (en) Data transmission method, apparatus and system
KR20230008870A (ko) 통신 방법, 장치, 및 시스템
US11979247B2 (en) Message forwarding method and apparatus
WO2021189260A1 (zh) 多播通信方法及通信装置
US10999729B2 (en) Discovery method and device
US20230156436A1 (en) Data Transmission Method, Apparatus, and System
WO2023071318A1 (zh) 一种环路检测方法及装置
WO2011110022A1 (zh) 数据的传输方法、装置及系统
CA3218909A1 (en) Service data transmission method and communication apparatus
WO2021174376A1 (zh) 一种通信方法及装置
US20230239728A1 (en) Service data flow transmission method, communication apparatus, and communication system
JP7472279B2 (ja) 通信方法、装置、およびシステム
WO2023020046A1 (zh) 一种通信方法及通信装置
US20240080931A1 (en) Communication method and apparatus
US20230370897A1 (en) Service data flow transmission method, communication apparatus, and communication system
WO2023185328A1 (zh) 一种通信方法及装置

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: 20784230

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020784230

Country of ref document: EP

Effective date: 20211005