WO2020034955A1 - Communication method and communication device - Google Patents

Communication method and communication device Download PDF

Info

Publication number
WO2020034955A1
WO2020034955A1 PCT/CN2019/100418 CN2019100418W WO2020034955A1 WO 2020034955 A1 WO2020034955 A1 WO 2020034955A1 CN 2019100418 W CN2019100418 W CN 2019100418W WO 2020034955 A1 WO2020034955 A1 WO 2020034955A1
Authority
WO
WIPO (PCT)
Prior art keywords
service instance
service
message
identifier
target
Prior art date
Application number
PCT/CN2019/100418
Other languages
French (fr)
Chinese (zh)
Inventor
宗在峰
朱奋勤
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201910523684.6A external-priority patent/CN110830543B/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to AU2019321895A priority Critical patent/AU2019321895C1/en
Priority to EP19849892.5A priority patent/EP3836515B1/en
Priority to JP2021507602A priority patent/JP7196282B2/en
Priority to KR1020217007395A priority patent/KR102580499B1/en
Priority to BR112021002797-1A priority patent/BR112021002797A2/en
Publication of WO2020034955A1 publication Critical patent/WO2020034955A1/en
Priority to US17/171,539 priority patent/US11190602B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present application relates to the field of communications, and more particularly, to a communication method and a communication device.
  • a producer service instance sends a message related to user equipment to a service framework.
  • the service framework picks one out of multiple consumer service instances and sends a message related to the user equipment to the consumer service instance.
  • the same service instance is required to serve the same user equipment.
  • the above method cannot guarantee that the same service instance will serve the same user equipment during multiple message interactions.
  • two service instances communicating with the user equipment are notified to the peer to send subsequent messages related to the user equipment to itself, thereby completing the binding between the service instances.
  • the above method of directly binding service instances increases the degree of coupling between service instances and the complexity of service instance processing.
  • the application provides a communication method and a communication device, which can reduce the complexity of service instance processing.
  • a communication method including: receiving a first message sent by a first service instance, the first message including a target identifier; and based on the first message, having a binding relationship with the target identifier The second service instance sends the second message.
  • the binding between the target identifier and the service instance is used instead of the direct binding between the service instances in the prior art. It can reduce the coupling between service instances and reduce the complexity of service instance processing.
  • the foregoing service instance may be a network function in a fifth-generation (5G) mobile communication system, and may also be a service provided by a certain network function.
  • the service instance may also be a separately divided service instance independent of network functions, which is not specifically limited in the embodiment of the present application.
  • the first message is a message related to the user equipment, and the first message is used to request a second service, and the second service is a service related to the user equipment provided by the second service instance.
  • the identifier of the target service set is obtained according to the first message; according to the target An identification of a service set, selecting a third service instance from the target service set; and sending a third message to the third service instance based on the first message.
  • the target service set identifier can be used to quickly and effectively select a new service instance as the target service instance to ensure service reliability.
  • the identifier of the target service set is obtained from the first message, and the first message further includes the identifier of the target service set; or, Obtain the identifier of the target service set from the target identifier in the first message, where the target identifier includes the identifier of the target service set; or, it will be the same as the target in the first message
  • An identifier identifying a service set having a mapping relationship is determined as an identifier of the target service set.
  • the embodiment of the present application does not specifically limit the position of the cell occupied by the target service set identifier in the first message.
  • the target service set identifier may occupy cells in the target identifier, may also occupy other cells in the first message except the target identifier, or may obtain the target service according to the mapping relationship between the target identifier and the service set identifier. Collection ID and more.
  • the communication method further includes: receiving a fourth message sent by the second service instance, and the transmission agent obtains the target identifier and A binding relationship between the second service instances.
  • the service instance triggers the transmission agent to establish a binding relationship between the service instance and the target identifier by sending a fourth message.
  • the transmission agent may actively establish a binding relationship between the service instance and the target identifier without being triggered by the fourth message.
  • the fourth message is a message related to a user equipment or the fourth message is a special binding request message.
  • the fourth message carries the target identifier.
  • the communication method further includes: after receiving a fourth message sent by the second service instance, allocating the target to the second service instance Logo.
  • Using a transfer agent to assign a target identifier to a service instance can reduce the burden on the service instance and further reduce the processing complexity of the service instance.
  • the communication method further includes: when the message is a message related to a user equipment, adding the target identifier to the fourth message.
  • the transmission agent adds the target identifier to the fourth message after the target identifier is allocated, which can ensure that the first service instance can obtain the target identifier after receiving the fourth message with the target identifier added, so that When sending a message to the second service instance, the target identifier may be carried, so that the transmission agent may send the message to the second service instance according to the binding relationship between the target identifier and the service instance.
  • the fourth message carries at least one of a binding indication and a binding timer, and the binding timer is configured to be released after the binding timer expires.
  • the fourth message carries the binding indication can be understood as an explicit trigger.
  • the fourth message may not include a binding indication. This situation can be understood as an implicit trigger.
  • the transmission agent directly establishes the binding of the binding target identifier and the service instance when the fourth message can be received. relationship.
  • the binding timer By using the binding timer, the binding time between the service instance and the target identifier can be precisely controlled, so that other service instances can be selected after the binding timer expires, thereby supporting better load balancing.
  • the communication method further includes: receiving a fifth message sent by the second service instance, where the fifth message is used for requesting to release the target identifier and The binding relationship of the second service instance; or, starting a binding timer, and releasing the binding relationship between the target identifier and the second service instance when the binding timer expires.
  • the service instance By using an unbinding request or a binding timer that is initiated, the service instance notifies the transport agent to release the binding relationship between the target identifier and the service instance when it does not need to process messages related to a certain user equipment.
  • the binding relationship between the target identifier and the service instance is maintained by the transmission agent, and instead of the service instance in the prior art, the binding relationship between the service instances is directly maintained, which can further reduce the processing complexity of the service instance.
  • the service instance may initiate a debinding request under a heavy load, the service instance goes offline, or the service instance fails, and notify the transport agent to unbind the target identifier from the service instance. It is guaranteed that the services related to user equipment can be removed from the above service instances under the above circumstances.
  • the fifth message further carries indication information, and the indication information is used to instruct a transmission agent to bind the target identifier to the third service instance set.
  • the fifth message carries instruction information, and can request the target identifier to be unbound from the original service instance, and instruct the target identifier to be bound to other service instances. This completes the transfer of business load between service instances and achieves load balancing between service instances.
  • the second service instance may request to bind the target identifier to be unbound to the other service instance when the load of the other service instance is less, or the communication quality of the other service instance is better.
  • the application examples are not limited to this.
  • the target identifier is related to one or a group of user equipments.
  • the use of different granularity of target identification helps to complete different granularity of business management.
  • the target identifier may use different formats.
  • the target identifier when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transport agent, or the target The identifier may also be an identifier of a service set to which the second service instance belongs and a unique identifier within the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not done in this application.
  • the target identifier when the target identifier is related to a group of user equipment, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance Or the identifier of the service set and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
  • a single or multiple target identifiers related to user equipment may be selected according to specific needs, and the embodiment of the present application does not specifically limit when to select a single or multiple target identifiers related to user equipment.
  • the target identifier is one of the service pointers configured for the second service instance
  • the communication method further includes: receiving the first Six messages, the sixth message is used to request a service pointer to be configured for the second service instance; a sixth message response is sent to the second service instance, and the sixth message response includes configuration for the second service instance Service pointer.
  • the transfer agent configures the service pointer for the service instance, which can realize the automatic configuration of the service pointer.
  • the sixth message response includes one or more service pointers.
  • the foregoing service pointer may be a service pointer related to a single user equipment or a service pointer related to multiple user equipments, that is, one service pointer may correspond to a single user equipment or may correspond to multiple user equipments.
  • the service pointer when the above-mentioned service pointer is related to a single user equipment, the service pointer may be a range of service pointers (for example, from 1 to 100).
  • the registration request includes at least one of the following information: service instance identifier, service type, manufacturer information, service instance capacity, and service instance service Region, the network slice capability supported by the service instance, and the identifier of the service set to which the service instance belongs.
  • the registration request may also carry other information such as data network name (DNN).
  • DNN data network name
  • the method before the second service instance sends a registration request to a transmission agent, the method further includes: the second service instance discovers the transmission agent.
  • the address information of the local transport agent can be fixed in the configuration file of the second service instance in advance; or the service instance discovers the local transport agent through the discovery mechanism, such as It may be a second service instance sending a broadcast or multicast message in the network; it may also be a discovery mechanism similar to a dynamic host configuration protocol (DHCP) server.
  • DHCP dynamic host configuration protocol
  • the sixth message includes the number of service pointers applied by the second service instance, and the communication method further includes: according to the second service instance The number of applied service pointers configures a service pointer for the second service instance.
  • the number of requested service pointers carried in the sixth message enables the service instance to reasonably request the transmission agent to allocate service pointers based on its own load or other information, to ensure appropriate granularity of user equipment-related business management.
  • the communication method further includes: configuring a service pointer for the second service instance according to a capacity of the second service instance.
  • the sixth message carries the capacity of the service instance, so that the service instance can integrate the capacity of other service instances in the service set to which the second service instance belongs to configure a service pointer, and ensure proper granularity of binding and unbinding.
  • the communication method further includes: determining a service set to which the second service instance belongs; and configuring a service pointer for the second service instance such that the first The service pointers of the two service instances are different from the service pointers of other service instances in the service set.
  • assigning different service pointers to service instances in the same service set can prevent conflicts in service pointers in the service set. Allocating the same pointer to service instances in different service sets can avoid the waste of service pointer resources while not causing conflicts in service pointers for the entire network.
  • the target identifier includes one of service pointers configured for the second service instance
  • the communication method further includes: receiving the second service instance's A seventh message, where the seventh message includes a service pointer of the second service instance, so that a transport agent binds the second service instance and the service pointer.
  • the service pointer in the seventh message may be a service pointer configured for the second service instance in advance, which can ensure that the service pointer is allocated for the configuration of the second service instance in advance according to the needs.
  • the communication method further includes: when a service pointer of the second service instance and other service instances in a service set to which the second service instance belongs are When the service pointer conflicts, reconfigure the service pointer for the second service instance; and send a seventh message response to the second service instance, where the seventh message response includes the service pointer reconfigured for the second service instance.
  • the transfer agent reassigns the service pointer to the service instance to ensure the uniqueness of the service pointer in the same service set.
  • the target identifier is located in a header of the HTTP message.
  • HTTP Hypertext Transfer Protocol
  • the target identifier is located in the header of the HTTP message to facilitate identification and processing by the transport agent.
  • the first message may be the above-mentioned HTTP message, or may be an AMQP message, or may be a message of other formats.
  • the embodiment of the present application does not specifically limit the first message itself.
  • a communication method in a second aspect, includes: a second service instance sends a fourth message to a transmission agent, the fourth message is used to trigger the transmission agent to establish the second service instance and a target identifier. Binding relationship, wherein the target identifier is related to the user equipment; the second service instance receives a second message related to the user equipment forwarded by the transport agent, and the second message includes the target identifier.
  • the fourth message is a message related to user equipment, or the fourth message is a special binding request.
  • the fourth message includes at least one of the target identifier and a binding timer.
  • the fourth message carries the binding indication can be understood as an explicit trigger.
  • the fourth message may not include a binding indication, and this situation may be understood as an implicit trigger.
  • the binding timer By using the binding timer, the binding time between the service instance and the target identifier can be precisely controlled, so that other service instances can be selected after the binding timer expires, thereby supporting better load balancing.
  • the communication method further includes: the second service instance sending the target identifier to the first service instance.
  • the communication method further includes: the transmission agent inserts the target identifier in a fourth message, so as to send the target identifier to the first Service instance.
  • the first service instance can obtain the target identifier of the second service instance, so that in the next message interaction, the first service instance can carry the target identifier in a message related to the user equipment, thereby sending the message related to the user equipment to the last time
  • the second service instance used by the message interaction achieves the purpose that the same service instance serves the same user.
  • the communication method further includes: sending, by the second service instance, a fifth message to the transmission agent, where the fifth message is used to request to release the The binding relationship between the target identifier and the second service instance.
  • the unbinding request is initiated, so that the service instance notifies the transport agent to release the binding relationship between the target identifier and the service instance when it does not need to process a message related to a certain user equipment.
  • the transport agent maintains the binding relationship between the target identifier and the service instance. Instead of directly maintaining the service instance in the prior art, the binding relationship between the service instances can further reduce the processing complexity of the service instance.
  • the service instance may initiate a debinding request under heavy load, service instance offline, or service instance failure, and notify the transport agent to unbind the target identifier from the service instance.
  • the service related to the user equipment can be removed from the above service instance.
  • the fifth message further carries indication information, where the indication information is used to instruct a transport agent to bind the target identifier to the third service instance .
  • the fifth message carries instruction information, which can request the target identifier to be unbound from the original service instance, and instruct the target identifier to be bound to other service instances, thereby completing the transfer of business load between service instances and realizing the service instance. Load balancing between.
  • the target identifier is related to one or a group of user equipments.
  • the target identifier is one of the service pointers configured for the second service instance
  • the communication method further includes: The transmission agent sends a sixth message, the sixth message is used to register the second service instance, the sixth message includes a service pointer of the second service instance, and the second service instance receives the transmission agent A sixth message response is sent, and the sixth message response includes a service pointer configured for the second service instance.
  • Requesting the transfer agent to configure service pointers for service instances in advance can enable automatic configuration of service pointers.
  • the registration request includes a number of service pointers applied by the second service instance.
  • the number of requested service pointers carried in the registration request enables the service instance to reasonably request the transmission agent to allocate service pointers based on its own load or other information, to ensure appropriate granularity of business management related to user equipment. For example, when the service instance feels that its own load is heavy, it may request the transmission agent to allocate more service pointers to itself to refine the management granularity. In this way, the number of user equipments corresponding to a single service pointer can be reduced accordingly, ensuring proper granularity of user equipment-related service management.
  • the communication method further includes: the second service instance sends a seventh message to the transmission agent, and the seventh message includes the second service The service pointer that the instance configures for itself.
  • the service pointer in the registration request may be a service pointer manually configured for the second service instance in advance, which can ensure that the service pointer is allocated for the configuration of the second service instance in advance according to the needs.
  • the first message is a Hypertext Transfer Protocol HTTP message
  • the target identifier is located in a header of the HTTP message.
  • the target identifier is located in the header of the HTTP message to facilitate identification and processing by the transport agent.
  • the first message may be the aforementioned HTTP message or an AMQP message, and the embodiment of the present application does not specifically limit the first message itself.
  • a communication method includes: a first service instance receives a target identifier related to a user equipment and a second service instance, and the first service instance sends The message related to the second service instance carries the target identifier, and the target identifier is used to send the message to the second service instance.
  • the first service instance receives the target identifier from the second service instance.
  • the first service instance receives the target identifier from a transmission agent related to the second service instance.
  • a communication device for performing the foregoing first aspect or the method in any possible implementation manner of the first aspect.
  • the device includes a unit for performing the foregoing first aspect or the method in any possible implementation manner of the first aspect.
  • another communication device for performing the method in the second aspect or any possible implementation manner of the second aspect.
  • the device includes a unit for performing the method in the foregoing second aspect or any possible implementation manner of the second aspect.
  • another communication device for performing the foregoing third aspect or the method in any possible implementation manner of the third aspect.
  • the device includes a unit for performing the foregoing third aspect or the method in any possible implementation manner of the third aspect.
  • a communication device includes a transceiver and a processor.
  • the transceiver communicates with the processor through an internal connection path.
  • the processor is used to control the receiver to receive signals and to control the transmitter to send signals.
  • the communication device further includes a memory, wherein the transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control
  • the receiver receives the signal and controls the transmitter to send the signal, so that the device executes the method in the first aspect or any possible implementation manner of the first aspect.
  • another communication device includes a transceiver.
  • This transceiver is used to receive / transmit signals.
  • the communication device further comprises a processor.
  • the transceiver and the processor communicate with each other through an internal connection.
  • the processor is used to execute instructions, control the receiver to receive signals, and control the transmitter to send signals.
  • the communication device further includes a memory.
  • the transceiver, the memory, and the processor communicate with each other through an internal connection path.
  • the memory is used to store instructions.
  • the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and to control the transmitter to send signals.
  • the device includes a transceiver and a processor. This transceiver is used to receive / transmit signals.
  • the communication device further comprises a processor.
  • the transceiver and the processor communicate with each other through an internal connection.
  • the processor is used to execute instructions, control the receiver to receive signals, and control the transmitter to send signals.
  • the communication device further includes a memory.
  • the transceiver, the memory, and the processor communicate with each other through an internal connection path.
  • the memory is used to store instructions.
  • the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and to control the transmitter to send signals.
  • an embodiment of the present application provides a communication system including one or more of a transmission agent and a service instance.
  • the transmission agent is configured to perform the method described in the first aspect or any possible design of the first aspect, or the method performed by the transmission agent in the solution provided in the embodiment of the present application.
  • the service instance is used to execute the second aspect or the service instance may be used to execute the method described in the second aspect or any possible implementation manner of the second aspect, the third aspect, or any one of the third aspects
  • the method may be implemented in one of the possible implementation manners, or the method performed by the service instance in the solution provided in the embodiment of the present application.
  • the system further includes other devices, such as an access network and / or a DN network element, that interact with any one of the devices in the service instance in the solution provided in the embodiments of the present application. .
  • a communication method including: a first service instance receiving a first message related to a first session sent by a third service instance or a fourth service instance, the first message including a target identifier; The first service instance determines a second service instance that provides services for the first session according to the target identifier; the first service instance sends a second service instance related to the first session to the second service instance Message.
  • the first service instance determines the service instance serving the first session according to the target identifier, which improves the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be provided with the previous session for the first session.
  • the service instance of the service is different, so that the failure of the third service instance prevents the first session from being interrupted.
  • the first message includes binding mode indication information, and the binding mode indication information is used to indicate the first session and the third session.
  • a service instance is bound, or is bound to a target service set, and the target service set includes the second service instance and the third service instance.
  • the first service instance can determine a mode for selecting a service instance.
  • the target identifier includes an identifier of the third service instance.
  • the method further includes:
  • the third message includes backup instruction information
  • the backup instruction information is used to indicate that the second service instance is the third service instance Providing a backup or the second service instance providing a backup for a first session group served by the third service instance; the first session group includes the first session; and the first service instance according to the target identifier
  • the second service instance determined to provide service for the first session includes: when the third service instance is unavailable, the first service instance determines the second service instance according to the backup instruction information and the target identifier.
  • the first service instance may use the service instance that provides backup in the first session as a candidate service instance.
  • the backup service instance provides services for the first session, which can prevent the first session from being interrupted when the third service instance fails, and improve the user experience.
  • the first service instance determines, according to the target identifier, a second service instance that provides services for the first session, including: the first A service instance obtains an identifier of the target service set according to the target identifier; the first service instance determines the second service instance from the target service set according to the target service set identifier, and the target A service set includes the second service instance, the third service instance, and the fourth service instance.
  • the service instance that provides services for the first session is determined according to the identifier of the target service set, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be compared with the service instance that previously provided services for the first session.
  • the service instances are the same or different, so that the first session is not interrupted due to the unavailability of the service instances.
  • the first service instance determining the second service instance from the target service set according to the identifier of the target service set includes: The first service instance sends an identifier of the target service set to a network storage function NRF network element, and the first service instance receives the identifier of the second service instance sent by the NRF network element to determine the second service instance. Service instance.
  • determining that the service instance provides services for the first session can reduce the requirements for the storage capacity and processing capacity of the first service instance.
  • the method includes: the first service instance receives first information sent by a service instance in the target service set, the first information Including the identifier of the service instance and the identifier of the target service set; the first service instance determining the second service instance from the target service set according to the identifier of the target service set includes: the first A service instance determines a second service instance according to the identifier of the target service set and the first information.
  • the first service instance determines the service instance that provides services for the first session according to the received target service set and the identity of one or more service instances included in the target service set, which can reduce the first service instance to other network elements in the system. It does not need to deploy additional network elements, such as Domain Name Resolution Server (DNS) or NRF, and can reduce system latency.
  • DNS Domain Name Resolution Server
  • the obtaining, by the first service instance, the identifier of the target service set according to the target identifier includes: the first service instance obtains the identifier from the target And obtain the identifier of the target service set from the identifier, where the target identifier includes the identifier of the target service set; or the target identifier includes the identifier of the third service instance, and the first service instance is based on the first service instance Three service instance identities, to obtain the identity of the target service set; the target service set includes the third service instance.
  • the target identifier includes an identifier of the first conversation group, the first conversation group includes the first conversation, and the first service
  • the instance determining a second service instance that provides services for the first session according to the target identifier includes: the first service instance sends an identifier of the first session group to a network storage function NRF network element; the first A service instance receives the identifier of the second service instance sent by the NRF network element to determine the second service instance.
  • determining the service instance that provides services for the first session can avoid the service instance selected by the first service instance and other network elements in the system caused by arbitrarily selecting the service instance in the target service set, such as In the access management function AMF network element, the selected service instance is different, thereby causing an error in the state of the first session.
  • the first service instance is a user plane function UPF network element
  • the second service instance is a third service instance
  • the fourth The service instance is an SMF network element with session management function.
  • a communication device including a processor and a communication interface.
  • the communication interface is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier.
  • the processor is configured to determine a second service instance that provides services for the first session according to the target identifier.
  • the communication interface is further configured to send a second message related to the first session to the second service instance.
  • the service instance that provides services for the first session is determined according to the target identifier, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be different from the service instance that previously provided services for the first session. Therefore, the first session is interrupted due to the failure of the third service instance.
  • the first message includes binding mode indication information
  • the binding mode indication information is used to indicate that the first session and the third session A service instance is bound, or is bound to a target service set, and the target service set includes the second service instance and the third service instance.
  • the communication device can determine a method of selecting a service instance.
  • the target identifier includes an identifier of the third service instance.
  • the communication interface is further configured to receive a third message sent by the third service instance, where the third message includes backup indication information, and the backup The indication information is used to instruct the second service instance to provide a backup for the third service instance or the second service instance to provide a backup for a first conversation group served by the third service instance; the first conversation group includes The first session; the processor is configured to: when the third service instance is unavailable, determine the second service instance according to the backup instruction information and the target identifier.
  • the service instance that provides backup in the first session can be used as a candidate service instance.
  • the backup service instance provides services for the first session, which can prevent the first session from being interrupted when the third service instance fails, and improve the user experience.
  • the processor is further configured to obtain an identifier of the target service set according to the target identifier; the processor is further configured to, according to the target service set Identifying the second service instance from the target service set, where the target service set includes the second service instance, the third service instance, and the fourth service instance.
  • the service instance that provides services for the first session is determined according to the identifier of the target service set, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be compared with the service instance that previously provided services for the first session.
  • the service instances are the same or different, so that the first session is not interrupted due to the unavailability of the service instances.
  • the communication interface is further configured to send an identifier of the target service set to a network storage function NRF network element, and the communication interface is further configured to receive the NRF The identifier of the second service instance sent by the network element to determine the second service instance.
  • determining that the service instance provides services for the first session can reduce the requirements for the storage capacity and processing capacity of the first service instance.
  • the communication interface is further configured to receive first information sent by a service instance in the target service set, where the first information includes the service instance And an identifier of the target service set; the processor is configured to determine the second service instance according to the target identifier and the first information.
  • determining the service instance that provides services for the first session can reduce the dependency on other network elements in the system without the need to deploy additional network elements , such as DNS or NRF, and can reduce system latency.
  • the obtaining unit is further configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes the target service The identifier of the set; or, the obtaining unit is further configured to: the target identifier includes the identifier of the third service instance; and the processor is further configured to acquire the identifier of the target service set according to the identifier of the third service instance ; The target service set includes the third service instance.
  • the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation.
  • the communication interface is further configured to send the identifier of the first session group to a network storage function NRF network element; the communication interface is further configured to receive the identifier of the second service instance sent by the NRF network element to determine the Second service instance.
  • determining the service instance that provides services for the first session can avoid the selected service instance and other network elements in the system caused by arbitrarily selecting the service instance in the target service set, such as access management functions For the AMF network element, the selected service instance is different, which causes an error in the state of the first session.
  • the communication device is a user plane function UPF network element
  • the second service instance, the third service instance, and the fourth service instance are sessions.
  • a communication device including a transceiver unit and a determination unit.
  • the transceiver unit is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier.
  • the determining unit is configured to determine a second service instance that provides a service for the first session according to the target identifier.
  • the transceiver unit is further configured to send a second message related to the first session to the second service instance.
  • the first message includes binding mode indication information
  • the binding mode indication information is used to indicate that the first session and the third session Service instance binding, or binding to a target service set, the target service set includes the second service instance, the third service instance, and the fourth service instance.
  • the target identifier includes an identifier of the third service instance.
  • the transceiver unit is further configured to receive a third message sent by the third service instance, where the third message includes backup indication information, and the backup The indication information is used to instruct the second service instance to provide a backup for the third service instance or the second service instance to provide a backup for a first conversation group served by the third service instance; the first conversation group includes The first session; when the third service instance is unavailable, the determining unit is configured to determine the second service instance according to the backup instruction information and the target identifier.
  • the communication device further includes an obtaining unit, where the obtaining unit is configured to obtain an identifier of the target service set according to the target identifier.
  • the determining unit is configured to determine the second service instance from the target service set according to an identifier of the target service set, where the target service set includes the second service instance and the third service instance And the fourth service instance.
  • the transceiver unit is further configured to send the identifier of the target service set to a network storage function NRF network element.
  • the transceiver unit is further configured to receive the identifier of the second service instance sent by the NRF network element to determine the second service instance.
  • the transceiver unit is further configured to receive first information sent by a service instance in the target service set, where the first information includes an identifier of the service instance And the identifier of the target service set; the determining unit is configured to determine the second service instance according to the identifier of the target service set and the first information.
  • the obtaining unit is configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes an identifier of the target service set .
  • the obtaining unit is configured to, when the target identifier includes the identifier of the third service instance, acquire according to the identifier of the third service instance.
  • the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation.
  • the transceiver unit is further configured to send the identifier of the first conversation group to a network storage function NRF network element.
  • the transceiver unit is further configured to receive the identifier of the second service instance sent by the NRF network element to determine the second service instance.
  • the communication device is a user plane function UPF network element
  • the second service instance, the third service instance, and the fourth service instance are sessions Management function SMF network element.
  • a fourteenth aspect provides a communication method, including a third service instance sending a first message related to a first session to the first service instance, the first message includes a target identifier, and the target identifier is used to indicate the The first service instance determines a second service instance, which is used to provide a service for the first session.
  • the first message includes binding mode indication information
  • the binding mode indication information is used to indicate that the first session is bound to the third service instance. Or bound to a target service set, where the target service set includes the second service instance and the third service instance.
  • the target identifier includes an identifier of the third service instance.
  • the third service instance receives capability indication information sent by the first service instance or a network storage function NRF network element, and the capability indication information is used to indicate all
  • the first service instance supports load balancing based on a target service set, and the target service set includes the second service instance and the third service instance.
  • the third service instance sends the identifier of the target service set and the identifier of the third service instance to the first service instance, and the target service The set includes the second service instance and the third service instance.
  • the third service instance sends backup instruction information to the first service instance, and the backup instruction information is used to indicate that the second service instance is the third service instance Providing a backup, or providing a backup for a first session group served by the second service instance, the first session group including the first session.
  • a communication device for performing the method in the fourteenth aspect or any possible implementation manner of the fourteenth aspect.
  • the device includes a unit for performing the method in the fourteenth aspect or any possible implementation of the fourteenth aspect.
  • a communication device in a sixteenth aspect, includes a transceiver and a processor.
  • the transceiver communicates with the processor through an internal connection path.
  • the processor is used to control the receiver to receive signals and to control the transmitter to send signals.
  • the communication device further includes a memory, wherein the transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control
  • the receiver receives the signal and controls the transmitter to send the signal, so that the device executes the method in the fourteenth aspect or any one of the possible implementation manners of the fourteenth aspect.
  • a communication system including a first service instance, where the first service instance is configured to execute the method described in the eleventh aspect or any one of the possible implementation manners of the eleventh aspect, or the present invention The method executed by the first service instance in the solution provided in the application embodiment.
  • the system may further include a third service instance, and the third service instance is used to implement the fourteenth aspect or any one of the fourteenth possible implementation manners.
  • the system may further include other devices that interact with the first service instance and / or the third service instance in the eleventh aspect and the fourteenth aspect, such as An access management function network element.
  • the access management function network element may be used to execute a method performed by the access management function network element in the solution provided in the embodiment of the present application.
  • a computer program product includes computer program code that, when the computer program code is executed by a computer, causes the computer to execute a method in any possible implementation manner of any of the foregoing aspects. .
  • a computer-readable medium for storing a computer program, the computer program including instructions for performing a method in any possible implementation of any of the above aspects.
  • a communication chip in which instructions are stored that, when run on a computer device, cause the communication chip to execute a method in any possible implementation manner of any of the above aspects.
  • FIG. 1 is a schematic diagram of a 5G system architecture according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a service framework provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a communication method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a communication method according to another embodiment of the present application.
  • FIG. 5 is a schematic diagram of a communication method according to another embodiment of the present application.
  • FIG. 6 is a schematic diagram of a communication method according to another embodiment of the present application.
  • FIG. 7 is a schematic diagram of a communication method according to another embodiment of the present application.
  • FIG. 8 is a schematic diagram of a communication method according to another embodiment of the present application.
  • FIG. 9 is a schematic diagram of a communication method according to another embodiment of the present application.
  • FIG. 10 is a schematic diagram of a communication method according to another embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a transmission agent according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a service example provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a transmission agent according to another embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a service example provided by another embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a communication device according to another embodiment of the present application.
  • a service-based network architecture 100 provided by an embodiment of the present application includes multiple network functions (NF):
  • Session management network element It is mainly used for session management, terminal equipment's Internet Protocol (IP) address allocation and management, selection of endpoints that can manage user equipment plane functions, policy control, or charging function interfaces, and Downlink data notification, etc.
  • IP Internet Protocol
  • the session management network element may be a session management function (SMF) network element.
  • SMF session management function
  • the session management function network element may still be an SMF network element or have another name. The application does not limit this.
  • Nsmf is a service-based interface provided by SMF. SMF can communicate with other network functions through Nsmf.
  • Access management network element It is mainly used for mobility management and access management, etc. It can be used to implement functions other than session management in the mobility management entity (MME) function, such as legal monitoring , Or access authorization (or authentication).
  • the access management network element may be an access management function (AMF) network element.
  • AMF access management function
  • the access management network element may still be an AMF network element, or Other names are not limited in this application.
  • Namf is a service-based interface provided by AMF. AMF can communicate with other network functions through Namf.
  • Authentication service network element mainly used for user authentication.
  • the authentication service network element may be an authentication service function (AUSF) network element.
  • AUSF authentication service function
  • the authentication service network element may still be an AUSF network element or have another name. This application This is not limited. Nausf is a service-based interface provided by AUSF. AUSF can communicate with other network functions through Nausf.
  • Network open network element used to securely open to the outside the services and capabilities provided by the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) network functions.
  • the network open network element may be a network open function (NEF) network element.
  • the network open function network element may still be an NEF network element or have another name. The application does not limit this.
  • Nnef is a service-based interface provided by NEF. NEF can communicate with other network functions through Nnef.
  • Network storage network element It is used to save the description information of network functional entities and the services they provide, as well as support service discovery, network element entity discovery, etc.
  • the network storage network element may be a network storage function (NRF) network element.
  • NEF network storage function
  • the network storage function network element may still be an NEF network element or have another name. The application does not limit this.
  • Nnrf is a service-based interface provided by NRF. NRF can communicate with other network functions through Nnrf.
  • Policy control network element a unified policy framework for guiding network behavior, providing policy rule information for control plane function network elements (such as AMF, SMF, etc.).
  • the policy control network element may be a policy control function (PCF) network element.
  • PCF policy control function
  • future communications such as 6G communication, the policy control function network element may still be an NEF network element or have another name.
  • Npcf is a service-based interface provided by PCF, and PCF can communicate with other network functions through Npcf.
  • 7Data management network element It is used to handle user identification, access authentication, registration, or mobility management.
  • the data management network element may be a unified data management (UDM) network element.
  • UDM unified data management
  • the data management network element may still be a UDM network element or have another name. This application This is not limited.
  • Nudm is a service-based interface provided by UDM. UDM can communicate with other network functions through Nudm.
  • Application network element used for application-affected data routing, access to network open functions, or interaction with the policy framework for policy control.
  • the application network element may be an application function (AF) network element.
  • AF application function
  • future communications such as 6G communication
  • the application network element may still be an AF network element or have another name, which is not limited in this application.
  • Naf is a service-based interface provided by AF. AF can communicate with other network functions through Naf.
  • UE User equipment
  • MS mobile stations
  • terminals terminals
  • UE User equipment
  • soft terminals etc., such as water meters, electricity meters, sensors, etc.
  • R radio access network
  • R AN radio access network (radio access network (R) AN) network element: used to provide network access functions for authorized user equipment in a specific area, and can use different quality based on the user equipment level, business needs, etc. Transmission tunnel.
  • R radio access network
  • the RAN can manage wireless resources, provide access services for terminal equipment, and complete the transfer of control signals and user equipment data between the terminal and the core network.
  • the RAN can also be understood as a base station in a traditional network.
  • User plane function (UPF) network element used for packet routing and forwarding, or quality of service (QoS) processing of user plane data.
  • the user plane network element may be a user plane function (UPF) network element.
  • the user plane network element may still be a UPF network element or have another name. This application This is not limited.
  • Data network (DN) network element A network used to provide data transmission, such as the Internet network.
  • the DN network element may be data network authentication, authorization, and accounting (data network authentication, authorization, accounting), or may be an application server (application function).
  • network elements may be network elements in hardware devices, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (for example, a cloud platform).
  • the N1 interface in Figure 1 is the reference point between the UE and the AMF; the N2 interface is the reference point between the RAN and the AMF, and is used for non-access stratum (NAS) messages and Next Generation Application Protocol Protocol, NGAP) messages, etc .; N3 interface is the reference point between RAN and UPF, used to transmit user plane data, etc .; N4 interface is the reference point between SMF and UPF, used to transmit tunnels such as N3 connections. Identification information, data cache indication information, and downlink data notification messages; N6 interface is a reference point between UPF and DN, and is used to transmit user plane data.
  • NAS non-access stratum
  • NGAP Next Generation Application Protocol Protocol
  • the foregoing network architecture 100 is merely a network architecture described from the perspective of a service architecture.
  • the application scenarios of the embodiments of the present application are not limited to this, and any network architecture capable of implementing the foregoing network functions is applicable to the embodiments of the present application.
  • the service example provided in this embodiment of the present application may be the network function in FIG. 1, for example, it may be a session management network element, an access management network element, a policy control network element, and so on.
  • the access management network element as AMF
  • the session management network element as SMF
  • the policy control network element as PCF as examples. That is, the UPF network elements described later in this application can be replaced with user plane network elements, and the SMF network elements can be replaced with session management network elements.
  • a producer service instance taking AMF as an example, sends a message related to the user equipment to a service framework (the service framework may include the NRF in FIG. 1 or other network functions).
  • the service framework selects a service instance from a plurality of consumer service instances capable of providing the same function. For example, one SMF may be selected from multiple SMFs, and a message related to the user equipment may be sent to the SMF. In this way, the interaction between the producer service instance and the consumer service instance about the user equipment's messages is completed.
  • the same service instance is required to serve the same user equipment.
  • the prior art directly binds two service instances that are communicating.
  • the two service instances AMF and SMF are processing a session management process regarding a certain user equipment.
  • the AMF and the SMF mutually notify the peer end that subsequent messages related to the user equipment are sent to the other party, thereby achieving binding between the two service instances.
  • the binding implemented by the above method will increase the complexity of service instance processing.
  • the above problems are particularly prominent in the concurrent scenario. For example, multiple processes related to the user equipment are being performed between the AMF and multiple SMFs: the AMF and the first SMF are performing the session-related processes regarding the user equipment, while the AMF and the second SMF are performing the user equipment Mobility related processes.
  • the first SMF releases the binding with the AMF, and decides that subsequent messages related to the user equipment are no longer sent to the AMF.
  • the process between the AMF and the second SMF has not ended, so the AMF does not release the context of the user equipment for the time being.
  • the first SMF may send the message to other AMFs, which may cause the message to be redirected so that the message is finally sent to the original AMF. This complicates the interaction between service instances.
  • FIG. 2 is a schematic diagram of a service framework provided by an embodiment of the present application.
  • the service framework shown in FIG. 2 includes NRF 210, transmission agent 220, transmission agent 230, and service set 240-service set 270.
  • the service instances in the same service set in FIG. 2 can provide the same function, and the service instances in different service sets can provide the same function or different functions.
  • the service instance 241 and the service instance 242 in the service set 240 shown in FIG. 2 may provide the same function.
  • both may be SMF, or both may be AMF.
  • the service set 240 and the service set 250 may both be SMF sets, and the service set 260 and the service set 270 may both be AMF sets.
  • the service set may have a service set identifier, for example, it may be an FQDN, an IP address, an ID of the service set, or another custom identifier.
  • the embodiment of the present application does not specifically limit the type of the service set identifier.
  • Each service instance in a service collection can have a target ID.
  • the target identifier may use different formats. For example, when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transmission agent, or the target identifier may also be Is the identifier of the service set to which the second service instance belongs and the unique identifier within the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not limited in this application; when When the target identifier is related to a group of user equipments, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance, or The identifier of the service set and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
  • a communication interface can exist between the transport agent and the service instance.
  • the transmission agent 220 may perform message interaction with the service instances in the service set 240 through the I1 interface. For example, when the message received by the transmission agent 220 includes the target service set identifier, the transmission agent 220 determines whether there is a direct interface between the transmission agent 220 and the target service set according to the target service set identifier in the message. Assuming that the target service set identifier in the above message is the service set identifier of the service set 240, the transmission agent 220 determines whether there is a direct interface between itself and the target service set 240. Due to the direct interface between the two, the transmission agent can Select a target service instance from the set 240 and send a message to the target service instance.
  • the transmission agents can also perform message interaction.
  • the transmission agent 230 and the transmission agent 220 can perform message interaction through the interface I2.
  • the interface between the transfer agents can be used to forward messages to the target service instance.
  • the transmission proxy provided in the embodiment of the present application may be a network function re-divided in the service framework.
  • the transmission proxy may be a reverse HTTP proxy (HTTP Reverse Proxy).
  • HTTP Reverse Proxy HTTP Reverse Proxy
  • the transport agent can also be deployed in a data center with the service instance where the interface exists.
  • the service instance where the transport agent interfaces with it can also be deployed in different data centers. This embodiment of the present application does not specifically limit this.
  • service sets can be deployed across multiple data centers, that is, multiple service instances in a service set can be deployed in different data centers. At this time, each data center deployed in the service set can be deployed One transport agent instance.
  • the transport agent instances deployed in multiple data centers make up the aforementioned transport agent.
  • the transmission agent provided in the embodiment of the present application can also support the registration and discovery functions of the local service instance.
  • the transmission agent can bind the service instance to the target identifier.
  • the service framework provided by the embodiment of the present application may further include NRF 210, and the transfer agent may sometimes register information about the service set and service instance to NRF 210.
  • NRF 210 can communicate with the transport agent through the I3 interface.
  • the transmission agent registers the address information of multiple transmission agent instances into the NRF 210 so that the NRF 210 can select different transmission agent instances for different user devices. This supports load sharing of service sets between different data centers, and reduces data path roundabouts caused by the same forwarding agent forwarding data.
  • the service framework shown in FIG. 2 is only an example, and the structure of the service framework may also have many variations.
  • a transport agent may exist in the service framework.
  • the transport agent may integrate the NRF and the transport agent in FIG. 2 described above. It can also include the service instance and NRF only in the service framework.
  • the NRF integrates the functions of the NRF and the transmission agent in Figure 2 and so on.
  • the function responsible for the registration and discovery of service instances in the transport agent and the function responsible for message forwarding in the transport agent may be two separate entities.
  • the communication method shown in FIG. 3 includes steps 310-320. Each step in FIG. 3 is described in detail below:
  • Step 310 Receive a first service instance and send a first message, where the first message includes a target identifier.
  • the service example provided in this embodiment of the present application may be a network function in FIG. 1, and may be, for example, AMF, SMF, PCF, and the like. It may also be one of multiple service instances divided by network functions. With the development of technology, service instances may also exist independently of network functions, which are not specifically limited in the embodiments of the present application.
  • the first message may be a message related to the user equipment sent by the first service instance.
  • the first message may be a message in a session-related process, a message in a mobility-related process, and so on.
  • the first message carries a target identifier
  • the target identifier may use different formats.
  • the target identifier may be at least one of an IP address and a port number of a transport agent, or The target identifier may also be an identifier of a service set to which the second service instance belongs and a unique identifier within the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent.
  • the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and the second service.
  • the identifier of the instance, or the identifier of the service set and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
  • the network element receiving the first message in step 310 may be a transmission agent in the service framework, and of course, it may be another network element capable of providing a transmission agent function, which is not specifically limited in this embodiment of the present application.
  • the first service instance may further receive a target identifier related to the user equipment, so that before or when step 310 is performed, the first message carries the target identifier.
  • the SMF may receive the target identifier sent by the AMF before sending the first message.
  • the SMF may obtain the target identifier sent by the AMF through a session establishment process with the AMF, and store the target identifier in the context of the user equipment. So that the SMF may obtain the target identifier related to the user equipment from the context of the user equipment when it subsequently needs to send a message to the AMF, and carry the above target identifier in the first message.
  • the first message may be an HTTP message, an AMQP message, or the like, which is not specifically limited in this embodiment of the present application.
  • step 330 the transmission agent sends a second message to the second service instance that has a binding relationship with the target identifier based on the first message.
  • a binding relationship may exist between the target identifier and the second service instance, that is, a corresponding service instance may be found according to the target identifier.
  • the target identifier is a service pointer
  • the target service instance can be found according to the correspondence between the service pointer and the service instance.
  • the target identifier may be located at the head of the HTTP message, which is convenient for the transmission agent to identify and process the target identifier.
  • an optional HTTP header called a target identifier may be added.
  • the new header is called an exemplary identifier here, and the specific name of the newly defined HTTP header is not specified in this embodiment. .
  • the target identifier can also be located in the network tag field (Cookie) of the HTTP message.
  • the HTTP message may include a message body, and may also include a uniform resource identifier (URI), a selection parameter, and the like.
  • the message body can also be called the message body.
  • the message body may include parameters related to services provided by the second service instance.
  • the selection parameter may be used to instruct the transport agent to determine a second service instance and send a message to the second service instance.
  • the communication method shown in FIG. 3 may further include step 320 before step 330.
  • the transport agent searches for a service instance that has a binding relationship with the target identifier. If the transmission agent finds that the service instance that has a binding relationship with the target identifier is the second service instance, the transmission agent sends the second message to the second service instance based on the first message.
  • the second message may be completely the same as the first message.
  • the transmission agent directly forwards the first message as the second message to the second service instance according to the target identifier in the first message.
  • the second message may be different from the second message.
  • the transmission agent may modify the first message and send the modified first message to the second service instance as the second message. For example, the header of the first message is changed, the message body is kept unchanged, a second message is formed, and the second message is sent to the second service instance, and the like is not specifically limited in this embodiment of the present application.
  • the binding relationship between the target identifier and the service instance may be stored in the transport agent in advance.
  • the transmission agent receives the first message, it can be found whether there is a service instance with a binding relationship with the target identifier according to the target identifier in the first message.
  • other network elements such as NRF or data storage unit
  • the transmission agent sends the first message to the network according to the target identifier in the first message. Meta query corresponding service instance.
  • the network element queries the binding relationship between the target identifier and the service instance, and notifies the transmission agent of the result.
  • the transmission agent forwards the message to the target service instance, and so on.
  • the network element for finding the binding relationship is not specifically limited.
  • Using the binding between the target identifier and the service instance instead of the direct binding between service instances in the prior art can reduce the coupling between service instances and reduce the complexity of service instance processing.
  • the transmission agent cannot find the service instance with which it has a binding relationship according to the target identifier. At this time, the transmission agent can obtain the identification of the target service set according to the first message, select other service instances from the set, and send the first message to the selection Service instance.
  • FIG. 4 is a schematic diagram of a communication method according to another embodiment of the present application.
  • the method corresponding to FIG. 4 includes steps 410-430. Steps 410-430 are described below:
  • Step 410 The transmission agent receives a first message sent by the first service instance, where the first message includes a target identifier.
  • Step 410 corresponds to step 310 in FIG. 3 described above.
  • the first service instance may also perform message interaction with the second service instance to obtain the target identifier of the second service instance, and details are not described herein again.
  • Step 420 The transport agent searches for a service instance corresponding to the target identifier. When there is no service instance having a binding relationship with the target identifier, step 430 is performed.
  • Step 430 When there is no service instance with a binding relationship with the target identifier, the transmission agent obtains the identifier of the target service set according to the first message. A third service instance is selected from the target service set according to the identity of the target service set. Based on the first message, the transport agent sends a third message to the third service instance.
  • the identifier of the target service set is an identifier of a service set to which the second service instance belongs, that is, the third service instance and the second service instance belong to the same service set.
  • the third message may be exactly the same as the first message.
  • the transmission agent directly forwards the first message as the third message to the second service instance according to the target identifier in the first message.
  • the third message may be different from the third message.
  • the transmission agent may modify the first message and send the modified first message to the second service instance as the third message. For example, the header of the first message is changed, the message body is kept unchanged, a third message is formed, and the third message is sent to the second service instance, and the like is not specifically limited in this embodiment of the present application.
  • the transmission agent may obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or, the transmission agent obtains the identifier of the target service set from the target identifier in the first message.
  • the target identifier includes an identifier of the target service set; or, the transmission agent determines the identifier of the service set that has a mapping relationship with the target identifier in the first message as the identifier of the target service set.
  • the embodiment of the present application does not specifically limit the position of the cell occupied by the target service set identifier in the first message.
  • the target service set identifier may occupy cells in the target identifier, may also occupy other cells in the first message except the target identifier, or may obtain the target service set identifier according to the mapping relationship between the target identifier and the service set identifier. Wait.
  • a service instance with a light load may be selected as the third service instance in the target service set, or a service instance may be selected as the third service instance in the target service set in a polling manner, etc. This is not specifically limited.
  • the target service set identifier can be used to select the target service instance from the target service set by using the load balancing algorithm, thereby ensuring load balancing of each service instance in the target service set.
  • the target identifier in the above may be an identifier related to a single user equipment or an identifier related to a group or multiple user equipments.
  • the target identifier may be a pre-configured target identifier or a target identifier assigned with a communication message.
  • the embodiments of the present application provide different ways to establish a binding relationship between a target identifier and a service instance: the target identifier may be assigned by the transport agent to the service instance when the target instance is registered with the transport agent, and Send the target ID to the service instance to complete the binding between the target ID and the service instance; or the target ID is pre-configured in the service instance and the service instance sends the target ID to the transport agent, and the transport agent stores the service instance Correspondence between target identifiers to complete the binding between the target identifier and the service instance; or when the target identifier is the target identifier assigned by the transport agent or the service instance with the communication message, the transport agent establishes a binding between the target identifier and the service instance
  • the target identifier can be assigned by the transport agent or service instance. When assigned by the transport agent
  • FIG. 5 and 6 illustrate a process of establishing a binding relationship between a target identifier and a service instance in advance.
  • FIG. 5 and FIG. 6 use the target identifier as a service pointer as an example to describe a process in which the transfer agent establishes a binding relationship between the target identifier and the service instance in advance.
  • Steps 510-530 are included in FIG. 5, and steps 510-530 are described in detail below.
  • Step 510 The second service instance sends a sixth message to the transmission agent, where the sixth message is used to register the second service instance to the transmission agent.
  • the sixth message may include information about the second service instance. In order to facilitate the transfer agent to bind the second service instance to the service pointer according to the information of the service instance.
  • the registration request may include at least one of the following: service instance identification, service type, manufacturer information, identification of the service set to which the service instance belongs, the area served by the service instance, and the network slice capability supported by the service instance .
  • the registration request may also carry other information such as data network name (DNN).
  • DNN data network name
  • the sixth message may further include a service pointer of the second service instance, so that the transmission agent binds the second service instance and the service pointer.
  • the pointer of the second service instance carried in the sixth message may be a service pointer pre-configured for the second service instance, for example, configured in a configuration file of the second service instance.
  • the sixth message sent by the second service service instance may include the capacity of the second service instance.
  • the sixth message sent by the second service instance may include the number of service pointers applied by the second service instance.
  • the address information (such as FQDN or IP address) of the local transport agent can be fixedly configured in the configuration file of the second service instance in advance; or the service instance can discover the local transport agent through the discovery mechanism, for example, the second service instance can be in the network Send broadcast or multicast messages; it can also be a discovery mechanism similar to a Dynamic Host Configuration Protocol (DHCP) server.
  • DHCP Dynamic Host Configuration Protocol
  • Step 520 The transfer agent allocates a service pointer to the second service instance according to the received sixth message.
  • the transfer agent configures the service pointer for the service instance, which can realize the automatic configuration of the service pointer.
  • the transmission agent may first determine the set to which the second service instance belongs according to the service instance information, or the transmission agent may first determine the second service instance to which the second service instance belongs according to the service instance information.
  • Service collection ID may be first determine the second service instance to which the second service instance belongs according to the service instance information.
  • the transfer agent can determine whether there is a service set with the same capabilities as the manufacturer according to the service type, manufacturer information, service area, network slicing capability, etc. in the registration request, and determine to add the second service instance to the existing service. Collections also create new service collections. As an example, it is assumed that the second service instance is AMF, the manufacturer is Huawei, and the network slicing capability A is supported, and the service area B is supported. The transmission agent judges that there is an existing service set, whose service instance is AMF, the manufacturer is also Huawei, and also supports network slicing capability A and service area B, then the transmission agent can determine that the new service instance can join the existing service set. When the transfer agent decides to add the second service instance to the existing service set, the service pointer assigned by the transfer agent is different from other service instances in the service set to which the second service instance belongs, to avoid services in the same service set Pointer conflict.
  • assigning service pointers consider the identity of the service set to which the service instance belongs: assigning different service pointers to service instances in the same service set can prevent conflicts in service pointers in the service set.
  • the number of requested service pointers carried in the registration request enables the service instance to reasonably request the transmission agent to allocate service pointers based on its own load or other information, to ensure appropriate granularity of business management related to user equipment.
  • the transfer agent may allocate a service pointer and the like to the second service instance according to the capacity of the second service instance.
  • the transfer agent may determine the number of pointers allocated for the second service instance according to the capacity of the second service instance and the capacity of other service instances in the service set to which the second service instance belongs.
  • Step 530 The second service instance sends a sixth message response to the transport agent.
  • the sixth message response includes the allocated service pointer of the second service instance, and the sixth service message may be used to notify the second service instance that the transfer agent is Its assigned target ID.
  • the transmission agent may notify the second service instance that the binding relationship between the second service instance and the service pointer has been established.
  • FIG. 6 shows another process of establishing a binding relationship between a service pointer and a service instance.
  • step 610 the second service instance sends a seventh message to the transport agent, where the seventh message includes a service pointer of the second service instance.
  • step 620 the transfer agent may check whether these service pointers conflict with the service pointers of other instances in the service set to which the second service instance belongs. If there is a conflict, the transport agent may assign a new service pointer to the second service instance to replace the conflicting service pointer.
  • step 630 the transmission agent sends a seventh message response to the second service instance. If the transmission agent assigns a new service pointer to the second service instance in step 620, the seventh message response includes the transmission agent as the second service. The new service pointer allocated by the instance.
  • the target identifier is a service pointer.
  • the target identifier may also adopt different formats.
  • the target identifier when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transmission agent, or the target identifier may also be It may be an identifier of a service set to which the second service instance belongs and a unique identifier in the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not limited in this application;
  • the target identifier When the target identifier is related to a group of user equipments, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance, or It is the identifier of the service set and the only service pointer in the service set.
  • the service pointer is used to identify a group of user equipment
  • the process of establishing the binding relationship between the service instance and the target identifier shown in FIG. 5 and FIG. 6 above may be completed by the transport agent. It may also be that the transmission agent forwards the message to the NRF or other network functions after receiving the sixth message or the seventh message, and the NRF or other network functions complete the establishment of the binding relationship between the service instance and the target identifier.
  • the transmission agent is only responsible for the message Forwarded. This embodiment of the present application does not specifically limit this.
  • the solutions in FIG. 5 and FIG. 6 described above may also be that when the transmission agent receives the sixth message or the seventh message, it only assigns the target identifier to the service instance, but does not store the binding relationship between the service instance and the target identifier At this time, the binding relationship between the service instance and the target identifier is not established in the transport agent.
  • the establishment of the binding relationship between the service instance and its target identifier may be established through the trigger of a communication message.
  • the following describes the establishment of the binding relationship between the target identifier and the service instance in another way: that is, during the communication process, the transmission agent is triggered by a message to establish the binding relationship between the target identifier and the service instance.
  • the transmission agent may also receive a fourth message sent by the second service instance, and the transmission agent obtains a binding relationship between the target identifier and the second service instance according to the fourth message.
  • the fourth message may carry a binding relationship between the second service instance and the target identifier, and the transmission agent may obtain the binding relationship between the second service instance and the target identifier carried in the fourth message.
  • the fourth message may carry the correspondence between the IP address of the second service instance and the target identifier.
  • the transmission agent may obtain the IP address of the second service instance and the binding relationship of the target identifier when receiving the fourth message.
  • the fourth message that triggers the establishment of the binding relationship may have multiple forms.
  • the fourth message may be a special binding request message sent by the second service instance to the transport agent.
  • the binding request message may carry one or more target identifiers.
  • the target identifier in the binding request message may be a pre-configured target identifier in the service instance or a target identifier assigned by the transport agent along with the binding message.
  • the fourth message may also be a common message related to the user equipment.
  • the fourth message is a message sent to another service instance.
  • the other service instances may be the first service instance or other service instances other than the first service instance.
  • the other service instances are the first service below.
  • An example is used for illustration.
  • the fourth message when the second service instance sends a fourth message to the first service instance, the fourth message carries the target identifier, the transmission agent obtains the target identifier from the fourth message, and establishes the target identifier and the second The binding relationship of the service instance.
  • the fourth message does not carry the target identifier, but the fourth message carries an instruction, and the transmission agent determines that the target identifier needs to be allocated and binds the target identifier to the second service instance according to the instruction.
  • the target identifier may also be a target identifier allocated by the second service instance when the second service instance sends the second message and the fourth message. Or it may be the target identifier allocated by the transport agent to the second service instance when the transport agent receives the fourth message sent by the second service instance.
  • the SMF may assign a session reference identifier (corresponding to smContextRef in TS 29.502) for the user equipment context, and the session reference identifier is used by the SMF. It is used to uniquely identify the session context of a user equipment, and the session reference identifier can be used as the target identifier to find the SMF according to the session reference identifier.
  • the fourth message may carry a binding indication.
  • the binding indication is used to instruct the transport agent to record the target identifier in the fourth message.
  • the transport agent allocates the target identifier to the second service instance when receiving the binding instruction.
  • the transport agent when the fourth message is a user equipment related message and the target identifier is allocated by the transport agent, the transport agent also needs to send the target identifier to the first service instance, for example, the target identifier may be inserted into the fourth message.
  • the fourth message carries a binding indication may also be referred to as an explicit binding.
  • the fourth message carries a binding timer, and the binding timer is used to release the binding relationship between the target identifier and the second service instance after the binding timer expires.
  • the binding timer can be used to customize the binding time between the service instance and the target identifier, so that other service instances can be selected after the binding timer expires, thereby supporting better load balancing.
  • the process of establishing the binding relationship between the target identifier and the service instance is described above.
  • the target identifier can also be unbound from the service instance.
  • the transmission agent may further receive a fifth message sent by the second service instance, where the fifth message is used to request to unbind the target identifier from the second service instance; or start binding timing A device that releases the binding relationship between the target identifier and the second service instance after the binding timer expires.
  • the transport agent may unbind the target identifier from the second service instance when the fifth message is received or the timer expires.
  • the service instance may initiate a debinding request under heavy load, service instance offline, or service instance failure, and notify the transport agent to unbind the target identifier from the service instance.
  • the service related to the user equipment can be removed from the above service instance.
  • the fifth message may also carry indication information, which is used to instruct the transport agent to bind the target identifier to the third service instance.
  • the unbinding request carries instruction information, which can instruct the target identifier to be bound to other service instances while requesting the target identifier to be unbound from the original service instance. This completes the transfer of business load between service instances and achieves load balancing between service instances.
  • the target identifier may be one of the service pointers (also referred to as instance pointers) configured for the service instance in advance.
  • each service pointer may correspond to multiple user devices, that is, multiple services served by the service instance. User equipments can share the same service pointer.
  • the target identifier may use different formats.
  • the target identifier when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transmission agent, or the target identifier may also be The identifier of the service set to which the second service instance belongs and the unique identifier in the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not limited in this application;
  • the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance, or the identifier of the second service instance.
  • the service set identifier and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
  • Different granularity of target identification can complete different granularity of business management.
  • FIG. 7 is a schematic diagram of a communication method according to another embodiment of the present application.
  • the method shown in FIG. 7 includes steps 710-760b. Performing the steps shown in FIG. 7 can implement a group of user equipment granular binding and unbinding methods.
  • step 710 the second service instance sends a fourth message to the transport agent.
  • the fourth message is a binding request sent specifically by the second service instance to the transport agent, and includes the target identifier of the second service instance.
  • the transport agent receives the binding request and records the binding relationship between the second service instance and the target identifier in the binding request.
  • step 720 a user equipment-related message interaction is performed between the first service instance and the second service instance.
  • the second service instance sends its target identifier to the first service instance.
  • the first service instance saves the target identifier in the context of the user equipment.
  • the first service instance may be AMF
  • the second service instance may be SMF.
  • the AMF may send a session creation request to the SMF
  • the SMF sends a session creation response to the AMF
  • the session creation response includes the target identifier of the SMF.
  • the AMF saves it in the context of the user equipment.
  • step 710 and step 720 in this embodiment of the present application may be reversed, which is not limited in this embodiment of the present application.
  • step 730 the first service instance sends a first message to the transport agent, and the first message carries the target identifier of the second service instance and the service set identifier of the second service instance. Specifically, the first service instance obtains a target identifier from the context of the user equipment, and adds the target identifier to the first message.
  • the target identifier and the service set identifier may be located at the head of the HTTP message, so that the transmission agent can read the target identifier conveniently.
  • the fourth message and the first message are both sent to the second service instance.
  • the fourth message may also be sent. It is a message sent to other service instances.
  • the fourth message may be a message sent by AMF to UDM, for example, AMF sends UDM to UDM during user device registration. Send a message and establish a binding relationship between the target identifier and the first service instance (that is, AMF) in the process.
  • the target identifier is related to a group of users
  • the fourth message and the first message may also be directed to different user equipments in different same user groups. This embodiment does not specifically limit this.
  • step 750 the transmission agent searches for a service instance corresponding to the target identifier according to the target identifier carried in the first message. If the transmission agent records the binding relationship between the second service instance and the target identifier in step 710, the transmission agent will find that the service instance corresponding to the target identifier is the second service instance.
  • step 760a the transport agent sends a second message to the second service instance based on the first message.
  • the third message may be exactly the same as the first message.
  • the transmission agent directly forwards the first message as the third message to the second service instance according to the target identifier in the first message.
  • the third message may be different from the third message.
  • the transmission agent may change the first message, for example, change the header of the first message, and keep the message body unchanged to form the third message. Send the third message to the second service instance, etc., which is not specifically limited in this embodiment of the present application.
  • the second service instance decides to unbind it from the target identifier.
  • the second service instance sends a fifth message to the transport agent.
  • the unbinding request is used to request the transport agent to delete the binding relationship between the second service instance and the target identifier.
  • the target identifier of the unbinding request in the binding request may be one or more.
  • the transport agent may delete the binding relationship between the second service instance and the target identifier.
  • the unbinding request may further include indication information, and the indication information is used to indicate that the target identifier of the second service instance is bound to another service instance, for example, it may be bound to the third service instance in FIG. 7 .
  • step 760b assuming that in the previous step 740, the transport agent has unbound the second service instance from the target identifier of the second service instance, the transport agent cannot find the target identifier in the first message in step 750 Corresponding service instance. At this time, the transmission agent may obtain the target service set identifier according to the first message.
  • the selection of the third service instance can be arbitrary, or a service instance can be selected from the target service set as the third service instance according to the load balancing algorithm.
  • the transmission agent may obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or, the transmission agent obtains the identifier of the target service set from the target identifier in the first message.
  • the target identifier includes an identifier of the target service set; or, the transmission agent determines the identifier of the service set that has a mapping relationship with the target identifier in the first message as the identifier of the target service set.
  • the transport agent selects a third service instance from the target service set, and sends a third message to the third service instance based on the first message.
  • the third message may be exactly the same as the first message.
  • the transmission agent directly forwards the first message as the third message to the second service instance according to the target identifier in the first message.
  • the third message may be different from the third message.
  • the transmission agent may change the first message, for example, change the header of the first message, and keep the message body unchanged to form the third message. Send the third message to the second service instance, etc., which is not specifically limited in this embodiment of the present application.
  • step 740 the second service instance decides to unbind the current service pointer with itself, and instructs the transfer agent to transfer the current service pointer to the third service instance, then the transfer agent sends the target identifier to The second service instance is unbound, and the target identifier is bound to the third service instance.
  • the transmission agent selects the third service instance according to the target identifier, and sends a third message to the third service instance.
  • the method corresponding to the above FIG. 7 is that the fourth message is a special binding request.
  • the following describes in detail the flow when the fourth message is a message related to the user equipment with reference to FIG. 8.
  • the method in FIG. 8 includes steps 810-880b:
  • step 810 the first service instance sends a fourth message to the transport agent.
  • the fourth message is a message related to the user equipment.
  • the first service instance may carry the target identifier allocated by the first service instance to the user equipment in the fourth message.
  • the target identifier can be used by the service instance to uniquely locate the user device context.
  • the first service instance may be AMF, and the target identity of the AMF is the identity of the user equipment.
  • the target identity may be a 5G globally unique temporary identity (GUTI), a subscriber permanent identity (subscriber, permanent identity, SUPI). ) Or permanent equipment identifier (PEI), etc.
  • GUI globally unique temporary identity
  • PKI permanent equipment identifier
  • the AMF can uniquely locate the context of a user equipment according to the above target identifier.
  • the first service instance may also be an SMF, and the target identifier of the SMF may be a session reference identifier (such as smContextRef) allocated by the SMF.
  • the fourth message is used to trigger the establishment of a binding relationship between the target identifier and the service instance.
  • the fourth message in step 810 is not a special binding request, but a general message related to the user equipment.
  • the fourth message may be a session creation request message.
  • the first service instance AMF may carry the service set identifier of the SMF in the fourth message, so that the transmission agent selects the peer SMF according to the service set identifier.
  • the foregoing target identifier may be allocated by the first service instance, for example, it may be allocated by the first service instance requesting the shared data layer corresponding to the service set, or the target identifier may be configured in segments in each service instance so that The first service instance selects a target identifier from the target identifier segments configured in the first service instance.
  • the fourth message carries the target identifier allocated by the first service instance.
  • the first service instance may carry a binding instruction in the fourth message, indicating that the first service instance wishes the transmission agent to establish a binding relationship between the target identifier and the first service instance.
  • the target identifier may also be assigned by the transmission agent when the fourth message is received.
  • the fourth message does not carry the target identifier
  • the target identifier is assigned when the fourth agent receives the fourth message.
  • the service instance may carry an indication in the first message, and the transmission agent may assign the target identifier only after receiving the indication.
  • the transport agent also needs to send the target identifier to the second service instance. For example, the transport agent may insert the target identifier into the fourth message.
  • the fourth message may be an HTTP message or an AMQP message.
  • the HTTP host name field of the fourth message carries the service set identifier.
  • the fourth message may also carry a binding timer, which is used to release the binding relationship between the target identifier and the second service instance after the binding timer expires.
  • step 820 the transport agent binds the target identifier to the first service instance.
  • the transmission agent saves the correspondence between the target identifier and the first service instance.
  • the transport agent carries the target identifier of the first service instance and the service set identifier described in the first service instance in the fourth message, and forwards the fourth message to the second service instance.
  • the transmission agent may perform some processing on the fourth message, such as deleting some fields in the fourth message or adding some fields, which is not limited in this embodiment.
  • step 830 the transmission agent receives the fourth message response sent by the second service instance, and forwards the fourth message response to the first service instance.
  • the fourth message response is a session creation response message.
  • the second service instance may carry its own target identifier, its own service set identifier, the service set identifier to which the first service instance belongs, and the target identifier of the first service instance in the fourth message response.
  • the transport agent determines the first service instance according to the target identifier of the first service instance (the binding is established in steps 810 and 820), and forwards a fourth message response message to the first service instance.
  • step 840 the transmission agent binds the target identifier of the second service instance to the second service instance according to the fourth message response.
  • the binding relationship between the second service instance and the target identifier may be recorded in the transport agent.
  • a specific binding method see step 810 and step 820.
  • the transport agent has established the binding relationship between the target identifier and the service instance, including the binding relationship between the second service instance and the second service instance target identifier, and the first service instance and the first service instance target identifier. Binding relationship.
  • the first service instance and the second service instance have obtained the target identifier of the opposite service instance.
  • the first service instance may send a first message to the transport agent, where the first message includes a target identifier of the second service instance, a service set identifier of the second service instance, and a target identifier of the first service instance.
  • the transport agent may select a service instance according to the target identifier of the second service instance in the first message.
  • the first message is a user equipment related message.
  • the first message may be a message in a user equipment session related process.
  • the first message may also be a message in other processes, which is not specifically limited in this embodiment of the present application.
  • the fourth message and the first message are both sent to the second service instance.
  • the fourth message may also be sent. It is a message sent to other service instances.
  • the fourth message may be a message sent by AMF to UDM, for example, AMF sends UDM to UDM during user device registration. Send a message and establish a binding relationship between the target identifier and the first service instance (that is, AMF) in the process.
  • the target identifier is related to a group of users
  • the fourth message and the first message may also be directed to different user equipments in different same user groups. This embodiment does not specifically limit this.
  • step 870 the transport agent selects a service instance according to the target identifier in the first message. If the transmission agent saves the binding relationship between the target identifier of the second service instance and the second service instance in step 840, the transmission agent may select the second service instance as the opposite service instance.
  • step 880a the transmission agent sends the second message to the second service instance based on the first message.
  • the second message may be completely the same as the first message.
  • the transmission agent directly forwards the first message as the second message to the second service instance according to the target identifier in the first message.
  • the second message may also be different from the second message.
  • the transmission agent may change the first message, for example, change the header of the first message, keep the message body unchanged to form the second message, and Send the second message to a second service instance, etc. This embodiment of the present application does not specifically limit this.
  • the transmission agent receives a fifth message sent by the second service instance, and the fifth message is used to request the transmission agent to release the binding relationship between the second service instance and the second service instance.
  • the fifth message may carry the target identifier of the second service instance.
  • the transport agent may delete the binding relationship between the second service instance and the target identifier of the second service instance based on the fifth message.
  • the fifth message may further include indication information, which is used to indicate that the target identifier of the second service instance is bound to another service instance, for example, it may be bound to the third service instance in FIG. 8.
  • indication information which is used to indicate that the target identifier of the second service instance is bound to another service instance, for example, it may be bound to the third service instance in FIG. 8.
  • a third service instance is selected according to the target identifier carried in the first message.
  • a third message is sent to the third service instance based on the first message.
  • the fifth message may be initiated when the second service instance decides to save the context of the user equipment in the shared data layer.
  • the embodiment of the present application does not specifically limit the reason for the second service instance to send the unbinding request, for example, it may be when the second service instance does not want to process the process related to the user, or the second service instance goes offline , The second service instance fails, and so on.
  • step 870 the transmission agent selects the peer service instance according to the target identifier in the first message, and if the transmission agent has released the binding relationship between the second service instance and the target identifier in step 860 above.
  • the transmission agent may search for the corresponding service set according to the service set identifier carried in the first message, and select a third service instance from the set. Based on the first message, a third message is sent to a third service instance.
  • the transmission agent may obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or, the transmission agent obtains the identifier of the target service set from the target identifier in the first message.
  • the target identifier includes an identifier of the target service set; or, the transmission agent determines the identifier of the service set that has a mapping relationship with the target identifier in the first message as the identifier of the target service set.
  • first, second, and third messages may carry a service set identifier, and the service set identifier may be carried in a target identifier or as an independent cell. Carrying the service set identifier can avoid conflicts between target identifiers of the same service set. Of course, if the target identifiers of all service instances in the network can be guaranteed to be different when assigning the target identifiers, the message may not carry the service set identifiers. At this time, If there is no binding relationship between the target identifier and the target instance, the transmission agent can determine the target set according to the target identifier and select a service instance from the target set, which is not specifically limited in this embodiment of the present application.
  • FIG. 9 is a schematic diagram of a communication method according to another embodiment of the present application.
  • the first service instance sends a first message to the transport agent, and the first message includes a target identifier.
  • the target identification may be associated with one or a group of user devices. That is, the target identifier is determined according to the user equipment.
  • the target identifier may be used to identify one or a group of user equipments, for example, the target identifier may include a service pointer.
  • the binding of the user equipment to the second service instance is determined through the transport agent.
  • the transport agent uses the target identifier to determine the service instance bound to the service pointer.
  • the service instance bound to the service pointer serves the user equipment, and the service instance bound to the service pointer may be a second service instance.
  • the binding relationship can also be changed. For example, after the transport agent unbinds the service pointer from the second service instance, the transport agent may bind the service pointer to other service instances.
  • the target identifier may be included in a network tag field of the first message or a newly added HTTP optional header.
  • the target identifier may also include the target service set and / or the identifier of the second service instance corresponding to the user equipment. That is, the binding between the user equipment and the second service instance.
  • the target identifier is an identifier of a target service set, and it can be understood that the user equipment is bound to the service set.
  • the transport agent may determine a service instance to serve the user equipment from the target service set, for example, select a second service instance or a third service instance to serve the user equipment.
  • the target identifier may include an identifier of the second service instance, and may be understood as that the user equipment is bound to the second service instance.
  • the identification of the second service instance is used to identify the second service instance.
  • the identifier of the second service instance may be address information of the second service instance, such as an IP address, an FQDN, and the like, and may be a number of the second service instance by the transmission agent. Through the identification of the second service instance, the transmission agent can uniquely determine the second service instance.
  • the transport agent may determine that the second service instance continues to serve the user equipment.
  • the target identification may also include an identification of a service set.
  • the identification of the second service instance may be included in the URI of the first message, or included in a selection parameter of the first message.
  • the first message may include binding mode indication information, which is used to indicate a binding mode of a user equipment or a group of user equipment, that is, whether the user equipment is bound to a service instance or a service set. This is a display indication.
  • the first message may indicate the binding mode by displaying the binding mode indication information.
  • the binding mode indication information may be an enumerated field.
  • the binding mode indication information may be a bitmap.
  • the binding mode indication information may be represented by N bits, where each bit represents a kind of binding possibility.
  • the indication information may be 2 bits, where one bit represents "bundling with a service instance.” Fixed ", when the bit is 1, it can be bound to the service instance, when it is 0, it is not bound to the service instance, and the other bit is" bound to the service set ", when the bit is 1, it means Binding to the service set. When this bit is 0, the identifier is not bound to the service set.
  • the target identifier when the user equipment is bound to the second service instance, the target identifier may or may not include the identifier of the second service instance.
  • the target identifier may include a service pointer of the second service instance, which is used when the user equipment does not have a binding relationship with the second service instance, or when the user equipment has a binding relationship with the second service instance, but the second service When the instance is unavailable (such as shutdown), the service instance that serves the user device is selected according to the service pointer.
  • the transport agent determines the binding relationship indication according to the target identifier. That is, the first message may implicitly indicate a binding relationship. For example, when the target identifier includes the identifier of the second service instance and / or the service pointer, the transport agent determines that the user equipment is bound to the second service instance, and the target identifier may further include the identifier of the service set. When the target identity includes only the identity of the service set, the transport agent determines that the user equipment is bound to the service set.
  • the first service instance may receive the target identification.
  • the first service instance may receive the target identifier sent by the second service instance.
  • the second service instance may send an eighth message to the first service instance, and the eighth message includes the target identifier.
  • the eighth message includes a URI
  • the URI may include address information of the second service instance
  • the address information of the second service instance is used as the identifier of the second service instance.
  • the body of the eighth message includes an identifier of the second service instance.
  • the message of the eighth message may also include a service pointer, a service set identifier, and the like.
  • the eighth message may be an HTTP message.
  • the eighth message further includes binding relationship indication information, and the binding relationship indication information may be included in a network tag field (Cookie) of the response message or a newly added HTTP optional header.
  • a network tag field e.g., HTTP
  • an optional HTTP header called a binding instruction may be added, and the new header is called a binding instruction here only for the sake of example.
  • the specific name of the newly defined HTTP header is not described in this embodiment. Specific provisions.
  • the eighth message also includes the identification of the service set.
  • the URI of the eighth message, the body of the eighth message, the network tag field of the eighth message, or a field of at least one of the newly added HTTP optional headers may include the service set identifier, that is, the service set identifier may be located at the first Eight message URIs, message bodies, or network tag fields or new HTTP optional headers.
  • the second service instance may receive capability indication information of the first service instance, and the capability indication information is used to indicate whether the first service instance supports selecting a service instance from a service set.
  • the second service instance determines the binding mode indication information corresponding to the session according to the capabilities of the first service instance, so as to avoid setting the binding mode indication information to be the same as that when the first service instance does not support selecting a service instance from the service set.
  • the above-mentioned service set binding causes the second message to fail to be sent, or to other undesired service instances, resulting in excessive message redirection.
  • the second service instance is SMF and the first service instance is AMF.
  • the SMF sends a session establishment response message to the AMF.
  • the session establishment response message includes the resource URI, and the resource URI includes the second service. Address information of the instance.
  • the network tag field of the session establishment response may include the identification of the service set and binding indication information.
  • the session establishment response message may also include other target identifiers, such as a service pointer.
  • the AMF sends a first message to the SMF.
  • the first message is a modification request for the session.
  • the URI of the first message is the same as the resource URI included in the session establishment response message, and the modification
  • the request message includes the identification and binding indication information of the service set included in the session establishment response.
  • the first service instance is SMF and the second service instance is AMF.
  • AMF may send SMF identity, indication of binding relationship, and identity of service set to which AMF belongs to the SMF.
  • the SMF needs to send a message to the AMF for the session, the SMF carries the identifier of the AMF as a selection parameter in the first message, and the first message carries the binding relationship indication and the service described by the AMF. The identity of the collection.
  • the transport agent receives the first message.
  • the identifier of the second service instance is used to instruct the transmission agent to send a second message to the second service instance according to the identifier of the second service instance.
  • the identification information of the second service instance is used to instruct the transmission agent to send the first Two messages.
  • the transport agent can select a service instance from the service set. For example, when the binding mode indication information indicates that the user equipment is bound to the service set, or when the second service instance is unavailable, the transport agent may select an available service instance from the service set according to the service set identifier, so that the service instance is The user equipment provides services.
  • a service instance corresponding to the target identification is determined.
  • the transmission agent determines that the second service instance is the receiving device of the second message, and proceeds to step 1330.
  • the transport agent sends a second message to the second service instance.
  • the target identifier includes, for example, a service pointer, an identifier of a second service instance, and the like.
  • the transmission agent determines an available third service instance from the service set to which the second service instance belongs, and proceeds to step 1340.
  • the transport agent sends a third message to the third service instance.
  • the transport agent determines a second service instance from the service set, and proceeds to step 1330. For example, if the binding instruction information indicates that the user equipment is bound to the service set, the transport agent determines a second service instance from the service set, and proceeds to step 1330. At step 1330, the transport agent sends a second message to the second service instance.
  • the transport agent sends a second message.
  • the second message may be completely the same as the first message.
  • the transmission agent directly forwards the first message as the second message to the second service instance according to the target identifier in the first message.
  • the second message may also be different from the second message.
  • the transmission agent may change the first message, for example, change the header of the first message, keep the message body unchanged to form the second message, and Send the second message to a second service instance and so on.
  • the first message is an HTTP message. If the first service instance receives the resource URI sent by the second service instance, and the authorization domain field (Authority) of the resource URI includes the address information of the second service instance, such as the IP address or FQDN, that includes the second service instance's Identification, the URI of the first message uses the resource URI, that is, the URI of the first message includes the resource URI.
  • the transport agent determines whether the user equipment is bound to the second service instance according to the binding mode indication information. When the binding mode indication information indicates binding with the second service instance, the transmission agent sends a second message to the second service instance that has a binding relationship with the target identifier.
  • the transport agent sends the second message to the second service instance according to the address of the second service instance in the first message URI.
  • the second message may include information of the URI in the first message. That is, the URI in the second message may be the same as the URI in the first message.
  • the first message is an HTTP message. If the first service instance receives the identifier of the second service instance from the second service instance and the identifier is not in the resource URI, the first message includes a selection parameter, and the selection parameter includes the identifier of the second service instance.
  • the transport agent may determine that the user equipment is bound to the second service instance according to the binding mode indication information in the first message.
  • the transmission agent obtains the address information of the second service instance, such as an IP address and an FQDN, according to the identifier of the second service instance.
  • the transmission agent sends a second message to the second service instance according to the address information of the second service instance.
  • step 1340 if the URI of the first message includes the address of the second service instance, but the transport agent selects the third service instance in step 1320, the transport agent maintains the message body after selecting the third service instance. Change to form a third message.
  • the third message may include the address of the third service instance.
  • the URI of the third message may include the address of the third service instance.
  • the transport agent may replace the address of the second service instance in the Authorization field in the URI of the first message with the address of the third service instance to form a third message.
  • the transmission agent may delete the selection parameter in the first message in order to generate a third message.
  • the message body of the third message may be exactly the same as the message body of the first message.
  • the transmission agent may change the header of the first message, and write the address of the third service instance into the URI of the third message to send the third message to the third service instance.
  • FIG. 10 is a schematic diagram of a communication method according to another embodiment of the present application.
  • a session is provided by the same service instance.
  • the second service instance when establishing a session, sends a setup message of the first session to the first service instance, where the setup message includes an identifier of the second service instance.
  • the first service instance sends other messages related to the first session to the second service instance according to the identity of the second service instance.
  • the second service instance sends a first message to the first service instance, and the session identifier of the first message may be used to uniquely identify a session in the second service instance.
  • the service instance serving the first session may fail, or the load may be too high, which may affect the session.
  • an embodiment of the present application provides a communication method.
  • the first service instance may be one of an SMF and a user plane function (UPF).
  • the second service instance may be the other of the SMF and the UPF.
  • the third service instance, the fourth service instance, and the second service instance are network elements having the same function.
  • the first service instance receives the first message sent by the third service instance or the fourth service instance.
  • the first message includes the target identification.
  • the first service instance determines a second service instance according to the target identifier.
  • the second service instance is used to provide services for the first session. That is, the first service instance determines a second service instance that provides services for the first session according to the target identifier.
  • the first service instance sends a second message to the second service instance.
  • the first message is related to the first conversation.
  • the second message is related to the first session.
  • the first message includes an identification of the first session.
  • the target identification and the identification of the first session may be located in the same or different fields.
  • the session identifier may be used to uniquely identify a session in the target service set, and the second service instance, the third service instance, and the fourth service instance may be service instances in the target service set. That is, each session in the service set corresponds to a session ID.
  • the fully qualified stream endpoint identifier (F-SEID) field of the control plane of the first message may include the target identifier.
  • the node identifier (Node ID) of the first message may include the target identifier, or the target identifier may be located in other fields of the first message, which is not limited in this embodiment of the present application.
  • the first session is bound to a service instance, or the first session is bound to a service set.
  • the second service instance, the third service instance, and the fourth service instance are network elements capable of providing the same service.
  • the third service instance and the fourth service instance are both AMF or SMF.
  • the second message is related to the first session.
  • the second service instance is used to provide a service for the first session.
  • the second message may be used to request a second service instance to provide a service for the first session.
  • the first message includes the target identification.
  • the first session is bound to a third service instance or to the target service set, and the target service set includes a second service instance and a third service instance.
  • the target service set may also include a fourth service instance.
  • the first session is bound to a service instance, and the service instance provides services for the first session.
  • the service instance When the service instance is unavailable, other service instances in the service set where the service instance is located provide services for the first session.
  • the first session is bound to the third service instance, when the third service instance is unavailable, the first service instance selects the second service instance from the target service set and sends a second message to the second service instance.
  • the target identifier includes the identifier of the service instance
  • the first session is bound to the service instance.
  • the first session is bound to a service set, and a service instance in the service set provides services for the first session.
  • the first service instance determines that a service instance in the service set provides services for the first session.
  • the first service instance determines the service instance from the service set.
  • each service instance in the target service set can provide services for the first session.
  • a third service instance provides services for the first session, and other service instances in the target service set can obtain the context of the first session saved by the third service instance, so as to provide the first session. service.
  • the target identifier may include an identifier of the first conversation group.
  • the identification of the first conversation group is used to identify a conversation group.
  • the first session group includes one or more sessions within a service set.
  • the first conversation group includes a first conversation.
  • the session group identifier can be used to identify a unique session group in the service set.
  • the first service instance may determine the second service instance from the target service set according to the identifier of the first session group and the identifier of the target service set.
  • the identification of the conversation group may also be used to identify a unique conversation group in the service set that communicates with the first service instance.
  • the first service instance may determine the second service instance from the target service set according to the identifier of the first conversation group.
  • the identity of a conversation group can be a global identity or an identity in a service set.
  • the service instance that sends the session establishment request (such as a third service instance) or the service instance that sends the session modification request may configure the first session as one session in the first session group.
  • the target identifier includes multiple identifiers of the session group identifier, the third service instance identifier, and the target service set identifier
  • multiple fields can be encoded into a unified identifier, such as encoding the multiple identifiers into an FQDN
  • the unified identifier FQDN is used as the target identifier, and the multiple identifiers may also be located in different fields of the first message, which is not limited in the embodiment of the present application.
  • the first message includes binding mode indication information.
  • the binding mode indication information is used to indicate that the first session is bound to a service instance, or that the first session is bound to a service set.
  • the binding mode indication information may be used as a new parameter of the first message, that is, the binding indication information may be located in a new field of the first message.
  • the third service instance adds an optional field to the session creation request for sending binding mode indication information.
  • One or more fields of the new data type can be defined, and one or more fields of the new data type are used to carry binding mode indication information.
  • the binding mode indication information may also be located in an existing field of the first message.
  • the binding mode can also be indicated in an implicit manner.
  • the target identifier includes the identifier of the third service instance, it indicates that the binding mode is that the first session is bound to the third service instance.
  • the target identifier does not include the identifier of the service instance, for example, the target identifier only includes the identifier of the target service set, or the target identifier includes the identifier of the service set and the identifier of the first session group, or the target identifier includes the identifier of the first session group.
  • the binding mode is that the first session is bound to the service collection.
  • the target identifier may include an identifier of a target service set.
  • the identifier of the service set may be located in a fully qualified stream endpoint identifier (F-SEID).
  • F-SEID fully qualified stream endpoint identifier
  • the identifier of the service set may also be used as a new parameter in the first message. For example, when a session is created, the second service instance adds an optional field to the session creation request to send the identifier of the service set. You can define one or more fields of the new data type, and one or more fields of the new data type are used to carry the identity of the service collection. This embodiment does not limit this.
  • the first service instance may send the capability indication information to one or more service instances in the target service set, for example, the third or fourth service instance, or each service instance.
  • the service instance in the target service set can determine whether the first service instance supports load balancing based on the service set according to the capability indication information, that is, whether the first service instance supports selecting a service instance from the service set as the first session. Provide services.
  • the third service instance or the fourth service instance receives the capability indication information sent by the first service instance. If the capability indication information indicates that the first service instance supports load balancing based on a service set, the third service instance or the fourth service
  • the first message sent by the instance may include binding relationship indication information, which indicates that the first session is bound to the service set, or the first message implicitly indicates that the first session is bound to the service set through the first message. set.
  • the first service instance is UPF
  • the second, third, and fourth service instances are SMF
  • the capability indication information is used to indicate that the UPF supports load balancing based on the SMF set.
  • the first service instance when the first service instance supports load balancing based on the service set, can send capability indication information to all or part of the service instances in the target service set, for example, the service instance that communicates with the first service instance.
  • the indication information is used to indicate that the first service instance supports load balancing based on a service set.
  • no capability indication information is sent. For example, if the UPF does not support the above capabilities, the UPF may not send capability indication information.
  • the instance in the target service set determines that the first service instance does not support Load balancing based on service collection.
  • the instance in the target service set determines whether the first service instance supports selecting a service instance from the service set according to whether or not the capability indication information is received.
  • an instance in the target service set such as the third service instance, receives capability indication information of the first service instance
  • the capability indication information is used to indicate the first service instance. Supports or does not support load balancing based on service collections.
  • the instance in the target service set, such as the third service instance determines whether the first service instance supports load balancing based on the service set according to the content of the capability indication information.
  • the first service instance does not support selecting other service instances from the service set to which the third service instance belongs, and the first message related to the first session sent by the third service instance or the fourth service instance to the third service instance includes Identification of the third service instance three.
  • the first service instance does not support selecting other service instances from the service set to which the third service instance belongs, which also means that the first service instance can only receive messages sent by the service instance bound to the first session (that is, the third service instance three). Response message.
  • the first service instance sends a request message to the third service instance, and the request message includes an identifier of the third service instance, and the first service instance does not support receiving a response message from a service instance other than the third service instance.
  • the third service instance or the fourth service instance may set the binding relationship indication information corresponding to the session to be bound to the service instance (such as binding to the third service instance). (Determined), the third service instance or the fourth service instance may send the binding relationship indication information to other control plane service instances, so that other control plane service instances send a message related to the session to the third service instance, so as to prevent the A service instance selects service instance three, and other control plane service instances select other service instances, such as service instance four, so that there are more message redirections between service instance three and service instance four.
  • the UPF does not support reselecting SMF2 from the SMF set to provide service for the session of the user equipment
  • SMF1 sets the binding relationship indication information of the session To bind to the SMF set
  • the uplink message related to the session for example, the user equipment initiates a session modification, at this time
  • the corresponding uplink message is sent by the AMF
  • the downlink message for example, the UPF receives the downlink data
  • the paging is triggered, and the corresponding downlink message is sent by the UPF at this time. If the AMF sending the uplink message selects SMF2, the UPF sends a downlink message to SMF1.
  • the downlink message of the UPF needs to be sent to SMF2 and processed by SMF2.
  • the UPF does not support receiving response messages from SMF2
  • the second service instance When the first service instance does not support the load balancing capability based on the service set, if the third service instance is unavailable, the second service instance sends a session update message to the first service instance, and the session update message is used to indicate the The service instance that the first service instance provides for the first session is modified from the third service instance to the second service instance.
  • the session update message includes the identifier of the second service instance.
  • the second service instance SMF1 interacts with the information of the first service instance UPF.
  • the UPF does not support reselecting SMF2 from the SMF set to provide service for the session of the user equipment. If SMF1 is unavailable and the first session is subsequently served by SMF2, SMF2 sends a session update message to the UPF, instructing the UPF to determine that the service instance serving the first session is modified from SMF1 to SMF2.
  • SMF2 sends a session update message to the UPF corresponding to all sessions served by SMF1, or sends UPF corresponding to all sessions provided to SMF1 to the right and backed up by SMF2 Session update message.
  • the first service instance may also register in the NRF whether the ability to select a service instance from the service set is supported, so that the second service instance obtains from the NRF whether the first service instance supports load balancing based on the service set.
  • the second service instance may receive capability indication information sent by the NRF, and the capability indication information indicates whether the first service instance supports selecting a service instance from a service set, that is, has the ability to select a service instance from a service set.
  • the third service instance may receive the capability indication information sent by the first service instance or the capability indication information sent by the NRF, and the capability indication information indicates whether the first service instance supports selecting a service instance from a service set.
  • the third service instance may also determine the binding indication information corresponding to the first session according to its own capability and / or the attributes of the session. If the third service instance does not support load balancing based on the service set, or in some cases does not support load balancing based on the service set, the first session is bound to the third service instance. For example, if the third service instance supports interworking with the fourth generation mobile communication system (that is, 4G), the third service instance sets the binding instruction information of the session provided by the third service instance to be bound to the service instance (that is, the third service instance Three service instance bindings). Alternatively, the third service instance determines the binding indication information of the session according to whether the session supports migration to the LTE system. For example, if the session supports moving to the LTE system, the third service instance sets the binding indication information of the session to the service Instance binding.
  • the fourth generation mobile communication system that is, 4G
  • the third service instance sets the binding instruction information of the session provided by the third service instance to be bound to the service instance (that is, the third
  • the third service instance may determine a session binding mode according to the capability indication information of the first service instance. According to the capability indication information of the first service instance, the third service instance may determine the binding mode indication information.
  • the binding mode indication information may also indicate that the session is bound to the third service instance or to a service set to which the third service instance belongs.
  • the binding mode indication information indicates that the session is bound to the third service instance.
  • the binding mode indication information may indicate that the first session that requires the first service instance to provide services is bound to a third service instance, or that includes a third service instance Service instance service collection binding.
  • the service set including the third service instance is the service set to which the third service instance belongs.
  • the third service instance may determine the binding mode of the session according to its own capability and / or the attributes of the session.
  • the third service instance does not support selecting a service instance from the service set, or the third service instance determines that a session that requires the third service instance to provide services is bound to the third service instance. For example, if the third service instance supports the LTE system, when the third service instance provides services through the LTE system, since the LTE system does not support selecting a service instance from a service set, the third service instance does not support selecting a service instance from the service set. . Therefore, the third service instance supports the LTE system, and it can be considered that the third service instance does not support selecting a service instance from a service set.
  • the first session support service instance provides services through the LTE system, and it can be considered that the third service instance does not support selecting a service instance from a service set.
  • the third service instance may determine the binding mode indication information of the session according to the attributes of the session.
  • the third service instance or the fourth service instance may send the binding relationship indication information to other control plane service instances, so that the other control plane service instances send a message related to the session to the third service instance, so as to prevent the first service instance from appearing.
  • the third service instance is selected, and other control plane service instances select other service instances, such as the fourth service instance, so that there are more message redirections between service instance three and service instance four.
  • the first session is bound to a third service instance. If the third service instance is unavailable, the first service instance selects the second service instance.
  • the first service instance may determine the identity of the target service set, and select a second service instance from the target service set.
  • the first service instance determines an identifier of a target service set according to the target identifier.
  • the target identification includes an identification of a target service set.
  • the first service instance obtains the identifier of the target service set from the target identifier.
  • the target identifier includes the identifier of the third service instance, and the first service instance is based on the identifier of the third service instance, and the identifier and target of the third service instance received from the service instances in the target service set. The correspondence between the identifiers of the service sets determines the identifier of the target service set.
  • the first service instance may send the identifier of the target service set to the NRF, and the NRF sends the identifier of the available service instance in the target service set to the first service instance.
  • the first service instance selects a second service instance from the available service instances in the target service set.
  • the NRF network element may store a correspondence between a service set and one or more service instances.
  • the first service instance may send the identity of the target service set to the NRF network element.
  • the NRF network element may determine that one service instance in the target service set is the second service instance according to the identifier of the target service set and the correspondence between the target service set and one or more service instances.
  • the second service instance is an available service instance.
  • the third service instance is unavailable.
  • the first service instance may send the identifier of the third service instance to the NRF network element, and the NRF network element may determine the target service set described in the third service instance according to the identifier of the third service instance.
  • the NRF network element may determine an available service instance in the target service set according to the identifier of the target service set, and the available service instance includes a second service instance.
  • the first service instance receives the identifier of the first conversation group, and the first service instance may determine the second service instance according to the identifier of the first conversation group.
  • the first conversation group has a corresponding relationship with the second service instance, that is, the second service instance provides services for the sessions in the first conversation group.
  • the first service instance may also determine the second service instance according to the identity of the first session group and the identity of the target service set.
  • the first service instance may save the correspondence between the first session group and the second service instance.
  • the first service instance may determine the second service instance according to the identifier of the first conversation group and the correspondence between the first conversation group and the second service instance.
  • the NRF network element may save the correspondence between the first conversation group and the second service instance, that is, the second service instance provides services for the sessions in the first conversation group.
  • the first service instance may send the identity of the first conversation group to the NRF network element.
  • the NRF network element may determine the second service instance according to the correspondence between the first session group and the second service instance.
  • the NRF network element may send the identity of the second service instance to the first service instance. That is, the first service instance sends the identifier of the first conversation group to the NRF network element.
  • the first service instance receives the identifier of the second service instance sent by the NRF network element to determine the second service instance.
  • the first service instance receives the identifier of the first session group and the identifier of the target service set, the first service instance sends the identifier of the first session group and the identifier of the target service set to the NRF network element, so that the NRF may
  • the identifier of a conversation group selects two service instances corresponding to the first conversation group from the target service set.
  • the first service instance may also select the second service instance according to the mapping relationship between the target service set and the service instance obtained locally.
  • the first service instance may store a correspondence between a service set and one or more service instances.
  • the first service instance may determine that one service instance in the target service set is the second service instance according to the identifier of the target service set and the correspondence between the target service set and one or more service instances.
  • the target service set includes the one or more service instances.
  • the first service instance may receive first information sent by a service instance in the target service set, and the first information includes an identifier of the service instance and an identifier of the target service set. .
  • the first information may indicate a correspondence between a service instance and a target service set.
  • the first service instance obtains the identifier of the target service set according to the target identifier.
  • the first service instance determines the second service instance according to the identifier of the target service set. That is, the first service instance may determine the second service instance according to the identifier of the target service set and the correspondence between the service instance and the target service set.
  • the first service instance may receive the identifier of the service instance and the identifier of the target service set sent by the service instances in the target service set. That is, the first service instance can determine the correspondence between the target service set and the service instance according to the received message. According to the obtained identifier of the target service set, the second service instance may be determined from the target service set.
  • the first service instance may receive an identifier of all or part of the service instances in the service set to which the service instance belongs and a service set identifier sent by one service instance in the service set. That is, the first information may include an identifier of a target service set, and identifiers of multiple service instances.
  • the multiple service instances are all or part of the service instances in the target service set.
  • the first service instance may receive first information sent by the multiple service instances to obtain an identifier of each service instance in the target service set. .
  • the first service instance may determine the correspondence between each service instance in the service set and the service set according to the first information sent by the multiple service instances.
  • the first service instance may receive first information sent by each service instance in a service set, and the first information includes an identifier of the service instance and an identifier of the service set.
  • the first service instance can obtain the correspondence between each service instance in the service set and the service set according to the first information sent by each service instance in the service set.
  • the first service instance may receive the identifier of the service instance and the identifier of the target service set to which the service instance belongs, which are sent by each of the one or more service instances in the target service set.
  • the plurality of service instances include a second service instance.
  • the first service instance may save the correspondence between the target service set and the one or more service instances.
  • the first service instance may receive the identity of the service set and the identity of the service instance from each of the one or more service instances in the service set. That is, each service instance in the target service set sends the identifier of the service instance and the target service set to the first service instance.
  • the first service instance receives the identifier of the first service set and the identifier of the second service instance sent by the second service instance, and the first service set includes the second service instance.
  • the first service instance receives an identifier of a first service set and an identifier of a third service instance sent by a third service instance, and the first service set includes a third service instance.
  • the first service set may be a target service set.
  • the first service instance may determine the corresponding relationship between the service instance and the service set according to the identifier of each service instance received and the identifier of the service set to which it belongs, so that the service instance in the service set can be determined.
  • the first service instance determines the second service instance from the target service set according to the correspondence between the service instance and the service set and the target service set to which the third service instance belongs, and sends a second message to the second service instance.
  • the second service instance is used to provide services for the first session.
  • the third service instance sends the identifier of the target service set to which the third service instance belongs to the first service instance through the first message; or, the first service instance according to the identifier of the third service instance in the target identifier and the received
  • the corresponding relationship between the third service instance and the service set determines its corresponding target service set.
  • the service instance in the service set to which the second service instance belongs identifies the identity of the service set to which the service instance belongs and The identifier of the service instance is sent to the first service instance.
  • the service set identifier of the service set to which the second service instance belongs and the second service are sent.
  • the identity of the instance is sent to the first service instance, so that the first service instance can establish a mapping relationship between the set and all service instances it includes.
  • the SMF set includes SMF1, SMF2, and SMF3.
  • SMF1 sends the identity of the SMF set and the identity of SMF1 to the UPF when establishing the N4 link with the UPF.
  • the identifier sends the UPF
  • SMF3 sends the identifier of the SMF set and the identifier of SMF3 to the UPF when establishing the N4 link with the UPF.
  • the UPF can establish the following association: (SMF set identifier, SMF1 identifier, SMF2 identifier, SMF3 identifier). That is, the UPF establishes a mapping relationship between the SMF set identifier and SMF1, SMF2, and SMF3.
  • the UPF may select SMF2 or SMF3 from the SMF set as the second service instance to provide services for the first session according to the SMF set identifier.
  • the UPF may determine the identity of the SMF set corresponding to SMF1 according to the identity of SMF1, and select SMF2 or SMF3 as the second service instance from the SMF set.
  • the first service instance may obtain, from the service instance, an identifier of a service set to which the service instance belongs and an identifier of the service instance. For example, when the first service instance is a UPF and the target service set is an SMF set, the establishment of a link between network elements refers to the establishment (Setup) of an N4 association.
  • the identifier of the target service set corresponding to the first session when the session is established is obtained at the first service instance, and the target service set is a service set to which the second service instance belongs.
  • the first service instance obtains an identity of one or more service instances included in the target service set.
  • the first service instance may select one service instance in the target service set as the second service instance to provide services for the first session.
  • the identifier of the target service set to which the service instance belongs may also be registered in the NRF network element.
  • Each service instance in the target service set may send the identifier of the service instance and the target service set to the NRF network element.
  • the NRF network element determines the corresponding relationship between the target service set and the service instance according to the identifier of the service instance and the identifier of the target service set sent by each service instance, that is, determines the service instances included in a target service set.
  • the first service instance sends an identification of the target service set to the NRF network element.
  • the NRF network element determines that one service instance in the target service set is the second service instance according to the correspondence between the target service set and the service instance.
  • the NRF network element sends the identifier of the second service instance to the first service instance.
  • the first service instance may obtain the identifier of the target service set according to the target identifier.
  • the first service instance may obtain the identifier of the target service set from the target identifier of the first message, that is, the target identifier includes the identifier of the target service set, and the first service instance may obtain the target service set.
  • logo the identifier of the target service set from the target identifier of the first message, that is, the target identifier includes the identifier of the target service set, and the first service instance may obtain the target service set.
  • the first service instance may obtain the identifier of the target service set according to the identifier of the third service instance.
  • the first service instance may be based on the identifier of the third service instance, and the correspondence between the identifier of the third service instance and the target service set identifier that the first service instance may receive from the service instances in the target service set, for example, associated with N4 (N4 association)
  • N4 N4 association
  • the third service instance sends the identifier of the target service set and the identifier of the third service instance to the first service instance.
  • the first service instance sends the identifier of the third service instance to the NRF network element, and the NRF network element sends the identifier of the target service set to the first service instance.
  • the first service instance sends an identifier of the third service instance to the NRF network element, and the NRF network element determines a target service set corresponding to the third service instance.
  • one or more service instances can provide backups for another service instance.
  • the first service instance receives a third message sent by the second service instance or the third service instance.
  • the third message may include backup instruction information, which is used to indicate that the second service instance is a service instance used to provide a backup for the third service instance, or the third message may indicate that the second service instance is used to provide a third service instance.
  • the first session group of the instance service provides a backup instance of the service. That is, the second service instance provides backup for the third service instance, or the second service instance provides backup for the first session group served by the third service instance.
  • the first service instance determines that the second service instance provides services for the first session according to the backup instruction information and the target identifier.
  • service instance 1 sends a third message to the first service instance, and the third message is used to indicate that service instance 2 is a service instance used to provide backup for service instance 1.
  • the third message may include the identity of service instance 1 and the identity of service instance 2. Among them, at the first moment, service instance 1 provides services for the first session, and service instance 2 provides backups for the first session.
  • the first service instance determines that service instance 2 is the second service instance, and sends a second message to service instance 1, that is, at the second moment, service instance 2 provides services for the first session.
  • the sessions provided by the service instance 2 may also be all sessions served by the service instance 1.
  • the service instance that provides the backup for that session begins to service the session.
  • the service instance that provides backup for this session does not need to obtain the session context from other network elements, which reduces the delay.
  • the service instance 1 sends a third message to the first service instance, and the third message is used to indicate that the service instance 2 is a service instance for providing a backup for the first session group of the service instance service 1.
  • the third message may include the identity of service instance 1, the identity of service instance 2, and the identity of the first session group.
  • the first conversation group includes a first conversation. Among them, at the first moment, service instance 1 provides services for the first conversation group, and service instance 2 provides backup for the first conversation group. That is, service instance 2 may be associated with a set of conversation groups served by the second service instance 1.
  • the third message is a link message between network elements. For example, when the first service instance is a UPF and the target service set is SMF, the third message is an N4 association establishment or update message.
  • the third service instance may send the identity of the backup service instance to the first service instance through the first message.
  • the first service instance determines that the backup service instance is the second service instance according to the identifier of the backup service instance in the first message.
  • the first service instance sends a second message to the second service example.
  • the identifier of the backup service instance may be an IP address of the backup service instance.
  • the first message may include an identification of one or more backup service instances of the third service instance.
  • the target service set may include the one or more backup service instances. That is, the backup service instance corresponding to the identifier of each backup service instance can be understood as the service instance in the service set to which the third service instance belongs. That is, the target service set includes one or more backup service instances, and a third service instance.
  • the first message may include an identifier of one or more backup service instances, that is, the first message may include an identifier of one or more service instances in a target service set.
  • the backup service instance is associated with a set of sessions served by the second service instance, or with all sessions served by the second service instance.
  • the first The message may also include the identity of a set of sessions associated with the backup service instance.
  • the first service instance may further receive the identifier of the service instance sent by each service instance in the target service set, the identifier of the session group provided by the service instance, and the service instance.
  • the ID of the backup session group may be further received.
  • the first service instance may determine that the service instance that provides backup for the conversation group is the second service instance according to the conversation group to which the first session belongs.
  • a service instance in a service set when a service instance in a service set is registered with the NRF, it can also carry the identity of one or more session groups provided by the service for backup services.
  • service instance 1 serves session group 1 and provides backup for session group 2.
  • the message sent by service instance 1 to the first service instance includes: the set identifier corresponding to service instance 1, the identifier of service instance 1, the identifier of session group 1 served by service instance 1, and the backup of service instance 1.
  • service instance 2 serves session group 2 and provides backup for session group 1.
  • the message sent by service instance 2 to the first service instance includes: the set identifier corresponding to service instance 2, service The identifier of the instance 2, the identifier of the conversation group 2 served by the service instance 2, and the identifier of the conversation group 1 backed up by the service instance 2.
  • the first service instance determines the second service instance according to the target service set and the identifier of the session group corresponding to the session. For example, the conversation group corresponds to conversation group 1.
  • the first service instance determines that the conversation group is provided by service instance 2 according to the identifier of conversation group 1. Therefore, service instance 2 is selected as the second service instance.
  • the identifier of the target service set to which the service instance belongs and the identifier of the session group provided by the service instance may be registered in the NRF network element.
  • the first service instance sends an identification of the first conversation group to the NRF.
  • the NRF determines the identity of the second service instance that provides backup for the first conversation group according to the identity of the first conversation group.
  • the NRF may send the identity of the second service instance to the first service instance.
  • the second message may include a message body that includes parameters related to the first session.
  • the second message may be used to instruct the second service instance to provide services for the first session.
  • the second message may be a request message sent by the first service instance to the second service instance.
  • the first service instance is a UPF network element
  • the second service instance is an SMF network element
  • the second message may be used to request the first service.
  • the instance sends a downlink data notification to the second service instance.
  • the second second message may include an identification of the second service instance.
  • the identifier of the second service instance may be located in a fully qualified stream endpoint identifier (F-SEID) field of the second message.
  • F-SEID fully qualified stream endpoint identifier
  • the target identifier can also be used as a new parameter. For example, when a session is created, the second service instance adds an optional field to the session creation request to send the target identifier. You can define one or more fields of the new data type, and one or more fields of the new data type are used to carry the target identifier.
  • the target identifier includes multiple identifiers that can be carried in the same or different fields.
  • the F-SEID of the first message includes the identifier of the service instance 1, and the identifier of the service instance 1 may be, for example, the IP address of the service instance 1.
  • Service instance 1 is unavailable, and the first service instance determines that service instance 2 is the second service instance.
  • the F-SEID field in the second message may include the identity of the service instance 2.
  • the F-SEID field in the second message does not include the identity of the service instance 1.
  • the first service instance is a UPF
  • the second message may include the identity of the first session.
  • the identification of the first session in the second message is determined according to the identification of the first session in the first message. For example, the identifier of the first session in the second message is the same as the identifier of the first session in the first message. Session identification can be used to identify sessions in a service collection.
  • An embodiment of the present application provides a communication method, including a third service instance sending a first message related to a first session to the first service instance, the first message includes a target identifier, and the target identifier is used to indicate the The first service instance determines a second service instance, which is used to provide a service for the first session.
  • the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance or is bound to a target service set.
  • the target service set includes the second service instance and the third service instance.
  • the target identifier includes an identifier of the third service instance.
  • the third service instance receives capability indication information sent by the first service instance or a network storage function NRF network element, and the capability indication information is used to indicate that the first service instance supports a target service set-based Load balancing, the target service set includes the second service instance and the third service instance.
  • the third service instance sends the identifier of the target service set and the identifier of the third service instance to the first service instance, and the target service set includes the second service instance and the The third service example is described.
  • the third service instance sends backup instruction information to the first service instance, and the backup instruction information is used to instruct the second service instance to provide backup for the third service instance or to provide the second service instance
  • a first session group of the service provides backup, and the first session group includes the first session.
  • FIG. 11 is a schematic structural diagram of a transmission agent according to an embodiment of the present application.
  • the transmission agent 900 of FIG. 11 may be used to perform various steps performed by the transmission agent in the methods of FIG. 3 to FIG. 8.
  • the communication device 900 includes a sending unit 910 and a receiving unit 920.
  • the transmission agent 900 may further include a processing unit 930. The functions of each module of the network device 900 are described in detail below:
  • the receiving unit 920 is configured to receive a first message sent by a first service instance, and the first message includes a target identifier; and the sending unit 910 is configured to send a second message to a second service instance that is bound to the target identifier based on the first message .
  • the processing unit 930 is configured to obtain the identifier of the target service set according to the first message when there is no service instance with a binding relationship with the target identifier; the processing unit 930 is further configured to retrieve the target A third service instance is selected from the service set; the sending unit 920 is further configured to send a third message to the three service instances based on the first message.
  • the processing unit 930 is further configured to obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or the processing unit 930 is further configured to obtain the target identifier from the first message.
  • the processing unit 930 is further configured to determine the identifier of the service set having a mapping relationship with the target identifier in the first message as the identifier of the target service set .
  • the receiving unit 920 is further configured to receive a fourth message sent by the second service instance
  • the processing unit 930 is further configured to establish a binding relationship between the target identifier and the second service instance according to the first message.
  • the fourth message is a message related to the user equipment or the fourth message is a special binding request message.
  • the fourth message carries at least one of a binding indication and a binding timer, and the binding timer is used to release the binding relationship between the target identifier and the second service instance after the binding timer expires.
  • the fourth message carries the target identifier.
  • processing unit 930 is further configured to allocate a target identifier after receiving the fourth message sent by the second service instance.
  • the processing unit 930 is further configured to add the target identifier to the fourth message when the message is a message related to the user equipment.
  • the receiving unit 920 is further configured to receive a debinding request sent by the second service instance, where the debinding request is used to request to unbind the target identifier from the second service instance; or, start a binding timer, When the binding timer expires, the binding relationship between the target identifier and the second service instance is released.
  • the target identification is associated with one or a group of user equipments.
  • the target identifier is one of the service pointers configured for the second service instance
  • the receiving unit 820 is further configured to receive a registration request of the second service instance
  • the sending unit 920 is further configured to send a registration response to the second service instance to register The response includes a service pointer configured for the second service instance.
  • the registration request includes the number of service pointers applied by the second service instance
  • the determining unit is further configured to configure the service pointers for the second service instance according to the number of service pointers applied by the second service instance.
  • processing unit 930 is further configured to configure a service pointer for the second service instance according to the capacity of the second service instance.
  • the processing unit 930 is further configured to determine a service set to which the second service instance belongs; the processing unit 930 is further configured to configure a service pointer for the second service instance, so that the service pointer of the second service instance and other services in the service set The service pointer of the instance is different.
  • the target identifier is one of the service pointers configured for the second service instance
  • the receiving unit 920 is further configured to receive a registration request of the second service instance, where the registration request includes the service pointer of the second service instance in order to transmit the proxy binding Second service instance and service pointer.
  • the processing unit 930 is further configured to reconfigure the service pointer for the second service instance when the service pointer of the second service instance conflicts with the service pointers of other service instances in the service set to which the second service instance belongs; the sending unit 920 is also used to send a registration response to the second service instance, where the registration response includes a service pointer reconfigured for the second service instance.
  • the first message is a Hypertext Transfer Protocol HTTP message
  • the target identifier is located in the header of the HTTP message.
  • FIG. 12 is a schematic structural diagram of an example of providing a service according to an embodiment of the present application.
  • the service instance 1000 of FIG. 12 may be used to perform the steps performed by the second service instance in the methods of FIG. 3 to FIG. 8.
  • the service instance 1000 includes a sending unit 1010 and a receiving unit 1020, and the optional map 12 may further include a processing unit 1030.
  • the functions of each module of the communication device 1000 are described in detail below:
  • a sending unit 1010 is configured to send a fourth message to a transmission agent, where the fourth message is used to trigger the transmission agent to establish a binding relationship between the second service instance and a target identifier, where the target identifier is related to a user equipment
  • a receiving unit 1020 configured to receive a second message sent by the transmission agent, where the second message includes the target identifier.
  • the fourth message is a message related to the user equipment, or the fourth message is a special binding request.
  • the fourth message includes at least one of the target identifier and a binding timer.
  • the sending unit 1010 is further configured to send the target identifier to the first service instance.
  • the determining unit is further configured to insert the target identifier in a fourth message, so as to send the target identifier to the first service instance.
  • the sending unit 1010 further includes sending a unbinding request to the transmission agent, where the unbinding request is used to request to unbind the target identifier from the second service instance.
  • the target identifier is related to one or a group of user equipments.
  • the target identifier is one of the service pointers configured for the second service instance
  • the sending unit 1010 is further configured to send a registration request to the transmission agent
  • the receiving unit 1020 is further configured to send The registration response sent by the transport agent includes a service pointer configured for the second service instance.
  • the registration request includes the number of service pointers applied by the second service instance.
  • the sending device is further configured to send a registration request to the transmission agent, where the registration request includes a service pointer configured by the second service instance for itself.
  • the first message is a Hypertext Transfer Protocol HTTP message
  • the target identifier is located in a header of the HTTP message.
  • the service instance 1000 may further include a processing unit 1030, which is configured to process a message received through the receiving unit 1010.
  • the service instance 1000 may also perform each step performed by the first service instance in the methods in FIG. 3 to FIG. 8.
  • the receiving unit 1020 of the service instance 1000 is configured to receive a target identifier related to the user equipment and the second service instance.
  • the sending unit 1010 carries the target when sending a message related to the user equipment and the second service instance. Identification, the target identification is used to send the message to the second service instance.
  • the receiving unit 1020 is configured to receive the target identifier.
  • the receiving unit is configured to receive the target identifier from a transmission agent related to the second service instance.
  • FIG. 13 shows a schematic structural diagram of a transmission agent according to another embodiment of the present application.
  • the transmission agent 1100 includes a processor 1110 and a transceiver 1120.
  • the processor 1110 and the transceiver 1120 communicate with each other through an internal connection circuit.
  • the processor 1110 is configured to execute instructions to control the transceiver 1120 to send signals and / or receive signals.
  • the transfer agent 1110 may further include a memory 1130.
  • the processor 1110, the transceiver 1120, and the memory 1130 communicate with each other through an internal connection path.
  • the memory 1130 is used to store instructions.
  • the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and / Or receive a signal.
  • the transceiver 1120 may provide the same functions as the sending unit 910 and the receiving unit 920 in FIG. 11; the processor 1110 and the memory 1130 may provide the same functions as the processing unit 930 in FIG. 11.
  • the transceiver 1120 is configured to receive a first message sent by a first service instance, where the first message includes a target identifier.
  • the processor 1110 is configured to find whether a service instance corresponding to the target identifier exists.
  • the transceiver 1120 is further configured to send the second message to the second service instance having a binding relationship with the target identifier based on the first message. .
  • FIG. 14 shows a schematic structural diagram of a service example provided by another embodiment of the present application.
  • the service instance can perform each step of the method of FIGS. 3-8.
  • the service instance 1200 includes a transceiver 1220.
  • the transceiver 1220 is used for receiving / transmitting signals.
  • the service instance 1200 may further include a processor 1210, where the processor 1210 and the transceiver 1220 communicate with each other through an internal connection path.
  • the processor 1210 is configured to control the transceiver 1220 to send / receive signals.
  • the service instance 100 may further include a memory 1230.
  • the processor 1210, the transceiver 1220, and the memory 1230 communicate with each other through an internal connection path.
  • the memory 1230 is used to store instructions, and the processor 1210 is used to execute the memory 1230. Stored instructions to control the transceiver 1220 to send and / or receive signals. It should be understood that the transceiver 1220 may provide the same functions as the sending unit 910 and the receiving unit 920 in FIG. 11; the processor 1210 and the memory 1230 may provide the same functions as the processing unit 930 in FIG. 11.
  • the transceiver 1220 is configured to send a fourth message to the transmission agent, and the fourth message is used to trigger the transmission agent to establish a binding relationship between the service instance 1200 and the target identifier; the transceiver 1220 is further configured to receive A second message, the second message including the target identifier.
  • the service instance 1200 may further include a processor 1210, where the processor 1210 is configured to execute an instruction.
  • the service instance 1200 may also perform various steps performed by the first service instance in the methods in FIG. 3 to FIG. 10.
  • the transceiver 1220 in the service instance 1200 is further configured to receive a target identifier related to the user equipment and the second service instance.
  • the transceiver 1220 carries the target when sending a message related to the user equipment and the second service instance. Identification, the target identification is used to send the message to the second service instance, and the processor 1210 is used to execute an instruction.
  • transceiver may be a communication interface.
  • the memory can be a separate device or it can be integrated into the processor.
  • Each of the above devices or part of the devices may be integrated into a chip for implementation, such as being integrated into a baseband chip.
  • FIG. 15 shows a schematic structural diagram of a communication device according to an embodiment of the present application.
  • the communication device 1500 includes a transceiver unit 1510 and a determination unit 1520.
  • the transceiver unit 1510 is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier.
  • the determining unit 1520 is configured to determine a second service instance that provides a service for the first session according to the target identifier.
  • the transceiver unit 1510 is further configured to send a second message related to the first session to the second service instance.
  • the service instance that provides services for the first session is determined according to the target identifier, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be different from the service instance that previously provided services for the first session. Therefore, the first session is interrupted due to the failure of the third service instance.
  • the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance or is bound to a target service set.
  • the target service set includes the second service instance, the third service instance, and the fourth service instance.
  • the communication device can determine a method of selecting a service instance.
  • the target identifier includes an identifier of the third service instance.
  • the transceiver unit 1510 is further configured to receive a third message sent by the third service instance, where the third message includes backup instruction information, and the backup instruction information is used to indicate that the second service instance is
  • the third service instance provides a backup or the second service instance provides a backup for a first conversation group served by the third service instance; the first conversation group includes the first conversation;
  • the determining unit 1520 is configured to determine the second service instance according to the backup instruction information and the target identifier when the third service instance is unavailable.
  • the service instance that provides backup in the first session can be used as a candidate service instance.
  • the backup service instance provides services for the first session, which can prevent the first session from being interrupted when the third service instance fails, and improve the user experience.
  • the communication device 1500 further includes an acquiring unit, configured to acquire the identifier of the target service set according to the target identifier.
  • the determining unit 1520 is configured to determine the second service instance from the target service set according to the identifier of the target service set, where the target service set includes the second service instance, the third service instance, and The fourth service instance.
  • the transceiver unit 1510 is further configured to send the identifier of the target service set to a network storage function NRF network element,
  • the transceiver unit 1510 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance, and a target service set to which the second service instance belongs includes the second service instance.
  • determining that the service instance provides services for the first session can reduce the requirements for the storage capacity and processing capacity of the first service instance.
  • the transceiver unit 1510 is further configured to receive first information sent by a service instance in the target service set, where the first information includes an identifier of the service instance and an identifier of the target service set;
  • the determining unit 1520 is configured to determine the second service instance according to an identifier of the target service set and first information.
  • the obtaining unit is configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes an identifier of the target service set.
  • the acquiring unit is configured to: when the target identifier includes the identifier of the third service instance, acquire the identifier of the target service set according to the identifier of the third service instance; the target service set includes The third service instance.
  • the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation.
  • the transceiver unit 1510 is further configured to send the identifier of the first session group to a network storage function NRF network element.
  • the transceiver unit 1510 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance.
  • the communication device 1500 is a user plane function UPF network element, and the second service instance, the third service instance, and the fourth service instance are session management function SMF network elements.
  • FIG. 16 shows a schematic structural diagram of a communication device according to an embodiment of the present application.
  • the communication device 1600 includes a communication interface 1610 and a processor 1620.
  • the communication interface 1610 is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier.
  • the processor 1620 is configured to determine a second service instance that provides a service for the first session according to the target identifier.
  • the communication interface 1610 is further configured to send a second message related to the first session to the second service instance.
  • the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance or is bound to a target service set.
  • the target service set includes the second service instance, the third service instance, and the fourth service instance.
  • the target identifier includes an identifier of the third service instance.
  • the communication interface 1610 is further configured to receive a third message sent by the third service instance, where the third message includes backup instruction information, and the backup instruction information is used to indicate that the second service instance is
  • the third service instance provides a backup or the second service instance provides a backup for a first conversation group served by the third service instance; the first conversation group includes the first conversation;
  • the processor 1620 is configured to determine the second service instance according to the backup instruction information and the target identifier when the third service instance is unavailable.
  • the processor 1620 is further configured to obtain an identifier of the target service set according to the target identifier.
  • the processor 1620 is further configured to determine the second service instance from the target service set according to the identifier of the target service set, where the target service set includes the second service instance and the third service instance And the fourth service instance.
  • the communication interface 1610 is further configured to send an identifier of the target service set to a network storage function NRF network element,
  • the communication interface 1610 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance.
  • the communication interface 1610 is further configured to receive first information sent by a service instance in the target service set, where the first information includes an identifier of the service instance and an identifier of the target service set; the processor 1620 uses Therefore, the second service instance is determined from the target service set according to the identifier of the target service set and the first information.
  • the processor 1620 is further configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes an identifier of the target service set; or
  • the processor 1620 is further configured to: when the target identifier includes the identifier of the third service instance, the communication device 1500 obtains the identifier of the target service set according to the identifier of the third service instance; the target service set includes The third service instance.
  • the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation.
  • the communication interface 1610 is further configured to send the identifier of the first session group to a network storage function NRF network element;
  • the communication interface 1610 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance.
  • the communication device 1500 is a user plane function UPF network element, and the second service instance, the third service instance, and the fourth service instance are session management function SMF network elements.
  • the embodiment of the present application provides a communication device, and the communication device may be configured to perform each step performed by the third service instance in the method in FIG. 10.
  • the communication device includes a unit for performing a method / step / function of the third service instance in FIG. 10.
  • An embodiment of the present application provides a communication system including a transceiver and a processor.
  • the transceiver communicates with the processor through an internal connection path.
  • the processor is used to control the receiver to receive signals and to control the transmitter to send signals.
  • the communication device further includes a memory, wherein the transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control
  • the receiver receives the signal and controls the transmitter to send the signal so that the device performs the method / step / function of the third service instance in FIG. 10.
  • An embodiment of the present application provides a communication system including a first service instance, where the first service instance is configured to perform each step performed by the first service instance in the method in FIG. 10.
  • system may further include a third service instance, where the first service instance is configured to perform each step performed by the third service instance in the method in FIG. 10.
  • the system may further include other devices for interacting with the first service instance and / or the third service instance.
  • the other device may be, for example, an access management function network element, and the access management function network element may be used to execute a method performed by the access management function network element in the solution provided in FIG.
  • the embodiment of the present application provides a computer program product.
  • the computer program product includes computer program code, and when the computer program code is run by a computer, the functions of the service example and the transmission agent described above can be implemented.
  • An embodiment of the present application provides a computer-readable medium for storing a computer program, where the computer program includes instructions for implementing the functions of the service instance and the transfer agent described above.
  • An embodiment of the present application provides a communication chip, in which instructions are stored, which when run on a computer device enable the functions of the service instance and the transmission agent described above to be implemented.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of this application is essentially a part that contributes to the existing technology or a part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
  • the aforementioned storage media include: U disks, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks or compact discs and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a communication method and a communication device. The communication method comprises: receiving a first message sent by a first service instance, wherein the first message includes a target identifier; and on the basis of the first message, sending a second message to a second service instance that has a binding relationship with the target identifier. The technical solutions provided in the embodiments of the present application can reduce the complexity of processing service instances.

Description

通信方法和通信设备Communication method and communication equipment
本申请要求于2018年8月13日提交中国国家知识产权局、申请号为201810918830.0、发明名称为“通信方法和通信设备”的中国专利申请的优先权,以及要求于2019年6月17日提交中国国家知识产权局、申请号为201910523684.6、发明名称为“通信方法和通信设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China on August 13, 2018, with an application number of 201810918830.0, and the invention name is "Communication Method and Communication Equipment", and is requested to be filed on June 17, 2019. The priority of the Chinese patent application of the State Intellectual Property Office of China, application number 201910523684.6, and invention name "communication method and communication device", the entire contents of which are incorporated herein by reference.
技术领域Technical field
本申请涉及通信领域,并且更具体地,涉及一种通信方法和通信设备。The present application relates to the field of communications, and more particularly, to a communication method and a communication device.
背景技术Background technique
在为一个用户设备完成通信服务的过程中,通常需要多个服务实例之间的信息交互。例如某生产者服务实例将用户设备相关的消息发送给服务框架,服务框架在多个消费者服务实例中挑选出一个,并将该用户设备相关的消息发送给该消费者服务实例。In the process of completing communication services for a user equipment, information interaction between multiple service instances is usually required. For example, a producer service instance sends a message related to user equipment to a service framework. The service framework picks one out of multiple consumer service instances and sends a message related to the user equipment to the consumer service instance.
然而一些场景下,需要相同的服务实例为同一用户设备服务,上述方法并不能保证多次消息交互的过程中均由相同的服务实例为同一用户设备服务。现有技术通过使两个正在进行用户设备通信的服务实例通知对端将后续将与该用户设备相关消息发送给自身,从而完成服务实例之间的绑定。然而上述直接将服务实例之间绑定的方法,增加了服务实例之间的耦合度以及服务实例处理的复杂度。However, in some scenarios, the same service instance is required to serve the same user equipment. The above method cannot guarantee that the same service instance will serve the same user equipment during multiple message interactions. In the prior art, two service instances communicating with the user equipment are notified to the peer to send subsequent messages related to the user equipment to itself, thereby completing the binding between the service instances. However, the above method of directly binding service instances increases the degree of coupling between service instances and the complexity of service instance processing.
发明内容Summary of the Invention
本申请提供一种通信方法和通信设备,能够减少服务实例处理的复杂度。The application provides a communication method and a communication device, which can reduce the complexity of service instance processing.
第一方面,提供了一种通信方法,包括:接收第一服务实例发送的第一消息,所述第一消息包含目标标识;基于所述第一消息,向与所述目标标识有绑定关系的第二服务实例发送所述第二消息。According to a first aspect, a communication method is provided, including: receiving a first message sent by a first service instance, the first message including a target identifier; and based on the first message, having a binding relationship with the target identifier The second service instance sends the second message.
上述技术方案中,利用目标标识与服务实例之间的绑定,代替现有技术中服务实例之间的直接绑定。能够降低服务实例之间耦合度,减少服务实例处理的复杂度。In the above technical solution, the binding between the target identifier and the service instance is used instead of the direct binding between the service instances in the prior art. It can reduce the coupling between service instances and reduce the complexity of service instance processing.
应理解,上述服务实例可以是第五代(fifth-generation,5G)移动通信***中的网络功能,还可以是某一网络功能的提供的服务。随着技术的演进,服务实例还可以是单独划分出来的独立于网络功能的服务实例,本申请实施例对此不做具体限定。It should be understood that the foregoing service instance may be a network function in a fifth-generation (5G) mobile communication system, and may also be a service provided by a certain network function. With the evolution of technology, the service instance may also be a separately divided service instance independent of network functions, which is not specifically limited in the embodiment of the present application.
应理解,所述第一消息是与用户设备相关的消息,所述第一消息用于请求第二服务,所述第二服务是第二服务实例提供的与用户设备相关的服务。It should be understood that the first message is a message related to the user equipment, and the first message is used to request a second service, and the second service is a service related to the user equipment provided by the second service instance.
结合第一方面,在第一方面的某些实现方式中,当没有与所述目标标识具有绑定关系的服务实例时,根据所述第一消息,获取目标服务集合的标识;根据所述目标服务集合的标识,从所述目标服务集合中选取第三服务实例;基于所述第一消息,向所述第三服务实例发送第三消息。With reference to the first aspect, in some implementations of the first aspect, when there is no service instance having a binding relationship with the target identifier, the identifier of the target service set is obtained according to the first message; according to the target An identification of a service set, selecting a third service instance from the target service set; and sending a third message to the third service instance based on the first message.
上述技术方案中,当不存在与目标标识有绑定关系的服务实例时,利用目标服务集合标 识能够快速有效地选取新的服务实例作为目标服务实例,保证服务的可靠性。In the above technical solution, when there is no service instance that has a binding relationship with the target identifier, the target service set identifier can be used to quickly and effectively select a new service instance as the target service instance to ensure service reliability.
结合第一方面,在第一方面的某些实现方式中,从所述第一消息中获取所述目标服务集合的标识,所述第一消息中还包括所述目标服务集合的标识;或者,从所述第一消息中的所述目标标识中获取所述目标服务集合的标识,所述目标标识中包括所述目标服务集合的标识;或者,将与所述第一消息中的所述目标标识具有映射关系的服务集合的标识确定为所述目标服务集合的标识。With reference to the first aspect, in some implementations of the first aspect, the identifier of the target service set is obtained from the first message, and the first message further includes the identifier of the target service set; or, Obtain the identifier of the target service set from the target identifier in the first message, where the target identifier includes the identifier of the target service set; or, it will be the same as the target in the first message An identifier identifying a service set having a mapping relationship is determined as an identifier of the target service set.
应理解,不同的服务集合具有不同的服务集合标识,本申请实施例对目标服务集合标识在第一消息中所占信元的位置不做具体限定。如上文所述,目标服务集合标识可以占用目标标识中的信元,还可以占用第一消息中除了目标标识以外的其他信元,还可以是根据目标标识与服务集合标识的映射关系得到目标服务集合标识等等。It should be understood that different service sets have different service set identifiers, and the embodiment of the present application does not specifically limit the position of the cell occupied by the target service set identifier in the first message. As described above, the target service set identifier may occupy cells in the target identifier, may also occupy other cells in the first message except the target identifier, or may obtain the target service according to the mapping relationship between the target identifier and the service set identifier. Collection ID and more.
结合第一方面,在第一方面的某些实现方式中,所述通信方法还包括:接收所述第二服务实例发送的第四消息,传输代理根据所述第四消息获得所述目标标识与所述第二服务实例之间的绑定关系。应理解,上述技术方案中由服务实例通过发送第四消息触发传输代理建立服务实例与目标标识的绑定关系。本申请实施例还可以是传输代理不经第四消息触发,主动建立服务实例与目标标识之间的绑定关系。With reference to the first aspect, in some implementations of the first aspect, the communication method further includes: receiving a fourth message sent by the second service instance, and the transmission agent obtains the target identifier and A binding relationship between the second service instances. It should be understood that, in the above technical solution, the service instance triggers the transmission agent to establish a binding relationship between the service instance and the target identifier by sending a fourth message. In the embodiment of the present application, the transmission agent may actively establish a binding relationship between the service instance and the target identifier without being triggered by the fourth message.
结合第一方面,在第一方面的某些实现方式中,所述第四消息为与用户设备相关的消息或所述第四消息为专门的绑定请求消息。With reference to the first aspect, in some implementations of the first aspect, the fourth message is a message related to a user equipment or the fourth message is a special binding request message.
结合第一方面,在第一方面的某些实现方式中,所述第四消息中携带所述目标标识。With reference to the first aspect, in some implementations of the first aspect, the fourth message carries the target identifier.
结合第一方面,在第一方面的某些实现方式中,所述通信方法还包括:在接收到所述第二服务实例发送的第四消息后,为所述第二服务实例分配所述目标标识。With reference to the first aspect, in some implementations of the first aspect, the communication method further includes: after receiving a fourth message sent by the second service instance, allocating the target to the second service instance Logo.
利用传输代理为服务实例分配目标标识可以减轻服务实例的负担,进一步减少服务实例处理的复杂度。Using a transfer agent to assign a target identifier to a service instance can reduce the burden on the service instance and further reduce the processing complexity of the service instance.
结合第一方面,在第一方面的某些实现方式中,所述通信方法还包括:当所述消息为与用户设备相关的消息时,将所述目标标识添加到所述第四消息中。With reference to the first aspect, in some implementations of the first aspect, the communication method further includes: when the message is a message related to a user equipment, adding the target identifier to the fourth message.
传输代理在分配了所述目标标识后将目标标识添加到第四消息中,能够保证第一服务实例在接收到该添加了该目标标识的第四消息后可以获得所述目标标识,从而在后续发送消息给第二服务实例时可以携带该目标标识,使得传输代理可以根据所述目标标识与服务实例的绑定关系将消息发送给所述第二服务实例。The transmission agent adds the target identifier to the fourth message after the target identifier is allocated, which can ensure that the first service instance can obtain the target identifier after receiving the fourth message with the target identifier added, so that When sending a message to the second service instance, the target identifier may be carried, so that the transmission agent may send the message to the second service instance according to the binding relationship between the target identifier and the service instance.
结合第一方面,在第一方面的某些实现方式中,所述第四消息中携带绑定指示和绑定定时器的至少一个,所述绑定定时器用于在绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。With reference to the first aspect, in some implementations of the first aspect, the fourth message carries at least one of a binding indication and a binding timer, and the binding timer is configured to be released after the binding timer expires. A binding relationship between the target identifier and the second service instance.
应理解,第四消息中携带绑定指示的情况可以理解为显式的触发。当然第四消息中也可以不包括绑定指示,这种情况可以理解为隐式的触发,此种情况下传输代理在可以接收到第四消息时直接建立绑定目标标识与服务实例的绑定关系。It should be understood that the case that the fourth message carries the binding indication can be understood as an explicit trigger. Of course, the fourth message may not include a binding indication. This situation can be understood as an implicit trigger. In this case, the transmission agent directly establishes the binding of the binding target identifier and the service instance when the fourth message can be received. relationship.
利用绑定定时器,能够精确控制服务实例与目标标识的绑定时间,以便在绑定定时器到期后可以选择其他服务实例,从而支持更好的负载均衡。By using the binding timer, the binding time between the service instance and the target identifier can be precisely controlled, so that other service instances can be selected after the binding timer expires, thereby supporting better load balancing.
结合第一方面,在第一方面的某些实现方式中,所述通信方法还包括:接收所述第二服务实例发送的第五消息,所述第五消息用于请求解除所述目标标识与所述第二服务实例的绑定关系;或者,启动绑定定时器,当所述绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。With reference to the first aspect, in some implementations of the first aspect, the communication method further includes: receiving a fifth message sent by the second service instance, where the fifth message is used for requesting to release the target identifier and The binding relationship of the second service instance; or, starting a binding timer, and releasing the binding relationship between the target identifier and the second service instance when the binding timer expires.
利用发起的解绑定请求或者绑定定时器,使得服务实例在不需要处理某一用户设备相关的消息时,通知传输代理解除目标标识与服务实例之间的绑定关系。上述技术方案由传输代理维护目标标识与服务实例之间的绑定关系,代替现有技术中的服务实例直接维护服务实例之间的绑定关系,可以进一步降低服务实例处理的复杂度。By using an unbinding request or a binding timer that is initiated, the service instance notifies the transport agent to release the binding relationship between the target identifier and the service instance when it does not need to process messages related to a certain user equipment. In the above technical solution, the binding relationship between the target identifier and the service instance is maintained by the transmission agent, and instead of the service instance in the prior art, the binding relationship between the service instances is directly maintained, which can further reduce the processing complexity of the service instance.
应理解,服务实例可以是在自身负载较重、服务实例下线、或者服务实例故障等情况下发起解绑定请求,通知传输代理解除目标标识与服务实例之间的绑定。保证在上述情况下能够将与用户设备相关的业务从上述服务实例中移除。It should be understood that the service instance may initiate a debinding request under a heavy load, the service instance goes offline, or the service instance fails, and notify the transport agent to unbind the target identifier from the service instance. It is guaranteed that the services related to user equipment can be removed from the above service instances under the above circumstances.
结合第一方面在,在第一方面的某些实现方式中,所述第五消息中还携带指示信息,所述指示信息用于指示传输代理将所述目标标识与所述第三服务实例绑定。With reference to the first aspect, in some implementations of the first aspect, the fifth message further carries indication information, and the indication information is used to instruct a transmission agent to bind the target identifier to the third service instance set.
在第五消息中携带指示信息,能够在请求目标标识与原服务实例解绑定的同时,指示将该目标标识与其他服务实例绑定。从而完成服务实例之间业务负载的转移,实现服务实例之间的负载均衡。The fifth message carries instruction information, and can request the target identifier to be unbound from the original service instance, and instruct the target identifier to be bound to other service instances. This completes the transfer of business load between service instances and achieves load balancing between service instances.
应理解,第二服务实例可以在感知到其他服务实例的负载较少,或者其他服务实例通信质量更佳的情况下请求将该待解绑定的目标标识与该其他服务实例绑定,但本申请实施例并不限于此。It should be understood that the second service instance may request to bind the target identifier to be unbound to the other service instance when the load of the other service instance is less, or the communication quality of the other service instance is better. The application examples are not limited to this.
结合第一方面,在第一方面的某些实现方式中,所述目标标识与一个或一组用户设备相关。使用不同粒度的目标标识,有助于完成不同粒度的业务管理。With reference to the first aspect, in some implementations of the first aspect, the target identifier is related to one or a group of user equipments. The use of different granularity of target identification helps to complete different granularity of business management.
应理解,所述目标标识可以采用不同格式,例如,当所述目标标识与一个用户设备相关时,所述目标标识可以是传输代理的IP地址和端口号中的至少一个,或者,所述目标标识还可以是所述第二服务实例所属服务集合的标识和所述服务集合内的唯一标识,或者,所述目标标识是传输代理分配的在传输代理中唯一的数值,本申请对此不做限定;当所述目标标识与一组用户设备相关时,所述目标标识可以是所述第二服务实例对应的服务集合的标识、或者所述服务集合的标识和所述第二服务实例的标识、或者是所述服务集合的标识和所述服务集合内唯一的服务指针,所述服务指针用于标识该服务集合内的一组用户设备等,本申请对此不做限定。It should be understood that the target identifier may use different formats. For example, when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transport agent, or the target The identifier may also be an identifier of a service set to which the second service instance belongs and a unique identifier within the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not done in this application. Limitation; when the target identifier is related to a group of user equipment, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance Or the identifier of the service set and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
应理解,可以根据具体需要选择单一或者是多个用户设备相关的目标标识,本申请实施例对何时选择单一或者多个用户设备相关的目标标识不做具体限定。It should be understood that a single or multiple target identifiers related to user equipment may be selected according to specific needs, and the embodiment of the present application does not specifically limit when to select a single or multiple target identifiers related to user equipment.
结合第一方面,在第一方面的某些实现方式中所述目标标识是为所述第二服务实例配置的服务指针之一,所述通信方法还包括:接收所述第二服务实例的第六消息,所述第六消息用于请求为所述第二服务实例配置服务指针;向所述第二服务实例发送第六消息响应,所述第六消息响应包括为所述第二服务实例配置的服务指针。With reference to the first aspect, in some implementations of the first aspect, the target identifier is one of the service pointers configured for the second service instance, and the communication method further includes: receiving the first Six messages, the sixth message is used to request a service pointer to be configured for the second service instance; a sixth message response is sent to the second service instance, and the sixth message response includes configuration for the second service instance Service pointer.
传输代理为服务实例配置服务指针,能够实现服务指针的自动化配置。The transfer agent configures the service pointer for the service instance, which can realize the automatic configuration of the service pointer.
应理解上述第六消息响应中包括一个或多个服务指针。It should be understood that the sixth message response includes one or more service pointers.
应理解上述服务指针可以是与单个用户设备相关的服务指针,也可以是与多个用户设备相关的服务指针,即一个服务指针可以对应单个用户设备,也可以对应于多个用户设备。It should be understood that the foregoing service pointer may be a service pointer related to a single user equipment or a service pointer related to multiple user equipments, that is, one service pointer may correspond to a single user equipment or may correspond to multiple user equipments.
应理解当上述服务指针与单个用户设备相关时,所述服务指针可以是服务指针的范围(例如从1到100)。It should be understood that when the above-mentioned service pointer is related to a single user equipment, the service pointer may be a range of service pointers (for example, from 1 to 100).
结合第一方面,在第一方面的某些实现方式中,所述注册请求中包含以下信息中的至少一种:服务实例标识、服务类型、生产厂商信息、服务实例的容量、服务实例所服务的区域、服务实例所支持的网络切片能力服务实例所属的服务集合的标识。根据服务类型的不同,注 册请求中还可能携带数据网络名称(data network name,DNN)等其他信息。With reference to the first aspect, in some implementations of the first aspect, the registration request includes at least one of the following information: service instance identifier, service type, manufacturer information, service instance capacity, and service instance service Region, the network slice capability supported by the service instance, and the identifier of the service set to which the service instance belongs. Depending on the type of service, the registration request may also carry other information such as data network name (DNN).
结合第一方面,在第一方面的某些实现方式中,在所述第二服务实例向传输代理发送注册请求之前,所述方法还包括:所述第二服务实例发现所述传输代理。With reference to the first aspect, in some implementations of the first aspect, before the second service instance sends a registration request to a transmission agent, the method further includes: the second service instance discovers the transmission agent.
例如,可以事先将本地传输代理的地址信息,如正式域名(fully qualified domain name,FQDN)或IP地址固定配置在第二服务实例的配置文件中;或者服务实例通过发现机制发现本地传输代理,例如可以是第二服务实例在网络中发送广播或组播消息;还可以是类似于动态主机配置协议(dynamic host configuration protocol,DHCP)服务器的发现机制。本申请实施例对此不做具体限定。For example, the address information of the local transport agent, such as a fully qualified domain name (FQDN) or IP address, can be fixed in the configuration file of the second service instance in advance; or the service instance discovers the local transport agent through the discovery mechanism, such as It may be a second service instance sending a broadcast or multicast message in the network; it may also be a discovery mechanism similar to a dynamic host configuration protocol (DHCP) server. This embodiment of the present application does not specifically limit this.
结合第一方面,在第一方面的某些实现方式中,所述第六消息中包括所述第二服务实例申请的服务指针的数量,所述通信方法还包括:根据所述第二服务实例申请的服务指针的数量为所述第二服务实例配置服务指针。With reference to the first aspect, in some implementations of the first aspect, the sixth message includes the number of service pointers applied by the second service instance, and the communication method further includes: according to the second service instance The number of applied service pointers configures a service pointer for the second service instance.
第六消息中携带的所请求的服务指针的数量,使服务实例根据自身负载或者其他信息,合理请求传输代理分配服务指针,保证合适粒度的与用户设备相关的业务管理。The number of requested service pointers carried in the sixth message enables the service instance to reasonably request the transmission agent to allocate service pointers based on its own load or other information, to ensure appropriate granularity of user equipment-related business management.
结合第一方面,在第一方面的某些实现方式中,所述通信方法还包括:根据所述第二服务实例的容量为所述第二服务实例配置服务指针。With reference to the first aspect, in some implementations of the first aspect, the communication method further includes: configuring a service pointer for the second service instance according to a capacity of the second service instance.
第六消息中携带服务实例的容量,能够使服务实例综合第二服务实例所属的服务集合中的其他服务实例的容量配置服务指针,保证合适粒度的绑定与解绑定。The sixth message carries the capacity of the service instance, so that the service instance can integrate the capacity of other service instances in the service set to which the second service instance belongs to configure a service pointer, and ensure proper granularity of binding and unbinding.
结合第一方面,在第一方面的某些实现方式中,所述通信方法还包括:确定所述第二服务实例所属的服务集合;为所述第二服务实例配置服务指针,使得所述第二服务实例的服务指针与所述服务集合中的其他服务实例的服务指针不同。With reference to the first aspect, in some implementations of the first aspect, the communication method further includes: determining a service set to which the second service instance belongs; and configuring a service pointer for the second service instance such that the first The service pointers of the two service instances are different from the service pointers of other service instances in the service set.
在分配服务指针的同时考虑服务实例所属服务集合的标识:为相同的服务集合内的服务实例分配不同的服务指针,能够防止服务集合内服务指针的冲突。为不同的服务集合内的服务实例分配相同的指针,能够在不产生整网服务指针冲突的同时,避免服务指针资源的浪费。When assigning service pointers, consider the identity of the service set to which the service instance belongs: assigning different service pointers to service instances in the same service set can prevent conflicts in service pointers in the service set. Allocating the same pointer to service instances in different service sets can avoid the waste of service pointer resources while not causing conflicts in service pointers for the entire network.
结合第一方面,在第一方面的某些实现方式中,所述目标标识包括为所述第二服务实例配置的服务指针之一,所述通信方法还包括:接收所述第二服务实例的第七消息,所述第七消息包括所述第二服务实例的服务指针,以便传输代理绑定所述第二服务实例与所述服务指针。With reference to the first aspect, in some implementations of the first aspect, the target identifier includes one of service pointers configured for the second service instance, and the communication method further includes: receiving the second service instance's A seventh message, where the seventh message includes a service pointer of the second service instance, so that a transport agent binds the second service instance and the service pointer.
上述技术方案中,第七消息中的服务指针可以是预先为第二服务实例配置的服务指针,能够保证提前根据第二服务实例需要为其配置分配服务指针。In the above technical solution, the service pointer in the seventh message may be a service pointer configured for the second service instance in advance, which can ensure that the service pointer is allocated for the configuration of the second service instance in advance according to the needs.
结合第一方面,在第一方面的某些实现方式中,所述通信方法还包括:当所述第二服务实例的服务指针与所述第二服务实例所属的服务集合中的其他服务实例的服务指针冲突时,重新为所述第二服务实例配置服务指针;向所述第二服务实例发送第七消息响应,所述第七消息响应包含重新为所述第二服务实例配置的服务指针。With reference to the first aspect, in some implementations of the first aspect, the communication method further includes: when a service pointer of the second service instance and other service instances in a service set to which the second service instance belongs are When the service pointer conflicts, reconfigure the service pointer for the second service instance; and send a seventh message response to the second service instance, where the seventh message response includes the service pointer reconfigured for the second service instance.
在服务实例的服务指针与其所属服务集合中的其他服务实例的服务指针存在冲突的情况下,传输代理为服务实例重新分配服务指针,保证同一服务集合内服务指针的唯一性。In the case where the service pointer of the service instance conflicts with the service pointers of other service instances in the service set to which the service instance belongs, the transfer agent reassigns the service pointer to the service instance to ensure the uniqueness of the service pointer in the same service set.
结合第一方面,在第一方面的某些实现方式中,所述第一消息为超文本传输协议HTTP消息时,所述目标标识位于所述HTTP消息的头部。With reference to the first aspect, in some implementations of the first aspect, when the first message is a Hypertext Transfer Protocol (HTTP) message, the target identifier is located in a header of the HTTP message.
目标标识位于HTTP消息的头部便于传输代理识别和处理。The target identifier is located in the header of the HTTP message to facilitate identification and processing by the transport agent.
应理解,第一消息可以是上述的HTTP消息,还可以是AMQP消息,还可以是其他格式的消息,本申请实施例对第一消息本身不做具体限定。It should be understood that the first message may be the above-mentioned HTTP message, or may be an AMQP message, or may be a message of other formats. The embodiment of the present application does not specifically limit the first message itself.
第二方面,提供一种通信方法,所述通信方法包括:第二服务实例向传输代理发送第四消息,所述第四消息用于触发所述传输代理建立所述第二服务实例与目标标识的绑定关系,其中所述目标标识与用户设备相关;所述第二服务实例接收所述传输代理转发的与用户设备相关的第二消息,所述第二消息包含所述目标标识。In a second aspect, a communication method is provided. The communication method includes: a second service instance sends a fourth message to a transmission agent, the fourth message is used to trigger the transmission agent to establish the second service instance and a target identifier. Binding relationship, wherein the target identifier is related to the user equipment; the second service instance receives a second message related to the user equipment forwarded by the transport agent, and the second message includes the target identifier.
结合第二方面,在第二方面的某些实现方式中,所述第四消息为与用户设备相关的消息,或者所述第四消息为专门的绑定请求。With reference to the second aspect, in some implementations of the second aspect, the fourth message is a message related to user equipment, or the fourth message is a special binding request.
结合第二方面,在第二方面的某些实现方式中,所述第四消息中包含所述目标标识和绑定定时器中的至少一个。With reference to the second aspect, in some implementation manners of the second aspect, the fourth message includes at least one of the target identifier and a binding timer.
应理解,第四消息中携带绑定指示的情况可以理解为显式的触发。当然第四消息中也可以不包括绑定指示,这种情况可以理解为隐式的触发。It should be understood that the case that the fourth message carries the binding indication can be understood as an explicit trigger. Of course, the fourth message may not include a binding indication, and this situation may be understood as an implicit trigger.
利用绑定定时器,能够精确控制服务实例与目标标识的绑定时间,以便在绑定定时器到期后可以选择其他服务实例,从而支持更好的负载均衡。By using the binding timer, the binding time between the service instance and the target identifier can be precisely controlled, so that other service instances can be selected after the binding timer expires, thereby supporting better load balancing.
结合第二方面,在第二方面的某些实现方式中,所述通信方法还包括:所述第二服务实例向第一服务实例发送所述目标标识。With reference to the second aspect, in some implementations of the second aspect, the communication method further includes: the second service instance sending the target identifier to the first service instance.
结合第二方面,在第二方面的某些实现方式中,所述通信方法还包括:所述传输代理在第四消息中***所述目标标识,以便将所述目标标识发送给所述第一服务实例。With reference to the second aspect, in some implementations of the second aspect, the communication method further includes: the transmission agent inserts the target identifier in a fourth message, so as to send the target identifier to the first Service instance.
第一服务实例可以获取第二服务实例的目标标识,以便在下次消息交互中,第一服务实例能够在用户设备相关的消息中携带目标标识,从而将与该用户设备相关的消息发送给上次消息交互所使用的第二服务实例,达到相同服务实例为同一用户服务的目的。The first service instance can obtain the target identifier of the second service instance, so that in the next message interaction, the first service instance can carry the target identifier in a message related to the user equipment, thereby sending the message related to the user equipment to the last time The second service instance used by the message interaction achieves the purpose that the same service instance serves the same user.
结合第二方面,在第二方面的某些实现方式中,所述通信方法还包括:所述第二服务实例向所述传输代理发送第五消息,所述第五消息用于请求解除所述目标标识与所述第二服务实例的绑定关系。With reference to the second aspect, in some implementations of the second aspect, the communication method further includes: sending, by the second service instance, a fifth message to the transmission agent, where the fifth message is used to request to release the The binding relationship between the target identifier and the second service instance.
利用发起的解绑定请求,使得服务实例在不需要处理某一用户设备相关的消息时,通知传输代理解除目标标识与服务实例之间的绑定关系。由传输代理维护目标标识与服务实例之间的绑定关系,代替现有技术中的服务实例直接维护服务实例之间的绑定关系,可以进一步降低服务实例处理的复杂度。The unbinding request is initiated, so that the service instance notifies the transport agent to release the binding relationship between the target identifier and the service instance when it does not need to process a message related to a certain user equipment. The transport agent maintains the binding relationship between the target identifier and the service instance. Instead of directly maintaining the service instance in the prior art, the binding relationship between the service instances can further reduce the processing complexity of the service instance.
应理解,服务实例可以是在自身负载较重、服务实例下线、或者服务实例故障等情况下发起解绑定请求,通知传输代理解除目标标识与服务实例之间的绑定,保证在上述情况下能够将与用户设备相关的业务从上述服务实例中移除。It should be understood that the service instance may initiate a debinding request under heavy load, service instance offline, or service instance failure, and notify the transport agent to unbind the target identifier from the service instance. The service related to the user equipment can be removed from the above service instance.
结合第二方面,在第二方面的某些实现方式中,所述第五消息中还携带指示信息,所述指示信息用于指示传输代理将所述目标标识与所述第三服务实例绑定。With reference to the second aspect, in some implementations of the second aspect, the fifth message further carries indication information, where the indication information is used to instruct a transport agent to bind the target identifier to the third service instance .
在第五消息中携带指示信息,能够在请求目标标识与原服务实例解绑定的同时,指示将该目标标识与其他服务实例绑定,从而完成服务实例之间业务负载的转移,实现服务实例之间的负载均衡。The fifth message carries instruction information, which can request the target identifier to be unbound from the original service instance, and instruct the target identifier to be bound to other service instances, thereby completing the transfer of business load between service instances and realizing the service instance. Load balancing between.
结合第二方面,在第二方面的某些实现方式中,所述目标标识与一个或一组用户设备相关。With reference to the second aspect, in some implementations of the second aspect, the target identifier is related to one or a group of user equipments.
使用不同粒度的目标标识,有助于完成不同粒度的业务管理。The use of different granularity of target identification helps to complete different granularity of business management.
结合第二方面,在第二方面的某些实现方式中,所述目标标识是为所述第二服务实例配置的服务指针之一,所述通信方法还包括:所述第二服务实例向所述传输代理发送第六消息,所述第六消息用于注册所述第二服务实例,所述第六消息包括所述第二服务实例的服务指针; 所述第二服务实例接收所述传输代理发送的第六消息响应,所述第六消息响应包括为所述第二服务实例配置的服务指针。With reference to the second aspect, in some implementations of the second aspect, the target identifier is one of the service pointers configured for the second service instance, and the communication method further includes: The transmission agent sends a sixth message, the sixth message is used to register the second service instance, the sixth message includes a service pointer of the second service instance, and the second service instance receives the transmission agent A sixth message response is sent, and the sixth message response includes a service pointer configured for the second service instance.
请求传输代理事先为服务实例配置服务指针,能够实现服务指针的自动化配置。Requesting the transfer agent to configure service pointers for service instances in advance can enable automatic configuration of service pointers.
结合第二方面,在第二方面的某些实现方式中,所述注册请求中包括所述第二服务实例申请的服务指针的数量。With reference to the second aspect, in some implementations of the second aspect, the registration request includes a number of service pointers applied by the second service instance.
注册请求中携带的所请求的服务指针的数量,使服务实例根据自身负载或者其他信息,合理请求传输代理分配服务指针,保证合适粒度的与用户设备相关的业务管理。例如,可以是在服务实例感知自身负载较重时,请求传输代理为自己分配较多的服务指针以细化管理的粒度。如此,单个服务指针对应的用户设备可以相应的减少,保证合适粒度的与用户设备相关的业务管理。The number of requested service pointers carried in the registration request enables the service instance to reasonably request the transmission agent to allocate service pointers based on its own load or other information, to ensure appropriate granularity of business management related to user equipment. For example, when the service instance feels that its own load is heavy, it may request the transmission agent to allocate more service pointers to itself to refine the management granularity. In this way, the number of user equipments corresponding to a single service pointer can be reduced accordingly, ensuring proper granularity of user equipment-related service management.
结合第二方面,在第二方面的某些实现方式中,所述通信方法还包括:所述第二服务实例向所述传输代理发送第七消息,所述第七消息包括所述第二服务实例为自己配置的服务指针。With reference to the second aspect, in some implementations of the second aspect, the communication method further includes: the second service instance sends a seventh message to the transmission agent, and the seventh message includes the second service The service pointer that the instance configures for itself.
上述技术方案中,注册请求中的服务指针可以是提前人工为第二服务实例配置的服务指针,能够保证提前根据第二服务实例需要为其配置分配服务指针。In the above technical solution, the service pointer in the registration request may be a service pointer manually configured for the second service instance in advance, which can ensure that the service pointer is allocated for the configuration of the second service instance in advance according to the needs.
结合第二方面,在第二方面的某些实现方式中,所述第一消息为超文本传输协议HTTP消息,所述目标标识位于所述HTTP消息的头部。With reference to the second aspect, in some implementations of the second aspect, the first message is a Hypertext Transfer Protocol HTTP message, and the target identifier is located in a header of the HTTP message.
目标标识位于HTTP消息的头部便于传输代理识别和处理。The target identifier is located in the header of the HTTP message to facilitate identification and processing by the transport agent.
应理解,第一消息可以是上述的HTTP消息,还可以是AMQP消息,本申请实施例对第一消息本身不做具体限定。It should be understood that the first message may be the aforementioned HTTP message or an AMQP message, and the embodiment of the present application does not specifically limit the first message itself.
第三方面,提供了一种通信方法,所述通信方法包括:第一服务实例接收与用户设备和第二服务实例相关的目标标识,所述第一服务实例在发送与所述用户设备和所述第二服务实例相关的消息时携带所述目标标识,该目标标识用于将所述消息发送给所述第二服务实例。According to a third aspect, a communication method is provided. The communication method includes: a first service instance receives a target identifier related to a user equipment and a second service instance, and the first service instance sends The message related to the second service instance carries the target identifier, and the target identifier is used to send the message to the second service instance.
结合第三方面,在第三方面的某些实现方式中,所述第一服务实例从所述第二服务实例接收所述目标标识。With reference to the third aspect, in some implementations of the third aspect, the first service instance receives the target identifier from the second service instance.
结合第三方面,在第三方面的某些实现方式中,所述第一服务实例从与所述第二服务实例相关的传输代理接收所述目标标识。With reference to the third aspect, in some implementations of the third aspect, the first service instance receives the target identifier from a transmission agent related to the second service instance.
第四方面,提供了一种通信设备,用于执行上述第一方面或第一方面的任一可能的实现方式中的方法。具体地,该设备包括用于执行上述第一方面或第一方面的任一可能的实现方式中的方法的单元。According to a fourth aspect, a communication device is provided for performing the foregoing first aspect or the method in any possible implementation manner of the first aspect. Specifically, the device includes a unit for performing the foregoing first aspect or the method in any possible implementation manner of the first aspect.
第五方面,提供了另一种通信设备,用于执行上述第二方面或第二方面的任一可能的实现方式中的方法。具体地,该设备包括用于执行上述第二方面或第二方面的任一可能的实现方式中的方法的单元。In a fifth aspect, another communication device is provided for performing the method in the second aspect or any possible implementation manner of the second aspect. Specifically, the device includes a unit for performing the method in the foregoing second aspect or any possible implementation manner of the second aspect.
第六方面,提供了另一种通信设备,用于执行上述第三方面或第三方面的任一可能的实现方式中的方法。具体地,该设备包括用于执行上述第三方面或第三方面的任一可能的实现方式中的方法的单元。According to a sixth aspect, another communication device is provided, for performing the foregoing third aspect or the method in any possible implementation manner of the third aspect. Specifically, the device includes a unit for performing the foregoing third aspect or the method in any possible implementation manner of the third aspect.
第七方面,提供了一种通信设备,该设备包括:收发器和处理器。其中该收发器与处理器通过内部连接通路通信,该处理器用于控制接收器接收信号,并控制发送器发送信号。可选地,该通信设备还包括存储器,其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制接收器 接收信号,并控制发送器发送信号,使得该设备执行第一方面或第一方面的任一种可能的实现方式中的方法。According to a seventh aspect, a communication device is provided. The device includes a transceiver and a processor. The transceiver communicates with the processor through an internal connection path. The processor is used to control the receiver to receive signals and to control the transmitter to send signals. Optionally, the communication device further includes a memory, wherein the transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control The receiver receives the signal and controls the transmitter to send the signal, so that the device executes the method in the first aspect or any possible implementation manner of the first aspect.
第八方面,提供了另一种通信设备,该设备包括:收发器。该收发器用于接收/发送信号。可选地该通信设备还包括处理器。其中,该收发器与该处理器通过内部连接互相通信。该处理器用于执行指令,控制接收器接收信号,并控制发送器发送信号。可选地,该通信设备还包括存储器。其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制接收器接收信号,并控制发送器发送信号,使得该设备执行第二方面或第二方面的任一种可能的实现方式中的方法。According to an eighth aspect, another communication device is provided, and the device includes a transceiver. This transceiver is used to receive / transmit signals. Optionally the communication device further comprises a processor. The transceiver and the processor communicate with each other through an internal connection. The processor is used to execute instructions, control the receiver to receive signals, and control the transmitter to send signals. Optionally, the communication device further includes a memory. The transceiver, the memory, and the processor communicate with each other through an internal connection path. The memory is used to store instructions. The processor is used to execute the instructions stored in the memory to control the receiver to receive signals and to control the transmitter to send signals. , So that the device executes the method in the second aspect or any possible implementation manner of the second aspect.
第九方面,提供了另一种通信设备,该设备包括:收发器和处理器。该收发器用于接收/发送信号。可选地该通信设备还包括处理器。其中,该收发器与该处理器通过内部连接互相通信。该处理器用于执行指令,控制接收器接收信号,并控制发送器发送信号。可选地,该通信设备还包括存储器。其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制接收器接收信号,并控制发送器发送信号,使得该设备执行第三方面或第三方面的任一种可能的实现方式中的方法。In a ninth aspect, another communication device is provided. The device includes a transceiver and a processor. This transceiver is used to receive / transmit signals. Optionally the communication device further comprises a processor. The transceiver and the processor communicate with each other through an internal connection. The processor is used to execute instructions, control the receiver to receive signals, and control the transmitter to send signals. Optionally, the communication device further includes a memory. The transceiver, the memory, and the processor communicate with each other through an internal connection path. The memory is used to store instructions. The processor is used to execute the instructions stored in the memory to control the receiver to receive signals and to control the transmitter to send signals. , So that the device executes the method in the third aspect or any one of the possible implementation manners of the third aspect.
第十方面,本申请实施例提供一种通信***,该通信***包括传输代理、服务实例中的一个或多个。In a tenth aspect, an embodiment of the present application provides a communication system including one or more of a transmission agent and a service instance.
该传输代理用于执行上述第一方面或第一方面的任一种可能的设计中所述的方法,或者本申请实施例提供的方案中传输代理执行的方法。该服务实例用于执行上述第二方面或该服务实例可用于执行上述第二方面或第二方面的任一种可能的实现方式中的所述的方法,第三方面或第三方面的任一种可能实现方式中的所述的方法,或者本申请实施例提供的方案中服务实例执行的方法。The transmission agent is configured to perform the method described in the first aspect or any possible design of the first aspect, or the method performed by the transmission agent in the solution provided in the embodiment of the present application. The service instance is used to execute the second aspect or the service instance may be used to execute the method described in the second aspect or any possible implementation manner of the second aspect, the third aspect, or any one of the third aspects The method may be implemented in one of the possible implementation manners, or the method performed by the service instance in the solution provided in the embodiment of the present application.
一种可能的实现方式中,该***还包括本申请实施例提供的方案中与传输代理、和服务实例中的任一设备进行交互的其他设备,例如,接入网和/或DN网元等。In a possible implementation manner, the system further includes other devices, such as an access network and / or a DN network element, that interact with any one of the devices in the service instance in the solution provided in the embodiments of the present application. .
第十一方面,提供了一种通信方法,包括:第一服务实例接收第三服务实例或第四服务实例发送的与第一会话相关的第一消息,所述第一消息包括目标标识;所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例;所述第一服务实例向所述第二服务实例发送与所述第一会话相关的第二消息。According to an eleventh aspect, a communication method is provided, including: a first service instance receiving a first message related to a first session sent by a third service instance or a fourth service instance, the first message including a target identifier; The first service instance determines a second service instance that provides services for the first session according to the target identifier; the first service instance sends a second service instance related to the first session to the second service instance Message.
通过第一服务实例根据目标标识确定为第一会话提供服务的服务实例,提高了服务实例选择的灵活性,使得所选择的后续为第一会话提供服务的服务实例可以与之前为第一会话提供服务的服务实例不同,从而避免第三服务实例故障导致第一会话中断。The first service instance determines the service instance serving the first session according to the target identifier, which improves the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be provided with the previous session for the first session. The service instance of the service is different, so that the failure of the third service instance prevents the first session from being interrupted.
结合第十一方面,在第十一方面的某些实现方式中,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例和所述第三服务实例。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the first message includes binding mode indication information, and the binding mode indication information is used to indicate the first session and the third session. A service instance is bound, or is bound to a target service set, and the target service set includes the second service instance and the third service instance.
通过绑定方式指示信息,第一服务实例可以确定选择服务实例的方式。Through the binding mode indication information, the first service instance can determine a mode for selecting a service instance.
结合第十一方面,在第十一方面的某些实现方式中,所述目标标识包括所述第三服务实例的标识。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the target identifier includes an identifier of the third service instance.
结合第十一方面,在第十一方面的某些实现方式中,所述方法还包括:With reference to the eleventh aspect, in some implementation manners of the eleventh aspect, the method further includes:
所述第一服务实例接收所述第三服务实例发送的第三消息,所述第三消息包括备份指示信息,所述备份指示信息用于指示所述第二服务实例为所述第三服务实例提供备份或所述第 二服务实例为所述第三服务实例服务的第一会话组提供备份;所述第一会话组包括所述第一会话;所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例包括:所述第三服务实例不可用时,所述第一服务实例根据所述备份指示信息和所述目标标识确定所述第二服务实例。Receiving, by the first service instance, a third message sent by the third service instance, the third message includes backup instruction information, and the backup instruction information is used to indicate that the second service instance is the third service instance Providing a backup or the second service instance providing a backup for a first session group served by the third service instance; the first session group includes the first session; and the first service instance according to the target identifier, The second service instance determined to provide service for the first session includes: when the third service instance is unavailable, the first service instance determines the second service instance according to the backup instruction information and the target identifier.
通过备份指示信息,第一服务实例可以将第一会话提供备份的服务实例作为候选服务实例。当与第一会话绑定的第三服务实例不可用时,由备份服务实例为第一会话提供服务,可以避免第三服务实例故障时导致第一会话中断,提高用户体验。Through the backup indication information, the first service instance may use the service instance that provides backup in the first session as a candidate service instance. When the third service instance bound to the first session is unavailable, the backup service instance provides services for the first session, which can prevent the first session from being interrupted when the third service instance fails, and improve the user experience.
结合第十一方面,在第十一方面的某些实现方式中,所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例,包括:所述第一服务实例根据所述目标标识获取所述目标服务集合的标识;所述第一服务实例根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the first service instance determines, according to the target identifier, a second service instance that provides services for the first session, including: the first A service instance obtains an identifier of the target service set according to the target identifier; the first service instance determines the second service instance from the target service set according to the target service set identifier, and the target A service set includes the second service instance, the third service instance, and the fourth service instance.
根据目标服务集合的标识确定为第一会话提供服务的服务实例,提高了服务实例选择的灵活性,使得所选择的后续为第一会话提供服务的服务实例可以与之前为第一会话提供服务的服务实例相同或不同,从而避免服务实例不可用导致第一会话中断。The service instance that provides services for the first session is determined according to the identifier of the target service set, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be compared with the service instance that previously provided services for the first session The service instances are the same or different, so that the first session is not interrupted due to the unavailability of the service instances.
结合第十一方面,在第十一方面的某些实现方式中,所述第一服务实例根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例包括:所述第一服务实例向网络存储功能NRF网元发送所述目标服务集合的标识,所述第一服务实例接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the first service instance determining the second service instance from the target service set according to the identifier of the target service set includes: The first service instance sends an identifier of the target service set to a network storage function NRF network element, and the first service instance receives the identifier of the second service instance sent by the NRF network element to determine the second service instance. Service instance.
根据NRF网元发送的服务实例的标识,确定该服务实例为第一会话提供服务,可以降低对第一服务实例的存储能力和处理能力的要求。According to the identification of the service instance sent by the NRF network element, determining that the service instance provides services for the first session can reduce the requirements for the storage capacity and processing capacity of the first service instance.
结合第十一方面,在第十一方面的某些实现方式中,所述方法包括:所述第一服务实例接收所述目标服务集合中的服务实例发送的第一信息,所述第一信息包括所述服务实例的标识和所述目标服务集合的标识;所述第一服务实例根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例包括:所述第一服务实例根据所述目标服务集合的标识,以及所述第一信息确定第二服务实例。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the method includes: the first service instance receives first information sent by a service instance in the target service set, the first information Including the identifier of the service instance and the identifier of the target service set; the first service instance determining the second service instance from the target service set according to the identifier of the target service set includes: the first A service instance determines a second service instance according to the identifier of the target service set and the first information.
第一服务实例根据接收的目标服务集合与目标服务集合所包括的一个或多个服务实例的标识,确定为第一会话提供服务的服务实例,可以减小第一服务实例对***中其他网元的依赖,无需部署额外的网元,如域名解析服务器(DNS)或NRF,并可降低***延时。The first service instance determines the service instance that provides services for the first session according to the received target service set and the identity of one or more service instances included in the target service set, which can reduce the first service instance to other network elements in the system. It does not need to deploy additional network elements, such as Domain Name Resolution Server (DNS) or NRF, and can reduce system latency.
结合第十一方面,在第十一方面的某些实现方式中,所述第一服务实例根据所述目标标识获取所述目标服务集合的标识,包括:所述第一服务实例从所述目标标识中获取所述目标服务集合的标识,所述目标标识包括所述目标服务集合的标识;或者,所述目标标识包括所述第三服务实例的标识,所述第一服务实例根据所述第三服务实例的标识,获取所述目标服务集合的标识;所述目标服务集合包括所述第三服务实例。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the obtaining, by the first service instance, the identifier of the target service set according to the target identifier includes: the first service instance obtains the identifier from the target And obtain the identifier of the target service set from the identifier, where the target identifier includes the identifier of the target service set; or the target identifier includes the identifier of the third service instance, and the first service instance is based on the first service instance Three service instance identities, to obtain the identity of the target service set; the target service set includes the third service instance.
结合第十一方面,在第十一方面的某些实现方式中,所述目标标识包括所述第一会话组的标识,所述第一会话组包括所述第一会话;所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例,包括:所述第一服务实例向网络存储功能NRF网元发送所述第一会话组的标识;所述第一服务实例接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the target identifier includes an identifier of the first conversation group, the first conversation group includes the first conversation, and the first service The instance determining a second service instance that provides services for the first session according to the target identifier includes: the first service instance sends an identifier of the first session group to a network storage function NRF network element; the first A service instance receives the identifier of the second service instance sent by the NRF network element to determine the second service instance.
根据第一会话所属的会话组,确定为第一会话提供服务的服务实例,可以避免在目标服 务集合中任意选择服务实例造成的第一服务实例所选择的服务实例与***中其他网元,如接入管理功能AMF网元,所选择的服务实例不同,从而造成第一会话的状态发生错误。According to the session group to which the first session belongs, determining the service instance that provides services for the first session can avoid the service instance selected by the first service instance and other network elements in the system caused by arbitrarily selecting the service instance in the target service set, such as In the access management function AMF network element, the selected service instance is different, thereby causing an error in the state of the first session.
结合第十一方面,在第十一方面的某些实现方式中,所述第一服务实例为用户面功能UPF网元,所述第二服务实例、所述第三服务实例、所述第四服务实例为会话管理功能SMF网元。With reference to the eleventh aspect, in some implementations of the eleventh aspect, the first service instance is a user plane function UPF network element, the second service instance, the third service instance, and the fourth The service instance is an SMF network element with session management function.
第十二方面,提供一种通信设备,包括处理器和通信接口。通信接口用于接收第三服务实例或第四服务实例发送的与第一会话相关的第一消息,所述第一消息包括目标标识。处理器用于根据所述目标标识,确定为所述第一会话提供服务的第二服务实例。通信接口还用于向所述第二服务实例发送与所述第一会话相关的第二消息。According to a twelfth aspect, a communication device is provided, including a processor and a communication interface. The communication interface is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier. The processor is configured to determine a second service instance that provides services for the first session according to the target identifier. The communication interface is further configured to send a second message related to the first session to the second service instance.
根据目标标识确定为第一会话提供服务的服务实例,提高了服务实例选择的灵活性,使得所选择的后续为第一会话提供服务的服务实例可以与之前为第一会话提供服务的服务实例不同,从而避免第三服务实例故障导致第一会话中断。The service instance that provides services for the first session is determined according to the target identifier, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be different from the service instance that previously provided services for the first session. Therefore, the first session is interrupted due to the failure of the third service instance.
结合第十二方面,在第十二方面的某些实现方式中,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例和所述第三服务实例。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session and the third session A service instance is bound, or is bound to a target service set, and the target service set includes the second service instance and the third service instance.
通过绑定方式指示信息,通信设备可以确定选择服务实例的方式。By indicating information in a binding manner, the communication device can determine a method of selecting a service instance.
结合第十二方面,在第十二方面的某些实现方式中,所述目标标识包括所述第三服务实例的标识。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the target identifier includes an identifier of the third service instance.
结合第十二方面,在第十二方面的某些实现方式中,通信接口还用于,接收所述第三服务实例发送的第三消息,所述第三消息包括备份指示信息,所述备份指示信息用于指示所述第二服务实例为所述第三服务实例提供备份或所述第二服务实例为所述第三服务实例服务的第一会话组提供备份;所述第一会话组包括所述第一会话;处理器用于,所述第三服务实例不可用时,根据所述备份指示信息和所述目标标识确定所述第二服务实例。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the communication interface is further configured to receive a third message sent by the third service instance, where the third message includes backup indication information, and the backup The indication information is used to instruct the second service instance to provide a backup for the third service instance or the second service instance to provide a backup for a first conversation group served by the third service instance; the first conversation group includes The first session; the processor is configured to: when the third service instance is unavailable, determine the second service instance according to the backup instruction information and the target identifier.
通过备份指示信息,可以将第一会话提供备份的服务实例作为候选服务实例。当与第一会话绑定的第三服务实例不可用时,由备份服务实例为第一会话提供服务,可以避免第三服务实例故障时导致第一会话中断,提高用户体验。By using the backup instruction information, the service instance that provides backup in the first session can be used as a candidate service instance. When the third service instance bound to the first session is unavailable, the backup service instance provides services for the first session, which can prevent the first session from being interrupted when the third service instance fails, and improve the user experience.
结合第十二方面,在第十二方面的某些实现方式中,处理器还用于,根据所述目标标识获取所述目标服务集合的标识;处理器还用于,根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the processor is further configured to obtain an identifier of the target service set according to the target identifier; the processor is further configured to, according to the target service set Identifying the second service instance from the target service set, where the target service set includes the second service instance, the third service instance, and the fourth service instance.
根据目标服务集合的标识确定为第一会话提供服务的服务实例,提高了服务实例选择的灵活性,使得所选择的后续为第一会话提供服务的服务实例可以与之前为第一会话提供服务的服务实例相同或不同,从而避免服务实例不可用导致第一会话中断。The service instance that provides services for the first session is determined according to the identifier of the target service set, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be compared with the service instance that previously provided services for the first session. The service instances are the same or different, so that the first session is not interrupted due to the unavailability of the service instances.
结合第十二方面,在第十二方面的某些实现方式中,通信接口还用于,向网络存储功能NRF网元发送所述目标服务集合的标识,通信接口还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the communication interface is further configured to send an identifier of the target service set to a network storage function NRF network element, and the communication interface is further configured to receive the NRF The identifier of the second service instance sent by the network element to determine the second service instance.
根据NRF网元发送的服务实例的标识,确定该服务实例为第一会话提供服务,可以降低对第一服务实例的存储能力和处理能力的要求。According to the identification of the service instance sent by the NRF network element, determining that the service instance provides services for the first session can reduce the requirements for the storage capacity and processing capacity of the first service instance.
结合第十二方面,在第十二方面的某些实现方式中,通信接口还用于,接收所述目标服务集合中的服务实例发送的第一信息,所述第一信息包括所述服务实例的标识和所述目标服务集合的标识;处理器用于,根据所述目标标识,以及所述第一信息,确定所述第二服务实 例。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the communication interface is further configured to receive first information sent by a service instance in the target service set, where the first information includes the service instance And an identifier of the target service set; the processor is configured to determine the second service instance according to the target identifier and the first information.
通过接收目标服务集合与目标服务集合所包括的一个或多个服务实例的标识,确定为第一会话提供服务的服务实例,可以减小对***中其他网元的依赖,无需部署额外的网元,如域名解析服务器(DNS)或NRF,并可降低***延时。By receiving the identification of the target service set and one or more service instances included in the target service set, determining the service instance that provides services for the first session can reduce the dependency on other network elements in the system without the need to deploy additional network elements , Such as DNS or NRF, and can reduce system latency.
结合第十二方面,在第十二方面的某些实现方式中,获取单元还用于,从所述所述目标标识中获取所述目标服务集合的标识,所述目标标识包括所述目标服务集合的标识;或者,获取单元还用于,所述目标标识包括所述第三服务实例的标识,处理器还用于,根据所述第三服务实例的标识,获取所述目标服务集合的标识;所述目标服务集合包括所述第三服务实例。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the obtaining unit is further configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes the target service The identifier of the set; or, the obtaining unit is further configured to: the target identifier includes the identifier of the third service instance; and the processor is further configured to acquire the identifier of the target service set according to the identifier of the third service instance ; The target service set includes the third service instance.
结合第十二方面,在第十二方面的某些实现方式中,所述目标标识包括所述第一会话组的标识,所述第一会话组包括所述第一会话。通信接口还用于,向网络存储功能NRF网元发送所述第一会话组的标识;通信接口还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation. The communication interface is further configured to send the identifier of the first session group to a network storage function NRF network element; the communication interface is further configured to receive the identifier of the second service instance sent by the NRF network element to determine the Second service instance.
根据第一会话所属的会话组,确定为第一会话提供服务的服务实例,可以避免在目标服务集合中任意选择服务实例造成的所选择的服务实例与***中其他网元,如接入管理功能AMF网元,所选择的服务实例不同,从而造成第一会话的状态发生错误。According to the session group to which the first session belongs, determining the service instance that provides services for the first session can avoid the selected service instance and other network elements in the system caused by arbitrarily selecting the service instance in the target service set, such as access management functions For the AMF network element, the selected service instance is different, which causes an error in the state of the first session.
结合第十二方面,在第十二方面的某些实现方式中,通信设备为用户面功能UPF网元,所述第二服务实例、所述第三服务实例、所述第四服务实例为会话管理功能SMF网元。With reference to the twelfth aspect, in some implementations of the twelfth aspect, the communication device is a user plane function UPF network element, and the second service instance, the third service instance, and the fourth service instance are sessions. Management function SMF network element.
第十三方面,提供了一种通信设备包括:收发单元,确定单元。收发单元用于接收第三服务实例或第四服务实例发送的与第一会话相关的第一消息,所述第一消息包括目标标识。确定单元用于根据所述目标标识,确定为所述第一会话提供服务的第二服务实例。收发单元还用于向所述第二服务实例发送与所述第一会话相关的第二消息。According to a thirteenth aspect, there is provided a communication device including a transceiver unit and a determination unit. The transceiver unit is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier. The determining unit is configured to determine a second service instance that provides a service for the first session according to the target identifier. The transceiver unit is further configured to send a second message related to the first session to the second service instance.
结合第十三方面,在第十三方面的某些实现方式中,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。With reference to the thirteenth aspect, in some implementations of the thirteenth aspect, the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session and the third session Service instance binding, or binding to a target service set, the target service set includes the second service instance, the third service instance, and the fourth service instance.
结合第十三方面,在第十三方面的某些实现方式中,所述目标标识包括所述第三服务实例的标识。With reference to the thirteenth aspect, in some implementation manners of the thirteenth aspect, the target identifier includes an identifier of the third service instance.
结合第十三方面,在第十三方面的某些实现方式中,收发单元还用于,接收所述第三服务实例发送的第三消息,所述第三消息包括备份指示信息,所述备份指示信息用于指示所述第二服务实例为所述第三服务实例提供备份或所述第二服务实例为所述第三服务实例服务的第一会话组提供备份;所述第一会话组包括所述第一会话;所述第三服务实例不可用时,确定单元用于,根据所述备份指示信息和所述目标标识确定所述第二服务实例。With reference to the thirteenth aspect, in some implementations of the thirteenth aspect, the transceiver unit is further configured to receive a third message sent by the third service instance, where the third message includes backup indication information, and the backup The indication information is used to instruct the second service instance to provide a backup for the third service instance or the second service instance to provide a backup for a first conversation group served by the third service instance; the first conversation group includes The first session; when the third service instance is unavailable, the determining unit is configured to determine the second service instance according to the backup instruction information and the target identifier.
结合第十三方面,在第十三方面的某些实现方式中,通信设备还包括获取单元,获取单元用于根据所述目标标识获取所述目标服务集合的标识。所述确定单元用于,根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。With reference to the thirteenth aspect, in some implementation manners of the thirteenth aspect, the communication device further includes an obtaining unit, where the obtaining unit is configured to obtain an identifier of the target service set according to the target identifier. The determining unit is configured to determine the second service instance from the target service set according to an identifier of the target service set, where the target service set includes the second service instance and the third service instance And the fourth service instance.
结合第十三方面,在第十三方面的某些实现方式中,收发单元还用于,向网络存储功能NRF网元发送所述目标服务集合的标识。收发单元还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。With reference to the thirteenth aspect, in some implementation manners of the thirteenth aspect, the transceiver unit is further configured to send the identifier of the target service set to a network storage function NRF network element. The transceiver unit is further configured to receive the identifier of the second service instance sent by the NRF network element to determine the second service instance.
结合第十三方面,在第十三方面的某些实现方式中,收发单元还用于,接收所述目标服务集合中的服务实例发送的第一信息,第一信息包括所述服务实例的标识和所述目标服务集合的标识;确定单元用于,根据所述目标服务集合的标识,以及所述第一信息,确定所述第二服务实例。With reference to the thirteenth aspect, in some implementations of the thirteenth aspect, the transceiver unit is further configured to receive first information sent by a service instance in the target service set, where the first information includes an identifier of the service instance And the identifier of the target service set; the determining unit is configured to determine the second service instance according to the identifier of the target service set and the first information.
结合第十三方面,在第十三方面的某些实现方式中,获取单元用于,从所述目标标识中获取所述目标服务集合的标识,所述目标标识包括所述目标服务集合的标识。With reference to the thirteenth aspect, in some implementations of the thirteenth aspect, the obtaining unit is configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes an identifier of the target service set .
结合第十三方面,在第十三方面的某些实现方式中,获取单元用于,当所述目标标识包括所述第三服务实例的标识时,根据所述第三服务实例的标识,获取所述目标服务集合的标识;所述目标服务集合包括所述第三服务实例。With reference to the thirteenth aspect, in some implementation manners of the thirteenth aspect, the obtaining unit is configured to, when the target identifier includes the identifier of the third service instance, acquire according to the identifier of the third service instance. An identification of the target service set; the target service set includes the third service instance.
结合第十三方面,在第十三方面的某些实现方式中,所述目标标识包括所述第一会话组的标识,所述第一会话组包括所述第一会话。收发单元还用于,向网络存储功能NRF网元发送所述第一会话组的标识。收发单元还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。With reference to the thirteenth aspect, in some implementations of the thirteenth aspect, the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation. The transceiver unit is further configured to send the identifier of the first conversation group to a network storage function NRF network element. The transceiver unit is further configured to receive the identifier of the second service instance sent by the NRF network element to determine the second service instance.
结合第十三方面,在第十三方面的某些实现方式中,通信设备为用户面功能UPF网元,所述第二服务实例、所述第三服务实例、所述第四服务实例为会话管理功能SMF网元。With reference to the thirteenth aspect, in some implementations of the thirteenth aspect, the communication device is a user plane function UPF network element, and the second service instance, the third service instance, and the fourth service instance are sessions Management function SMF network element.
第十四方面,提供一种通信方法,包括第三服务实例向第一服务实例发送与第一会话相关的第一消息,所述第一消息包括目标标识,所述目标标识用于指示所述第一服务实例确定第二服务实例,所述第二服务实例用于为所述第一会话提供服务。A fourteenth aspect provides a communication method, including a third service instance sending a first message related to a first session to the first service instance, the first message includes a target identifier, and the target identifier is used to indicate the The first service instance determines a second service instance, which is used to provide a service for the first session.
结合第十四方面,在一种可能的实现方式中,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例和所述第三服务实例。With reference to the fourteenth aspect, in a possible implementation manner, the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance. Or bound to a target service set, where the target service set includes the second service instance and the third service instance.
结合第十四方面,在一种可能的实现方式中,所述目标标识包括所述第三服务实例的标识。With reference to the fourteenth aspect, in a possible implementation manner, the target identifier includes an identifier of the third service instance.
结合第十四方面,在一种可能的实现方式中,所述第三服务实例接收所述第一服务实例或网络存储功能NRF网元发送的能力指示信息,所述能力指示信息用于指示所述第一服务实例支持基于目标服务集合的负载均衡,所述目标服务集合包括所述第二服务实例和所述第三服务实例。With reference to the fourteenth aspect, in a possible implementation manner, the third service instance receives capability indication information sent by the first service instance or a network storage function NRF network element, and the capability indication information is used to indicate all The first service instance supports load balancing based on a target service set, and the target service set includes the second service instance and the third service instance.
结合第十四方面,在一种可能的实现方式中,所述第三服务实例向所述第一服务实例发送所述目标服务集合的标识和所述第三服务实例的标识,所述目标服务集合中包括所述第二服务实例和所述第三服务实例。With reference to the fourteenth aspect, in a possible implementation manner, the third service instance sends the identifier of the target service set and the identifier of the third service instance to the first service instance, and the target service The set includes the second service instance and the third service instance.
结合第十四方面,在一种可能的实现方式中,所述第三服务实例向所述第一服务实例发送备份指示信息,备份指示信息用于指示第二服务实例为所述第三服务实例提供备份,或为所述第二服务实例服务的第一会话组提供备份,所述第一会话组包括所述第一会话。With reference to the fourteenth aspect, in a possible implementation manner, the third service instance sends backup instruction information to the first service instance, and the backup instruction information is used to indicate that the second service instance is the third service instance Providing a backup, or providing a backup for a first session group served by the second service instance, the first session group including the first session.
第十五方面,提供一种通信设备,用于执行上述第十四方面或第十四方面的任一可能的实现方式中的方法。具体地,该设备包括用于执行上述第十四方面或第十四方面的任一可能的实现方式中的方法的单元。According to a fifteenth aspect, a communication device is provided for performing the method in the fourteenth aspect or any possible implementation manner of the fourteenth aspect. Specifically, the device includes a unit for performing the method in the fourteenth aspect or any possible implementation of the fourteenth aspect.
第十六方面,提供了一种通信设备,该设备包括:收发器和处理器。其中该收发器与处理器通过内部连接通路通信,该处理器用于控制接收器接收信号,并控制发送器发送信号。可选地,该通信设备还包括存储器,其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制接收 器接收信号,并控制发送器发送信号,使得该设备执行第十四方面或第十四方面的任一种可能的实现方式中的方法。In a sixteenth aspect, a communication device is provided. The device includes a transceiver and a processor. The transceiver communicates with the processor through an internal connection path. The processor is used to control the receiver to receive signals and to control the transmitter to send signals. Optionally, the communication device further includes a memory, wherein the transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control The receiver receives the signal and controls the transmitter to send the signal, so that the device executes the method in the fourteenth aspect or any one of the possible implementation manners of the fourteenth aspect.
第十七方面,提供一种通信***,包括第一服务实例,第一服务实例用于执行上述第十一方面或第十一方面的任一种可能的实现方式中所述的方法,或者本申请实施例提供的方案中第一服务实例执行的方法。In a seventeenth aspect, a communication system is provided, including a first service instance, where the first service instance is configured to execute the method described in the eleventh aspect or any one of the possible implementation manners of the eleventh aspect, or the present invention The method executed by the first service instance in the solution provided in the application embodiment.
结合第十七方面,在一种可能的实现方式中,该***还可以包括第三服务实例,第三服务实例用于执行上述第十四方面或第十四方面的任一种可能的实现方式中所述的方法,或者本申请实施例提供的方案中第三服务实例执行的方法。With reference to the seventeenth aspect, in a possible implementation manner, the system may further include a third service instance, and the third service instance is used to implement the fourteenth aspect or any one of the fourteenth possible implementation manners. The method described in the method, or the method performed by the third service instance in the solution provided in the embodiment of the present application.
结合第十七方面,在一种可能的实现方式中,该***还可以包括上述第十一方面、第十四方面中与第一服务实例和/或第三服务实例进行交互的其他设备,如接入管理功能网元,该接入管理功能网元可用于执行本申请实施例提供的方案中接入管理功能网元执行的方法。With reference to the seventeenth aspect, in a possible implementation manner, the system may further include other devices that interact with the first service instance and / or the third service instance in the eleventh aspect and the fourteenth aspect, such as An access management function network element. The access management function network element may be used to execute a method performed by the access management function network element in the solution provided in the embodiment of the present application.
第十八方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码被计算机运行时,使得该计算机执行上述任一方面的任意可能的实现方式中的方法。According to an eighteenth aspect, a computer program product is provided. The computer program product includes computer program code that, when the computer program code is executed by a computer, causes the computer to execute a method in any possible implementation manner of any of the foregoing aspects. .
第十九方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行上述任一方面的任意可能的实现方式中的方法的指令。In a nineteenth aspect, a computer-readable medium is provided for storing a computer program, the computer program including instructions for performing a method in any possible implementation of any of the above aspects.
第二十方面,提供了一种通信芯片,其中存储有指令,当其在计算机设备上运行时,使得该通信芯片执行上述任一方面的任意可能的实现方式中的方法。In a twentieth aspect, a communication chip is provided, in which instructions are stored that, when run on a computer device, cause the communication chip to execute a method in any possible implementation manner of any of the above aspects.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例提供的5G的***架构示意图;FIG. 1 is a schematic diagram of a 5G system architecture according to an embodiment of the present application;
图2是本申请实施例提供的服务框架的示意图;2 is a schematic diagram of a service framework provided by an embodiment of the present application;
图3是本申请实施例提供的通信方法的示意图;3 is a schematic diagram of a communication method according to an embodiment of the present application;
图4是本申请另一实施例提供的通信方法的示意图;4 is a schematic diagram of a communication method according to another embodiment of the present application;
图5是本申请又一实施例提供的通信方法的示意图;5 is a schematic diagram of a communication method according to another embodiment of the present application;
图6是本申请又一实施例提供的通信方法的示意图;6 is a schematic diagram of a communication method according to another embodiment of the present application;
图7是本申请又一实施例提供的通信方法的示意图;7 is a schematic diagram of a communication method according to another embodiment of the present application;
图8是本申请又一实施例提供的通信方法的示意图;8 is a schematic diagram of a communication method according to another embodiment of the present application;
图9是本申请又一实施例提供的通信方法的示意图;9 is a schematic diagram of a communication method according to another embodiment of the present application;
图10是本申请又一实施例提供的通信方法的示意图;10 is a schematic diagram of a communication method according to another embodiment of the present application;
图11是本申请实施例提供的传输代理的示意性结构图;11 is a schematic structural diagram of a transmission agent according to an embodiment of the present application;
图12是本申请实施例提供的服务实例的示意性结构图;FIG. 12 is a schematic structural diagram of a service example provided by an embodiment of the present application; FIG.
图13是本申请实施例提供的通信设备的示意性结构图;13 is a schematic structural diagram of a communication device according to an embodiment of the present application;
图14是本申请另一实施例提供的传输代理的示意性结构图;14 is a schematic structural diagram of a transmission agent according to another embodiment of the present application;
图15是本申请另一实施例提供的服务实例的示意性结构图;15 is a schematic structural diagram of a service example provided by another embodiment of the present application;
图16是本申请另一实施例提供的通信设备的示意性结构图。FIG. 16 is a schematic structural diagram of a communication device according to another embodiment of the present application.
具体实施方式detailed description
本申请实施例提供的技术方案可应用于各种基于服务的通信架构中。The technical solutions provided in the embodiments of the present application can be applied to various service-based communication architectures.
为了便于理解,下面结合图1,以5G通信***为例,对服务化架构及其通信方式进行简 单介绍。参考图1,本申请实施例提供的基于服务的网络架构100包含多个网络功能(network function,NF):In order to facilitate understanding, the following introduces the service-oriented architecture and its communication mode with 5G communication system as an example in conjunction with Figure 1. Referring to FIG. 1, a service-based network architecture 100 provided by an embodiment of the present application includes multiple network functions (NF):
1、会话管理网元:主要用于会话管理、终端设备的网络互连协议(internet protocol,IP)地址分配和管理、选择可管理用户设备平面功能、策略控制、或收费功能接口的终结点以及下行数据通知等。在5G通信中,会话管理网元可以是会话管理功能(session management function,SMF)网元,在未来通信如6G通信中,会话管理功能网元仍可以是SMF网元,或者有其它名称,本申请对此不作限定。Nsmf是SMF提供的基于服务的接口,SMF可以通过Nsmf与其他的网络功能通信。1. Session management network element: It is mainly used for session management, terminal equipment's Internet Protocol (IP) address allocation and management, selection of endpoints that can manage user equipment plane functions, policy control, or charging function interfaces, and Downlink data notification, etc. In 5G communication, the session management network element may be a session management function (SMF) network element. In future communications such as 6G communication, the session management function network element may still be an SMF network element or have another name. The application does not limit this. Nsmf is a service-based interface provided by SMF. SMF can communicate with other network functions through Nsmf.
2、接入管理网元:主要用于移动性管理和接入管理等,可以用于实现移动性管理实体(mobility management entity,MME)功能中除会话管理之外的其它功能,例如,合法监听、或接入授权(或鉴权)等功能。在5G通信中,接入管理网元可以是接入管理功能(access and mobility management function,AMF)网元,在未来通信如6G通信中,接入管理网元仍可以是AMF网元,或者有其它名称,本申请对此不作限定。Namf是AMF提供的基于服务的接口,AMF可以通过Namf与其他的网络功能通信。3、认证服务网元:主要用于用户鉴权等。在5G通信中,认证服务网元可以是认证服务功能(authentication server function,AUSF)网元,在未来通信如6G通信中,认证服务网元仍可以是AUSF网元,或者有其它名称,本申请对此不作限定。Nausf是AUSF提供的基于服务的接口,AUSF可以通过Nausf与其他的网络功能通信。2. Access management network element: It is mainly used for mobility management and access management, etc. It can be used to implement functions other than session management in the mobility management entity (MME) function, such as legal monitoring , Or access authorization (or authentication). In 5G communication, the access management network element may be an access management function (AMF) network element. In future communications such as 6G communication, the access management network element may still be an AMF network element, or Other names are not limited in this application. Namf is a service-based interface provided by AMF. AMF can communicate with other network functions through Namf. 3. Authentication service network element: mainly used for user authentication. In 5G communication, the authentication service network element may be an authentication service function (AUSF) network element. In future communications such as 6G communication, the authentication service network element may still be an AUSF network element or have another name. This application This is not limited. Nausf is a service-based interface provided by AUSF. AUSF can communicate with other network functions through Nausf.
4、网络开放网元:用于安全地向外部开放由第三代合作伙伴计划(3rd generation partnership project,3GPP)网络功能提供的业务和能力等。在5G通信中,网络开放网元可以是网络开放功能(network exposure function,NEF)网元,在未来通信如6G通信中,网络开放功能网元仍可以是NEF网元,或者有其它名称,本申请对此不作限定。其中Nnef是NEF提供的基于服务的接口,NEF可以通过Nnef与其他的网络功能通信。4. Network open network element: used to securely open to the outside the services and capabilities provided by the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) network functions. In 5G communication, the network open network element may be a network open function (NEF) network element. In future communications such as 6G communication, the network open function network element may still be an NEF network element or have another name. The application does not limit this. Nnef is a service-based interface provided by NEF. NEF can communicate with other network functions through Nnef.
5、网络存储网元:用于保存网络功能实体以及其提供服务的描述信息,以及支持服务发现,网元实体发现等。在5G通信中,网络存储网元可以是网络存储功能(network repository function,NRF)网元,在未来通信如6G通信中,网络存储功能网元仍可以是NEF网元,或者有其它名称,本申请对此不作限定。Nnrf是NRF提供的基于服务的接口,NRF可以通过Nnrf与其他的网络功能通信。5. Network storage network element: It is used to save the description information of network functional entities and the services they provide, as well as support service discovery, network element entity discovery, etc. In 5G communication, the network storage network element may be a network storage function (NRF) network element. In future communications such as 6G communication, the network storage function network element may still be an NEF network element or have another name. The application does not limit this. Nnrf is a service-based interface provided by NRF. NRF can communicate with other network functions through Nnrf.
6、策略控制网元:用于指导网络行为的统一策略框架,为控制平面功能网元(例如AMF,SMF等)提供策略规则信息等。在5G通信中,策略控制网元可以是策略控制功能(policy control function,PCF)网元,在未来通信如6G通信中,策略控制功能网元仍可以是NEF网元,或者有其它名称,本申请对此不作限定。其中Npcf是PCF提供的基于服务的接口,PCF可以通过Npcf与其他的网络功能通信。6. Policy control network element: a unified policy framework for guiding network behavior, providing policy rule information for control plane function network elements (such as AMF, SMF, etc.). In 5G communication, the policy control network element may be a policy control function (PCF) network element. In future communications such as 6G communication, the policy control function network element may still be an NEF network element or have another name. The application does not limit this. Among them, Npcf is a service-based interface provided by PCF, and PCF can communicate with other network functions through Npcf.
7数据管理网元:用于处理用户标识、接入鉴权、注册、或移动性管理等。在5G通信中,数据管理网元可以是统一数据管理(unified data management,UDM)网元,在未来通信如6G通信中,数据管理网元仍可以是UDM网元,或者有其它名称,本申请对此不作限定。其中Nudm是UDM提供的基于服务的接口,UDM可以通过Nudm与其他的网络功能通信。7Data management network element: It is used to handle user identification, access authentication, registration, or mobility management. In 5G communication, the data management network element may be a unified data management (UDM) network element. In future communications such as 6G communication, the data management network element may still be a UDM network element or have another name. This application This is not limited. Among them, Nudm is a service-based interface provided by UDM. UDM can communicate with other network functions through Nudm.
8、应用网元:用于进行应用影响的数据路由,接入网络开放功能,或与策略框架交互进行策略控制等。在5G通信中,应用网元可以是应用功能(application function,AF)网元,在未来通信如6G通信中,应用网元仍可以是AF网元,或者有其它名称,本申请对此不作 限定。Naf是AF提供的基于服务的接口,AF可以通过Naf与其他的网络功能通信。8. Application network element: used for application-affected data routing, access to network open functions, or interaction with the policy framework for policy control. In 5G communication, the application network element may be an application function (AF) network element. In future communications such as 6G communication, the application network element may still be an AF network element or have another name, which is not limited in this application. . Naf is a service-based interface provided by AF. AF can communicate with other network functions through Naf.
9、用户设备(user equipment,UE)。可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的终端,移动台(mobile station,MS),终端(terminal),用户设备(user equipment,UE),软终端等等,例如水表、电表、传感器等。9. User equipment (UE). It can include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of terminals, mobile stations (MS), and terminals (terminals) ), User equipment (UE), soft terminals, etc., such as water meters, electricity meters, sensors, etc.
10、(无线)接入网(radio access network,(R)AN)网元:用于为特定区域的授权用户设备提供入网功能,并能够根据用户设备的级别,业务的需求等使用不同质量的传输隧道。10. (radio access network (R) AN) network element: used to provide network access functions for authorized user equipment in a specific area, and can use different quality based on the user equipment level, business needs, etc. Transmission tunnel.
RAN能够管理无线资源,为终端设备提供接入服务,进而完成控制信号和用户设备数据在终端和核心网之间的转发,RAN也可以理解为传统网络中的基站。The RAN can manage wireless resources, provide access services for terminal equipment, and complete the transfer of control signals and user equipment data between the terminal and the core network. The RAN can also be understood as a base station in a traditional network.
11、用户面网元(user plane function,UPF)网元:用于分组路由和转发、或用户面数据的服务质量(quality of service,QoS)处理等。在5G通信中,用户面网元可以是用户面功能(user plane function,UPF)网元,在未来通信如6G通信中,用户面网元仍可以是UPF网元,或者有其它名称,本申请对此不作限定。11. User plane function (UPF) network element: used for packet routing and forwarding, or quality of service (QoS) processing of user plane data. In 5G communication, the user plane network element may be a user plane function (UPF) network element. In future communications such as 6G communication, the user plane network element may still be a UPF network element or have another name. This application This is not limited.
12、数据网络(data network,DN)网元:用于提供传输数据的网络,例如,Internet网络等。其中,DN网元可以是数据网络鉴权、授权和计费(data network authentication、authorization、accounting),也可以是应用服务器(application function)等。12. Data network (DN) network element: A network used to provide data transmission, such as the Internet network. The DN network element may be data network authentication, authorization, and accounting (data network authentication, authorization, accounting), or may be an application server (application function).
可以理解的是,上述功能或网元既可以是硬件设备中的网络元件,也可以是在专用硬件上运行软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。It can be understood that the foregoing functions or network elements may be network elements in hardware devices, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (for example, a cloud platform).
图1中的N1接口为UE与AMF之间的参考点;N2接口为RAN和AMF的参考点,用于非接入层(non-access stratum,NAS)消息和下一代应用协议(Next Generation Application Protocol,NGAP)消息的发送等;N3接口为RAN和UPF之间的参考点,用于传输用户面的数据等;N4接口为SMF和UPF之间的参考点,用于传输例如N3连接的隧道标识信息,数据缓存指示信息,以及下行数据通知消息等信息;N6接口为UPF和DN之间的参考点,用于传输用户面的数据等。The N1 interface in Figure 1 is the reference point between the UE and the AMF; the N2 interface is the reference point between the RAN and the AMF, and is used for non-access stratum (NAS) messages and Next Generation Application Protocol Protocol, NGAP) messages, etc .; N3 interface is the reference point between RAN and UPF, used to transmit user plane data, etc .; N4 interface is the reference point between SMF and UPF, used to transmit tunnels such as N3 connections. Identification information, data cache indication information, and downlink data notification messages; N6 interface is a reference point between UPF and DN, and is used to transmit user plane data.
应理解,上述网络架构100仅仅是从服务化架构的角度描述的网络架构。本申请实施例的应用场景并不限于此,任何能够实现上述各个网络功能的网络架构都适用于本申请实施例。It should be understood that the foregoing network architecture 100 is merely a network architecture described from the perspective of a service architecture. The application scenarios of the embodiments of the present application are not limited to this, and any network architecture capable of implementing the foregoing network functions is applicable to the embodiments of the present application.
通常情况下,在为一个用户提供服务的过程中,需要多个服务实例之间完成关于该用户的消息交互。本申请实施例所提供的服务实例可以是图1中的网络功能,例如可以是会话管理网元、接入管理网元、策略控制网元等等。为方便说明,本申请后续,以接入管理网元为AMF,会话管理网元为SMF,策略控制网元为PCF为例进行说明。即本申请后续所描述的UPF网元均可替换为用户面网元,SMF网元均可替换为会话管理网元。Generally, in the process of providing services to a user, multiple service instances are required to complete message interactions about the user. The service example provided in this embodiment of the present application may be the network function in FIG. 1, for example, it may be a session management network element, an access management network element, a policy control network element, and so on. For the convenience of description, the following description uses the access management network element as AMF, the session management network element as SMF, and the policy control network element as PCF as examples. That is, the UPF network elements described later in this application can be replaced with user plane network elements, and the SMF network elements can be replaced with session management network elements.
一个生产者服务实例,以AMF为例,将与该用户设备相关的消息发送给服务框架(服务框架可以是包括图1中的NRF,也可以包括其他网络功能)。在接收到与该用户设备相关的消息后,服务框架在多个能够提供相同功能的消费者服务实例中挑选一个服务实例。例如,可以在多个SMF中选取一个SMF,并将与该用户设备相关的消息发送给该SMF。从而完成生产者服务实例与消费者服务实例之间的有关该用户设备的消息的交互。A producer service instance, taking AMF as an example, sends a message related to the user equipment to a service framework (the service framework may include the NRF in FIG. 1 or other network functions). After receiving the message related to the user equipment, the service framework selects a service instance from a plurality of consumer service instances capable of providing the same function. For example, one SMF may be selected from multiple SMFs, and a message related to the user equipment may be sent to the SMF. In this way, the interaction between the producer service instance and the consumer service instance about the user equipment's messages is completed.
一些场景下,需要相同的服务实例为同一用户设备服务。为达上述目的,现有技术直接将两个正在通信的服务实例绑定。例如,两个服务实例AMF与SMF正在处理关于某一用户设备的会话管理流程。AMF与SMF互相通知对端后续与该用户设备相关的消息发送给对方,实现两个服务实例之间的绑定。但利用上述方法实现的绑定会增加服务实例处理的复杂度。 特别是在并发场景下,上述问题尤为凸显。例如,AMF与多个SMF之间正在进行有关该用户设备的多个流程:AMF与第一SMF正在进行该有关该用户设备的会话相关流程,同时该AMF与第二SMF正在进行有关该用户设备的移动性相关流程。当第一SMF与AMF之间的会话流程结束时,第一SMF解除与该AMF之间的绑定,决定后续与该用户设备相关的消息不再发送给该AMF。但此时该AMF与第二SMF之间的流程还未结束,因此AMF暂不释放该用户设备的上下文。此时若第一SMF再发起一个会话相关的流程,由于AMF还未释放上下文,第一SMF有可能将消息发送给其他AMF,从而导致消息的重定向,以便该消息最终发送给原AMF。这使得服务实例之间的交互变得复杂。In some scenarios, the same service instance is required to serve the same user equipment. To achieve the above purpose, the prior art directly binds two service instances that are communicating. For example, the two service instances AMF and SMF are processing a session management process regarding a certain user equipment. The AMF and the SMF mutually notify the peer end that subsequent messages related to the user equipment are sent to the other party, thereby achieving binding between the two service instances. However, the binding implemented by the above method will increase the complexity of service instance processing. The above problems are particularly prominent in the concurrent scenario. For example, multiple processes related to the user equipment are being performed between the AMF and multiple SMFs: the AMF and the first SMF are performing the session-related processes regarding the user equipment, while the AMF and the second SMF are performing the user equipment Mobility related processes. When the session flow between the first SMF and the AMF ends, the first SMF releases the binding with the AMF, and decides that subsequent messages related to the user equipment are no longer sent to the AMF. However, at this time, the process between the AMF and the second SMF has not ended, so the AMF does not release the context of the user equipment for the time being. At this time, if the first SMF initiates another session-related process, because the AMF has not released the context, the first SMF may send the message to other AMFs, which may cause the message to be redirected so that the message is finally sent to the original AMF. This complicates the interaction between service instances.
本申请实例提供一种能够减少服务实例处理的复杂度的方法。为了便于理解,下面首先介绍本申请实施例所应用的服务框架的示意图。图2是本申请实施例提供的服务框架的示意图。The example of the present application provides a method capable of reducing the complexity of service instance processing. For ease of understanding, the following first introduces a schematic diagram of a service framework applied in the embodiments of the present application. FIG. 2 is a schematic diagram of a service framework provided by an embodiment of the present application.
如图2所示的服务框架包括NRF 210、传输代理220、传输代理230、以及服务集合240-服务集合270。The service framework shown in FIG. 2 includes NRF 210, transmission agent 220, transmission agent 230, and service set 240-service set 270.
图2中相同服务集合中的服务实例可以提供相同的功能,不同的服务集合中的服务实例可以提供相同的功能也可以提供不同的功能。例如,图2中所示的服务集合240中的服务实例241与服务实例242可以提供相同的功能。例如,二者可以均为SMF,也可以均为AMF等。作为一个示例,服务集合240与服务集合250可以均为SMF的集合,而服务集合260与服务集合270可以均为AMF的集合。服务集合可以具有服务集合标识,例如可以是FQDN,可以是IP地址,可以是服务集合的ID,还可以是其他自定义的标识,本申请实施例对服务集合标识的类型不做具体限定。服务集合中的每个服务实例可以具有目标标识。所述目标标识可以采用不同格式,例如,当所述目标标识与一个用户设备相关时,所述目标标识可以是传输代理的IP地址和端口号中的至少一个,或者,所述目标标识还可以是所述第二服务实例所属服务集合的标识和所述服务集合内的唯一标识,或者,所述目标标识是传输代理分配的在传输代理中唯一的数值,本申请对此不做限定;当所述目标标识与一组用户设备相关时,所述目标标识可以是所述第二服务实例对应的服务集合的标识、或者所述服务集合的标识和所述第二服务实例的标识、或者是所述服务集合的标识和所述服务集合内唯一的服务指针,所述服务指针用于标识该服务集合内的一组用户设备等,本申请对此不做限定。The service instances in the same service set in FIG. 2 can provide the same function, and the service instances in different service sets can provide the same function or different functions. For example, the service instance 241 and the service instance 242 in the service set 240 shown in FIG. 2 may provide the same function. For example, both may be SMF, or both may be AMF. As an example, the service set 240 and the service set 250 may both be SMF sets, and the service set 260 and the service set 270 may both be AMF sets. The service set may have a service set identifier, for example, it may be an FQDN, an IP address, an ID of the service set, or another custom identifier. The embodiment of the present application does not specifically limit the type of the service set identifier. Each service instance in a service collection can have a target ID. The target identifier may use different formats. For example, when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transmission agent, or the target identifier may also be Is the identifier of the service set to which the second service instance belongs and the unique identifier within the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not limited in this application; when When the target identifier is related to a group of user equipments, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance, or The identifier of the service set and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
传输代理可以与服务实例之间存在通信接口。为了便于理解,下面结合一个示例说明上述通信接口的作用:参考图2,传输代理220可以通过I1接口与服务集合240中的服务实例进行消息交互。例如,当传输代理220接收到的消息中包含目标服务集合标识时,传输代理220根据消息中的目标服务集合标识判断传输代理220与目标服务集合之间是否存在直接接口。假设上述消息中的目标服务集合标识是服务集合240的服务集合标识,则传输代理220判断自身是否与目标服务集合240之间存在直接接口,由于二者之间存在直接接口,传输代理可以在服务集合240中选取一个目标服务实例,并将消息发送给该目标服务实例。A communication interface can exist between the transport agent and the service instance. To facilitate understanding, the following describes the role of the communication interface with an example: Referring to FIG. 2, the transmission agent 220 may perform message interaction with the service instances in the service set 240 through the I1 interface. For example, when the message received by the transmission agent 220 includes the target service set identifier, the transmission agent 220 determines whether there is a direct interface between the transmission agent 220 and the target service set according to the target service set identifier in the message. Assuming that the target service set identifier in the above message is the service set identifier of the service set 240, the transmission agent 220 determines whether there is a direct interface between itself and the target service set 240. Due to the direct interface between the two, the transmission agent can Select a target service instance from the set 240 and send a message to the target service instance.
应理解上述传输代理与服务实例之间的消息交互过程仅仅是一个示例,并不应对本申请实施例造成限定。It should be understood that the foregoing message interaction process between the transport agent and the service instance is only an example, and should not be construed as limiting the embodiments of the present application.
传输代理之间也有可能存在接口,以便传输代理之间也可以进行消息交互例如传输代理230与传输代理220之间可以通过接口I2进行消息交互。在传输代理与目标服务实例之间不存在直接接口的情况下,可以利用传输代理之间的接口转发消息至目标服务实例。There may also be an interface between the transmission agents, so that the transmission agents can also perform message interaction. For example, the transmission agent 230 and the transmission agent 220 can perform message interaction through the interface I2. In the case where there is no direct interface between the transfer agent and the target service instance, the interface between the transfer agents can be used to forward messages to the target service instance.
应理解,本申请实施例提供的传输代理可以是服务框架中重新划分的网络功能,例如, 传输代理可以是一个反向HTTP代理(HTTP Reverse Proxy)。一些部署方式中,为了信息交互的方便,传输代理还可以与其存在接口的服务实例部署在一个数据中心。当然传输代理与其存在接口的服务实例也可以部署在不同的数据中心。本申请实施例对此不做具体限制。为了支持异地容灾,服务集合可以跨多个数据中心部署,也就是服务集合中的多个服务实例可以部署在不同的数据中心,此时,可以在该服务集合部署的每个数据中心均部署一个传输代理实例,部署在多个数据中心的传输代理实例组成上述传输代理。It should be understood that the transmission proxy provided in the embodiment of the present application may be a network function re-divided in the service framework. For example, the transmission proxy may be a reverse HTTP proxy (HTTP Reverse Proxy). In some deployment methods, for the convenience of information interaction, the transport agent can also be deployed in a data center with the service instance where the interface exists. Of course, the service instance where the transport agent interfaces with it can also be deployed in different data centers. This embodiment of the present application does not specifically limit this. To support remote disaster recovery, service sets can be deployed across multiple data centers, that is, multiple service instances in a service set can be deployed in different data centers. At this time, each data center deployed in the service set can be deployed One transport agent instance. The transport agent instances deployed in multiple data centers make up the aforementioned transport agent.
应理解,本申请实施例提供的传输代理还可以支持本地服务实例的注册和发现功能,在服务实例注册时,传输代理可以将服务实例与目标标识绑定。It should be understood that the transmission agent provided in the embodiment of the present application can also support the registration and discovery functions of the local service instance. When the service instance is registered, the transmission agent can bind the service instance to the target identifier.
本申请实施例提供的服务框架还可以包括NRF 210,传输代理有时可以将有关服务集合、服务实例的信息注册至NRF 210。NRF 210可以通过I3接口与传输代理进行通信。当服务代理由部署在多个数据中心的传输代理实例组成时,传输代理将多个传输代理实例的地址信息注册到NRF 210中,以便NRF 210可以为不同的用户设备选择不同的传输代理实例,从而支持服务集合在不同数据中心间的负荷分担,并减少由同一个传输代理转发数据造成的数据路径迂回。The service framework provided by the embodiment of the present application may further include NRF 210, and the transfer agent may sometimes register information about the service set and service instance to NRF 210. NRF 210 can communicate with the transport agent through the I3 interface. When the service agent is composed of transmission agent instances deployed in multiple data centers, the transmission agent registers the address information of multiple transmission agent instances into the NRF 210 so that the NRF 210 can select different transmission agent instances for different user devices. This supports load sharing of service sets between different data centers, and reduces data path roundabouts caused by the same forwarding agent forwarding data.
应理解,图2示出的服务框架仅仅是一个示例,服务框架的结构也可以有诸多变形,例如,服务框架中可以只存在传输代理,此时传输代理可以集成上述图2中NRF与传输代理的功能;还可以是服务框架中只包含服务实例与NRF,NRF集成了上述图2中的NRF与传输代理的功能等等。It should be understood that the service framework shown in FIG. 2 is only an example, and the structure of the service framework may also have many variations. For example, only a transport agent may exist in the service framework. At this time, the transport agent may integrate the NRF and the transport agent in FIG. 2 described above. It can also include the service instance and NRF only in the service framework. The NRF integrates the functions of the NRF and the transmission agent in Figure 2 and so on.
此外,传输代理中负责服务实例的注册和发现的功能和传输代理中负责消息转发的功能可以是两个独立的实体。In addition, the function responsible for the registration and discovery of service instances in the transport agent and the function responsible for message forwarding in the transport agent may be two separate entities.
下面结合图3,介绍本申请实施例提供的通信方法。The following describes the communication method provided in the embodiment of the present application with reference to FIG. 3.
图3中示出的通信方法包括步骤310-320,下面对图3中的每个步骤进行详细的描述:The communication method shown in FIG. 3 includes steps 310-320. Each step in FIG. 3 is described in detail below:
步骤310:接收第一服务实例发送第一消息,其中第一消息中包含目标标识。Step 310: Receive a first service instance and send a first message, where the first message includes a target identifier.
本申请实施例提供的服务实例可以是图1中的网络功能,例如可以是AMF、SMF、PCF等。还可以是网络功能划分出的多个服务实例中的一个。随着技术的发展,服务实例还可以是独立于网络功能存在的,本申请实施例对此不做具体限定。The service example provided in this embodiment of the present application may be a network function in FIG. 1, and may be, for example, AMF, SMF, PCF, and the like. It may also be one of multiple service instances divided by network functions. With the development of technology, service instances may also exist independently of network functions, which are not specifically limited in the embodiments of the present application.
第一消息可以是第一服务实例发送的与用户设备相关的消息。作为一个示例,当第一服务实例为AMF或者SMF时,第一消息可以是会话相关流程中的消息,还可以是移动性相关流程中的消息等等。The first message may be a message related to the user equipment sent by the first service instance. As an example, when the first service instance is AMF or SMF, the first message may be a message in a session-related process, a message in a mobility-related process, and so on.
第一消息中携带目标标识,目标标识可以采用不同格式,例如,当所述目标标识与一个用户设备相关时,所述目标标识可以是传输代理的IP地址和端口号中的至少一个,或者,所述目标标识还可以是所述第二服务实例所属服务集合的标识和所述服务集合内的唯一标识,或者,所述目标标识是传输代理分配的在传输代理中唯一的数值,本申请对此不做限定;当所述目标标识与一组用户设备相关时,所述目标标识可以是所述第二服务实例对应的服务集合的标识、或者所述服务集合的标识和所述第二服务实例的标识、或者是所述服务集合的标识和所述服务集合内唯一的服务指针,所述服务指针用于标识该服务集合内的一组用户设备等,本申请对此不做限定。The first message carries a target identifier, and the target identifier may use different formats. For example, when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transport agent, or The target identifier may also be an identifier of a service set to which the second service instance belongs and a unique identifier within the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent. This is not limited; when the target identifier is related to a group of user equipments, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and the second service. The identifier of the instance, or the identifier of the service set and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
作为一个示例,接收步骤310中第一消息的网元可以是服务框架中的传输代理,当然还可以是能够提供传输代理功能的其他网元,本申请实施例对此不做具体限定。As an example, the network element receiving the first message in step 310 may be a transmission agent in the service framework, and of course, it may be another network element capable of providing a transmission agent function, which is not specifically limited in this embodiment of the present application.
可选地,在步骤310之前,第一服务实例还可以接收与该用户设备相关的目标标识,以 便在执行步骤310前或执行步骤310时,第一消息中携带目标标识。作为一个示例,当第一服务实例为SMF时,SMF可以在发送第一消息之前,接收由AMF发送的目标标识。作为一个示例,SMF可以通过与AMF之间的会话建立流程获得AMF发送的目标标识,并将该目标标识存储在用户设备的上下文中。以便SMF在后续需要发送消息给AMF时可以从用户设备的上下文中获取用户设备相关的目标标识,并在第一消息中携带上述目标标识。Optionally, before step 310, the first service instance may further receive a target identifier related to the user equipment, so that before or when step 310 is performed, the first message carries the target identifier. As an example, when the first service instance is an SMF, the SMF may receive the target identifier sent by the AMF before sending the first message. As an example, the SMF may obtain the target identifier sent by the AMF through a session establishment process with the AMF, and store the target identifier in the context of the user equipment. So that the SMF may obtain the target identifier related to the user equipment from the context of the user equipment when it subsequently needs to send a message to the AMF, and carry the above target identifier in the first message.
从消息类型上看,上述第一消息可以是HTTP消息,还可以是AMQP消息等等,本申请实施例对此不做具体限定。From the perspective of message types, the first message may be an HTTP message, an AMQP message, or the like, which is not specifically limited in this embodiment of the present application.
步骤330中:传输代理基于第一消息,向与目标标识有绑定关系的第二服务实例发送第二消息。In step 330, the transmission agent sends a second message to the second service instance that has a binding relationship with the target identifier based on the first message.
目标标识与第二服务实例之间可以存在绑定关系,即根据目标标识可以找到对应的服务实例。作为一个示例,当目标标识是服务指针时,可以根据服务指针与服务实例的对应关系找到目标服务实例。A binding relationship may exist between the target identifier and the second service instance, that is, a corresponding service instance may be found according to the target identifier. As an example, when the target identifier is a service pointer, the target service instance can be found according to the correspondence between the service pointer and the service instance.
当第一消息为HTTP消息时,目标标识可以位于HTTP消息的头部,便于传输代理对目标标识的识别与处理。在本申请实施例中,可以新增一个叫做目标标识的可选HTTP头,这里将新头部叫做目标标识仅为示例性的,新定义的HTTP头部的具体名字本实施例不做具体规定。目标标识也可以位于HTTP消息的网络标记字段(Cookie)中。HTTP消息可以包括消息体,还可以包括统一资源标识符(uniform resource identifier,URI),选择参数等。消息体也可以称为消息正文。消息体可以包括与第二服务实例提供的服务有关的参数。选择参数可以用于指示传输代理确定第二服务实例并向第二服务实例发送消息。When the first message is an HTTP message, the target identifier may be located at the head of the HTTP message, which is convenient for the transmission agent to identify and process the target identifier. In the embodiment of the present application, an optional HTTP header called a target identifier may be added. The new header is called an exemplary identifier here, and the specific name of the newly defined HTTP header is not specified in this embodiment. . The target identifier can also be located in the network tag field (Cookie) of the HTTP message. The HTTP message may include a message body, and may also include a uniform resource identifier (URI), a selection parameter, and the like. The message body can also be called the message body. The message body may include parameters related to services provided by the second service instance. The selection parameter may be used to instruct the transport agent to determine a second service instance and send a message to the second service instance.
可选地,图3中示出的通信方法还可以在步骤330之前包含步骤320。Optionally, the communication method shown in FIG. 3 may further include step 320 before step 330.
在步骤320中,传输代理查找是否存在与目标标识有绑定关系服务实例。若传输代理查找到与目标标识有绑定关系的服务实例为第二服务实例,传输代理基于第一消息将第二消息发送给第二服务实例。In step 320, the transport agent searches for a service instance that has a binding relationship with the target identifier. If the transmission agent finds that the service instance that has a binding relationship with the target identifier is the second service instance, the transmission agent sends the second message to the second service instance based on the first message.
应理解,第二消息可以与第一消息完全相同,此种情况下,传输代理根据第一消息中的目标标识将第一消息作为第二消息直接转发给第二服务实例。当然第二消息也可以与第二消息不同,传输代理在接收到第一消息后,可以将第一消息进行改动,并将改动后的第一消息作为第二消息发送给第二服务实例。例如改动第一消息的头部,保持消息体不变,形成第二消息,并将该第二消息发送给第二服务实例等等,本申请实施例对此不做具体限定。It should be understood that the second message may be completely the same as the first message. In this case, the transmission agent directly forwards the first message as the second message to the second service instance according to the target identifier in the first message. Of course, the second message may be different from the second message. After receiving the first message, the transmission agent may modify the first message and send the modified first message to the second service instance as the second message. For example, the header of the first message is changed, the message body is kept unchanged, a second message is formed, and the second message is sent to the second service instance, and the like is not specifically limited in this embodiment of the present application.
应理解,传输代理中可以事先存储目标标识与服务实例的绑定关系。在传输代理接收到的第一消息时,可以根据第一消息中的目标标识查找是否存在与目标标识有绑定关系的服务实例。还可以是其他网元(例如NRF或数据存储单元)事先存储目标标识与服务实例的绑定关系,在传输代理接收到的第一消息时,传输代理根据第一消息中的目标标识向该网元查询对应的服务实例。该网元查询目标标识与服务实例的绑定关系,并将结果通知给传输代理,由传输代理将消息转发给目标服务实例等等,本申请对目标标识与服务实例绑定关系的存储位置以及查找绑定关系的网元不做具体限定。It should be understood that the binding relationship between the target identifier and the service instance may be stored in the transport agent in advance. When the transmission agent receives the first message, it can be found whether there is a service instance with a binding relationship with the target identifier according to the target identifier in the first message. It may also be that other network elements (such as NRF or data storage unit) store the binding relationship between the target identifier and the service instance in advance. When the first message received by the transmission agent is transmitted, the transmission agent sends the first message to the network according to the target identifier in the first message. Meta query corresponding service instance. The network element queries the binding relationship between the target identifier and the service instance, and notifies the transmission agent of the result. The transmission agent forwards the message to the target service instance, and so on. The network element for finding the binding relationship is not specifically limited.
利用目标标识与服务实例之间的绑定,代替现有技术中服务实例之间的直接绑定,能够降低服务实例之间耦合度,并减少服务实例处理的复杂度。Using the binding between the target identifier and the service instance instead of the direct binding between service instances in the prior art can reduce the coupling between service instances and reduce the complexity of service instance processing.
还有可能不存在目标标识与服务实例的绑定关系。即传输代理根据目标标识查找不到与其有绑定关系的服务实例,此时,传输代理可以根据第一消息获取目标服务集合的标识,并从集合选择其他服务实例,将第一消息发送给选择的服务实例。There may also be no binding relationship between the target ID and the service instance. That is, the transmission agent cannot find the service instance with which it has a binding relationship according to the target identifier. At this time, the transmission agent can obtain the identification of the target service set according to the first message, select other service instances from the set, and send the first message to the selection Service instance.
下面结合图4,描述当传输代理中不存在绑定关系时的方法。The following describes a method when a binding relationship does not exist in the transport agent with reference to FIG. 4.
图4是本申请另一实施例提供的通信方法的示意性图。图4对应的方法包括步骤410-430,下面对步骤410-430进行介绍:FIG. 4 is a schematic diagram of a communication method according to another embodiment of the present application. The method corresponding to FIG. 4 includes steps 410-430. Steps 410-430 are described below:
步骤410:传输代理接收第一服务实例发送的第一消息,其中第一消息中包含目标标识。步骤410对应于上述图3中的步骤310。可选地,在执行步骤410之前,第一服务实例同样也可以与第二服务实例进行消息交互,从而获取第二服务实例的目标标识,此处不再赘述。Step 410: The transmission agent receives a first message sent by the first service instance, where the first message includes a target identifier. Step 410 corresponds to step 310 in FIG. 3 described above. Optionally, before step 410 is performed, the first service instance may also perform message interaction with the second service instance to obtain the target identifier of the second service instance, and details are not described herein again.
步骤420:传输代理查找是否存在与目标标识对应的服务实例。当没有与目标标识具有绑定关系的服务实例时,执行步骤430。Step 420: The transport agent searches for a service instance corresponding to the target identifier. When there is no service instance having a binding relationship with the target identifier, step 430 is performed.
步骤430:当没有与目标标识具有绑定关系的服务实例时,传输代理根据第一消息,获取目标服务集合的标识。根据目标服务集合的标识,从目标服务集合中选取第三服务实例。基于第一消息,传输代理将第三消息发送至第三服务实例。Step 430: When there is no service instance with a binding relationship with the target identifier, the transmission agent obtains the identifier of the target service set according to the first message. A third service instance is selected from the target service set according to the identity of the target service set. Based on the first message, the transport agent sends a third message to the third service instance.
由上文可知,不同的服务集合具有不同的服务集合的标识。上述目标服务集合的标识是第二服务实例所属的服务集合的标识,即上述第三服务实例与第二服务实例同属于同一服务集合。It can be known from the foregoing that different service sets have different service set identifiers. The identifier of the target service set is an identifier of a service set to which the second service instance belongs, that is, the third service instance and the second service instance belong to the same service set.
应理解,第三消息可以与第一消息完全相同,此种情况下,传输代理根据第一消息中的目标标识将第一消息作为第三消息直接转发给第二服务实例。当然第三消息也可以与第三消息不同,传输代理在接收到第一消息后,可以将第一消息进行改动,并将改动后的第一消息作为第三消息发送给第二服务实例。例如改动第一消息的头部,保持消息体不变,形成第三消息,并将该第三消息发送给第二服务实例等等,本申请实施例对此不做具体限定。It should be understood that the third message may be exactly the same as the first message. In this case, the transmission agent directly forwards the first message as the third message to the second service instance according to the target identifier in the first message. Of course, the third message may be different from the third message. After receiving the first message, the transmission agent may modify the first message and send the modified first message to the second service instance as the third message. For example, the header of the first message is changed, the message body is kept unchanged, a third message is formed, and the third message is sent to the second service instance, and the like is not specifically limited in this embodiment of the present application.
可选地,传输代理可以从第一消息中获取目标服务集合的标识,第一消息中还包括目标服务集合的标识;或者,传输代理从第一消息中的目标标识中获取目标服务集合的标识,目标标识中包括目标服务集合的标识;或者,传输代理将与第一消息中的目标标识具有映射关系的服务集合的标识确定为目标服务集合的标识。Optionally, the transmission agent may obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or, the transmission agent obtains the identifier of the target service set from the target identifier in the first message. , The target identifier includes an identifier of the target service set; or, the transmission agent determines the identifier of the service set that has a mapping relationship with the target identifier in the first message as the identifier of the target service set.
应理解,本申请实施例对目标服务集合标识在第一消息中所占信元的位置不做具体限定。例如,目标服务集合标识可以占用目标标识中的信元,还可以占用第一消息中除了目标标识以外的其他信元,还可以是根据目标标识与服务集合标识的映射关系得到目标服务集合标识等等。It should be understood that the embodiment of the present application does not specifically limit the position of the cell occupied by the target service set identifier in the first message. For example, the target service set identifier may occupy cells in the target identifier, may also occupy other cells in the first message except the target identifier, or may obtain the target service set identifier according to the mapping relationship between the target identifier and the service set identifier. Wait.
应理解,本申请实施例对选取第三服务实例的方式不做具体限定。例如,可以是在目标服务集合中选择一个负荷较轻的服务实例作为第三服务实例,或者在是在目标服务集合中按轮询方式选择服务实例作为第三服务实例等等,本申请实施例对此不做具体限定。It should be understood that the embodiment of the present application does not specifically limit the manner of selecting the third service instance. For example, a service instance with a light load may be selected as the third service instance in the target service set, or a service instance may be selected as the third service instance in the target service set in a polling manner, etc. This is not specifically limited.
当不存在与目标标识有绑定关系的服务实例时,利用目标服务集合标识可以采用负载均衡算法从目标服务集合中选择目标服务实例,从而保证目标服务集合中各服务实例的负载均衡。When there is no service instance that has a binding relationship with the target identifier, the target service set identifier can be used to select the target service instance from the target service set by using the load balancing algorithm, thereby ensuring load balancing of each service instance in the target service set.
从业务粒度上来看,上文中的目标标识可以是与单个用户设备相关的标识,也可以是与一组或者多个用户设备相关的标识。From the perspective of business granularity, the target identifier in the above may be an identifier related to a single user equipment or an identifier related to a group or multiple user equipments.
上文结合图2-图4描述了传输代理根据目标标识与服务实例的绑定关系确定目标服务实例的过程。在执行图2-图4中的各个步骤之前,还有可能建立目标标识与服务实例之间的绑定关系。The process of determining the target service instance according to the binding relationship between the target identifier and the service instance is described above with reference to FIGS. 2 to 4. Before performing the steps in FIGS. 2-4, it is also possible to establish a binding relationship between the target identifier and the service instance.
上文已经指出目标标识可以是预先配置的目标标识,也可以是随通信消息分配的目标标识。针对上述不同类型的目标标识,本申请实施例提供了不同的目标标识与服务实例之间绑 定关系建立方式:可以是在目标实例注册到传输代理时由传输代理为服务实例分配目标标识,并将目标标识发送给该服务实例,完成目标标识与服务实例之间的绑定;或者目标标识是预先配置在服务实例中,并由服务实例将目标标识发送给传输代理,传输代理存储服务实例与目标标识的对应关系,从而完成目标标识与服务实例之间的绑定;或者当目标标识为传输代理或者服务实例随通信消息分配的目标标识时,传输代理建立目标标识与服务实例之间的绑定关系,目标标识可以由传输代理或者服务实例分配,当由传输代理分配时,传输代理还将该目标标识***到消息中。It has been pointed out above that the target identifier may be a pre-configured target identifier or a target identifier assigned with a communication message. For the above different types of target identifiers, the embodiments of the present application provide different ways to establish a binding relationship between a target identifier and a service instance: the target identifier may be assigned by the transport agent to the service instance when the target instance is registered with the transport agent, and Send the target ID to the service instance to complete the binding between the target ID and the service instance; or the target ID is pre-configured in the service instance and the service instance sends the target ID to the transport agent, and the transport agent stores the service instance Correspondence between target identifiers to complete the binding between the target identifier and the service instance; or when the target identifier is the target identifier assigned by the transport agent or the service instance with the communication message, the transport agent establishes a binding between the target identifier and the service instance The target identifier can be assigned by the transport agent or service instance. When assigned by the transport agent, the transport agent also inserts the target identifier into the message.
下面介绍传输代理预先建立目标标识与服务实例绑定关系的过程。图5与图6示出了一种预先建立目标标识与服务实例绑定关系的过程。作为一个示例,图5与图6以目标标识为服务指针为例,描述传输代理预先建立目标标识与服务实例绑定关系的过程。The following describes the process in which the transport agent establishes a binding relationship between the target identifier and the service instance in advance. 5 and 6 illustrate a process of establishing a binding relationship between a target identifier and a service instance in advance. As an example, FIG. 5 and FIG. 6 use the target identifier as a service pointer as an example to describe a process in which the transfer agent establishes a binding relationship between the target identifier and the service instance in advance.
图5中包括步骤510-530,下面对步骤510-530进行详细描述。Steps 510-530 are included in FIG. 5, and steps 510-530 are described in detail below.
步骤510:第二服务实例向传输代理发送第六消息,所述第六消息用于将第二服务实例注册到所述传输代理。Step 510: The second service instance sends a sixth message to the transmission agent, where the sixth message is used to register the second service instance to the transmission agent.
应理解,第六消息中可以包含有关第二服务实例的信息。以便于传输代理根据服务实例的信息将第二服务实例与服务指针绑定。It should be understood that the sixth message may include information about the second service instance. In order to facilitate the transfer agent to bind the second service instance to the service pointer according to the information of the service instance.
本申请实施例对第六消息中的具体信息不做具体限制。例如,注册请求中可以包括以下内容中的至少一项:服务实例标识、服务类型、生产厂商信息、服务实例所属的服务集合的标识、服务实例所服务的区域、服务实例所支持的网络切片能力。根据服务类型的不同,注册请求中还可能携带数据网络名称(data network name,DNN)等其他信息。The embodiment of the present application does not specifically limit the specific information in the sixth message. For example, the registration request may include at least one of the following: service instance identification, service type, manufacturer information, identification of the service set to which the service instance belongs, the area served by the service instance, and the network slice capability supported by the service instance . Depending on the type of service, the registration request may also carry other information such as data network name (DNN).
可选地,第六消息中还可以包括所述第二服务实例的服务指针,以便传输代理绑定所述第二服务实例与所述服务指针。此时,第六消息中携带的第二服务实例的指针可以是为第二服务实例预先配置的服务指针,例如在第二服务实例的配置文件中配置等等。Optionally, the sixth message may further include a service pointer of the second service instance, so that the transmission agent binds the second service instance and the service pointer. At this time, the pointer of the second service instance carried in the sixth message may be a service pointer pre-configured for the second service instance, for example, configured in a configuration file of the second service instance.
可选地,第二服务服务实例发送的第六消息中可以包含第二服务实例的容量。Optionally, the sixth message sent by the second service service instance may include the capacity of the second service instance.
可选地,第二服务实例发送的第六消息中可以包含第二服务实例申请的服务指针的数量。Optionally, the sixth message sent by the second service instance may include the number of service pointers applied by the second service instance.
可选地,第二服务实例向传输代理发送第六消息之前,可能需要先发现本地传输代理。例如可以事先将本地传输代理的地址信息(如FQDN或IP地址)固定配置在第二服务实例的配置文件中;或者服务实例通过发现机制发现本地传输代理,例如可以是第二服务实例在网络中发送广播或组播消息;还可以是类似于动态主机配置协议(dynamic host configuration protocol,DHCP)服务器的发现机制。本申请实施例对此不做具体限定。Optionally, before the second service instance sends the sixth message to the transport agent, it may be necessary to first discover the local transport agent. For example, the address information (such as FQDN or IP address) of the local transport agent can be fixedly configured in the configuration file of the second service instance in advance; or the service instance can discover the local transport agent through the discovery mechanism, for example, the second service instance can be in the network Send broadcast or multicast messages; it can also be a discovery mechanism similar to a Dynamic Host Configuration Protocol (DHCP) server. This embodiment of the present application does not specifically limit this.
步骤520:传输代理根据接收到的第六消息,为第二服务实例分配服务指针。Step 520: The transfer agent allocates a service pointer to the second service instance according to the received sixth message.
由传输代理为服务实例配置服务指针,能够实现服务指针的自动化配置。The transfer agent configures the service pointer for the service instance, which can realize the automatic configuration of the service pointer.
当第六消息中包含第二服务实例信息时,传输代理可以首先根据服务实例的信息确定第二服务实例所属的集合,或者说,传输代理可以首先根据服务实例的信息确定第二服务实例所属的服务集合标识。When the sixth message contains the second service instance information, the transmission agent may first determine the set to which the second service instance belongs according to the service instance information, or the transmission agent may first determine the second service instance to which the second service instance belongs according to the service instance information. Service collection ID.
具体地,传输代理可以根据注册请求中的服务类型、生产商信息、服务的区域、网络切片能力等信息判断是否存在能力和生产商均相同的服务集合,确定将第二服务实例加入现有服务集合还是创建新的服务集合。作为一个示例,假设第二服务实例为AMF,生产商为华为,支持网络切片能力A,支持服务区域B。传输代理判断存在现有的服务集合,其服务实例为AMF,生产商也是华为,并且同样支持网络切片能力A和服务区域B,则传输代理可判断该新服务实例可加入该现有服务集合。当传输代理决定将第二服务实例加入现有的服务集合时, 则传输代理为其分配的服务指针与第二服务实例所属的服务集合中的其他服务实例不同,以避免相同服务集合内的服务指针冲突。Specifically, the transfer agent can determine whether there is a service set with the same capabilities as the manufacturer according to the service type, manufacturer information, service area, network slicing capability, etc. in the registration request, and determine to add the second service instance to the existing service. Collections also create new service collections. As an example, it is assumed that the second service instance is AMF, the manufacturer is Huawei, and the network slicing capability A is supported, and the service area B is supported. The transmission agent judges that there is an existing service set, whose service instance is AMF, the manufacturer is also Huawei, and also supports network slicing capability A and service area B, then the transmission agent can determine that the new service instance can join the existing service set. When the transfer agent decides to add the second service instance to the existing service set, the service pointer assigned by the transfer agent is different from other service instances in the service set to which the second service instance belongs, to avoid services in the same service set Pointer conflict.
在分配服务指针的同时考虑服务实例所属服务集合的标识:为相同的服务集合内的服务实例分配不同的服务指针,能够防止服务集合内服务指针的冲突。When assigning service pointers, consider the identity of the service set to which the service instance belongs: assigning different service pointers to service instances in the same service set can prevent conflicts in service pointers in the service set.
注册请求中携带的所请求的服务指针的数量,使服务实例根据自身负载或者其他信息,合理请求传输代理分配服务指针,保证合适粒度的与用户设备相关的业务管理。The number of requested service pointers carried in the registration request enables the service instance to reasonably request the transmission agent to allocate service pointers based on its own load or other information, to ensure appropriate granularity of business management related to user equipment.
当注册请求中包含第二服务实例的容量时,传输代理可以根据第二服务实例的容量为第二服务实例分配服务指针等等。传输代理可根据第二服务实例的容量、以及第二服务实例所属服务集合中其他服务实例的容量确定为第二服务实例分配的指针数量。When the registration request includes the capacity of the second service instance, the transfer agent may allocate a service pointer and the like to the second service instance according to the capacity of the second service instance. The transfer agent may determine the number of pointers allocated for the second service instance according to the capacity of the second service instance and the capacity of other service instances in the service set to which the second service instance belongs.
步骤530:第二服务实例向传输代理发送第六消息响应。可选地,若传输代理为第二服务实例分配了服务指针,则在第六消息响应中包含所分配的第二服务实例的服务指针,利用第六响应消息可以通知第二服务实例传输代理为其分配的自身的目标标识。Step 530: The second service instance sends a sixth message response to the transport agent. Optionally, if the transfer agent assigns a service pointer to the second service instance, the sixth message response includes the allocated service pointer of the second service instance, and the sixth service message may be used to notify the second service instance that the transfer agent is Its assigned target ID.
可选地,通过第六消息响应消息,传输代理可以通知第二服务实例已经建立第二服务实例与服务指针的绑定关系。Optionally, through the sixth message response message, the transmission agent may notify the second service instance that the binding relationship between the second service instance and the service pointer has been established.
可选地,图6示出了另外一种建立服务指针与服务实例之间绑定关系的过程。Optionally, FIG. 6 shows another process of establishing a binding relationship between a service pointer and a service instance.
步骤610中:第二服务实例向传输代理发送第七消息,所述第七消息包含所述第二服务实例的服务指针。In step 610: the second service instance sends a seventh message to the transport agent, where the seventh message includes a service pointer of the second service instance.
步骤620中:传输代理可以检查这些服务指针是否与第二服务实例所属服务集合中其他实例的服务指针冲突。若存在冲突,传输代理可以为第二服务实例分配新的服务指针,以替换冲突的服务指针。In step 620: the transfer agent may check whether these service pointers conflict with the service pointers of other instances in the service set to which the second service instance belongs. If there is a conflict, the transport agent may assign a new service pointer to the second service instance to replace the conflicting service pointer.
步骤630中:传输代理向第二服务实例发送第七消息响应,若在步骤620传输代理为第二服务实例分配了新的服务指针,则所述第七消息响应中包含传输代理为第二服务实例分配的新的服务指针。In step 630, the transmission agent sends a seventh message response to the second service instance. If the transmission agent assigns a new service pointer to the second service instance in step 620, the seventh message response includes the transmission agent as the second service. The new service pointer allocated by the instance.
应理解,上述图5与图6中作为示例,目标标识为服务指针。实际上目标标识也可以采用不同格式,例如,当所述目标标识与一个用户设备相关时,所述目标标识可以是传输代理的IP地址和端口号中的至少一个,或者,所述目标标识还可以是所述第二服务实例所属服务集合的标识和所述服务集合内的唯一标识,或者,所述目标标识是传输代理分配的在传输代理中唯一的数值,本申请对此不做限定;当所述目标标识与一组用户设备相关时,所述目标标识可以是所述第二服务实例对应的服务集合的标识、或者所述服务集合的标识和所述第二服务实例的标识、或者是所述服务集合的标识和所述服务集合内唯一的服务指针,所述服务指针用于标识该服务集合内的一组用户设备等,本申请对此不做限定。It should be understood that, in the foregoing FIG. 5 and FIG. 6 as examples, the target identifier is a service pointer. In fact, the target identifier may also adopt different formats. For example, when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transmission agent, or the target identifier may also be It may be an identifier of a service set to which the second service instance belongs and a unique identifier in the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not limited in this application; When the target identifier is related to a group of user equipments, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance, or It is the identifier of the service set and the only service pointer in the service set. The service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
应理解,上文图5、图6中示出建立服务实例与目标标识绑定关系的过程可以由传输代理完成。还可以是传输代理在接收到第六消息或第七消息后将消息转发给NRF或者其他网络功能,由NRF或其他网络功能完成服务实例与目标标识的绑定关系的建立,传输代理只负责消息的转发。本申请实施例对此不做具体限定。It should be understood that the process of establishing the binding relationship between the service instance and the target identifier shown in FIG. 5 and FIG. 6 above may be completed by the transport agent. It may also be that the transmission agent forwards the message to the NRF or other network functions after receiving the sixth message or the seventh message, and the NRF or other network functions complete the establishment of the binding relationship between the service instance and the target identifier. The transmission agent is only responsible for the message Forwarded. This embodiment of the present application does not specifically limit this.
还应理解上述图5与图6中的方案,也可以是传输代理在接收到第六消息或第七消息时,只为服务实例分配目标标识,但不存储服务实例与目标标识的绑定关系,此时传输代理中未建立服务实例与目标标识的绑定关系。对于服务实例与其目标标识之间绑定关系的建立,可以是经通信消息的触发而建立。It should also be understood that the solutions in FIG. 5 and FIG. 6 described above may also be that when the transmission agent receives the sixth message or the seventh message, it only assigns the target identifier to the service instance, but does not store the binding relationship between the service instance and the target identifier At this time, the binding relationship between the service instance and the target identifier is not established in the transport agent. The establishment of the binding relationship between the service instance and its target identifier may be established through the trigger of a communication message.
下面介绍以另一种方式实现的目标标识与服务实例之间绑定关系的建立:即在通信过程 中,传输代理经消息触发,建立目标标识与服务实例之间的绑定关系的过程。The following describes the establishment of the binding relationship between the target identifier and the service instance in another way: that is, during the communication process, the transmission agent is triggered by a message to establish the binding relationship between the target identifier and the service instance.
传输代理还用可以接收第二服务实例发送的第四消息,传输代理根据第四消息获得目标标识与第二服务实例之间的绑定关系。The transmission agent may also receive a fourth message sent by the second service instance, and the transmission agent obtains a binding relationship between the target identifier and the second service instance according to the fourth message.
可选地,第四消息中可以携带第二服务实例与目标标识之间的绑定关系,传输代理可以获取第四消息中携带的第二服务实例与目标标识之间的绑定关系。例如第四消息中可以携带第二服务实例的IP地址以及目标标识的对应关系。此时传输代理可以在接收到第四消息时可以获取第二服务实例的IP地址以及目标标识的绑定关系。Optionally, the fourth message may carry a binding relationship between the second service instance and the target identifier, and the transmission agent may obtain the binding relationship between the second service instance and the target identifier carried in the fourth message. For example, the fourth message may carry the correspondence between the IP address of the second service instance and the target identifier. At this time, the transmission agent may obtain the IP address of the second service instance and the binding relationship of the target identifier when receiving the fourth message.
应理解,作为触发建立绑定关系的第四消息可以具有多种形式。例如,第四消息可以是第二服务实例向传输代理发送的专门的绑定请求消息。在绑定请求消息中可以携带一个或多个目标标识,该绑定请求消息中的目标标识可以是服务实例中预先配置的目标标识,还可以是由传输代理随绑定消息分配的目标标识。It should be understood that the fourth message that triggers the establishment of the binding relationship may have multiple forms. For example, the fourth message may be a special binding request message sent by the second service instance to the transport agent. The binding request message may carry one or more target identifiers. The target identifier in the binding request message may be a pre-configured target identifier in the service instance or a target identifier assigned by the transport agent along with the binding message.
第四消息还可以是普通的与用户设备相关的消息。例如,第四消息是向其他服务实例发送的消息,其中的其他服务实例可以是第一服务实例,也可以是除第一服务实例之外的其他服务实例,下面以其他服务实例为第一服务实例为例进行说明。在一种实现方式中,当第二服务实例向第一服务实例发送第四消息时,在该第四消息携带目标标识,传输代理从第四消息中获取目标标识,并建立目标标识与第二服务实例的绑定关系。在另外一种实现方式中,第四消息中不携带目标标识,但第四消息中携带指示,传输代理根据该指示确定需要分配目标标识并将目标标识与第二服务实例绑定。The fourth message may also be a common message related to the user equipment. For example, the fourth message is a message sent to another service instance. The other service instances may be the first service instance or other service instances other than the first service instance. The other service instances are the first service below. An example is used for illustration. In an implementation manner, when the second service instance sends a fourth message to the first service instance, the fourth message carries the target identifier, the transmission agent obtains the target identifier from the fourth message, and establishes the target identifier and the second The binding relationship of the service instance. In another implementation manner, the fourth message does not carry the target identifier, but the fourth message carries an instruction, and the transmission agent determines that the target identifier needs to be allocated and binds the target identifier to the second service instance according to the instruction.
上述目标标识,还可以是第二服务实例在发送第二消息第四消息时,由第二服务实例分配的目标标识。或者可以是传输代理在接收到第二服务实例发送的第四消息时,由传输代理为第二服务实例分配的目标标识。作为一个示例,当服务实例是SMF时,在SMF发送与用户设备相关的第四消息时,SMF可以为该用户设备上下文分配会话参考标识(对应TS 29.502中的smContextRef),该会话参考标识被SMF用来唯一标识一个用户设备的会话上下文,该会话参考标识可用作目标标识,以便根据该会话参考标识找到SMF。The target identifier may also be a target identifier allocated by the second service instance when the second service instance sends the second message and the fourth message. Or it may be the target identifier allocated by the transport agent to the second service instance when the transport agent receives the fourth message sent by the second service instance. As an example, when the service instance is SMF, when the SMF sends a fourth message related to the user equipment, the SMF may assign a session reference identifier (corresponding to smContextRef in TS 29.502) for the user equipment context, and the session reference identifier is used by the SMF. It is used to uniquely identify the session context of a user equipment, and the session reference identifier can be used as the target identifier to find the SMF according to the session reference identifier.
可选地,第四消息中可以携带绑定指示。当第四消息中包含目标标识时,该绑定指示用于指示传输代理记录第四消息中的目标标识。或者当第四消息中不包含目标标识时,传输代理在接收到绑定指示时,为第二服务实例分配目标标识。Optionally, the fourth message may carry a binding indication. When the fourth message contains the target identifier, the binding indication is used to instruct the transport agent to record the target identifier in the fourth message. Or when the fourth message does not include the target identifier, the transport agent allocates the target identifier to the second service instance when receiving the binding instruction.
应理解,当第四消息是用户设备相关消息,且目标标识由传输代理分配时,传输代理还需要将目标标识发送给第一服务实例,例如,可以将目标标识***到第四消息中。It should be understood that when the fourth message is a user equipment related message and the target identifier is allocated by the transport agent, the transport agent also needs to send the target identifier to the first service instance, for example, the target identifier may be inserted into the fourth message.
应理解,第四消息中携带绑定指示的情况又可以称为显式的绑定。It should be understood that the case that the fourth message carries a binding indication may also be referred to as an explicit binding.
可选地,第四消息中携带绑定定时器,所述绑定定时器用于在绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。Optionally, the fourth message carries a binding timer, and the binding timer is used to release the binding relationship between the target identifier and the second service instance after the binding timer expires.
利用绑定定时器可以自定义服务实例与目标标识之间的绑定时间,以便在绑定定时器到期后可以选择其他服务实例,从而支持更好的负载均衡。The binding timer can be used to customize the binding time between the service instance and the target identifier, so that other service instances can be selected after the binding timer expires, thereby supporting better load balancing.
上文描述了建立目标标识与服务实例的绑定关系的过程,在一些情况下,还可以将目标标识与服务实例解绑定。The process of establishing the binding relationship between the target identifier and the service instance is described above. In some cases, the target identifier can also be unbound from the service instance.
可选地,传输代理还可以接收所述第二服务实例发送的第五消息,所述第五消息用于请求解除目标标识与所述第二服务实例的绑定关系;或者,启动绑定定时器,当所述绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。Optionally, the transmission agent may further receive a fifth message sent by the second service instance, where the fifth message is used to request to unbind the target identifier from the second service instance; or start binding timing A device that releases the binding relationship between the target identifier and the second service instance after the binding timer expires.
传输代理可以在接收到第五消息或者定时器超时时,解除目标标识与第二服务实例之间 的绑定。The transport agent may unbind the target identifier from the second service instance when the fifth message is received or the timer expires.
应理解,服务实例可以是在自身负载较重、服务实例下线、或者服务实例故障等情况下发起解绑定请求,通知传输代理解除目标标识与服务实例之间的绑定,保证在上述情况下能够将与用户设备相关的业务从上述服务实例中移除。It should be understood that the service instance may initiate a debinding request under heavy load, service instance offline, or service instance failure, and notify the transport agent to unbind the target identifier from the service instance. The service related to the user equipment can be removed from the above service instance.
第五消息中还可以携带指示信息,指示信息用于指示传输代理将目标标识与第三服务实例绑定。The fifth message may also carry indication information, which is used to instruct the transport agent to bind the target identifier to the third service instance.
在解绑定请求中携带指示信息,能够在请求目标标识与原服务实例解绑定的同时,指示将该目标标识与其他服务实例绑定。从而完成服务实例之间业务负载的转移,实现服务实例之间的负载均衡。The unbinding request carries instruction information, which can instruct the target identifier to be bound to other service instances while requesting the target identifier to be unbound from the original service instance. This completes the transfer of business load between service instances and achieves load balancing between service instances.
如上文所述,目标标识可以是预先为服务实例配置的服务指针(也可以称为为实例指针)之一,此时每个服务指针可以对应于多个用户设备,即服务实例所服务的多个用户设备可以共用同一服务指针。As described above, the target identifier may be one of the service pointers (also referred to as instance pointers) configured for the service instance in advance. At this time, each service pointer may correspond to multiple user devices, that is, multiple services served by the service instance. User equipments can share the same service pointer.
目标标识可以采用不同格式,例如,当所述目标标识与一个用户设备相关时,所述目标标识可以是传输代理的IP地址和端口号中的至少一个,或者,所述目标标识还可以是所述第二服务实例所属服务集合的标识和所述服务集合内的唯一标识,或者,所述目标标识是传输代理分配的在传输代理中唯一的数值,本申请对此不做限定;当所述目标标识与一组用户设备相关时,所述目标标识可以是所述第二服务实例对应的服务集合的标识、或者所述服务集合的标识和所述第二服务实例的标识、或者是所述服务集合的标识和所述服务集合内唯一的服务指针,所述服务指针用于标识该服务集合内的一组用户设备等,本申请对此不做限定。The target identifier may use different formats. For example, when the target identifier is related to a user equipment, the target identifier may be at least one of an IP address and a port number of a transmission agent, or the target identifier may also be The identifier of the service set to which the second service instance belongs and the unique identifier in the service set, or the target identifier is a unique value in the transfer agent allocated by the transfer agent, which is not limited in this application; when When the target identifier is related to a group of user equipments, the target identifier may be an identifier of a service set corresponding to the second service instance, or an identifier of the service set and an identifier of the second service instance, or the identifier of the second service instance. The service set identifier and the unique service pointer in the service set, the service pointer is used to identify a group of user equipment in the service set, etc., which is not limited in this application.
使用不同粒度的目标标识,能够完成不同粒度的业务管理。Different granularity of target identification can complete different granularity of business management.
为了便于理解,下面以两个详细的实施例分别描述本申请实施例提供的通信方法。To facilitate understanding, the following describes the communication methods provided by the embodiments of the present application in two detailed embodiments.
图7是本申请又一实施例提供的通信方法的示意图。如图7所示的方法包含步骤710-760b,执行图7中示出的步骤可以实现一组用户设备粒度的绑定与解绑定方法。FIG. 7 is a schematic diagram of a communication method according to another embodiment of the present application. The method shown in FIG. 7 includes steps 710-760b. Performing the steps shown in FIG. 7 can implement a group of user equipment granular binding and unbinding methods.
在步骤710中:第二服务实例向传输代理发送第四消息。In step 710: the second service instance sends a fourth message to the transport agent.
上述第四消息是第二服务实例专门向传输代理发送的绑定请求,包含第二服务实例的目标标识。传输代理接收该绑定请求,并记录该绑定请求中的第二服务实例与目标标识的绑定关系。The fourth message is a binding request sent specifically by the second service instance to the transport agent, and includes the target identifier of the second service instance. The transport agent receives the binding request and records the binding relationship between the second service instance and the target identifier in the binding request.
在步骤720中:第一服务实例与第二服务实例之间进行用户设备相关的消息交互,在该过程中第二服务实例将自身的目标标识发送给第一服务实例。第一服务实例在收到与第二服务实例的目标标识后,将该目标标识保存在用户设备的上下文中。In step 720: a user equipment-related message interaction is performed between the first service instance and the second service instance. In the process, the second service instance sends its target identifier to the first service instance. After receiving the target identifier of the second service instance, the first service instance saves the target identifier in the context of the user equipment.
作为一个示例,第一服务实例可以是AMF,第二服务实例可以是SMF。AMF可以向SMF发送创建会话请求,SMF向AMF发送创建会话建立响应,并在该创建会话响应中包含SMF的目标标识。AMF接收到SMF的目标标识后,将其保存在用户设备的上下文中。As an example, the first service instance may be AMF, and the second service instance may be SMF. The AMF may send a session creation request to the SMF, and the SMF sends a session creation response to the AMF, and the session creation response includes the target identifier of the SMF. After receiving the target identity of the SMF, the AMF saves it in the context of the user equipment.
应理解,本申请实施例执行步骤710与步骤720的先后顺序可以调换,本申请实施例对此不做限定。It should be understood that the order of performing step 710 and step 720 in this embodiment of the present application may be reversed, which is not limited in this embodiment of the present application.
在步骤730中:第一服务实例向传输代理发送第一消息,并在第一消息中携带有第二服务实例的目标标识以及第二服务实例的服务集合标识。具体地,第一服务实例从用户设备的上下文中获取目标标识,并将该目标标识添加到第一消息中。In step 730: the first service instance sends a first message to the transport agent, and the first message carries the target identifier of the second service instance and the service set identifier of the second service instance. Specifically, the first service instance obtains a target identifier from the context of the user equipment, and adds the target identifier to the first message.
当第一消息为HTTP消息时,该目标标识与服务集合标识可以位于HTTP消息的头部,以方便传输代理读取目标标识。When the first message is an HTTP message, the target identifier and the service set identifier may be located at the head of the HTTP message, so that the transmission agent can read the target identifier conveniently.
需要说明的是,第一消息和第四消息之间没有关系,在本实施例中第四消息和第一消息都是发送给第二服务实例,但是,在实际部署时,第四消息也可以是发送给其他服务实例的消息,例如,当第一服务实例是AMF,第二服务实例是SMF时,第四消息可以是AMF发送给UDM的消息,例如,在用户设备注册过程中AMF给UDM发送消息,并且在此过程中建立了目标标识与第一服务实例(即AMF)的绑定关系。当目标标识是与一组用户相关时,第四消息和第一消息也可以是针对不同的同一用户组中的不同用户设备的。本实施例对此不做具体限定。It should be noted that there is no relationship between the first message and the fourth message. In this embodiment, the fourth message and the first message are both sent to the second service instance. However, during actual deployment, the fourth message may also be sent. It is a message sent to other service instances. For example, when the first service instance is AMF and the second service instance is SMF, the fourth message may be a message sent by AMF to UDM, for example, AMF sends UDM to UDM during user device registration. Send a message and establish a binding relationship between the target identifier and the first service instance (that is, AMF) in the process. When the target identifier is related to a group of users, the fourth message and the first message may also be directed to different user equipments in different same user groups. This embodiment does not specifically limit this.
在步骤750中:传输代理根据第一消息中携带的目标标识,查找是否存在与目标标识对应的服务实例。若在步骤710中传输代理记录了第二服务实例与该目标标识的绑定关系,传输代理会查找到与目标标识对应的服务实例为第二服务实例。In step 750: the transmission agent searches for a service instance corresponding to the target identifier according to the target identifier carried in the first message. If the transmission agent records the binding relationship between the second service instance and the target identifier in step 710, the transmission agent will find that the service instance corresponding to the target identifier is the second service instance.
在步骤760a中:传输代理基于第一消息,将第二消息发送给第二服务实例。In step 760a: the transport agent sends a second message to the second service instance based on the first message.
应理解,第三消息可以与第一消息完全相同,此种情况下,传输代理根据第一消息中的目标标识将第一消息作为第三消息直接转发给第二服务实例。当然第三消息也可以与第三消息不同,传输代理在接收到第一消息后,可以将第一消息进行改动,例如改动第一消息的头部,保持消息体不变形成第三消息,并将该第三消息发送给第二服务实例等等,本申请实施例对此不做具体限定。It should be understood that the third message may be exactly the same as the first message. In this case, the transmission agent directly forwards the first message as the third message to the second service instance according to the target identifier in the first message. Of course, the third message may be different from the third message. After receiving the first message, the transmission agent may change the first message, for example, change the header of the first message, and keep the message body unchanged to form the third message. Send the third message to the second service instance, etc., which is not specifically limited in this embodiment of the present application.
在后续的某个时间,例如在感知自身业务负荷过重时,第二服务实例决定解除与上述目标标识之间的绑定。At a subsequent time, for example, when it feels that its own business is overloaded, the second service instance decides to unbind it from the target identifier.
可选地,在步骤740中:第二服务实例向传输代理发送第五消息。该解绑定请求用于请求传输代理删除第二服务实例与上述目标标识之间的绑定关系。Optionally, in step 740: the second service instance sends a fifth message to the transport agent. The unbinding request is used to request the transport agent to delete the binding relationship between the second service instance and the target identifier.
绑定请求中请求解绑定的目标标识可以是一个也可以是多个。传输代理在接收到第二服务实例发送的解绑定请求后,可以删除第二服务实例与目标标识之间的绑定关系。The target identifier of the unbinding request in the binding request may be one or more. After receiving the unbinding request sent by the second service instance, the transport agent may delete the binding relationship between the second service instance and the target identifier.
可选地,该解绑定请求中还可以包含指示信息,指示信息用于指示将该第二服务实例的目标标识与其他服务实例绑定,例如可以与图7中的第三服务实例绑定。Optionally, the unbinding request may further include indication information, and the indication information is used to indicate that the target identifier of the second service instance is bound to another service instance, for example, it may be bound to the third service instance in FIG. 7 .
在步骤760b中:假设在先前步骤740中,传输代理已经将第二服务实例与上述第二服务实例的目标标识解除绑定,则传输代理在步骤750中查找不到与第一消息中目标标识对应的服务实例。此时,传输代理可以根据第一消息获取目标服务集合标识。In step 760b: assuming that in the previous step 740, the transport agent has unbound the second service instance from the target identifier of the second service instance, the transport agent cannot find the target identifier in the first message in step 750 Corresponding service instance. At this time, the transmission agent may obtain the target service set identifier according to the first message.
第三服务实例的选取可以是任意的,也可以是根据负载均衡的算法,从目标服务集合中选择一个服务实例作为第三服务实例。The selection of the third service instance can be arbitrary, or a service instance can be selected from the target service set as the third service instance according to the load balancing algorithm.
可选地,传输代理可以从第一消息中获取目标服务集合的标识,第一消息中还包括目标服务集合的标识;或者,传输代理从第一消息中的目标标识中获取目标服务集合的标识,目标标识中包括目标服务集合的标识;或者,传输代理将与第一消息中的目标标识具有映射关系的服务集合的标识确定为目标服务集合的标识。Optionally, the transmission agent may obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or, the transmission agent obtains the identifier of the target service set from the target identifier in the first message. , The target identifier includes an identifier of the target service set; or, the transmission agent determines the identifier of the service set that has a mapping relationship with the target identifier in the first message as the identifier of the target service set.
传输代理在目标服务集合中选取第三服务实例,并基于第一消息,向第三服务实例发第三消息。The transport agent selects a third service instance from the target service set, and sends a third message to the third service instance based on the first message.
应理解,第三消息可以与第一消息完全相同,此种情况下,传输代理根据第一消息中的目标标识将第一消息作为第三消息直接转发给第二服务实例。当然第三消息也可以与第三消息不同,传输代理在接收到第一消息后,可以将第一消息进行改动,例如改动第一消息的头部,保持消息体不变形成第三消息,并将该第三消息发送给第二服务实例等等,本申请实施例对此不做具体限定。It should be understood that the third message may be exactly the same as the first message. In this case, the transmission agent directly forwards the first message as the third message to the second service instance according to the target identifier in the first message. Of course, the third message may be different from the third message. After receiving the first message, the transmission agent may change the first message, for example, change the header of the first message, and keep the message body unchanged to form the third message. Send the third message to the second service instance, etc., which is not specifically limited in this embodiment of the present application.
若在步骤740中,第二服务实例决定将当前服务指针与自身解绑定的同时,指示传输代理将当前服务指针转移给第三服务实例,则传输代理根据解绑定请求将该目标标识与第二服务实例解绑定,并将该目标标识与第三服务实例绑定,此时,传输代理根据目标标识选择第三服务实例,并将第三消息发送给该第三服务实例。If in step 740, the second service instance decides to unbind the current service pointer with itself, and instructs the transfer agent to transfer the current service pointer to the third service instance, then the transfer agent sends the target identifier to The second service instance is unbound, and the target identifier is bound to the third service instance. At this time, the transmission agent selects the third service instance according to the target identifier, and sends a third message to the third service instance.
上述图7对应的方法是第四消息是专门的绑定请求。下面结合图8,详细描述第四消息是用户设备相关的消息时的流程。图8中的方法包含步骤810-880b:The method corresponding to the above FIG. 7 is that the fourth message is a special binding request. The following describes in detail the flow when the fourth message is a message related to the user equipment with reference to FIG. 8. The method in FIG. 8 includes steps 810-880b:
在步骤810中:第一服务实例向传输代理发送第四消息。该第四消息是用户设备相关的消息。In step 810: the first service instance sends a fourth message to the transport agent. The fourth message is a message related to the user equipment.
第一服务实例可以在第四消息中携带第一服务实例为用户设备分配的目标标识。在一种实现方式中,目标标识可用于服务实例唯一定位用户设备上下文。例如,第一服务实例可以是AMF,则AMF的目标标识是用户设备的标识,此时目标标识可以是5G全球唯一临时标识(globally unique temporary identity,GUTI)、用户永久标识(subscriber permanent identifier,SUPI)或者永久设备标识(permanent equipment identifier,PEI)等,AMF可根据上述目标标识唯一定位一个用户设备的上下文。第一服务实例还可以是SMF,则SMF的目标标识可以是SMF分配的会话参考标识(如smContextRef)。The first service instance may carry the target identifier allocated by the first service instance to the user equipment in the fourth message. In one implementation, the target identifier can be used by the service instance to uniquely locate the user device context. For example, the first service instance may be AMF, and the target identity of the AMF is the identity of the user equipment. At this time, the target identity may be a 5G globally unique temporary identity (GUTI), a subscriber permanent identity (subscriber, permanent identity, SUPI). ) Or permanent equipment identifier (PEI), etc., the AMF can uniquely locate the context of a user equipment according to the above target identifier. The first service instance may also be an SMF, and the target identifier of the SMF may be a session reference identifier (such as smContextRef) allocated by the SMF.
该第四消息用于触发目标标识与服务实例之间绑定关系的建立。与图7中所示的方法有所不同,步骤810中的第四消息不是专门的绑定请求,而是普通的与用户设备相关的消息。例如当第一服务实例与第二服务实例分别为AMF与SMF时,第四消息可为创建会话请求消息。在创建会话时,为了将第四消息发送给SMF,第一服务实例AMF可以将SMF的服务集合标识携带在第四消息中,以便传输代理根据服务集合标识选取对端SMF。The fourth message is used to trigger the establishment of a binding relationship between the target identifier and the service instance. Different from the method shown in FIG. 7, the fourth message in step 810 is not a special binding request, but a general message related to the user equipment. For example, when the first service instance and the second service instance are AMF and SMF respectively, the fourth message may be a session creation request message. When the session is created, in order to send the fourth message to the SMF, the first service instance AMF may carry the service set identifier of the SMF in the fourth message, so that the transmission agent selects the peer SMF according to the service set identifier.
应理解,上述目标标识可以是第一服务实例分配的,例如,可以是第一服务实例请求该服务集合对应的共享数据层分配的,还可以是将目标标识分段配置在各服务实例中从而第一服务实例从配置在第一服务实例中的目标标识分段中选择一个目标标识。当目标标识是由第一服务实例分配时,第四消息中携带第一服务实例分配的目标标识。可选地,第一服务实例可以在第四消息中携带绑定指示,指示第一服务实例希望传输代理建立目标标识与第一服务实例的绑定关系。It should be understood that the foregoing target identifier may be allocated by the first service instance, for example, it may be allocated by the first service instance requesting the shared data layer corresponding to the service set, or the target identifier may be configured in segments in each service instance so that The first service instance selects a target identifier from the target identifier segments configured in the first service instance. When the target identifier is allocated by the first service instance, the fourth message carries the target identifier allocated by the first service instance. Optionally, the first service instance may carry a binding instruction in the fourth message, indicating that the first service instance wishes the transmission agent to establish a binding relationship between the target identifier and the first service instance.
此外,目标标识还可以是接收到第四消息时传输代理分配的,当目标标识是传输代理分配时,第四消息中不携带目标标识,由传输代理接收到第四消息时分配目标标识。此外,服务实例可以在第一消息中携带指示,传输代理在收到该指示时才分配目标标识。当目标标识由传输代理分配时,传输代理还需将该目标标识发送给第二服务实例,例如传输代理可以将该目标标识***到第四消息中。In addition, the target identifier may also be assigned by the transmission agent when the fourth message is received. When the target identifier is assigned by the transmission agent, the fourth message does not carry the target identifier, and the target identifier is assigned when the fourth agent receives the fourth message. In addition, the service instance may carry an indication in the first message, and the transmission agent may assign the target identifier only after receiving the indication. When the target identifier is allocated by the transport agent, the transport agent also needs to send the target identifier to the second service instance. For example, the transport agent may insert the target identifier into the fourth message.
上述第四消息可以是HTTP消息,也可以是AMQP消息。当第四消息是HTTP消息时,在第四消息的HTTP主机名字段携带该服务集合标识。The fourth message may be an HTTP message or an AMQP message. When the fourth message is an HTTP message, the HTTP host name field of the fourth message carries the service set identifier.
可选地,第四消息中还可以携带绑定定时器,所述绑定定时器用于在所述绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。Optionally, the fourth message may also carry a binding timer, which is used to release the binding relationship between the target identifier and the second service instance after the binding timer expires.
在步骤820中:传输代理绑定上述目标标识与第一服务实例。In step 820: the transport agent binds the target identifier to the first service instance.
具体地,传输代理保存该目标标识与第一服务实例的对应关系。Specifically, the transmission agent saves the correspondence between the target identifier and the first service instance.
传输代理将带有第一服务实例目标标识以及第一服务实例所述的服务集合标识携带于第四消息中,并将第四消息转发给第二服务实例。在某些实现中,传输代理可能对第四消息进行一些处理,如删除第四消息中的某些字段或添加某些字段,本实施例对此不做限制。The transport agent carries the target identifier of the first service instance and the service set identifier described in the first service instance in the fourth message, and forwards the fourth message to the second service instance. In some implementations, the transmission agent may perform some processing on the fourth message, such as deleting some fields in the fourth message or adding some fields, which is not limited in this embodiment.
在步骤830中:传输代理接收第二服务实例的发送的第四消息响应,并将第四消息响应转发给第一服务实例。In step 830: the transmission agent receives the fourth message response sent by the second service instance, and forwards the fourth message response to the first service instance.
作为一个示例,当第四消息为创建会话请求消息时,第四消息响应为创建会话响应消息。在第四消息响应中,第二服务实例可以将自身的目标标识,自身所属服务集合标识,以及第一服务实例所属的服务集合标识、第一服务实例的目标标识携带于第四消息响应中,发送给传输代理。传输代理根据第一服务实例的目标标识确定第一服务实例(在步骤810和步骤820中建立了绑定),并将第四消息响应消息转发给第一服务实例。As an example, when the fourth message is a session creation request message, the fourth message response is a session creation response message. In the fourth message response, the second service instance may carry its own target identifier, its own service set identifier, the service set identifier to which the first service instance belongs, and the target identifier of the first service instance in the fourth message response. Send to transport agent. The transport agent determines the first service instance according to the target identifier of the first service instance (the binding is established in steps 810 and 820), and forwards a fourth message response message to the first service instance.
在步骤840中:传输代理根据第四消息响应,绑定第二服务实例的目标标识与第二服务实例。例如,可以在传输代理中记录第二服务实例与目标标识的绑定关系。具体绑定的方法可参见步骤810和步骤820。In step 840: the transmission agent binds the target identifier of the second service instance to the second service instance according to the fourth message response. For example, the binding relationship between the second service instance and the target identifier may be recorded in the transport agent. For a specific binding method, see step 810 and step 820.
通过执行上述步骤810-840,传输代理已建立目标标识与服务实例的绑定关系,包括第二服务实例与第二服务实例目标标识的绑定关系以及第一服务实例与第一服务实例目标标识的绑定关系。同时通过执行步骤810-840,第一服务实例与第二服务实例已获得了对端服务实例的目标标识。By performing the above steps 810-840, the transport agent has established the binding relationship between the target identifier and the service instance, including the binding relationship between the second service instance and the second service instance target identifier, and the first service instance and the first service instance target identifier. Binding relationship. At the same time, by executing steps 810-840, the first service instance and the second service instance have obtained the target identifier of the opposite service instance.
在步骤850中:第一服务实例可以发送第一消息给传输代理,其中第一消息中包含第二服务实例的目标标识,第二服务实例的服务集合标识以及第一服务实例目标标识。传输代理可以根据第一消息中的第二服务实例的目标标识选择服务实例。In step 850: the first service instance may send a first message to the transport agent, where the first message includes a target identifier of the second service instance, a service set identifier of the second service instance, and a target identifier of the first service instance. The transport agent may select a service instance according to the target identifier of the second service instance in the first message.
第一消息是用户设备相关的消息,例如,当第一服务实例与第二服务实例分别是SMF与AMF时,第一消息可以是用户设备会话相关流程中的消息。当然第一消息还可以是其他流程中的消息,本申请实施例对此不做具体限定。The first message is a user equipment related message. For example, when the first service instance and the second service instance are SMF and AMF, respectively, the first message may be a message in a user equipment session related process. Of course, the first message may also be a message in other processes, which is not specifically limited in this embodiment of the present application.
需要说明的是,第一消息和第四消息之间没有关系,在本实施例中第四消息和第一消息都是发送给第二服务实例,但是,在实际部署时,第四消息也可以是发送给其他服务实例的消息,例如,当第一服务实例是AMF,第二服务实例是SMF时,第四消息可以是AMF发送给UDM的消息,例如,在用户设备注册过程中AMF给UDM发送消息,并且在此过程中建立了目标标识与第一服务实例(即AMF)的绑定关系。当目标标识是与一组用户相关时,第四消息和第一消息也可以是针对不同的同一用户组中的不同用户设备的。本实施例对此不做具体限定。It should be noted that there is no relationship between the first message and the fourth message. In this embodiment, the fourth message and the first message are both sent to the second service instance. However, during actual deployment, the fourth message may also be sent. It is a message sent to other service instances. For example, when the first service instance is AMF and the second service instance is SMF, the fourth message may be a message sent by AMF to UDM, for example, AMF sends UDM to UDM during user device registration. Send a message and establish a binding relationship between the target identifier and the first service instance (that is, AMF) in the process. When the target identifier is related to a group of users, the fourth message and the first message may also be directed to different user equipments in different same user groups. This embodiment does not specifically limit this.
在步骤870中:传输代理根据第一消息中的目标标识选择服务实例。若在步骤840中传输代理保存了第二服务实例目标标识与第二服务实例的绑定关系,则传输代理可以选取第二服务实例为对端服务实例。In step 870: the transport agent selects a service instance according to the target identifier in the first message. If the transmission agent saves the binding relationship between the target identifier of the second service instance and the second service instance in step 840, the transmission agent may select the second service instance as the opposite service instance.
步骤880a中:传输代理基于第一消息,将第二消息发送给第二服务实例。In step 880a: the transmission agent sends the second message to the second service instance based on the first message.
应理解,第二消息可以与第一消息完全相同,此种情况下,传输代理根据第一消息中的目标标识将第一消息作为第二消息直接转发给第二服务实例。当然第二消息也可以与第二消息不同,传输代理在接收到第一消息后,可以将第一消息进行改动,例如改动第一消息的头部,保持消息体不变形成第二消息,并将该第二消息发送给第二服务实例等等,本申请实施例对此不做具体限定。It should be understood that the second message may be completely the same as the first message. In this case, the transmission agent directly forwards the first message as the second message to the second service instance according to the target identifier in the first message. Of course, the second message may also be different from the second message. After receiving the first message, the transmission agent may change the first message, for example, change the header of the first message, keep the message body unchanged to form the second message, and Send the second message to a second service instance, etc. This embodiment of the present application does not specifically limit this.
可选地,在步骤860中:传输代理接收第二服务实例发送的第五消息,该第五消息用于请求传输代理解除第二服务实例与第二服务实例之间的绑定关系。第五消息中可以携带第二服务实例目标标识。传输代理可以根第五消息删除第二服务实例与该第二服务实例目标标识的绑定关系。Optionally, in step 860: the transmission agent receives a fifth message sent by the second service instance, and the fifth message is used to request the transmission agent to release the binding relationship between the second service instance and the second service instance. The fifth message may carry the target identifier of the second service instance. The transport agent may delete the binding relationship between the second service instance and the target identifier of the second service instance based on the fifth message.
可选地,该第五消息中还可以包含指示信息,指示信息用于指示将该第二服务实例的目标标识与其他服务实例绑定,例如可以与图8中的第三服务实例绑定。则在步骤870中,根据第一消息中携带的目标标识选择第三服务实例。并在步骤880a中基于第一消息,将第三消息发送给第三服务实例。具体地,第五消息的发起可以是在第二服务实例决定将该用户设备的上下文保存到共享数据层中时。Optionally, the fifth message may further include indication information, which is used to indicate that the target identifier of the second service instance is bound to another service instance, for example, it may be bound to the third service instance in FIG. 8. Then, in step 870, a third service instance is selected according to the target identifier carried in the first message. In step 880a, a third message is sent to the third service instance based on the first message. Specifically, the fifth message may be initiated when the second service instance decides to save the context of the user equipment in the shared data layer.
应理解,本申请实施例对第二服务实例发送解绑定请求的原因不做具体限定,例如可以是第二服务实例不希望处理与该用户相关的流程时,或者是第二服务实例下线,第二服务实例出现故障等等。It should be understood that the embodiment of the present application does not specifically limit the reason for the second service instance to send the unbinding request, for example, it may be when the second service instance does not want to process the process related to the user, or the second service instance goes offline , The second service instance fails, and so on.
此时,在步骤870中:传输代理根据第一消息中的目标标识选择对端服务实例,若在上述步骤860中传输代理已经解除第二服务实例与目标标识的绑定关系。At this time, in step 870: the transmission agent selects the peer service instance according to the target identifier in the first message, and if the transmission agent has released the binding relationship between the second service instance and the target identifier in step 860 above.
则在步骤880b中:传输代理可以根据第一消息中携带的服务集合标识,查找对应的服务集合,并在集合中挑选出第三服务实例。基于第一消息,将第三消息发送给第三服务实例。Then in step 880b: the transmission agent may search for the corresponding service set according to the service set identifier carried in the first message, and select a third service instance from the set. Based on the first message, a third message is sent to a third service instance.
可选地,传输代理可以从第一消息中获取目标服务集合的标识,第一消息中还包括目标服务集合的标识;或者,传输代理从第一消息中的目标标识中获取目标服务集合的标识,目标标识中包括目标服务集合的标识;或者,传输代理将与第一消息中的目标标识具有映射关系的服务集合的标识确定为目标服务集合的标识。Optionally, the transmission agent may obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or, the transmission agent obtains the identifier of the target service set from the target identifier in the first message. , The target identifier includes an identifier of the target service set; or, the transmission agent determines the identifier of the service set that has a mapping relationship with the target identifier in the first message as the identifier of the target service set.
应理解,上述第一、第二、第三消息中可以携带服务集合标识,服务集合的标识可以携带在目标标识中,或者作为一个独立的信元。携带服务集合标识可以避免相同服务集合的目标标识间的冲突,当然如果在分配目标标识时可以保证网络中的所有服务实例的目标标识不相同,则消息中可以不携带服务集合标识,此时,若不存在目标标识与目标实例的绑定关系,则传输代理根据目标标识可确定目标集合,并从目标集合中选择一个服务实例,本申请实施例对此不做具体限定。It should be understood that the foregoing first, second, and third messages may carry a service set identifier, and the service set identifier may be carried in a target identifier or as an independent cell. Carrying the service set identifier can avoid conflicts between target identifiers of the same service set. Of course, if the target identifiers of all service instances in the network can be guaranteed to be different when assigning the target identifiers, the message may not carry the service set identifiers. At this time, If there is no binding relationship between the target identifier and the target instance, the transmission agent can determine the target set according to the target identifier and select a service instance from the target set, which is not specifically limited in this embodiment of the present application.
图9是本申请又一实施例提供的通信方法的示意图。FIG. 9 is a schematic diagram of a communication method according to another embodiment of the present application.
在步骤1310,第一服务实例向传输代理发送第一消息,第一消息包括目标标识。In step 1310, the first service instance sends a first message to the transport agent, and the first message includes a target identifier.
目标标识可以与一个或一组用户设备相关。也就是说,目标标识是根据用户设备确定的。The target identification may be associated with one or a group of user devices. That is, the target identifier is determined according to the user equipment.
参见图2-图8的说明,目标标识可以用于标识一个或一组用户设备,例如目标标识可以包括服务指针。通过传输代理确定用户设备与第二服务实例的绑定。传输代理通过目标标识,确定与该服务指针绑定的服务实例。与该服务指针绑定的服务实例,为该用户设备服务,与该服务指针绑定的服务实例可以是第二服务实例。该绑定关系也可以改变。例如,传输代理将该服务指针与第二服务实例解绑定后,传输代理可以将该服务指针与其他服务实例绑定。该目标标识可以包括在第一消息的网络标记字段中或新增的HTTP可选头部。Referring to the description of FIG. 2 to FIG. 8, the target identifier may be used to identify one or a group of user equipments, for example, the target identifier may include a service pointer. The binding of the user equipment to the second service instance is determined through the transport agent. The transport agent uses the target identifier to determine the service instance bound to the service pointer. The service instance bound to the service pointer serves the user equipment, and the service instance bound to the service pointer may be a second service instance. The binding relationship can also be changed. For example, after the transport agent unbinds the service pointer from the second service instance, the transport agent may bind the service pointer to other service instances. The target identifier may be included in a network tag field of the first message or a newly added HTTP optional header.
目标标识也可以包括用户设备对应的目标服务集合和/或第二服务实例的标识。即用户设备与第二服务实例的绑定。The target identifier may also include the target service set and / or the identifier of the second service instance corresponding to the user equipment. That is, the binding between the user equipment and the second service instance.
目标标识是目标服务集合的标识,可以理解为该用户设备与服务集合绑定。传输代理可以从目标服务集合中确定一个服务实例为该用户设备服务,例如,选择第二服务实例或第三服务实例为该用户设备服务。The target identifier is an identifier of a target service set, and it can be understood that the user equipment is bound to the service set. The transport agent may determine a service instance to serve the user equipment from the target service set, for example, select a second service instance or a third service instance to serve the user equipment.
目标标识可以包括第二服务实例的标识,可以理解为该用户设备与第二服务实例绑定。第二服务实例的标识用于标识第二服务实例。第二服务实例的标识可以是第二服务实例的地址信息,例如IP地址、FQDN等,可以是传输代理对第二服务实例的编号。通过第二服务实例的标识,传输代理可以唯一的确定第二服务实例。传输代理可以确定第二服务实例继续为 该用户设备服务。目标标识还可以包括服务集合的标识。The target identifier may include an identifier of the second service instance, and may be understood as that the user equipment is bound to the second service instance. The identification of the second service instance is used to identify the second service instance. The identifier of the second service instance may be address information of the second service instance, such as an IP address, an FQDN, and the like, and may be a number of the second service instance by the transmission agent. Through the identification of the second service instance, the transmission agent can uniquely determine the second service instance. The transport agent may determine that the second service instance continues to serve the user equipment. The target identification may also include an identification of a service set.
第二服务实例的标识可包括在第一消息的URI中,或者包括在第一消息的选择参数中。The identification of the second service instance may be included in the URI of the first message, or included in a selection parameter of the first message.
在一种实现方式中,第一消息可以包括绑定方式指示信息,用于指示一个或一组用户设备绑定的方式,即指示用户设备是与服务实例绑定,还是与服务集合绑定。这是一种显示的指示方式。第一消息可以通过绑定方式指示信息显示的指示绑定方式。绑定方式指示信息可以是枚举型字段。示例性地,绑定方式指示信息可以是多个数值中的一个,即,指示信息={与服务实例绑定,与服务集合绑定}中的任意一个值。例如,“0”表示用户设备与服务实例绑定,“1”表示用户设备与服务集合绑定。In an implementation manner, the first message may include binding mode indication information, which is used to indicate a binding mode of a user equipment or a group of user equipment, that is, whether the user equipment is bound to a service instance or a service set. This is a display indication. The first message may indicate the binding mode by displaying the binding mode indication information. The binding mode indication information may be an enumerated field. Exemplarily, the binding mode indication information may be one of a plurality of values, that is, the indication information = {bound to a service instance, and bound to a service set}. For example, "0" indicates that the user equipment is bound to the service instance, and "1" indicates that the user equipment is bound to the service set.
绑定方式指示信息可以是位图。示例性地,绑定方式指示信息可以用N个比特位来表示,其中每个比特代表一种绑定可能,例如,指示信息可以是2个比特位,其中一个比特位表示“与服务实例绑定”,当该比特位为1时可表示与服务实例绑定,为0时表示不与服务实例绑定,另一个比特位表示“与服务集合绑定”,当该比特位为1时表示与服务集合绑定,当该比特位为0时标识不与服务集合绑定。The binding mode indication information may be a bitmap. Exemplarily, the binding mode indication information may be represented by N bits, where each bit represents a kind of binding possibility. For example, the indication information may be 2 bits, where one bit represents "bundling with a service instance." Fixed ", when the bit is 1, it can be bound to the service instance, when it is 0, it is not bound to the service instance, and the other bit is" bound to the service set ", when the bit is 1, it means Binding to the service set. When this bit is 0, the identifier is not bound to the service set.
通过位图这种方法,当用户设备与第二服务实例绑定时,目标标识中可以包括或不包括第二服务实例的标识。例如,目标标识中可以包括第二服务实例的服务指针,用于当用户设备与第二服务实例不存在绑定关系时,或者当用户设备与第二服务实例存在绑定关系、但第二服务实例不可用(如关机)时,根据服务指针选择为用户设备服务的服务实例。With the bitmap method, when the user equipment is bound to the second service instance, the target identifier may or may not include the identifier of the second service instance. For example, the target identifier may include a service pointer of the second service instance, which is used when the user equipment does not have a binding relationship with the second service instance, or when the user equipment has a binding relationship with the second service instance, but the second service When the instance is unavailable (such as shutdown), the service instance that serves the user device is selected according to the service pointer.
在另一种实现方式中,传输代理根据目标标识确定绑定关系指示。也就是说,第一消息可以隐式的指示绑定关系。例如,当目标标识中包括第二服务实例的标识和/或服务指针时,传输代理确定该用户设备与第二服务实例绑定,目标标识还可以包括服务集合的标识。当目标标识中只包括服务集合的标识时,传输代理确定该用户设备与服务集合绑定。In another implementation manner, the transport agent determines the binding relationship indication according to the target identifier. That is, the first message may implicitly indicate a binding relationship. For example, when the target identifier includes the identifier of the second service instance and / or the service pointer, the transport agent determines that the user equipment is bound to the second service instance, and the target identifier may further include the identifier of the service set. When the target identity includes only the identity of the service set, the transport agent determines that the user equipment is bound to the service set.
在步骤S1310之前,第一服务实例可以接收目标标识。Before step S1310, the first service instance may receive the target identification.
在步骤S1310之前,第一服务实例可以接收第二服务实例发送的目标标识。第二服务实例可以向第一服务实例发送第八消息,第八消息包括目标标识。例如,目标标识包括第二服务实例的标识时,第八消息包括URI,该URI可以包括第二服务实例的地址信息,第二服务实例的地址信息作为第二服务实例的标识。或者,第八消息的消息体包括第二服务实例的标识。此外,第八消息的消息还可以包括服务指针、服务集合标识等。第八消息可以是HTTP消息。第八消息还包括绑定关系指示信息,绑定关系指示信息可以包括在响应消息的网络标记字段(Cookie)中或新增的HTTP可选头部中。在本申请实施例中,可以新增一个叫做绑定指示的可选HTTP头,这里将新头部叫做绑定指示仅为示例性的,新定义的HTTP头部的具体名字本实施例不做具体规定。第八消息还包括服务集合的标识。第八消息的URI,第八消息的消息体,第八消息的网络标记字段或新增的HTTP可选头部中的至少一个的字段中可以包括服务集合的标识,即服务集合标识可以位于第八消息的URI、消息体、或网络标记字段或新增的HTTP可选头部。Before step S1310, the first service instance may receive the target identifier sent by the second service instance. The second service instance may send an eighth message to the first service instance, and the eighth message includes the target identifier. For example, when the target identifier includes the identifier of the second service instance, the eighth message includes a URI, and the URI may include address information of the second service instance, and the address information of the second service instance is used as the identifier of the second service instance. Alternatively, the body of the eighth message includes an identifier of the second service instance. In addition, the message of the eighth message may also include a service pointer, a service set identifier, and the like. The eighth message may be an HTTP message. The eighth message further includes binding relationship indication information, and the binding relationship indication information may be included in a network tag field (Cookie) of the response message or a newly added HTTP optional header. In the embodiment of the present application, an optional HTTP header called a binding instruction may be added, and the new header is called a binding instruction here only for the sake of example. The specific name of the newly defined HTTP header is not described in this embodiment. Specific provisions. The eighth message also includes the identification of the service set. The URI of the eighth message, the body of the eighth message, the network tag field of the eighth message, or a field of at least one of the newly added HTTP optional headers may include the service set identifier, that is, the service set identifier may be located at the first Eight message URIs, message bodies, or network tag fields or new HTTP optional headers.
在步骤S1310之前,第二服务实例可以接收第一服务实例的能力指示信息,能力指示信息用于指示第一服务实例是否支持从服务集合中选择服务实例。Before step S1310, the second service instance may receive capability indication information of the first service instance, and the capability indication information is used to indicate whether the first service instance supports selecting a service instance from a service set.
第二服务实例根据第一服务实例的能力进行确定会话对应的绑定方式指示信息,避免当第一服务实例不支持从服务集合选择服务实例时,将所述绑定方式指示信息设置为与所述服务集合绑定,从而导致第二消息无法发送,或发送至其他不希望的服务实例,导致过多的消息重定向。The second service instance determines the binding mode indication information corresponding to the session according to the capabilities of the first service instance, so as to avoid setting the binding mode indication information to be the same as that when the first service instance does not support selecting a service instance from the service set. The above-mentioned service set binding causes the second message to fail to be sent, or to other undesired service instances, resulting in excessive message redirection.
例如,第二服务实例是SMF,第一服务实例是AMF,AMF向SMF发送会话建立请求后,SMF向AMF发送会话建立响应消息,会话建立响应消息包括资源URI,该资源URI中包括第二服务实例的地址信息。会话建立响应的网络标记字段中可以包括服务集合的标识和绑定指示信息。会话建立响应消息还可以包括其他目标标识,例如服务指针等。在这种情况下,AMF向SMF发送第一消息,第一消息是针对该会话的修改请求,此时,第一消息的URI与上述会话建立响应消息中所包括的资源URI相同,并且该修改请求消息中包括会话建立响应中包括的服务集合的标识和绑定指示信息。For example, the second service instance is SMF and the first service instance is AMF. After the AMF sends a session establishment request to the SMF, the SMF sends a session establishment response message to the AMF. The session establishment response message includes the resource URI, and the resource URI includes the second service. Address information of the instance. The network tag field of the session establishment response may include the identification of the service set and binding indication information. The session establishment response message may also include other target identifiers, such as a service pointer. In this case, the AMF sends a first message to the SMF. The first message is a modification request for the session. At this time, the URI of the first message is the same as the resource URI included in the session establishment response message, and the modification The request message includes the identification and binding indication information of the service set included in the session establishment response.
再例如,第一服务实例是SMF,第二服务实例是AMF,AMF向SMF发送会话建立请求时,AMF可以向SMF发送AMF的标识、绑定关系指示、AMF所属的服务集合的标识等。在这种情况下,当SMF需要针对该会话向AMF发送消息时,SMF在第一消息中携带上述AMF的标识作为选择参数,并且,第一消息中携带绑定关系指示和AMF所述的服务集合的标识。For another example, the first service instance is SMF and the second service instance is AMF. When AMF sends a session establishment request to SMF, AMF may send SMF identity, indication of binding relationship, and identity of service set to which AMF belongs to the SMF. In this case, when the SMF needs to send a message to the AMF for the session, the SMF carries the identifier of the AMF as a selection parameter in the first message, and the first message carries the binding relationship indication and the service described by the AMF. The identity of the collection.
传输代理接收第一消息。第二服务实例的标识用于指示传输代理根据所述第二服务实例的标识向第二服务实例发送第二消息。例如,绑定方式指示信息指示所述用户设备与第二服务实例绑定时,该第二服务实例的标识信息用于指示传输代理根据该第二服务实例的标识信息向第二服务实例发送第二消息。根据服务集合标识,传输代理可以从服务集合中选择服务实例。例如,绑定方式指示信息指示所述用户设备与服务集合绑定时,或者当第二服务实例不可用时,传输代理可根据服务集合标识从服务集合中选择可用服务实例,以便由该服务实例为所述用户设备提供服务。The transport agent receives the first message. The identifier of the second service instance is used to instruct the transmission agent to send a second message to the second service instance according to the identifier of the second service instance. For example, when the binding mode indication information indicates that the user equipment is bound to the second service instance, the identification information of the second service instance is used to instruct the transmission agent to send the first Two messages. Based on the service set identity, the transport agent can select a service instance from the service set. For example, when the binding mode indication information indicates that the user equipment is bound to the service set, or when the second service instance is unavailable, the transport agent may select an available service instance from the service set according to the service set identifier, so that the service instance is The user equipment provides services.
在步骤1320,确定目标标识对应的服务实例。At step 1320, a service instance corresponding to the target identification is determined.
若绑定指示信息指示用户设备与第二服务实例绑定,则传输代理确定第二服务实例为第二消息的接收设备,进行步骤1330。在步骤1330,传输代理向第二服务实例发送第二消息。目标标识例如包括服务指针、第二服务实例的标识等。If the binding instruction information indicates that the user equipment is bound to the second service instance, the transmission agent determines that the second service instance is the receiving device of the second message, and proceeds to step 1330. At step 1330, the transport agent sends a second message to the second service instance. The target identifier includes, for example, a service pointer, an identifier of a second service instance, and the like.
若绑定指示信息指示用户设备与第二服务实例绑定,但是第二服务实例不可用,则传输代理从第二服务实例所属的服务集合中确定可用的第三服务实例,进行步骤1340。在步骤1340,传输代理向第三服务实例发送第三消息。If the binding instruction information indicates that the user equipment is bound to the second service instance, but the second service instance is unavailable, the transmission agent determines an available third service instance from the service set to which the second service instance belongs, and proceeds to step 1340. At step 1340, the transport agent sends a third message to the third service instance.
若用户设备与服务集合绑定,则传输代理从该服务集合中确定第二服务实例,进行步骤1330。例如,绑定指示信息指示用户设备与服务集合绑定,则传输代理从该服务集合中确定第二服务实例,进行步骤1330。在步骤1330,传输代理向第二服务实例发送第二消息。If the user equipment is bound to the service set, the transport agent determines a second service instance from the service set, and proceeds to step 1330. For example, if the binding instruction information indicates that the user equipment is bound to the service set, the transport agent determines a second service instance from the service set, and proceeds to step 1330. At step 1330, the transport agent sends a second message to the second service instance.
在步骤1330,传输代理发送第二消息。At step 1330, the transport agent sends a second message.
应理解,第二消息可以与第一消息完全相同,此种情况下,传输代理根据第一消息中的目标标识将第一消息作为第二消息直接转发给第二服务实例。当然第二消息也可以与第二消息不同,传输代理在接收到第一消息后,可以将第一消息进行改动,例如改动第一消息的头部,保持消息体不变形成第二消息,并将该第二消息发送给第二服务实例等等。It should be understood that the second message may be completely the same as the first message. In this case, the transmission agent directly forwards the first message as the second message to the second service instance according to the target identifier in the first message. Of course, the second message may also be different from the second message. After receiving the first message, the transmission agent may change the first message, for example, change the header of the first message, keep the message body unchanged to form the second message, and Send the second message to a second service instance and so on.
第一消息是HTTP消息。若第一服务实例接收了第二服务实例发送的资源URI,且该资源URI的授权域字段(Authority)中包括第二服务实例的地址信息,如IP地址或FQDN,即包括第二服务实例的标识,则第一消息的URI使用该资源URI,即第一消息的URI包括该资源URI。传输代理根据绑定方式指示信息确定用户设备是否与第二服务实例绑定。当绑定方式指示信息指示与第二服务实例绑定时,传输代理向与目标标识有绑定关系的第二服务实例发送第二消息。若第一消息是HTTP消息,传输代理根据第一消息URI中的第二服务实例的 地址向第二服务实例发送第二消息。第二消息可以包括第一消息中的URI的信息。也就是说,第二消息中的URI可以与第一消息的URI相同。The first message is an HTTP message. If the first service instance receives the resource URI sent by the second service instance, and the authorization domain field (Authority) of the resource URI includes the address information of the second service instance, such as the IP address or FQDN, that includes the second service instance's Identification, the URI of the first message uses the resource URI, that is, the URI of the first message includes the resource URI. The transport agent determines whether the user equipment is bound to the second service instance according to the binding mode indication information. When the binding mode indication information indicates binding with the second service instance, the transmission agent sends a second message to the second service instance that has a binding relationship with the target identifier. If the first message is an HTTP message, the transport agent sends the second message to the second service instance according to the address of the second service instance in the first message URI. The second message may include information of the URI in the first message. That is, the URI in the second message may be the same as the URI in the first message.
第一消息是HTTP消息。若第一服务实例从第二服务实例收到了第二服务实例的标识,该标识不在资源URI中,则,第一消息中包括选择参数,选择参数中包括第二服务实例的标识。传输代理可以根据第一消息中的绑定方式指示信息确定用户设备与第二服务实例绑定。传输代理根据第二服务实例的标识获取第二服务实例的地址信息,例如IP地址、FQDN等。传输代理根据第二服务实例的地址信息向第二服务实例发送第二消息。The first message is an HTTP message. If the first service instance receives the identifier of the second service instance from the second service instance and the identifier is not in the resource URI, the first message includes a selection parameter, and the selection parameter includes the identifier of the second service instance. The transport agent may determine that the user equipment is bound to the second service instance according to the binding mode indication information in the first message. The transmission agent obtains the address information of the second service instance, such as an IP address and an FQDN, according to the identifier of the second service instance. The transmission agent sends a second message to the second service instance according to the address information of the second service instance.
在步骤1340,若第一消息的URI中包括了第二服务实例的地址,但传输代理在步骤1320中选择了第三服务实例,则传输代理在选择了第三服务实例后,保持消息体不变以形成第三消息。第三消息可以包括第三服务实例的地址。第三消息的URI可以包括第三服务实例的地址。具体的,传输代理可以将第一消息的URI中的授权域(Authority)字段中的第二服务实例的地址替换为第三服务实例的地址以形成第三消息。In step 1340, if the URI of the first message includes the address of the second service instance, but the transport agent selects the third service instance in step 1320, the transport agent maintains the message body after selecting the third service instance. Change to form a third message. The third message may include the address of the third service instance. The URI of the third message may include the address of the third service instance. Specifically, the transport agent may replace the address of the second service instance in the Authorization field in the URI of the first message with the address of the third service instance to form a third message.
若第一消息的选择参数中包括第二服务实例的标识,则传输代理可以删除第一消息中的选择参数以便生成第三消息。第三消息的消息体可以与第一消息的消息体完全相同。传输代理可以改动第一消息的头部,将第三服务实例的地址写入第三消息的URI中以便将该第三消息发送给第三服务实例。If the selection parameter of the first message includes the identifier of the second service instance, the transmission agent may delete the selection parameter in the first message in order to generate a third message. The message body of the third message may be exactly the same as the message body of the first message. The transmission agent may change the header of the first message, and write the address of the third service instance into the URI of the third message to send the third message to the third service instance.
图10是本申请又一实施例提供的通信方法的示意图。FIG. 10 is a schematic diagram of a communication method according to another embodiment of the present application.
通常情况下,在信息交互的过程中,由相同的服务实例为一个会话提供服务。Generally, during the information exchange process, a session is provided by the same service instance.
例如,在建立会话时,第二服务实例向第一服务实例发送第一会话的建立消息,该建立消息包括第二服务实例的标识。第一服务实例根据第二服务实例的标识,向第二服务实例发送与第一会话相关的其他消息。For example, when establishing a session, the second service instance sends a setup message of the first session to the first service instance, where the setup message includes an identifier of the second service instance. The first service instance sends other messages related to the first session to the second service instance according to the identity of the second service instance.
此时,第二服务实例向第一服务实例发送第一消息,第一消息的会话标识可以用于在第二服务实例中唯一标识一个会话。At this time, the second service instance sends a first message to the first service instance, and the session identifier of the first message may be used to uniquely identify a session in the second service instance.
但是,为第一会话提供服务的服务实例可能出现故障,或者负载过高等情况,对会话造成影响。However, the service instance serving the first session may fail, or the load may be too high, which may affect the session.
为了解决上述问题,本申请实施例提供了一种通信方法。In order to solve the foregoing problem, an embodiment of the present application provides a communication method.
第一服务实例可以是SMF、用户面网元(user plane function,UPF)中的一个。第二服务实例可以是SMF、UPF中的另一个。第三服务实例、第四服务实例与第二服务实例是具有相同功能的网元。The first service instance may be one of an SMF and a user plane function (UPF). The second service instance may be the other of the SMF and the UPF. The third service instance, the fourth service instance, and the second service instance are network elements having the same function.
在步骤1410,第一服务实例接收第三服务实例或第四服务实例发送的第一消息。第一消息包括目标标识。In step 1410, the first service instance receives the first message sent by the third service instance or the fourth service instance. The first message includes the target identification.
第一服务实例根据目标标识确定第二服务实例。第二服务实例用于为第一会话提供服务。即第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例。The first service instance determines a second service instance according to the target identifier. The second service instance is used to provide services for the first session. That is, the first service instance determines a second service instance that provides services for the first session according to the target identifier.
在步骤1420,第一服务实例向第二服务实例发送第二消息。At step 1420, the first service instance sends a second message to the second service instance.
第一消息与第一会话相关。第二消息与第一会话相关。第一消息包括第一会话的标识。目标标识与第一会话的标识可以位于相同或不同的字段。会话的标识可以用于在目标服务集合中唯一标识一个会话,第二服务实例、第三服务实例、第四服务实例可以是目标服务集合中的服务实例。也就是说,该服务集合中的每个会话对应于一个会话标识。当第一服务实例是UPF,第三服务实例、第四服务实例为SMF实例时,第一消息的控制面完全限定流端点标识(fully qualified stream end point identifier,F-SEID)字段可以包括目标标识,或者,第一消 息的节点标识(Node ID)中可以包括目标标识,或者,目标标识可以位于在第一消息的其他字段中,本申请实施例对此不做限定。The first message is related to the first conversation. The second message is related to the first session. The first message includes an identification of the first session. The target identification and the identification of the first session may be located in the same or different fields. The session identifier may be used to uniquely identify a session in the target service set, and the second service instance, the third service instance, and the fourth service instance may be service instances in the target service set. That is, each session in the service set corresponds to a session ID. When the first service instance is a UPF, the third service instance, and the fourth service instance are SMF instances, the fully qualified stream endpoint identifier (F-SEID) field of the control plane of the first message may include the target identifier. Or, the node identifier (Node ID) of the first message may include the target identifier, or the target identifier may be located in other fields of the first message, which is not limited in this embodiment of the present application.
第一会话与服务实例绑定,或者,第一会话与服务集合绑定。The first session is bound to a service instance, or the first session is bound to a service set.
第二服务实例、第三服务实例与第四服务实例是能够提供相同服务的网元,例如,第三服务实例与第四服务实例均为AMF,或SMF。The second service instance, the third service instance, and the fourth service instance are network elements capable of providing the same service. For example, the third service instance and the fourth service instance are both AMF or SMF.
第二消息与第一会话相关。第二服务实例用于为所述第一会话提供服务。第二消息可以用于请求第二服务实例为所述第一会话提供服务。The second message is related to the first session. The second service instance is used to provide a service for the first session. The second message may be used to request a second service instance to provide a service for the first session.
第一消息包括目标标识。第一会话与第三服务实例绑定,或与所述目标服务集合绑定,目标服务集合包括第二服务实例和第三服务实例。目标服务集合还可以包括第四服务实例。The first message includes the target identification. The first session is bound to a third service instance or to the target service set, and the target service set includes a second service instance and a third service instance. The target service set may also include a fourth service instance.
第一会话与服务实例绑定,由该服务实例为第一会话提供服务。当该服务实例不可用时,由该服务实例所在的服务集合中的其他服务实例为第一会话提供服务。若第一会话与第三服务实例绑定,则在第三服务实例不可用时,第一服务实例从目标服务集合中选择第二服务实例,并向第二服务实例发送第二消息。可选的,在一种实现方式中,若目标标识中包括服务实例的标识,则第一会话与该服务实例绑定。The first session is bound to a service instance, and the service instance provides services for the first session. When the service instance is unavailable, other service instances in the service set where the service instance is located provide services for the first session. If the first session is bound to the third service instance, when the third service instance is unavailable, the first service instance selects the second service instance from the target service set and sends a second message to the second service instance. Optionally, in an implementation manner, if the target identifier includes the identifier of the service instance, the first session is bound to the service instance.
第一会话与服务集合绑定,由该服务集合中的一个服务实例为第一会话提供服务。第一服务实例确定该服务集合中的一个服务实例为第一会话提供服务。第一服务实例从服务集合中确定该服务实例。The first session is bound to a service set, and a service instance in the service set provides services for the first session. The first service instance determines that a service instance in the service set provides services for the first session. The first service instance determines the service instance from the service set.
在一种实现方式中,目标服务集合中的每个服务实例能够为第一会话提供服务。例如,在步骤1410之前,由第三服务实例为第一会话提供服务,目标服务集合中的其他服务实例能够获取第三服务实例所保存的第一会话的上下文,从而为所述第一会话提供服务。In one implementation manner, each service instance in the target service set can provide services for the first session. For example, before step 1410, a third service instance provides services for the first session, and other service instances in the target service set can obtain the context of the first session saved by the third service instance, so as to provide the first session. service.
可选的,目标标识可以包括第一会话组的标识。第一会话组的标识用于标识一个会话组。第一会话组包括一个服务集合内的一个或多个会话。第一会话组包括第一会话。Optionally, the target identifier may include an identifier of the first conversation group. The identification of the first conversation group is used to identify a conversation group. The first session group includes one or more sessions within a service set. The first conversation group includes a first conversation.
会话组的标识可以用于标识服务集合中唯一的一个会话组。第一服务实例可以根据第一会话组的标识和目标服务集合的标识,从目标服务集合中确定第二服务实例。The session group identifier can be used to identify a unique session group in the service set. The first service instance may determine the second service instance from the target service set according to the identifier of the first session group and the identifier of the target service set.
会话组的标识也可以用于标识与第一服务实例进行通信的所述服务集合中的唯一的一个会话组。第一服务实例可以根据第一会话组的标识,从目标服务集合中确定第二服务实例。The identification of the conversation group may also be used to identify a unique conversation group in the service set that communicates with the first service instance. The first service instance may determine the second service instance from the target service set according to the identifier of the first conversation group.
也就是说,会话组的标识可以是全局标识,也可以是一个服务集合中的标识。That is, the identity of a conversation group can be a global identity or an identity in a service set.
通过配置的方式,可以将会话分配至会话组中。例如,请求建立第一会话时,发送会话建立请求的服务实例(如第三服务实例)或发送会话修改请求的服务实例可以将第一会话配置为第一会话组中的一个会话。By configuration, you can assign sessions to conversation groups. For example, when the first session is requested to be established, the service instance that sends the session establishment request (such as a third service instance) or the service instance that sends the session modification request may configure the first session as one session in the first session group.
若目标标识包括会话组标识、第三服务实例的标识、目标服务集合的标识中的多个标识时,可以将多个字段编码到一个统一的标识中,如将上述多个标识编码成一个FQDN,将统一的标识FQDN作为目标标识,上述多个标识也可以分别位于第一消息的不同字段,本申请实施例对此不做限定。If the target identifier includes multiple identifiers of the session group identifier, the third service instance identifier, and the target service set identifier, multiple fields can be encoded into a unified identifier, such as encoding the multiple identifiers into an FQDN The unified identifier FQDN is used as the target identifier, and the multiple identifiers may also be located in different fields of the first message, which is not limited in the embodiment of the present application.
可选的,第一消息包括绑定方式指示信息。绑定方式指示信息用于指示第一会话与服务实例绑定,或者,第一会话与服务集合绑定。Optionally, the first message includes binding mode indication information. The binding mode indication information is used to indicate that the first session is bound to a service instance, or that the first session is bound to a service set.
可选地,绑定方式指示信息可以作为第一消息的一个新参数,即绑定指示信息可以位于第一消息的新增字段。例如,在创建会话时,第三服务实例在创建会话请求中增加可选字段用于发送绑定方式指示信息。可以定义一个或多个新数据类型的字段,一个或多个新数据类型的字段用于承载绑定方式指示信息。绑定方式指示信息也可以位于第一消息的已有字段。Optionally, the binding mode indication information may be used as a new parameter of the first message, that is, the binding indication information may be located in a new field of the first message. For example, when creating a session, the third service instance adds an optional field to the session creation request for sending binding mode indication information. One or more fields of the new data type can be defined, and one or more fields of the new data type are used to carry binding mode indication information. The binding mode indication information may also be located in an existing field of the first message.
也可以采用隐式的方式对绑定的方式进行指示。当目标标识包括第三服务实例的标识时,表示绑定方式为第一会话与第三服务实例绑定。当目标标识不包括服务实例的标识,例如目标标识仅包括目标服务集合的标识,或者目标标识包括服务集合的标识和第一会话组的标识,或者目标标识包括第一会话组的标识时,表示绑定方式为第一会话与服务集合绑定。The binding mode can also be indicated in an implicit manner. When the target identifier includes the identifier of the third service instance, it indicates that the binding mode is that the first session is bound to the third service instance. When the target identifier does not include the identifier of the service instance, for example, the target identifier only includes the identifier of the target service set, or the target identifier includes the identifier of the service set and the identifier of the first session group, or the target identifier includes the identifier of the first session group, The binding mode is that the first session is bound to the service collection.
可选的,目标标识可以包括目标服务集合的标识。服务集合的标识可以位于完全限定流端点标识(fully qualified stream end point identifier,F-SEID)中。可选的,服务集合的标识还可以作为第一消息中的一个新参数,例如,在创建会话时,第二服务实例在创建会话请求中增加可选字段用于发送服务集合的标识。可以定义一个或多个新数据类型的字段,一个或多个新数据类型的字段用于承载服务集合的标识。本实施例对此不做限定。Optionally, the target identifier may include an identifier of a target service set. The identifier of the service set may be located in a fully qualified stream endpoint identifier (F-SEID). Optionally, the identifier of the service set may also be used as a new parameter in the first message. For example, when a session is created, the second service instance adds an optional field to the session creation request to send the identifier of the service set. You can define one or more fields of the new data type, and one or more fields of the new data type are used to carry the identity of the service collection. This embodiment does not limit this.
可选地,在步骤1410之前,第一服务实例可以向目标服务集合中的一个或多个服务实例,例如,第三或第四服务实例,或每一个服务实例发送能力指示信息。Optionally, before step 1410, the first service instance may send the capability indication information to one or more service instances in the target service set, for example, the third or fourth service instance, or each service instance.
目标服务集合中的服务实例,例如第二服务实例,可以根据能力指示信息确定第一服务实例是否支持基于服务集合的负载均衡,即第一服务实例是否支持从服务集合选择服务实例为第一会话提供服务。The service instance in the target service set, such as the second service instance, can determine whether the first service instance supports load balancing based on the service set according to the capability indication information, that is, whether the first service instance supports selecting a service instance from the service set as the first session. Provide services.
第三服务实例或第四服务实例接收第一服务实例发送的该能力指示信息,若该能力指示信息指示所述第一服务实例支持基于服务集合的负载均衡,则第三服务实例或第四服务实例发送的在第一消息中可以包括绑定关系指示信息,该绑定关系指示第一会话与服务集合绑定,或者,第一消息通过第一消息隐式的指示第一会话与服务集合绑定。例如,第一服务实例是UPF,第二、三、四服务实例是SMF,所述能力指示信息用于指示UPF支持基于SMF集合的负载均衡。The third service instance or the fourth service instance receives the capability indication information sent by the first service instance. If the capability indication information indicates that the first service instance supports load balancing based on a service set, the third service instance or the fourth service The first message sent by the instance may include binding relationship indication information, which indicates that the first session is bound to the service set, or the first message implicitly indicates that the first session is bound to the service set through the first message. set. For example, the first service instance is UPF, and the second, third, and fourth service instances are SMF, and the capability indication information is used to indicate that the UPF supports load balancing based on the SMF set.
在一些实施例中,第一服务实例可以在支持基于服务集合的负载均衡时,向目标服务集合中的全部或部分服务实例,例如与第一服务实例进行通信的服务实例发送能力指示信息,能力指示信息用于指示第一服务实例支持基于服务集合的负载均衡。在第一服务实例不支持基于服务集合的负载均衡时,不发送能力指示信息。例如,若UPF不支持上述能力,UPF可不发送能力指示信息。In some embodiments, when the first service instance supports load balancing based on the service set, the first service instance can send capability indication information to all or part of the service instances in the target service set, for example, the service instance that communicates with the first service instance. The indication information is used to indicate that the first service instance supports load balancing based on a service set. When the first service instance does not support load balancing based on the service set, no capability indication information is sent. For example, if the UPF does not support the above capabilities, the UPF may not send capability indication information.
若所述目标服务集合中的实例,例如第二服务实例,未收到所述第一服务实例的所述能力指示信息,所述目标服务集合中的实例,确定所述第一服务实例不支持基于服务集合的负载均衡。If an instance in the target service set, such as a second service instance, does not receive the capability indication information of the first service instance, the instance in the target service set determines that the first service instance does not support Load balancing based on service collection.
也就是说,目标服务集合中的实例,根据是否接收能力指示信息,判断第一服务实例是否支持从服务集合选择服务实例。That is, the instance in the target service set determines whether the first service instance supports selecting a service instance from the service set according to whether or not the capability indication information is received.
在另一些实施例中,若目标服务集合中的实例,例如所述第三服务实例,接收到所述第一服务实例的能力指示信息,所述能力指示信息用于指示所述第一服务实例支持或不支持基于服务集合的负载均衡。目标服务集合中的实例,例如第三服务实例,根据能力指示信息的内容确定第一服务实例是否支持基于服务集合的负载均衡。In other embodiments, if an instance in the target service set, such as the third service instance, receives capability indication information of the first service instance, the capability indication information is used to indicate the first service instance. Supports or does not support load balancing based on service collections. The instance in the target service set, such as the third service instance, determines whether the first service instance supports load balancing based on the service set according to the content of the capability indication information.
第一服务实例不支持从第三服务实例所属的服务集合中选择其他服务实例,则第三服务实例或第四服务实例四向第三服务实例发送的与第一会话相关的第一消息中包括第三服务实例三的标识。The first service instance does not support selecting other service instances from the service set to which the third service instance belongs, and the first message related to the first session sent by the third service instance or the fourth service instance to the third service instance includes Identification of the third service instance three.
第一服务实例不支持从第三服务实例所属的服务集合中选择其他服务实例,也意味着第一服务实例仅能够接收与第一会话绑定的服务实例(即第三服务实例三)发送的响应消息。例如,第一服务实例向第三服务实例发送请求消息,请求消息中包括第三服务实例的标识, 第一服务实例不支持从第三服务实例之外的其他服务实例接收响应消息。The first service instance does not support selecting other service instances from the service set to which the third service instance belongs, which also means that the first service instance can only receive messages sent by the service instance bound to the first session (that is, the third service instance three). Response message. For example, the first service instance sends a request message to the third service instance, and the request message includes an identifier of the third service instance, and the first service instance does not support receiving a response message from a service instance other than the third service instance.
若第一服务实例不支持从服务集合选择其他服务实例,第三服务实例或第四服务实例可将该会话对应的绑定关系指示信息设置为与服务实例绑定(例如与第三服务实例绑定),第三服务实例或第四服务实例可将该绑定关系指示信息发送给其他控制面服务实例,以便其他控制面服务实例向第三服务实例发送与该会话相关的消息,以免出现第一服务实例选择了服务实例三,而其他控制面服务实例选择了其他服务实例,例如服务实例四,从而出现较多的服务实例三和服务实例四间的消息重定向。If the first service instance does not support the selection of other service instances from the service set, the third service instance or the fourth service instance may set the binding relationship indication information corresponding to the session to be bound to the service instance (such as binding to the third service instance). (Determined), the third service instance or the fourth service instance may send the binding relationship indication information to other control plane service instances, so that other control plane service instances send a message related to the session to the third service instance, so as to prevent the A service instance selects service instance three, and other control plane service instances select other service instances, such as service instance four, so that there are more message redirections between service instance three and service instance four.
例如,在第三服务实例SMF1与第一服务实例UPF的信息交互中,由于UPF不支持从SMF集合中重新选择SMF2为用户设备的会话提供服务,若SMF1将该会话的绑定关系指示信息设置为与SMF集合绑定,则当同时触发了该会话相关的上行消息(例如,用户设备发起会话修改,此时,相应的上行消息由AMF发送)和下行消息(例如,UPF收到下行数据,触发寻呼,此时相应的下行消息由UPF发送),若发送上行消息的AMF选择了SMF2,UPF向SMF1发送了下行消息,此时,需要将UPF的下行消息发送给SMF2,由SMF2处理,但是,由于UPF不支持从SMF2接收响应消息,这样会导致UPF认为下行消息无法发送给SMF。因此,在这种情况下,SMF1若根据UPF不支持从服务集合中选择服务实例,确定该会话与SMF1绑定,并且在发送给AMF的消息中指示该会话与SMF1绑定,则AMF在发送上行消息时就会选择SMF1,而不是选择SMF2,从而避免上述问题。For example, in the information interaction between the third service instance SMF1 and the first service instance UPF, because the UPF does not support reselecting SMF2 from the SMF set to provide service for the session of the user equipment, if SMF1 sets the binding relationship indication information of the session To bind to the SMF set, when the uplink message related to the session (for example, the user equipment initiates a session modification, at this time, the corresponding uplink message is sent by the AMF) and the downlink message (for example, the UPF receives the downlink data, The paging is triggered, and the corresponding downlink message is sent by the UPF at this time. If the AMF sending the uplink message selects SMF2, the UPF sends a downlink message to SMF1. At this time, the downlink message of the UPF needs to be sent to SMF2 and processed by SMF2. However, because the UPF does not support receiving response messages from SMF2, this will cause the UPF to believe that downstream messages cannot be sent to the SMF. Therefore, in this case, if SMF1 determines that the session is bound to SMF1 according to the UPF does not support selecting a service instance from the service set, and indicates that the session is bound to SMF1 in the message sent to AMF, then AMF sends In the upstream message, SMF1 is selected instead of SMF2, thereby avoiding the above problems.
当第一服务实例不支持基于服务集合的负载均衡能力时,若第三服务实例不可用,第二服务实例向所述第一服务实例发送会话更新消息,所述会话更新消息用于指示所述第一服务实例为所述第一会话提供服务的服务实例由所述第三服务实例修改为第二服务实例。会话更新消息中包括第二服务实例的标识。When the first service instance does not support the load balancing capability based on the service set, if the third service instance is unavailable, the second service instance sends a session update message to the first service instance, and the session update message is used to indicate the The service instance that the first service instance provides for the first session is modified from the third service instance to the second service instance. The session update message includes the identifier of the second service instance.
例如,第二服务实例SMF1与第一服务实例UPF的信息交互,UPF不支持从SMF集合中重新选择SMF2为用户设备的会话提供服务。若SMF1不可用,且第一会话后续由SMF2提供服务,则SMF2向UPF发送会话更新消息,指示UPF确定为所述第一会话提供服务的服务实例由SMF1修改为SMF2。在一种实现方式中,SMF2确定SMF1不可用时,SMF2向由SMF1提供服务的所有会话对应的UPF发送会话更新消息,或者,向右SMF1提供服务、并且由SMF2提供备份的所有会话对应的UPF发送会话更新消息。For example, the second service instance SMF1 interacts with the information of the first service instance UPF. The UPF does not support reselecting SMF2 from the SMF set to provide service for the session of the user equipment. If SMF1 is unavailable and the first session is subsequently served by SMF2, SMF2 sends a session update message to the UPF, instructing the UPF to determine that the service instance serving the first session is modified from SMF1 to SMF2. In one implementation, when SMF2 determines that SMF1 is unavailable, SMF2 sends a session update message to the UPF corresponding to all sessions served by SMF1, or sends UPF corresponding to all sessions provided to SMF1 to the right and backed up by SMF2 Session update message.
可选地,第一服务实例也可将是否支持从服务集合中选择服务实例的能力注册到NRF中,以便第二服务实例从NRF中获取第一服务实例是否支持基于服务集合的负载均衡。第二服务实例可以接收NRF发送的能力指示信息,能力指示信息指示第一服务实例是否支持从服务集合中选择服务实例,即具有从服务集合中选择服务实例的能力。Optionally, the first service instance may also register in the NRF whether the ability to select a service instance from the service set is supported, so that the second service instance obtains from the NRF whether the first service instance supports load balancing based on the service set. The second service instance may receive capability indication information sent by the NRF, and the capability indication information indicates whether the first service instance supports selecting a service instance from a service set, that is, has the ability to select a service instance from a service set.
也就是说,第三服务实例可以接收第一服务实例发送的能力指示信息,或者接收NRF发送的能力指示信息,能力指示信息指示第一服务实例是否支持从服务集合中选择服务实例。That is, the third service instance may receive the capability indication information sent by the first service instance or the capability indication information sent by the NRF, and the capability indication information indicates whether the first service instance supports selecting a service instance from a service set.
可选地,第三服务实例也可根据自身能力和/或会话的属性确定由第一会话对应的绑定指示信息。若第三服务实例不支持基于服务集合的负载均衡,或在某些情况下不支持基于服务集合的负载均衡,则第一会话与第三服务实例绑定。例如,若第三服务实例支持与***移动通信***(即4G)的互通,则,第三服务实例将由其提供服务的会话的绑定指示信息设置为与服务实例绑定(即与第三服务实例绑定)。或者,第三服务实例根据会话是否支持迁移到LTE***,确定会话的绑定指示信息,例如,若会话支持移动到LTE***,则第三服务实例将该会话的绑定指示信息设置为与服务实例绑定。Optionally, the third service instance may also determine the binding indication information corresponding to the first session according to its own capability and / or the attributes of the session. If the third service instance does not support load balancing based on the service set, or in some cases does not support load balancing based on the service set, the first session is bound to the third service instance. For example, if the third service instance supports interworking with the fourth generation mobile communication system (that is, 4G), the third service instance sets the binding instruction information of the session provided by the third service instance to be bound to the service instance (that is, the third service instance Three service instance bindings). Alternatively, the third service instance determines the binding indication information of the session according to whether the session supports migration to the LTE system. For example, if the session supports moving to the LTE system, the third service instance sets the binding indication information of the session to the service Instance binding.
第三服务实例可以根据第一服务实例的能力指示信息确定会话的绑定方式。根据第一服务实例的能力指示信息,第三服务实例可以确定绑定方式指示信息。The third service instance may determine a session binding mode according to the capability indication information of the first service instance. According to the capability indication information of the first service instance, the third service instance may determine the binding mode indication information.
绑定方式指示信息还可以指示会话与第三服务实例绑定或与第三服务实例所属的服务集合绑定。The binding mode indication information may also indicate that the session is bound to the third service instance or to a service set to which the third service instance belongs.
若第一服务实例不支持从服务集合中选择服务实例,则绑定方式指示信息指示该会话与第三服务实例绑定。If the first service instance does not support selecting a service instance from the service set, the binding mode indication information indicates that the session is bound to the third service instance.
若第一服务实例支持从服务集合中选择服务实例的能力,则所述绑定方式指示信息可以指示需要第一服务实例提供服务的第一会话与第三服务实例绑定,或与包括第三服务实例的服务集合绑定。包括第三服务实例的服务集合,即为第三服务实例所属的服务集合。If the first service instance supports the ability to select a service instance from a service set, the binding mode indication information may indicate that the first session that requires the first service instance to provide services is bound to a third service instance, or that includes a third service instance Service instance service collection binding. The service set including the third service instance is the service set to which the third service instance belongs.
或者,第三服务实例可以根据自身的能力和/或会话的属性确定会话的绑定方式。Alternatively, the third service instance may determine the binding mode of the session according to its own capability and / or the attributes of the session.
第三服务实例不支持从服务集合中选择服务实例,或者,则第三服务实例确定需要第三服务实例提供服务的会话与第三服务实例绑定。例如,如果第三服务实例支持LTE***时,当第三服务实例通过LTE***提供服务,由于LTE***不支持从服务集合中选择服务实例,则第三服务实例不支持从服务集合中选择服务实例。因此,第三服务实例支持LTE***,可以认为第三服务实例不支持从服务集合中选择服务实例。The third service instance does not support selecting a service instance from the service set, or the third service instance determines that a session that requires the third service instance to provide services is bound to the third service instance. For example, if the third service instance supports the LTE system, when the third service instance provides services through the LTE system, since the LTE system does not support selecting a service instance from a service set, the third service instance does not support selecting a service instance from the service set. . Therefore, the third service instance supports the LTE system, and it can be considered that the third service instance does not support selecting a service instance from a service set.
如果第一会话支持服务实例通过LTE***提供服务,当第一会话由服务实例通过LTE***提供服务,即第一会话移动至LTE***时,LTE***不支持从服务集合中选择服务实例,则为第一会话提供服务的服务实例不能够从服务集合中选择服务实例。因此,第一会话支持服务实例通过LTE***提供服务,可以认为第三服务实例不支持从服务集合中选择服务实例。第三服务实例可以根据会话的属性确定该会话的绑定方式指示信息。If the first session supports the service instance to provide services through the LTE system, when the first session is served by the service instance through the LTE system, that is, when the first session moves to the LTE system, the LTE system does not support selecting a service instance from the service set. The service instance providing the service in the first session cannot select the service instance from the service set. Therefore, the first session support service instance provides services through the LTE system, and it can be considered that the third service instance does not support selecting a service instance from a service set. The third service instance may determine the binding mode indication information of the session according to the attributes of the session.
第三服务实例或第四服务实例可将该绑定关系指示信息发送给其他控制面服务实例,以便其他控制面服务实例向第三服务实例发送与该会话相关的消息,以免出现第一服务实例选择了第三服务实例,而其他控制面服务实例选择了其他服务实例,例如第四服务实例,从而出现较多的服务实例三和服务实例四间的消息重定向。The third service instance or the fourth service instance may send the binding relationship indication information to other control plane service instances, so that the other control plane service instances send a message related to the session to the third service instance, so as to prevent the first service instance from appearing. The third service instance is selected, and other control plane service instances select other service instances, such as the fourth service instance, so that there are more message redirections between service instance three and service instance four.
第一会话与第三服务实例绑定,若第三服务实例不可用时,第一服务实例选择第二服务实例。第一服务实例可以确定目标服务集合的标识,并从目标服务集合中选择第二服务实例。其中,第一服务实例根据目标标识确定目标服务集合的标识。在一种实现方式中,目标标识包括目标服务集合的标识。第一服务实例从目标标识中获取目标服务集合的标识。在另外一种实现方式中,目标标识包括第三服务实例的标识,第一服务实例根据第三服务实例的标识、以及从目标服务集合中的服务实例接收到的第三服务实例的标识与目标服务集合的标识间的对应关系确定目标服务集合的标识。The first session is bound to a third service instance. If the third service instance is unavailable, the first service instance selects the second service instance. The first service instance may determine the identity of the target service set, and select a second service instance from the target service set. The first service instance determines an identifier of a target service set according to the target identifier. In one implementation, the target identification includes an identification of a target service set. The first service instance obtains the identifier of the target service set from the target identifier. In another implementation, the target identifier includes the identifier of the third service instance, and the first service instance is based on the identifier of the third service instance, and the identifier and target of the third service instance received from the service instances in the target service set. The correspondence between the identifiers of the service sets determines the identifier of the target service set.
第一服务实例可向NRF发送所述目标服务集合的标识,NRF将该目标服务集合中的可用服务实例的标识发送至第一服务实例。第一服务实例从该目标服务集合中的可用服务实例中选择第二服务实例。The first service instance may send the identifier of the target service set to the NRF, and the NRF sends the identifier of the available service instance in the target service set to the first service instance. The first service instance selects a second service instance from the available service instances in the target service set.
NRF网元可以保存有服务集合与一个或多个服务实例的对应关系。The NRF network element may store a correspondence between a service set and one or more service instances.
第一服务实例可以向NRF网元发送目标服务集合的标识。NRF网元可以根据目标服务集合的标识,以及目标服务集合与一个或多个服务实例的对应关系,确定目标服务集合中的一个服务实例为第二服务实例。第二服务实例为可用的服务实例。The first service instance may send the identity of the target service set to the NRF network element. The NRF network element may determine that one service instance in the target service set is the second service instance according to the identifier of the target service set and the correspondence between the target service set and one or more service instances. The second service instance is an available service instance.
第三服务实例不可用,第一服务实例可以向NRF网元发送第三服务实例的标识,NRF网元可以根据第三服务实例的标识确定第三服务实例所述的目标服务集合。NRF网元可以根 据目标服务集合的标识,确定目标服务集合中的可用的服务实例,可用服务实例中包括第二服务实例。The third service instance is unavailable. The first service instance may send the identifier of the third service instance to the NRF network element, and the NRF network element may determine the target service set described in the third service instance according to the identifier of the third service instance. The NRF network element may determine an available service instance in the target service set according to the identifier of the target service set, and the available service instance includes a second service instance.
若目标标识包括第一会话组的标识,第一服务实例接收到第一会话组的标识,第一服务实例可以根据第一会话组的标识,确定第二服务实例。第一会话组与第二服务实例具有对应关系,即第二服务实例为第一会话组中的会话提供服务。第一服务实例还可根据第一会话组的标识和目标服务集合的标识确定第二服务实例。If the target identifier includes the identifier of the first conversation group, the first service instance receives the identifier of the first conversation group, and the first service instance may determine the second service instance according to the identifier of the first conversation group. The first conversation group has a corresponding relationship with the second service instance, that is, the second service instance provides services for the sessions in the first conversation group. The first service instance may also determine the second service instance according to the identity of the first session group and the identity of the target service set.
第一服务实例可以保存有第一会话组与第二服务实例的对应关系。第一服务实例可以根据第一会话组的标识,以及第一会话组与第二服务实例的对应关系,确定第二服务实例。The first service instance may save the correspondence between the first session group and the second service instance. The first service instance may determine the second service instance according to the identifier of the first conversation group and the correspondence between the first conversation group and the second service instance.
NRF网元可以保存有第一会话组与第二服务实例的对应关系,即第二服务实例为第一会话组中的会话提供服务。第一服务实例可以向NRF网元发送第一会话组的标识。NRF网元可以根据第一会话组与第二服务实例的对应关系,确定第二服务实例。NRF网元可以向第一服务实例发送第二服务实例的标识。也就是说,第一服务实例向NRF网元发送所述第一会话组的标识。第一服务实例接收NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。The NRF network element may save the correspondence between the first conversation group and the second service instance, that is, the second service instance provides services for the sessions in the first conversation group. The first service instance may send the identity of the first conversation group to the NRF network element. The NRF network element may determine the second service instance according to the correspondence between the first session group and the second service instance. The NRF network element may send the identity of the second service instance to the first service instance. That is, the first service instance sends the identifier of the first conversation group to the NRF network element. The first service instance receives the identifier of the second service instance sent by the NRF network element to determine the second service instance.
进一步地,第一服务实例若收到了第一会话组的标识和目标服务集合的标识,第一服务实例向NRF网元发送第一会话组的标识和目标服务集合的标识,以便NRF根据该第一会话组的标识从目标服务集合中选择第一会话组对应的二服务实例。Further, if the first service instance receives the identifier of the first session group and the identifier of the target service set, the first service instance sends the identifier of the first session group and the identifier of the target service set to the NRF network element, so that the NRF may The identifier of a conversation group selects two service instances corresponding to the first conversation group from the target service set.
在另外一种实现方式中,第一服务实例也可以根据本地获取的该目标服务集合与服务实例的映射关系选择第二服务实例。In another implementation manner, the first service instance may also select the second service instance according to the mapping relationship between the target service set and the service instance obtained locally.
第一服务实例可以保存有服务集合与一个或多个服务实例的对应关系。第一服务实例可以根据目标服务集合的标识,以及目标服务集合与一个或多个服务实例的对应关系,确定目标服务集合中的一个服务实例为第二服务实例。目标服务集合包括该一个或多个服务实例。The first service instance may store a correspondence between a service set and one or more service instances. The first service instance may determine that one service instance in the target service set is the second service instance according to the identifier of the target service set and the correspondence between the target service set and one or more service instances. The target service set includes the one or more service instances.
可选地,在步骤1410之前,所述第一服务实例可以接收所述目标服务集合中的服务实例发送的第一信息,第一信息包括所述服务实例的标识和所述目标服务集合的标识。第一信息可以指示服务实例与目标服务集合的对应关系。第一服务实例根据目标标识获取目标服务集合的标识。第一服务实例根据所述目标服务集合的标识,确定所述第二服务实例。也就是说,第一服务实例可以根据目标服务集合的标识,以及服务实例与目标服务集合的对应关系,确定第二服务实例。Optionally, before step 1410, the first service instance may receive first information sent by a service instance in the target service set, and the first information includes an identifier of the service instance and an identifier of the target service set. . The first information may indicate a correspondence between a service instance and a target service set. The first service instance obtains the identifier of the target service set according to the target identifier. The first service instance determines the second service instance according to the identifier of the target service set. That is, the first service instance may determine the second service instance according to the identifier of the target service set and the correspondence between the service instance and the target service set.
第一服务实例可以接收所述目标服务集合中的服务实例发送的所述服务实例的标识和所述目标服务集合的标识。即第一服务实例根据接收的消息,可以确定所述目标服务集合与所述服务实例的对应关系。根据获取的目标服务集合的标识,可以从目标服务集合中确定所述第二服务实例。The first service instance may receive the identifier of the service instance and the identifier of the target service set sent by the service instances in the target service set. That is, the first service instance can determine the correspondence between the target service set and the service instance according to the received message. According to the obtained identifier of the target service set, the second service instance may be determined from the target service set.
第一服务实例可以接收服务集合中的一个服务实例发送的该服务实例所属的服务集合中的全部或部分服务实例的标识,以及该服务集合的标识。也就是说,第一信息可以包括目标服务集合的标识,以及多个服务实例的标识。该多个服务实例是目标服务集合中的全部或部分服务实例。The first service instance may receive an identifier of all or part of the service instances in the service set to which the service instance belongs and a service set identifier sent by one service instance in the service set. That is, the first information may include an identifier of a target service set, and identifiers of multiple service instances. The multiple service instances are all or part of the service instances in the target service set.
可选地,该多个服务实例是目标服务集合中的部分服务实例的情况,第一服务实例可以接收多个服务实例发送的第一信息,以获取目标服务集合中的每个服务实例的标识。第一服务实例根据多个服务实例发送的第一信息,可以确定该服务集合中每个服务实例与服务集合的对应关系。Optionally, in a case where the multiple service instances are part of service instances in the target service set, the first service instance may receive first information sent by the multiple service instances to obtain an identifier of each service instance in the target service set. . The first service instance may determine the correspondence between each service instance in the service set and the service set according to the first information sent by the multiple service instances.
或者,第一服务实例可以接收一个服务集合中每个服务实例发送的第一信息,第一信息包括该服务实例的标识和服务集合的标识。第一服务实例根据服务集合中每个服务实例发送的第一信息,可以获取该服务集合中每个服务实例与服务集合的对应关系。Alternatively, the first service instance may receive first information sent by each service instance in a service set, and the first information includes an identifier of the service instance and an identifier of the service set. The first service instance can obtain the correspondence between each service instance in the service set and the service set according to the first information sent by each service instance in the service set.
第一服务实例可以接收目标服务集合中的一个或多个服务实例中的每个服务实例发送的该服务实例的标识和该服务实例所属的目标服务集合的标识。多个服务实例包括第二服务实例。第一服务实例可以保存目标服务集合与该一个或多个服务实例的对应关系。当一个服务实例属于多个服务集合时,第一服务实例接收到的该服务实例的标识和该服务实例所属的多个服务集合的标识。The first service instance may receive the identifier of the service instance and the identifier of the target service set to which the service instance belongs, which are sent by each of the one or more service instances in the target service set. The plurality of service instances include a second service instance. The first service instance may save the correspondence between the target service set and the one or more service instances. When a service instance belongs to multiple service sets, the identifier of the service instance received by the first service instance and the identifiers of the multiple service sets to which the service instance belongs.
应当理解,第一服务实例可以从服务集合中的一个或多个服务实例中的每个服务实例接收该服务集合的标识和该服务实例的标识。也就是说,目标服务集合中的每个服务实例向第一服务实例发送该服务实例的标识和目标服务集合的标识。第一服务实例接收第二服务实例发送的第一服务集合的标识和第二服务实例的标识,该第一服务集合包括第二服务实例。第一服务实例接收第三服务实例发送的第一服务集合的标识和第三服务实例的标识,该第一服务集合包括第三服务实例。第一服务集合可以是目标服务集合。It should be understood that the first service instance may receive the identity of the service set and the identity of the service instance from each of the one or more service instances in the service set. That is, each service instance in the target service set sends the identifier of the service instance and the target service set to the first service instance. The first service instance receives the identifier of the first service set and the identifier of the second service instance sent by the second service instance, and the first service set includes the second service instance. The first service instance receives an identifier of a first service set and an identifier of a third service instance sent by a third service instance, and the first service set includes a third service instance. The first service set may be a target service set.
第一服务实例可以根据接收的每个服务实例的标识以及其所属的服务集合的标识,确定服务实例与服务集合的对应关系,从而能够确定服务集合中的服务实例。第一服务实例根据服务实例与服务集合的对应关系、以及第三服务实例所属的目标服务集合,从目标服务集合中确定第二服务实例,并向第二服务实例发送第二消息。第二服务实例用于为第一会话提供服务。其中,第三服务实例通过第一消息向第一服务实例发送第三服务实例所属的目标服务集合的标识;或者,第一服务实例根据目标标识中的第三服务实例的标识以及上述接收到的第三服务实例与服务集合间的对应关系确定其对应的目标服务集合。The first service instance may determine the corresponding relationship between the service instance and the service set according to the identifier of each service instance received and the identifier of the service set to which it belongs, so that the service instance in the service set can be determined. The first service instance determines the second service instance from the target service set according to the correspondence between the service instance and the service set and the target service set to which the third service instance belongs, and sends a second message to the second service instance. The second service instance is used to provide services for the first session. The third service instance sends the identifier of the target service set to which the third service instance belongs to the first service instance through the first message; or, the first service instance according to the identifier of the third service instance in the target identifier and the received The corresponding relationship between the third service instance and the service set determines its corresponding target service set.
例如,第一服务实例在与第二服务实例所属的服务集合中的服务实例间建立网元间链路时,第二服务实例所属的服务集合中的服务实例将其所属的服务集合的标识和该服务实例的标识发送给第一服务实例,例如,第二服务实例在与第一服务实例间建立网元间链路时,将第二服务实例所属的服务集合的服务集合标识和第二服务实例的标识发送给第一服务实例,这样第一服务实例可建立该集合与其所包括的所有服务实例间的映射关系。例如,SMF集合中包括SMF1、SMF2和SMF3,SMF1在与UPF建立N4链路时将SMF集合的标识、SMF1的标识发送UPF,SMF2在与UPF建立N4链路时将SMF集合的标识、SMF2的标识发送UPF,SMF3在与UPF建立N4链路时将SMF集合的标识、SMF3的标识发送UPF,这样,UPF可建立如下关联:(SMF集合标识,SMF1标识、SMF2标识、SMF3标识)。即,UPF建立SMF集合标识与SMF1、SMF2和SMF3的映射关系。当SMF1故障时,UPF可根据SMF集合标识从该SMF集合中选择SMF2或SMF3作为第二服务实例为第一会话提供服务。UPF可根据SMF1的标识确定SMF1对应的SMF集合标识,并从该SMF集合中选择SMF2或SMF3作为第二服务实例。For example, when a first service instance establishes a link between network elements with a service instance in a service set to which a second service instance belongs, the service instance in the service set to which the second service instance belongs identifies the identity of the service set to which the service instance belongs and The identifier of the service instance is sent to the first service instance. For example, when the second service instance establishes a link between network elements with the first service instance, the service set identifier of the service set to which the second service instance belongs and the second service are sent. The identity of the instance is sent to the first service instance, so that the first service instance can establish a mapping relationship between the set and all service instances it includes. For example, the SMF set includes SMF1, SMF2, and SMF3. SMF1 sends the identity of the SMF set and the identity of SMF1 to the UPF when establishing the N4 link with the UPF. The identifier sends the UPF, and SMF3 sends the identifier of the SMF set and the identifier of SMF3 to the UPF when establishing the N4 link with the UPF. In this way, the UPF can establish the following association: (SMF set identifier, SMF1 identifier, SMF2 identifier, SMF3 identifier). That is, the UPF establishes a mapping relationship between the SMF set identifier and SMF1, SMF2, and SMF3. When SMF1 fails, the UPF may select SMF2 or SMF3 from the SMF set as the second service instance to provide services for the first session according to the SMF set identifier. The UPF may determine the identity of the SMF set corresponding to SMF1 according to the identity of SMF1, and select SMF2 or SMF3 as the second service instance from the SMF set.
第一服务实例可以在与每个服务实例建立网元间链路时,从该服务实例获取该服务实例所属的服务集合的标识和所述该服务实例的标识。例如,当第一服务实例是UPF,目标服务集合是一个SMF集合时,网元间链路的建立是指N4关联(N4 association)的建立(Setup)。When establishing a link between network elements with each service instance, the first service instance may obtain, from the service instance, an identifier of a service set to which the service instance belongs and an identifier of the service instance. For example, when the first service instance is a UPF and the target service set is an SMF set, the establishment of a link between network elements refers to the establishment (Setup) of an N4 association.
在第一服务实例获取第一会话在会话建立时对应的目标服务集合的标识,目标服务集合是第二服务实例所属的服务集合。第一服务实例获取目标服务集合中包括的一个或多个服务实例的标识。第一服务实例可以选择所述目标服务集合中的一个服务实例作为第二服务实例 为第一会话提供服务。The identifier of the target service set corresponding to the first session when the session is established is obtained at the first service instance, and the target service set is a service set to which the second service instance belongs. The first service instance obtains an identity of one or more service instances included in the target service set. The first service instance may select one service instance in the target service set as the second service instance to provide services for the first session.
服务实例在注册时,也可以将该服务实例所属的目标服务集合的标识注册在NRF网元中。目标服务集合中的每个服务实例可以向NRF网元发送该服务实例的标识和目标服务集合的标识。NRF网元根据每个服务实例发送的服务实例的标识和目标服务集合的标识,确定目标服务集合与服务实例的对应关系,即确定一个目标服务集合中包含的服务实例。When the service instance is registered, the identifier of the target service set to which the service instance belongs may also be registered in the NRF network element. Each service instance in the target service set may send the identifier of the service instance and the target service set to the NRF network element. The NRF network element determines the corresponding relationship between the target service set and the service instance according to the identifier of the service instance and the identifier of the target service set sent by each service instance, that is, determines the service instances included in a target service set.
第一服务实例向NRF网元发送目标服务集合的标识。NRF网元根据目标服务集合与服务实例的对应关系,确定目标服务集合中的一个服务实例为第二服务实例。NRF网元向第一服务实例发送第二服务实例的标识。The first service instance sends an identification of the target service set to the NRF network element. The NRF network element determines that one service instance in the target service set is the second service instance according to the correspondence between the target service set and the service instance. The NRF network element sends the identifier of the second service instance to the first service instance.
第一服务实例可以根据目标标识获取目标服务集合的标识。The first service instance may obtain the identifier of the target service set according to the target identifier.
第一服务实例可以从所述第一消息的所述目标标识中获取所述目标服务集合的标识,也就是说,目标标识包括目标服务集合的标识,第一服务实例可以获取该目标服务集合的标识。The first service instance may obtain the identifier of the target service set from the target identifier of the first message, that is, the target identifier includes the identifier of the target service set, and the first service instance may obtain the target service set. Logo.
当目标标识包括第三服务实例的标识,第一服务实例可以根据所述第三服务实例的标识,获取所述目标服务集合的标识。第一服务实例可以根据第三服务实例的标识,以及,第一服务实例可以从目标服务集合中的服务实例接收的第三服务实例的标识与目标服务集合标识的对应关系,例如,在N4关联(N4 association)建立时由第三服务实例发送给第一服务实例,或由目标服务集合中的其他服务实例发送给第一服务实例,确定目标服务集合的标识。When the target identifier includes the identifier of the third service instance, the first service instance may obtain the identifier of the target service set according to the identifier of the third service instance. The first service instance may be based on the identifier of the third service instance, and the correspondence between the identifier of the third service instance and the target service set identifier that the first service instance may receive from the service instances in the target service set, for example, associated with N4 (N4 association) When established, the third service instance is sent to the first service instance, or other service instances in the target service set are sent to the first service instance to determine the identity of the target service set.
例如,第三服务实例在与第一服务实例进行网元间链路建立过程中,第三服务实例向第一服务实例发送了目标服务集合的标识和第三服务实例的标识。或者,第一服务实例向NRF网元发送第三服务实例的标识,NRF网元向第一服务实例发送目标服务集合的标识。For example, during the process of establishing a network element link between the third service instance and the first service instance, the third service instance sends the identifier of the target service set and the identifier of the third service instance to the first service instance. Alternatively, the first service instance sends the identifier of the third service instance to the NRF network element, and the NRF network element sends the identifier of the target service set to the first service instance.
可选地,第一服务实例向NRF网元发送第三服务实例的标识,NRF网元确定第三服务实例对应的目标服务集合。Optionally, the first service instance sends an identifier of the third service instance to the NRF network element, and the NRF network element determines a target service set corresponding to the third service instance.
在一个服务集合中,一个或多个服务实例可以为另一个服务实例提供备份。In a service collection, one or more service instances can provide backups for another service instance.
可选地,在步骤1410之前,第一服务实例接收第二服务实例或第三服务实例发送的第三消息。Optionally, before step 1410, the first service instance receives a third message sent by the second service instance or the third service instance.
第三消息可以包括备份指示信息,备份指示信息用于指示第二服务实例是用于为第三服务实例提供备份的服务实例,或第三消息可以指示第二服务实例是用于为第三服务实例服务的第一会话组提供备份的服务实例。即第二服务实例为第三服务实例提供备份,或第二服务实例为第三服务实例服务的第一会话组提供备份。第三服务实例不可用时,第一服务实例根据备份指示信息和目标标识确定第二服务实例为第一会话提供服务。The third message may include backup instruction information, which is used to indicate that the second service instance is a service instance used to provide a backup for the third service instance, or the third message may indicate that the second service instance is used to provide a third service instance. The first session group of the instance service provides a backup instance of the service. That is, the second service instance provides backup for the third service instance, or the second service instance provides backup for the first session group served by the third service instance. When the third service instance is unavailable, the first service instance determines that the second service instance provides services for the first session according to the backup instruction information and the target identifier.
例如,服务实例1向第一服务实例发送第三消息,第三消息用于指示服务实例2是用于为服务实例1提供备份的服务实例。第三消息可以包括服务实例1的标识、服务实例2的标识。其中,在第一时刻,服务实例1为第一会话提供服务,服务实例2为第一会话提供备份。For example, service instance 1 sends a third message to the first service instance, and the third message is used to indicate that service instance 2 is a service instance used to provide backup for service instance 1. The third message may include the identity of service instance 1 and the identity of service instance 2. Among them, at the first moment, service instance 1 provides services for the first session, and service instance 2 provides backups for the first session.
当服务实例1不可用,第一服务实例确定服务实例2为第二服务实例,向服务实例1发送第二消息,即,在第二时刻,服务实例2为第一会话提供服务。When service instance 1 is unavailable, the first service instance determines that service instance 2 is the second service instance, and sends a second message to service instance 1, that is, at the second moment, service instance 2 provides services for the first session.
此时,服务实例2提供备份的会话也可以是,由服务实例1服务的所有会话。At this time, the sessions provided by the service instance 2 may also be all sessions served by the service instance 1.
服当为某一会话提供服务的服务实例不可用时,由为该会话提供备份的服务实例开始为该会话提供服务。为该会话提供备份的服务实例无需从其他网元获取会话上下文,减小了延时。When a service instance that services a session is unavailable, the service instance that provides the backup for that session begins to service the session. The service instance that provides backup for this session does not need to obtain the session context from other network elements, which reduces the delay.
服务实例1向第一服务实例发送第三消息,第三消息用于指示服务实例2是用于为服务实例服务1的第一会话组提供备份的服务实例。第三消息可以包括服务实例1的标识、服务 实例2的标识、第一会话组的标识。第一会话组包括第一会话。其中,在第一时刻,服务实例1为第一会话组提供服务,服务实例2为第一会话组提供备份。也就是说,服务实例2可以与第二服务实例1所服务的一组会话组关联。在一种实现方式中,第三消息是网元间链路消息,例如,当第一服务实例是UPF,目标服务集合是SMF时,第三消息是N4关联(N4 association)建立或更新消息。The service instance 1 sends a third message to the first service instance, and the third message is used to indicate that the service instance 2 is a service instance for providing a backup for the first session group of the service instance service 1. The third message may include the identity of service instance 1, the identity of service instance 2, and the identity of the first session group. The first conversation group includes a first conversation. Among them, at the first moment, service instance 1 provides services for the first conversation group, and service instance 2 provides backup for the first conversation group. That is, service instance 2 may be associated with a set of conversation groups served by the second service instance 1. In an implementation manner, the third message is a link message between network elements. For example, when the first service instance is a UPF and the target service set is SMF, the third message is an N4 association establishment or update message.
在另外一种实现方式中,第三服务实例可通过第一消息向第一服务实例发送备份服务实例的标识。在第三服务实例不可用时,第一服务实例根据第一消息中的备份服务实例的标识确定该备份服务实例为第二服务实例。第一服务实例向第二服务示例发送第二消息。其中,备份服务实例的标识可以是备份服务实例的IP地址。In another implementation manner, the third service instance may send the identity of the backup service instance to the first service instance through the first message. When the third service instance is unavailable, the first service instance determines that the backup service instance is the second service instance according to the identifier of the backup service instance in the first message. The first service instance sends a second message to the second service example. The identifier of the backup service instance may be an IP address of the backup service instance.
第一消息可以包括第三服务实例的一个或多个备份服务实例的标识。目标服务集合可以包括该一个或多个备份服务实例。即每一个备份服务实例的标识对应的备份服务实例,可以理解为第三服务实例所属的服务集合中的服务实例。也就是说,目标服务集合包括一个或多个备份服务实例、以及第三服务实例。第一消息可以包括的一个或多个备份服务实例的标识,即第一消息可以包括目标服务集合中的一个或多个服务实例的标识。The first message may include an identification of one or more backup service instances of the third service instance. The target service set may include the one or more backup service instances. That is, the backup service instance corresponding to the identifier of each backup service instance can be understood as the service instance in the service set to which the third service instance belongs. That is, the target service set includes one or more backup service instances, and a third service instance. The first message may include an identifier of one or more backup service instances, that is, the first message may include an identifier of one or more service instances in a target service set.
可选的,备份服务实例与第二服务实例所服务的一组会话关联,或与第二服务实例所服务的所有会话关联,当所述备份服务实例与一组会话关联时,所述第一消息中还可以包括与备份服务实例关联的一组会话的标识。Optionally, the backup service instance is associated with a set of sessions served by the second service instance, or with all sessions served by the second service instance. When the backup service instance is associated with a set of sessions, the first The message may also include the identity of a set of sessions associated with the backup service instance.
可选地,在步骤1410之前,第一服务实例还可以接收目标服务集合中的每个服务实例发送的该服务实例的标识,由该服务实例提供服务的会话组的标识、由该服务实例提供备份的会话组的标识。Optionally, before step 1410, the first service instance may further receive the identifier of the service instance sent by each service instance in the target service set, the identifier of the session group provided by the service instance, and the service instance. The ID of the backup session group.
第一服务实例可以根据第一会话所属的会话组,确定为所述会话组提供备份的服务实例为第二服务实例。The first service instance may determine that the service instance that provides backup for the conversation group is the second service instance according to the conversation group to which the first session belongs.
可例如,服务集合中的服务实例在注册到NRF时,还可携带由该服务提供备份服务的一个或多个会话组的标识,例如,服务实例1服务会话组1,为会话组2提供备份,此时,服务实例1向第一服务实例发送的消息中包括:服务实例1对应的集合标识、服务实例1的标识、服务实例1所服务的会话组1的标识、服务实例1所备份的会话组2的标识,同样的,服务实例2服务会话组2,为会话组1提供备份,此时,服务实例2向第一服务实例发送的消息中包括:服务实例2对应的集合标识、服务实例2的标识、服务实例2所服务的会话组2的标识、服务实例2所备份的会话组1的标识。此时,第一服务实例根据目标服务集合和会话所对应的会话组的标识确定第二服务实例。例如,所述会话组对应会话组1,服务实例1不可用时,第一服务实例根据会话组1的标识确定该会话组由服务实例2提供备份,因此,选择服务实例2作为第二服务实例。For example, when a service instance in a service set is registered with the NRF, it can also carry the identity of one or more session groups provided by the service for backup services. For example, service instance 1 serves session group 1 and provides backup for session group 2. At this time, the message sent by service instance 1 to the first service instance includes: the set identifier corresponding to service instance 1, the identifier of service instance 1, the identifier of session group 1 served by service instance 1, and the backup of service instance 1. The identity of session group 2. Similarly, service instance 2 serves session group 2 and provides backup for session group 1. At this time, the message sent by service instance 2 to the first service instance includes: the set identifier corresponding to service instance 2, service The identifier of the instance 2, the identifier of the conversation group 2 served by the service instance 2, and the identifier of the conversation group 1 backed up by the service instance 2. At this time, the first service instance determines the second service instance according to the target service set and the identifier of the session group corresponding to the session. For example, the conversation group corresponds to conversation group 1. When service instance 1 is unavailable, the first service instance determines that the conversation group is provided by service instance 2 according to the identifier of conversation group 1. Therefore, service instance 2 is selected as the second service instance.
可选地,服务实例在注册时,也可以将该服务实例所属的目标服务集合的标识、该服务实例提供备份的会话组的标识注册在NRF网元中。Optionally, when the service instance is registered, the identifier of the target service set to which the service instance belongs and the identifier of the session group provided by the service instance may be registered in the NRF network element.
第第一服务实例向NRF发送第一会话组的标识。NRF根据第一会话组的标识确定为第一会话组提供备份的第二服务实例的标识。NRF可以向第一服务实例发送第二服务实例的标识。The first service instance sends an identification of the first conversation group to the NRF. The NRF determines the identity of the second service instance that provides backup for the first conversation group according to the identity of the first conversation group. The NRF may send the identity of the second service instance to the first service instance.
第二消息可以包括消息体,消息体包括与第一会话相关的参数。第二消息可以用于指示第二服务实例为第一会话提供服务。The second message may include a message body that includes parameters related to the first session. The second message may be used to instruct the second service instance to provide services for the first session.
第二消息可以是第一服务实例向第二服务实例发送的请求消息,例如,第一服务实例是UPF网元,第二服务实例是SMF网元,第二消息,可以用于请求第一服务实例向第二服务实 例发送下行数据通知。The second message may be a request message sent by the first service instance to the second service instance. For example, the first service instance is a UPF network element, the second service instance is an SMF network element, and the second message may be used to request the first service. The instance sends a downlink data notification to the second service instance.
第第二消息可以包括第二服务实例的标识。The second second message may include an identification of the second service instance.
第二服务实例的标识可以位于在第二消息的完全限定流端点标识(fully qualified stream end point identifier,F-SEID)字段中。The identifier of the second service instance may be located in a fully qualified stream endpoint identifier (F-SEID) field of the second message.
目标标识也可以作为一个新参数,例如,在创建会话时,第二服务实例在创建会话请求中增加可选字段用于发送目标标识。可以定义一个或多个新数据类型的字段,一个或多个新数据类型的字段用于承载目标标识。目标标识包括的多种标识可以承载在相同或不同的字段中。The target identifier can also be used as a new parameter. For example, when a session is created, the second service instance adds an optional field to the session creation request to send the target identifier. You can define one or more fields of the new data type, and one or more fields of the new data type are used to carry the target identifier. The target identifier includes multiple identifiers that can be carried in the same or different fields.
例如,第一消息的F-SEID中包括服务实例1的标识,服务实例1的标识例如可以是服务实例1的IP地址。服务实例1不可用,第一服务实例确定服务实例2为第二服务实例。第二消息中的F-SEID字段可以包括服务实例2的标识。第二消息中的F-SEID字段不包括服务实例1的标识。For example, the F-SEID of the first message includes the identifier of the service instance 1, and the identifier of the service instance 1 may be, for example, the IP address of the service instance 1. Service instance 1 is unavailable, and the first service instance determines that service instance 2 is the second service instance. The F-SEID field in the second message may include the identity of the service instance 2. The F-SEID field in the second message does not include the identity of the service instance 1.
第一服务实例是UPF,第二消息可以包括第一会话的标识。第二消息中的第一会话的标识是根据第一消息中的第一会话的标识确定的。例如,第二消息中第一会话的标识与第一消息中第一会话的标识相同。会话的标识可以用于标识一个服务集合中的会话。The first service instance is a UPF, and the second message may include the identity of the first session. The identification of the first session in the second message is determined according to the identification of the first session in the first message. For example, the identifier of the first session in the second message is the same as the identifier of the first session in the first message. Session identification can be used to identify sessions in a service collection.
本申请实施例提供了一种通信方法,包括第三服务实例向第一服务实例发送与第一会话相关的第一消息,所述第一消息包括目标标识,所述目标标识用于指示所述第一服务实例确定第二服务实例,所述第二服务实例用于为所述第一会话提供服务。An embodiment of the present application provides a communication method, including a third service instance sending a first message related to a first session to the first service instance, the first message includes a target identifier, and the target identifier is used to indicate the The first service instance determines a second service instance, which is used to provide a service for the first session.
可选地,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例和所述第三服务实例。Optionally, the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance or is bound to a target service set. The target service set includes the second service instance and the third service instance.
可选地,所述目标标识包括所述第三服务实例的标识。Optionally, the target identifier includes an identifier of the third service instance.
可选地,所述第三服务实例接收所述第一服务实例或网络存储功能NRF网元发送的能力指示信息,所述能力指示信息用于指示所述第一服务实例支持基于目标服务集合的负载均衡,所述目标服务集合包括所述第二服务实例和所述第三服务实例。Optionally, the third service instance receives capability indication information sent by the first service instance or a network storage function NRF network element, and the capability indication information is used to indicate that the first service instance supports a target service set-based Load balancing, the target service set includes the second service instance and the third service instance.
可选地,所述第三服务实例向所述第一服务实例发送所述目标服务集合的标识和所述第三服务实例的标识,所述目标服务集合中包括所述第二服务实例和所述第三服务实例。Optionally, the third service instance sends the identifier of the target service set and the identifier of the third service instance to the first service instance, and the target service set includes the second service instance and the The third service example is described.
可选地,所述第三服务实例向所述第一服务实例发送备份指示信息,备份指示信息用于指示第二服务实例为所述第三服务实例提供备份,或为所述第二服务实例服务的第一会话组提供备份,所述第一会话组包括所述第一会话。Optionally, the third service instance sends backup instruction information to the first service instance, and the backup instruction information is used to instruct the second service instance to provide backup for the third service instance or to provide the second service instance A first session group of the service provides backup, and the first session group includes the first session.
图11本申请一个实施例提供的传输代理的示意性结构图。图11的传输代理900可用于执行图3-图8方法中的由传输代理执行的各个步骤。通信设备900包括发送单元910、接收单元920,可选地,传输代理900还可以包括处理单元930。下面对网络设备900的各个模块的功能进行详细描述:FIG. 11 is a schematic structural diagram of a transmission agent according to an embodiment of the present application. The transmission agent 900 of FIG. 11 may be used to perform various steps performed by the transmission agent in the methods of FIG. 3 to FIG. 8. The communication device 900 includes a sending unit 910 and a receiving unit 920. Optionally, the transmission agent 900 may further include a processing unit 930. The functions of each module of the network device 900 are described in detail below:
接收单元920用于接收第一服务实例发送的第一消息,第一消息包含目标标识;发送单元910用于基于第一消息,向与目标标识有绑定关系的第二服务实例发送第二消息。The receiving unit 920 is configured to receive a first message sent by a first service instance, and the first message includes a target identifier; and the sending unit 910 is configured to send a second message to a second service instance that is bound to the target identifier based on the first message .
可选地,处理单元930用于当没有与目标标识具有绑定关系的服务实例时,根据第一消息,获取目标服务集合的标识;处理单元930还用于根据目标服务集合的标识,从目标服务集合中选取第三服务实例;发送单元920还用于基于第一消息,向三服务实例发送第三消息。Optionally, the processing unit 930 is configured to obtain the identifier of the target service set according to the first message when there is no service instance with a binding relationship with the target identifier; the processing unit 930 is further configured to retrieve the target A third service instance is selected from the service set; the sending unit 920 is further configured to send a third message to the three service instances based on the first message.
可选地,处理单元930还用于从第一消息中获取目标服务集合的标识,第一消息中还包 括目标服务集合的标识;或者,处理单元930还用于从第一消息中的目标标识中获取目标服务集合的标识,目标标识中包括目标服务集合的标识;或者,处理单元930还用于将与第一消息中的目标标识具有映射关系的服务集合的标识确定为目标服务集合的标识。Optionally, the processing unit 930 is further configured to obtain the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or the processing unit 930 is further configured to obtain the target identifier from the first message. To obtain the identifier of the target service set in the target identifier, and the target identifier includes the identifier of the target service set; or, the processing unit 930 is further configured to determine the identifier of the service set having a mapping relationship with the target identifier in the first message as the identifier of the target service set .
可选地,接收单元920还用于接收第二服务实例发送的第四消息,处理单元930还用于根据第一消息建立目标标识与第二服务实例的绑定关系。Optionally, the receiving unit 920 is further configured to receive a fourth message sent by the second service instance, and the processing unit 930 is further configured to establish a binding relationship between the target identifier and the second service instance according to the first message.
可选地,第四消息为与用户设备相关的消息或第四消息为专门的绑定请求消息。Optionally, the fourth message is a message related to the user equipment or the fourth message is a special binding request message.
可选地,第四消息中携带绑定指示和绑定定时器的至少一个,绑定定时器用于在绑定定时器超时后解除目标标识与第二服务实例的绑定关系。Optionally, the fourth message carries at least one of a binding indication and a binding timer, and the binding timer is used to release the binding relationship between the target identifier and the second service instance after the binding timer expires.
可选地,第四消息中携带目标标识。Optionally, the fourth message carries the target identifier.
可选地,处理单元930还用于在接收到第二服务实例发送的第四消息后,分配目标标识。Optionally, the processing unit 930 is further configured to allocate a target identifier after receiving the fourth message sent by the second service instance.
可选地,处理单元930还用于当消息为与用户设备相关的消息时,将目标标识添加到第四消息中。Optionally, the processing unit 930 is further configured to add the target identifier to the fourth message when the message is a message related to the user equipment.
可选地,接收单元920还用于接收第二服务实例发送的解绑定请求,解绑定请求用于请求解除目标标识与第二服务实例的绑定关系;或者,启动绑定定时器,当绑定定时器超时后解除目标标识与第二服务实例的绑定关系。Optionally, the receiving unit 920 is further configured to receive a debinding request sent by the second service instance, where the debinding request is used to request to unbind the target identifier from the second service instance; or, start a binding timer, When the binding timer expires, the binding relationship between the target identifier and the second service instance is released.
可选地,目标标识与一个或一组用户设备相关。Optionally, the target identification is associated with one or a group of user equipments.
可选地,目标标识是为第二服务实例配置的服务指针之一,接收单元820还用于接收第二服务实例的注册请求;发送单元920还用于向第二服务实例发送注册响应,注册响应包括为第二服务实例配置的服务指针。Optionally, the target identifier is one of the service pointers configured for the second service instance, and the receiving unit 820 is further configured to receive a registration request of the second service instance; the sending unit 920 is further configured to send a registration response to the second service instance to register The response includes a service pointer configured for the second service instance.
可选地,注册请求中包括第二服务实例申请的服务指针的数量,确定单元还用于根据第二服务实例申请的服务指针的数量为第二服务实例配置服务指针。Optionally, the registration request includes the number of service pointers applied by the second service instance, and the determining unit is further configured to configure the service pointers for the second service instance according to the number of service pointers applied by the second service instance.
可选地,处理单元930还用于根据第二服务实例的容量为第二服务实例配置服务指针。Optionally, the processing unit 930 is further configured to configure a service pointer for the second service instance according to the capacity of the second service instance.
可选地,处理单元930还用于确定第二服务实例所属的服务集合;处理单元930还用于为第二服务实例配置服务指针,使得第二服务实例的服务指针与服务集合中的其他服务实例的服务指针不同。Optionally, the processing unit 930 is further configured to determine a service set to which the second service instance belongs; the processing unit 930 is further configured to configure a service pointer for the second service instance, so that the service pointer of the second service instance and other services in the service set The service pointer of the instance is different.
可选地,目标标识是为第二服务实例配置的服务指针之一,接收单元920还用于接收第二服务实例的注册请求,注册请求包括第二服务实例的服务指针,以便传输代理绑定第二服务实例与服务指针。Optionally, the target identifier is one of the service pointers configured for the second service instance, and the receiving unit 920 is further configured to receive a registration request of the second service instance, where the registration request includes the service pointer of the second service instance in order to transmit the proxy binding Second service instance and service pointer.
可选地,处理单元930还用于当第二服务实例的服务指针与第二服务实例所属的服务集合中的其他服务实例的服务指针冲突时,重新为第二服务实例配置服务指针;发送单元920还用于向第二服务实例发送注册响应,注册响应包含重新为第二服务实例配置的服务指针。Optionally, the processing unit 930 is further configured to reconfigure the service pointer for the second service instance when the service pointer of the second service instance conflicts with the service pointers of other service instances in the service set to which the second service instance belongs; the sending unit 920 is also used to send a registration response to the second service instance, where the registration response includes a service pointer reconfigured for the second service instance.
可选地,第一消息为超文本传输协议HTTP消息,目标标识位于HTTP消息的头部。Optionally, the first message is a Hypertext Transfer Protocol HTTP message, and the target identifier is located in the header of the HTTP message.
图12是本申请一个实施例提供服务实例的示意性结构图。图12的服务实例1000可用于执行图3-图8方法中的由第二服务实例执行的各个步骤。服务实例1000包括发送单元1010、接收单元1020,可选地图12还可以包括处理单元1030。下面对通信设备1000的各个模块的功能进行详细描述:FIG. 12 is a schematic structural diagram of an example of providing a service according to an embodiment of the present application. The service instance 1000 of FIG. 12 may be used to perform the steps performed by the second service instance in the methods of FIG. 3 to FIG. 8. The service instance 1000 includes a sending unit 1010 and a receiving unit 1020, and the optional map 12 may further include a processing unit 1030. The functions of each module of the communication device 1000 are described in detail below:
发送单元1010,用于向传输代理发送第四消息,所述第四消息用于触发所述传输代理建立所述第二服务实例与目标标识的绑定关系,其中所述目标标识与用户设备相关;接收单元1020,用于接收所述传输代理发送的第二消息,所述第二消息包含所述目标标识。A sending unit 1010 is configured to send a fourth message to a transmission agent, where the fourth message is used to trigger the transmission agent to establish a binding relationship between the second service instance and a target identifier, where the target identifier is related to a user equipment A receiving unit 1020, configured to receive a second message sent by the transmission agent, where the second message includes the target identifier.
可选地,所述第四消息为与所述用户设备相关的消息,或者所述第四消息为专门的绑定 请求。Optionally, the fourth message is a message related to the user equipment, or the fourth message is a special binding request.
可选地,所述第四消息中包含所述目标标识和绑定定时器中的至少一个。Optionally, the fourth message includes at least one of the target identifier and a binding timer.
可选地,所述发送单元1010还用于向第一服务实例发送所述目标标识。Optionally, the sending unit 1010 is further configured to send the target identifier to the first service instance.
可选地,所述确定单元还用于在第四消息中***所述目标标识,以便将所述目标标识发送给所述第一服务实例。Optionally, the determining unit is further configured to insert the target identifier in a fourth message, so as to send the target identifier to the first service instance.
可选地,所述发送单元1010还包括向所述传输代理发送解绑定请求,所述解绑定请求用于请求解除所述目标标识与所述第二服务实例的绑定关系。Optionally, the sending unit 1010 further includes sending a unbinding request to the transmission agent, where the unbinding request is used to request to unbind the target identifier from the second service instance.
可选地,所述目标标识与一个或一组用户设备相关。Optionally, the target identifier is related to one or a group of user equipments.
可选地,所述目标标识是为所述第二服务实例配置的服务指针之一,所述发送单元1010还用于向所述传输代理发送注册请求;所述接收单元1020还用于向所述传输代理发送的注册响应,所述注册响应包括为所述第二服务实例配置的服务指针。Optionally, the target identifier is one of the service pointers configured for the second service instance, and the sending unit 1010 is further configured to send a registration request to the transmission agent; the receiving unit 1020 is further configured to send The registration response sent by the transport agent includes a service pointer configured for the second service instance.
可选地,所述注册请求中包括所述第二服务实例申请的服务指针的数量。Optionally, the registration request includes the number of service pointers applied by the second service instance.
可选地,所述发送设备还用于向所述传输代理发送注册请求,所述注册请求包括所述第二服务实例为自己配置的服务指针。Optionally, the sending device is further configured to send a registration request to the transmission agent, where the registration request includes a service pointer configured by the second service instance for itself.
可选地,所述第一消息为超文本传输协议HTTP消息,所述目标标识位于所述HTTP消息的头部。Optionally, the first message is a Hypertext Transfer Protocol HTTP message, and the target identifier is located in a header of the HTTP message.
可选地,服务实例1000还可以包含处理单元1030,所述处理单元用于处理通过接收单元1010接收到的消息。Optionally, the service instance 1000 may further include a processing unit 1030, which is configured to process a message received through the receiving unit 1010.
服务实例1000还可以执行图3-图8的方法中由第一服务实例执行的各个步骤。服务实例1000的接收单元1020用于接收与用户设备和第二服务实例相关的目标标识,所述发送单元1010在发送与所述用户设备和所述第二服务实例相关的消息时携带所述目标标识,该目标标识用于将所述消息发送给所述第二服务实例。The service instance 1000 may also perform each step performed by the first service instance in the methods in FIG. 3 to FIG. 8. The receiving unit 1020 of the service instance 1000 is configured to receive a target identifier related to the user equipment and the second service instance. The sending unit 1010 carries the target when sending a message related to the user equipment and the second service instance. Identification, the target identification is used to send the message to the second service instance.
可选地,接收单元1020用于接收所述目标标识。Optionally, the receiving unit 1020 is configured to receive the target identifier.
可选地,所述接收单元用于从与所述第二服务实例相关的传输代理接收所述目标标识。Optionally, the receiving unit is configured to receive the target identifier from a transmission agent related to the second service instance.
图13示出了本申请又一实施例提供的传输代理的示意性结构图。该传输代理1100包括处理器1110、收发器1120。FIG. 13 shows a schematic structural diagram of a transmission agent according to another embodiment of the present application. The transmission agent 1100 includes a processor 1110 and a transceiver 1120.
处理器1110与收发器1120通过内部连接电路互相通信。该处理器1110用于执行指令,以控制该收发器1120发送信号和/或接收信号。可选地,传输代理1110还可以包括存储器1130。其中,处理器1110、收发器1120和存储器1130通过内部连接通路互相通信,该存储器1130用于存储指令,该处理器1110用于执行该存储器1130存储的指令,以控制该收发器1120发送信号和/或接收信号。应理解,该收发器1120可以与图11中的发送单元910与接收单元920提供相同的功能;该处理器1110与存储器1130可以与图11中的处理单元930提供相同的功能。The processor 1110 and the transceiver 1120 communicate with each other through an internal connection circuit. The processor 1110 is configured to execute instructions to control the transceiver 1120 to send signals and / or receive signals. Optionally, the transfer agent 1110 may further include a memory 1130. The processor 1110, the transceiver 1120, and the memory 1130 communicate with each other through an internal connection path. The memory 1130 is used to store instructions. The processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and / Or receive a signal. It should be understood that the transceiver 1120 may provide the same functions as the sending unit 910 and the receiving unit 920 in FIG. 11; the processor 1110 and the memory 1130 may provide the same functions as the processing unit 930 in FIG. 11.
收发器1120用于接收第一服务实例发送的第一消息,所述第一消息包含目标标识。处理器1110用于查找是否存在与目标标识对应的服务实例。当处理器1110查找到与目标标识对应的关系时第二服务实例时,收发器1120还用于基于第一消息向与所述目标标识有绑定关系的第二服务实例发送所述第二消息。The transceiver 1120 is configured to receive a first message sent by a first service instance, where the first message includes a target identifier. The processor 1110 is configured to find whether a service instance corresponding to the target identifier exists. When the processor 1110 finds the second service instance when the relationship corresponding to the target identifier is found, the transceiver 1120 is further configured to send the second message to the second service instance having a binding relationship with the target identifier based on the first message. .
图14示出了本申请又一实施例提供的服务实例的示意性结构图。该服务实例可以执行图3-图8方法的各个步骤。该服务实例1200包括收发器1220。该收发器1220用于接收/发送信号。可选地,服务实例1200还可以包括处理器1210,其中,处理器1210、收发器1220通过 内部连接通路互相通信。处理器1210用于控制收发器1220发送/接收信号。可选地该服务实例100还可以包括存储器1230,其中,处理器1210、收发器1220和存储器1230通过内部连接通路互相通信,该存储器1230用于存储指令,该处理器1210用于执行该存储器1230存储的指令,以控制该收发器1220发送信号和/或接收信号。应理解,该收发器1220可以与图11中的发送单元910与接收单元920提供相同的功能;该处理器1210与存储器1230可以与图11中的处理单元930提供相同的功能。FIG. 14 shows a schematic structural diagram of a service example provided by another embodiment of the present application. The service instance can perform each step of the method of FIGS. 3-8. The service instance 1200 includes a transceiver 1220. The transceiver 1220 is used for receiving / transmitting signals. Optionally, the service instance 1200 may further include a processor 1210, where the processor 1210 and the transceiver 1220 communicate with each other through an internal connection path. The processor 1210 is configured to control the transceiver 1220 to send / receive signals. Optionally, the service instance 100 may further include a memory 1230. The processor 1210, the transceiver 1220, and the memory 1230 communicate with each other through an internal connection path. The memory 1230 is used to store instructions, and the processor 1210 is used to execute the memory 1230. Stored instructions to control the transceiver 1220 to send and / or receive signals. It should be understood that the transceiver 1220 may provide the same functions as the sending unit 910 and the receiving unit 920 in FIG. 11; the processor 1210 and the memory 1230 may provide the same functions as the processing unit 930 in FIG. 11.
收发器1220用于向传输代理发送第四消息,所述第四消息用于触发所述传输代理建立服务实例1200与目标标识的绑定关系;收发器1220还用于接收所述传输代理转发的第二消息,所述第二消息包含所述目标标识。可选地,服务实例1200还可以包括处理器1210,所述处理器1210用于执行指令。The transceiver 1220 is configured to send a fourth message to the transmission agent, and the fourth message is used to trigger the transmission agent to establish a binding relationship between the service instance 1200 and the target identifier; the transceiver 1220 is further configured to receive A second message, the second message including the target identifier. Optionally, the service instance 1200 may further include a processor 1210, where the processor 1210 is configured to execute an instruction.
服务实例1200还可以执行图3-图10方法中第一服务实例执行的各个步骤。服务实例1200中的收发器1220还用于接收与用户设备和第二服务实例相关的目标标识,收发器1220在发送与所述用户设备和所述第二服务实例相关的消息时携带所述目标标识,该目标标识用于将所述消息发送给所述第二服务实例,所述处理器1210用于执行指令。The service instance 1200 may also perform various steps performed by the first service instance in the methods in FIG. 3 to FIG. 10. The transceiver 1220 in the service instance 1200 is further configured to receive a target identifier related to the user equipment and the second service instance. The transceiver 1220 carries the target when sending a message related to the user equipment and the second service instance. Identification, the target identification is used to send the message to the second service instance, and the processor 1210 is used to execute an instruction.
应理解,上述的收发器可以是通信接口。存储器可以是一个单独的器件,也可以集成在处理器中。上述的各个器件或部分器件可以集成到芯片中实现,如集成到基带芯片中实现。It should be understood that the above-mentioned transceiver may be a communication interface. The memory can be a separate device or it can be integrated into the processor. Each of the above devices or part of the devices may be integrated into a chip for implementation, such as being integrated into a baseband chip.
图15示出了本申请实施例提供的一种通信设备的示意性结构图。通信设备1500包括:收发单元1510,确定单元1520。FIG. 15 shows a schematic structural diagram of a communication device according to an embodiment of the present application. The communication device 1500 includes a transceiver unit 1510 and a determination unit 1520.
收发单元1510用于接收第三服务实例或第四服务实例发送的与第一会话相关的第一消息,所述第一消息包括目标标识。The transceiver unit 1510 is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier.
确定单元1520用于根据所述目标标识,确定为所述第一会话提供服务的第二服务实例。The determining unit 1520 is configured to determine a second service instance that provides a service for the first session according to the target identifier.
收发单元1510还用于向所述第二服务实例发送与所述第一会话相关的第二消息。The transceiver unit 1510 is further configured to send a second message related to the first session to the second service instance.
根据目标标识确定为第一会话提供服务的服务实例,提高了服务实例选择的灵活性,使得所选择的后续为第一会话提供服务的服务实例可以与之前为第一会话提供服务的服务实例不同,从而避免第三服务实例故障导致第一会话中断。The service instance that provides services for the first session is determined according to the target identifier, which increases the flexibility of service instance selection, so that the selected service instance that subsequently provides services for the first session can be different from the service instance that previously provided services for the first session. Therefore, the first session is interrupted due to the failure of the third service instance.
可选地,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。Optionally, the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance or is bound to a target service set. The target service set includes the second service instance, the third service instance, and the fourth service instance.
通过绑定方式指示信息,通信设备可以确定选择服务实例的方式。By indicating information in a binding manner, the communication device can determine a method of selecting a service instance.
可选地,所述目标标识包括所述第三服务实例的标识。Optionally, the target identifier includes an identifier of the third service instance.
可选地,收发单元1510还用于,接收所述第三服务实例发送的第三消息,所述第三消息包括备份指示信息,所述备份指示信息用于指示所述第二服务实例为所述第三服务实例提供备份或所述第二服务实例为所述第三服务实例服务的第一会话组提供备份;所述第一会话组包括所述第一会话;Optionally, the transceiver unit 1510 is further configured to receive a third message sent by the third service instance, where the third message includes backup instruction information, and the backup instruction information is used to indicate that the second service instance is The third service instance provides a backup or the second service instance provides a backup for a first conversation group served by the third service instance; the first conversation group includes the first conversation;
确定单元1520用于,所述第三服务实例不可用时,根据所述备份指示信息和所述目标标识确定所述第二服务实例。The determining unit 1520 is configured to determine the second service instance according to the backup instruction information and the target identifier when the third service instance is unavailable.
通过备份指示信息,可以将第一会话提供备份的服务实例作为候选服务实例。当与第一会话绑定的第三服务实例不可用时,由备份服务实例为第一会话提供服务,可以避免第三服务实例故障时导致第一会话中断,提高用户体验。By using the backup instruction information, the service instance that provides backup in the first session can be used as a candidate service instance. When the third service instance bound to the first session is unavailable, the backup service instance provides services for the first session, which can prevent the first session from being interrupted when the third service instance fails, and improve the user experience.
可选地,通信设备1500还包括获取单元,获取单元用于根据所述目标标识获取所述目标 服务集合的标识。Optionally, the communication device 1500 further includes an acquiring unit, configured to acquire the identifier of the target service set according to the target identifier.
确定单元1520用于,根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。The determining unit 1520 is configured to determine the second service instance from the target service set according to the identifier of the target service set, where the target service set includes the second service instance, the third service instance, and The fourth service instance.
可选地,收发单元1510还用于,向网络存储功能NRF网元发送所述目标服务集合的标识,Optionally, the transceiver unit 1510 is further configured to send the identifier of the target service set to a network storage function NRF network element,
收发单元1510还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例,所属目标服务集合包括所述第二服务实例。The transceiver unit 1510 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance, and a target service set to which the second service instance belongs includes the second service instance.
根据NRF网元发送的服务实例的标识,确定该服务实例为第一会话提供服务,可以降低对第一服务实例的存储能力和处理能力的要求。According to the identification of the service instance sent by the NRF network element, determining that the service instance provides services for the first session can reduce the requirements for the storage capacity and processing capacity of the first service instance.
可选地,收发单元1510还用于,接收所述目标服务集合中的服务实例发送的第一信息,第一信息包括所述服务实例的标识和所述目标服务集合的标识;Optionally, the transceiver unit 1510 is further configured to receive first information sent by a service instance in the target service set, where the first information includes an identifier of the service instance and an identifier of the target service set;
确定单元1520用于,根据所述目标服务集合的标识以及第一信息,确定所述第二服务实例。The determining unit 1520 is configured to determine the second service instance according to an identifier of the target service set and first information.
可选地,获取单元用于,从所述目标标识中获取所述目标服务集合的标识,所述目标标识包括所述目标服务集合的标识。Optionally, the obtaining unit is configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes an identifier of the target service set.
可选地,获取单元用于,当所述目标标识包括所述第三服务实例的标识时,根据所述第三服务实例的标识,获取所述目标服务集合的标识;所述目标服务集合包括所述第三服务实例。Optionally, the acquiring unit is configured to: when the target identifier includes the identifier of the third service instance, acquire the identifier of the target service set according to the identifier of the third service instance; the target service set includes The third service instance.
可选地,所述目标标识包括所述第一会话组的标识,所述第一会话组包括所述第一会话。Optionally, the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation.
收发单元1510还用于,向网络存储功能NRF网元发送所述第一会话组的标识。The transceiver unit 1510 is further configured to send the identifier of the first session group to a network storage function NRF network element.
收发单元1510还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。The transceiver unit 1510 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance.
可选地,通信设备1500为用户面功能UPF网元,所述第二服务实例、所述第三服务实例、所述第四服务实例为会话管理功能SMF网元。Optionally, the communication device 1500 is a user plane function UPF network element, and the second service instance, the third service instance, and the fourth service instance are session management function SMF network elements.
图16示出了本申请实施例提供的一种通信设备的示意性结构图。通信设备1600包括:通信接口1610,处理器1620。FIG. 16 shows a schematic structural diagram of a communication device according to an embodiment of the present application. The communication device 1600 includes a communication interface 1610 and a processor 1620.
通信接口1610用于接收第三服务实例或第四服务实例发送的与第一会话相关的第一消息,所述第一消息包括目标标识。The communication interface 1610 is configured to receive a first message related to the first session sent by the third service instance or the fourth service instance, where the first message includes a target identifier.
处理器1620用于根据所述目标标识,确定为所述第一会话提供服务的第二服务实例。The processor 1620 is configured to determine a second service instance that provides a service for the first session according to the target identifier.
通信接口1610还用于向所述第二服务实例发送与所述第一会话相关的第二消息。The communication interface 1610 is further configured to send a second message related to the first session to the second service instance.
可选地,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。Optionally, the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance or is bound to a target service set. The target service set includes the second service instance, the third service instance, and the fourth service instance.
可选地,所述目标标识包括所述第三服务实例的标识。Optionally, the target identifier includes an identifier of the third service instance.
可选地,通信接口1610还用于,接收所述第三服务实例发送的第三消息,所述第三消息包括备份指示信息,所述备份指示信息用于指示所述第二服务实例为所述第三服务实例提供备份或所述第二服务实例为所述第三服务实例服务的第一会话组提供备份;所述第一会话组包括所述第一会话;Optionally, the communication interface 1610 is further configured to receive a third message sent by the third service instance, where the third message includes backup instruction information, and the backup instruction information is used to indicate that the second service instance is The third service instance provides a backup or the second service instance provides a backup for a first conversation group served by the third service instance; the first conversation group includes the first conversation;
处理器1620用于,所述第三服务实例不可用时,根据所述备份指示信息和所述目标标识 确定所述第二服务实例。The processor 1620 is configured to determine the second service instance according to the backup instruction information and the target identifier when the third service instance is unavailable.
可选地,处理器1620还用于,根据所述目标标识获取所述目标服务集合的标识。处理器1620还用于,根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。Optionally, the processor 1620 is further configured to obtain an identifier of the target service set according to the target identifier. The processor 1620 is further configured to determine the second service instance from the target service set according to the identifier of the target service set, where the target service set includes the second service instance and the third service instance And the fourth service instance.
可选地,通信接口1610还用于,向网络存储功能NRF网元发送所述目标服务集合的标识,Optionally, the communication interface 1610 is further configured to send an identifier of the target service set to a network storage function NRF network element,
通信接口1610还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。The communication interface 1610 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance.
可选地,通信接口1610还用于,接收所述目标服务集合中的服务实例发送的第一信息,第一信息包括所述服务实例的标识和所述目标服务集合的标识;处理器1620用于,根据所述目标服务集合的标识以及第一信息,从所述目标服务集合中确定所述第二服务实例。Optionally, the communication interface 1610 is further configured to receive first information sent by a service instance in the target service set, where the first information includes an identifier of the service instance and an identifier of the target service set; the processor 1620 uses Therefore, the second service instance is determined from the target service set according to the identifier of the target service set and the first information.
可选地,处理器1620还用于,从所述目标标识中获取所述目标服务集合的标识,所述目标标识包括所述目标服务集合的标识;或者,Optionally, the processor 1620 is further configured to obtain an identifier of the target service set from the target identifier, where the target identifier includes an identifier of the target service set; or
处理器1620还用于,当所述目标标识包括所述第三服务实例的标识,通信设备1500根据所述第三服务实例的标识,获取所述目标服务集合的标识;所述目标服务集合包括所述第三服务实例。The processor 1620 is further configured to: when the target identifier includes the identifier of the third service instance, the communication device 1500 obtains the identifier of the target service set according to the identifier of the third service instance; the target service set includes The third service instance.
可选地,所述目标标识包括所述第一会话组的标识,所述第一会话组包括所述第一会话。Optionally, the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation.
通信接口1610还用于,向网络存储功能NRF网元发送所述第一会话组的标识;The communication interface 1610 is further configured to send the identifier of the first session group to a network storage function NRF network element;
通信接口1610还用于,接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。The communication interface 1610 is further configured to receive an identifier of the second service instance sent by the NRF network element to determine the second service instance.
可选地,通信设备1500为用户面功能UPF网元,所述第二服务实例、所述第三服务实例、所述第四服务实例为会话管理功能SMF网元。Optionally, the communication device 1500 is a user plane function UPF network element, and the second service instance, the third service instance, and the fourth service instance are session management function SMF network elements.
本申请实施例提供了一种通信设备,通信设备可用于执行图10的方法中的由第三服务实例执行的各个步骤。具体地,该通信设备包括用于执行图10中第三服务实例的方法/步骤/功能的单元。The embodiment of the present application provides a communication device, and the communication device may be configured to perform each step performed by the third service instance in the method in FIG. 10. Specifically, the communication device includes a unit for performing a method / step / function of the third service instance in FIG. 10.
本申请实施例提供了一种通信***,包括:收发器和处理器。其中该收发器与处理器通过内部连接通路通信,该处理器用于控制接收器接收信号,并控制发送器发送信号。可选地,该通信设备还包括存储器,其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制接收器接收信号,并控制发送器发送信号,使得该设备执行图10中第三服务实例的方法/步骤/功能。An embodiment of the present application provides a communication system including a transceiver and a processor. The transceiver communicates with the processor through an internal connection path. The processor is used to control the receiver to receive signals and to control the transmitter to send signals. Optionally, the communication device further includes a memory, wherein the transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control The receiver receives the signal and controls the transmitter to send the signal so that the device performs the method / step / function of the third service instance in FIG. 10.
本申请实施例提供一种通信***,包括第一服务实例,第一服务实例用于执行图10的方法中的由第一服务实例执行的各个步骤。An embodiment of the present application provides a communication system including a first service instance, where the first service instance is configured to perform each step performed by the first service instance in the method in FIG. 10.
可选地,该***还可以包括第三服务实例,第一服务实例用于执行图10的方法中的由第三服务实例执行的各个步骤。Optionally, the system may further include a third service instance, where the first service instance is configured to perform each step performed by the third service instance in the method in FIG. 10.
可选地,该***还可以包括其他设备,用于与第一服务实例和/或第三服务实例进行交互。其他设备例如可以是接入管理功能网元,该接入管理功能网元可用于执行图10提供的方案中接入管理功能网元执行的方法。Optionally, the system may further include other devices for interacting with the first service instance and / or the third service instance. The other device may be, for example, an access management function network element, and the access management function network element may be used to execute a method performed by the access management function network element in the solution provided in FIG.
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码被计算机运行时,使得上文中服务实例、传输代理的功能得以实现。The embodiment of the present application provides a computer program product. The computer program product includes computer program code, and when the computer program code is run by a computer, the functions of the service example and the transmission agent described above can be implemented.
本申请实施例提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用 于实现上文中服务实例、传输代理的功能的指令。An embodiment of the present application provides a computer-readable medium for storing a computer program, where the computer program includes instructions for implementing the functions of the service instance and the transfer agent described above.
本申请实施例提供了一种通信芯片,其中存储有指令,当其在计算机设备上运行时,使得上文中服务实例、传输代理的功能得以实现。An embodiment of the present application provides a communication chip, in which instructions are stored, which when run on a computer device enable the functions of the service instance and the transmission agent described above to be implemented.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的***、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application is essentially a part that contributes to the existing technology or a part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage media include: U disks, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks or compact discs and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in this application. It should be covered by the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (56)

  1. 一种通信方法,其特征在于,所述通信方法包括:A communication method, characterized in that the communication method includes:
    接收第一服务实例发送的第一消息,所述第一消息包含目标标识;Receiving a first message sent by a first service instance, where the first message includes a target identifier;
    基于所述第一消息,向与所述目标标识有绑定关系的第二服务实例发送所述第二消息。Based on the first message, send the second message to a second service instance that has a binding relationship with the target identifier.
  2. 根据权利要求1所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to claim 1, wherein the communication method further comprises:
    当没有与所述目标标识具有绑定关系的服务实例时,根据所述第一消息,获取目标服务集合的标识;When there is no service instance having a binding relationship with the target identifier, obtaining the identifier of the target service set according to the first message;
    根据所述目标服务集合的标识,从所述目标服务集合中选取第三服务实例;Selecting a third service instance from the target service set according to the identifier of the target service set;
    基于所述第一消息,向所述第三服务实例发送第三消息。Send a third message to the third service instance based on the first message.
  3. 根据权利要求2所述的通信方法,其特征在于,所述根据所述第一消息,获取目标服务集合的标识,包括:The communication method according to claim 2, wherein the acquiring the identifier of the target service set according to the first message comprises:
    从所述第一消息中获取所述目标服务集合的标识,所述第一消息中还包括所述目标服务集合的标识;或者,Obtaining the identifier of the target service set from the first message, and the first message further includes the identifier of the target service set; or
    从所述第一消息中的所述目标标识中获取所述目标服务集合的标识,所述目标标识中包括所述目标服务集合的标识;或者,Acquiring the identifier of the target service set from the target identifier in the first message, where the target identifier includes the identifier of the target service set; or
    将与所述第一消息中的所述目标标识具有映射关系的服务集合的标识确定为所述目标服务集合的标识。An identifier of a service set having a mapping relationship with the target identifier in the first message is determined as an identifier of the target service set.
  4. 根据权利要求1-3中任一项所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to any one of claims 1-3, wherein the communication method further comprises:
    接收所述第二服务实例发送的第四消息;Receiving a fourth message sent by the second service instance;
    传输代理根据所述第四消息获得所述目标标识与所述第二服务实例之间的绑定关系。The transmission agent obtains a binding relationship between the target identifier and the second service instance according to the fourth message.
  5. 根据权利要求4所述的通信方法,其特征在于,所述第四消息为与用户设备相关的消息或所述第四消息为专门的绑定请求消息。The communication method according to claim 4, wherein the fourth message is a message related to a user equipment or the fourth message is a special binding request message.
  6. 根据权利要求4或5所述的通信方法,其特征在于,所述第四消息中携带所述目标标识。The communication method according to claim 4 or 5, wherein the fourth message carries the target identifier.
  7. 根据权利要求4或5所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to claim 4 or 5, wherein the communication method further comprises:
    在接收到所述第二服务实例发送的第四消息后,为所述第二服务实例分配所述目标标识。After receiving the fourth message sent by the second service instance, the target identifier is allocated to the second service instance.
  8. 如权利要求7所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to claim 7, further comprising:
    当所述第四消息为与用户设备相关的消息时,将所述目标标识添加到所述第四消息中。When the fourth message is a message related to the user equipment, the target identifier is added to the fourth message.
  9. 根据权利要求4-8中任一项所述的通信方法,其特征在于,所述第四消息中携带绑定指示和绑定定时器中的至少一个,所述绑定定时器用于在所述绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。The communication method according to any one of claims 4 to 8, characterized in that the fourth message carries at least one of a binding indication and a binding timer, and the binding timer is used in the After the binding timer expires, the binding relationship between the target identifier and the second service instance is released.
  10. 根据权利要求1-9中任一项所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to any one of claims 1-9, wherein the communication method further comprises:
    接收所述第二服务实例发送的第五消息,所述第五消息用于请求解除所述目标标识与所述第二服务实例的绑定关系;或者,启动绑定定时器,当所述绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。Receiving a fifth message sent by the second service instance, where the fifth message is used to request to release a binding relationship between the target identifier and the second service instance; or, start a binding timer, and when the binding After the timer expires, the binding relationship between the target identifier and the second service instance is released.
  11. 一种通信方法,其特征在于,所述通信方法包括:A communication method, characterized in that the communication method includes:
    第二服务实例向传输代理发送第四消息,所述第四消息用于触发所述传输代理建立所述第二服务实例与目标标识的绑定关系;The second service instance sends a fourth message to the transmission agent, and the fourth message is used to trigger the transmission agent to establish a binding relationship between the second service instance and the target identifier;
    所述第二服务实例接收所述传输代理发送的第二消息,所述第二消息包含所述目标标识。Receiving, by the second service instance, a second message sent by the transmission agent, the second message including the target identifier.
  12. 根据权利要求11所述的通信方法,其特征在于,所述第四消息为与用户设备相关的消息,或者所述第四消息为专门的绑定请求。The communication method according to claim 11, wherein the fourth message is a message related to a user equipment, or the fourth message is a special binding request.
  13. 根据权利要求11或12所述的通信方法,其特征在于,所述第四消息中包含所述目标标识和绑定定时器中的至少一个。The communication method according to claim 11 or 12, wherein the fourth message includes at least one of the target identifier and a binding timer.
  14. 根据权利要求11-13中任一项所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to any one of claims 11-13, wherein the communication method further comprises:
    所述第二服务实例向第一服务实例发送所述目标标识。Sending, by the second service instance, the target identifier to the first service instance.
  15. 根据权利要求11-14中任一项所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to any one of claims 11-14, wherein the communication method further comprises:
    所述第二服务实例向所述传输代理发送第五消息,所述第五消息用于请求解除所述目标标识与所述第二服务实例的绑定关系。The second service instance sends a fifth message to the transmission agent, where the fifth message is used to request to release the binding relationship between the target identifier and the second service instance.
  16. 一种通信设备,其特征在于,所述通信设备包括接收单元、发送单元,其中:A communication device, characterized in that the communication device includes a receiving unit and a sending unit, wherein:
    所述接收单元用于接收第一服务实例发送的第一消息,所述第一消息包含所述与用户设备相关的目标标识;The receiving unit is configured to receive a first message sent by a first service instance, where the first message includes the target identifier related to the user equipment;
    所述发送单元用于基于所述第一消息,向与所述目标标识有绑定关系的第二服务实例发送所述第二消息。The sending unit is configured to send the second message to a second service instance that has a binding relationship with the target identifier based on the first message.
  17. 根据权利要求16所述的通信设备,其特征在于,所述通信设备还包括:The communication device according to claim 16, further comprising:
    处理单元,所述处理单元用于当没有与所述目标标识具有绑定关系的服务实例时,根据所述第一消息,获取目标服务集合的标识;A processing unit, configured to obtain an identifier of a target service set according to the first message when there is no service instance having a binding relationship with the target identifier;
    所述处理单元还用于根据所述目标服务集合的标识,从所述目标服务集合中选取第三服务实例;The processing unit is further configured to select a third service instance from the target service set according to the identifier of the target service set;
    所述发送单元还用于基于所述第一消息,向所述第三服务实例发送第三消息。The sending unit is further configured to send a third message to the third service instance based on the first message.
  18. 根据权利要求17所述的通信设备,其特征在于,所述处理单元还用于从所述第一消息中获取所述目标服务集合的标识,所述第一消息中还包括所述目标服务集合的标识;或者,The communication device according to claim 17, wherein the processing unit is further configured to obtain an identifier of the target service set from the first message, and the first message further includes the target service set ; Or,
    所述处理单元还用于从所述第一消息中的所述目标标识中获取所述目标服务集合的标识,所述目标标识中包括所述目标服务集合的标识;或者,The processing unit is further configured to obtain an identifier of the target service set from the target identifier in the first message, where the target identifier includes an identifier of the target service set; or
    所述处理单元还用于将与所述第一消息中的所述目标标识具有映射关系的服务集合的标识确定为所述目标服务集合的标识。The processing unit is further configured to determine an identifier of a service set having a mapping relationship with the target identifier in the first message as an identifier of the target service set.
  19. 根据权利要求16-18中任一项所述的通信设备,其特征在于,所述接收单元还用于接收所述第二服务实例发送的第四消息,所述处理单元用于根据所述第四消息获得所述目标标识与所述第二服务实例的绑定关系。The communication device according to any one of claims 16 to 18, wherein the receiving unit is further configured to receive a fourth message sent by the second service instance, and the processing unit is configured to receive the fourth message according to the first Four messages obtain the binding relationship between the target identifier and the second service instance.
  20. 根据权利要求19所述的通信设备,其特征在于,所述第四消息为与用户设备相关的消息或所述第四消息为专门的绑定请求消息。The communication device according to claim 19, wherein the fourth message is a message related to a user equipment or the fourth message is a special binding request message.
  21. 根据权利要求19或20所述的通信设备,其特征在于,所述第四消息中携带所述目标标识。The communication device according to claim 19 or 20, wherein the fourth message carries the target identifier.
  22. 根据权利要求19-21中任一项所述的通信设备,其特征在于,所述第四消息中携带绑定指示和绑定定时器中的至少一个,所述绑定定时器用于在绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。The communication device according to any one of claims 19 to 21, wherein the fourth message carries at least one of a binding indication and a binding timer, and the binding timer is used for binding After the timer expires, the binding relationship between the target identifier and the second service instance is released.
  23. 根据权利要求16-22中任一项所述的通信设备,其特征在于,所述接收单元还用于接收所述第二服务实例发送的第五消息,所述第五消息用于请求解除所述目标标识与所述第二服务实例的绑定关系;或者,启动绑定定时器,当所述绑定定时器超时后解除所述目标标识与所述第二服务实例的绑定关系。The communication device according to any one of claims 16 to 22, wherein the receiving unit is further configured to receive a fifth message sent by the second service instance, and the fifth message is used to request release of the service. The binding relationship between the target identifier and the second service instance; or, a binding timer is started, and the binding relationship between the target identifier and the second service instance is released after the binding timer expires.
  24. 一种通信设备,其特征在于,包括:A communication device, comprising:
    发送单元,用于向传输代理发送第四消息,所述第四消息用于触发所述传输代理建立所述第二服务实例与目标标识的绑定关系,其中所述目标标识与用户设备相关;A sending unit, configured to send a fourth message to a transmission agent, where the fourth message is used to trigger the transmission agent to establish a binding relationship between the second service instance and a target identifier, where the target identifier is related to a user equipment;
    接收单元,用于接收所述传输代理第二消息,所述第二消息包含所述目标标识。The receiving unit is configured to receive a second message of the transmission agent, where the second message includes the target identifier.
  25. 根据权利要求24所述的通信设备,其特征在于,所述第四消息为与所述用户设备相关的消息,或者所述第四消息为专门的绑定请求。The communication device according to claim 24, wherein the fourth message is a message related to the user equipment, or the fourth message is a special binding request.
  26. 根据权利要求24或25所述的通信设备,其特征在于,所述第四消息中包含所述目标标识和绑定定时器中的至少一个。The communication device according to claim 24 or 25, wherein the fourth message includes at least one of the target identifier and a binding timer.
  27. 根据权利要求24-26中任一项所述的通信设备,其特征在于,所述发送单元还用于向第一服务实例发送所述目标标识。The communication device according to any one of claims 24-26, wherein the sending unit is further configured to send the target identifier to a first service instance.
  28. 根据权利要求24-27中任一项所述的通信设备,其特征在于,所述发送单元还包括向所述传输代理发送第五消息,所述第五消息用于请求解除所述目标标识与所述第二服务实例的绑定关系。The communication device according to any one of claims 24-27, wherein the sending unit further comprises sending a fifth message to the transmission agent, and the fifth message is used to request to release the target identifier and A binding relationship of the second service instance.
  29. 根据权利要求1-15中任一项所述的通信方法或16-28中任一项所述的通信设备,其特征在于,所述目标标识与一个或一组用户设备相关。The communication method according to any one of claims 1-15 or the communication device according to any one of 16-28, wherein the target identifier is related to one or a group of user equipments.
  30. 根据权利要求1-15中任一项所述的通信方法或16-28中任一项所述的通信设备,其特征在于,所述第一消息为超文本传输协议HTTP消息,所述目标标识位于所述HTTP消息的头部。The communication method according to any one of claims 1-15 or the communication device according to any one of 16-28, wherein the first message is a Hypertext Transfer Protocol HTTP message, and the target identifier Located at the head of the HTTP message.
  31. 一种通信方法,其特征在于,所述方法包括:A communication method, characterized in that the method includes:
    第一服务实例接收第三服务实例或第四服务实例发送的与第一会话相关的第一消息,所述第一消息包括目标标识;Receiving, by a first service instance, a first message related to a first session sent by a third service instance or a fourth service instance, the first message including a target identifier;
    所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例;Determining, by the first service instance, a second service instance that provides services for the first session according to the target identifier;
    所述第一服务实例向所述第二服务实例发送与所述第一会话相关的第二消息。The first service instance sends a second message related to the first session to the second service instance.
  32. 根据权利要求31所述的方法,其特征在于,The method according to claim 31, wherein:
    所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。The first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance, or is bound to a target service set, the target service set Including the second service instance, the third service instance, and the fourth service instance.
  33. 根据权利要求31或32所述的方法,其特征在于,所述目标标识包括所述第三服务实例的标识。The method according to claim 31 or 32, wherein the target identifier comprises an identifier of the third service instance.
  34. 根据权利要求33所述的方法,其特征在于,所述方法还包括:The method according to claim 33, further comprising:
    所述第一服务实例接收所述第三服务实例发送的第三消息,所述第三消息包括备份指 示信息,所述备份指示信息用于指示所述第二服务实例为所述第三服务实例提供备份或所述第二服务实例为所述第三服务实例服务的第一会话组提供备份;所述第一会话组包括所述第一会话;Receiving, by the first service instance, a third message sent by the third service instance, the third message includes backup instruction information, and the backup instruction information is used to indicate that the second service instance is the third service instance Providing a backup or the second service instance providing a backup for a first session group served by the third service instance; the first session group includes the first session;
    所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例包括:Determining, by the first service instance according to the target identifier, a second service instance that provides services for the first session includes:
    所述第三服务实例不可用时,所述第一服务实例根据所述备份指示信息和所述目标标识确定所述第二服务实例。When the third service instance is unavailable, the first service instance determines the second service instance according to the backup instruction information and the target identifier.
  35. 根据权利要求31-33中任一项所述的方法,其特征在于,The method according to any one of claims 31-33, wherein:
    所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例,包括:The determining, by the first service instance according to the target identifier, a second service instance that provides services for the first session includes:
    所述第一服务实例根据所述目标标识获取所述目标服务集合的标识;Acquiring, by the first service instance, an identifier of the target service set according to the target identifier;
    所述第一服务实例根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例,所述目标服务集合包括所述第二服务实例、所述第三服务实例和所述第四服务实例。Determining, by the first service instance, the second service instance from the target service set according to an identifier of the target service set, the target service set including the second service instance, the third service instance, and The fourth service instance.
  36. 根据权利要求35所述的方法,其特征在于,所述第一服务实例根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例包括:The method according to claim 35, wherein the determining, by the first service instance, the second service instance from the target service set according to the identifier of the target service set comprises:
    所述第一服务实例向网络存储功能NRF网元发送所述目标服务集合的标识,Sending, by the first service instance, an identifier of the target service set to a network storage function NRF network element,
    所述第一服务实例接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第二服务实例。Receiving, by the first service instance, an identifier of the second service instance sent by the NRF network element to determine the second service instance.
  37. 根据权利要求35所述的方法,其特征在于,所述方法包括:所述第一服务实例接收所述目标服务集合中的服务实例发送的第一信息,所述第一信息包括所述服务实例的标识和所述目标服务集合的标识;The method according to claim 35, wherein the method comprises: the first service instance receives first information sent by a service instance in the target service set, and the first information includes the service instance And the identity of the target service set;
    所述第一服务实例根据所述目标服务集合的标识,从所述目标服务集合中确定所述第二服务实例包括:The first service instance determining the second service instance from the target service set according to the identifier of the target service set includes:
    所述第一服务实例根据所述目标服务集合的标识,以及所述第一信息,确定所述第二服务实例。The first service instance determines the second service instance according to an identifier of the target service set and the first information.
  38. 根据权利要求35-37中任一项所述的方法,其特征在于,所述第一服务实例根据所述目标标识获取所述目标服务集合的标识,包括:The method according to any one of claims 35 to 37, wherein the first service instance obtaining the identifier of the target service set according to the target identifier comprises:
    所述第一服务实例从所述目标标识中获取所述目标服务集合的标识,所述目标标识包括所述目标服务集合的标识;或者,Obtaining, by the first service instance, an identifier of the target service set from the target identifier, where the target identifier includes an identifier of the target service set; or
    当所述目标标识包括所述第三服务实例的标识,所述第一服务实例根据所述第三服务实例的标识,获取所述目标服务集合的标识;所述目标服务集合包括所述第三服务实例。When the target identifier includes the identifier of the third service instance, the first service instance obtains the identifier of the target service set according to the identifier of the third service instance; the target service set includes the third service instance Service instance.
  39. 根据权利要求31-38中任一项所述的方法,其特征在于,所述目标标识包括所述第一会话组的标识,所述第一会话组包括所述第一会话;The method according to any one of claims 31 to 38, wherein the target identifier includes an identifier of the first conversation group, and the first conversation group includes the first conversation;
    所述第一服务实例根据所述目标标识,确定为所述第一会话提供服务的第二服务实例,包括:The determining, by the first service instance according to the target identifier, a second service instance that provides services for the first session includes:
    所述第一服务实例向网络存储功能NRF网元发送所述第一会话组的标识;Sending, by the first service instance, an identifier of the first conversation group to a network storage function NRF network element;
    所述第一服务实例接收所述NRF网元发送的所述第二服务实例的标识,以确定所述第 二服务实例。Receiving, by the first service instance, an identifier of the second service instance sent by the NRF network element to determine the second service instance.
  40. 根据权利要求31-39中任意一项所述的方法,其特征在于,所述第一服务实例为用户面功能UPF网元,所述第二服务实例、所述第三服务实例、所述第四服务实例为会话管理功能SMF网元。The method according to any one of claims 31 to 39, wherein the first service instance is a user plane function UPF network element, the second service instance, the third service instance, the first service instance The four service examples are session management function SMF network elements.
  41. 一种通信方法,其特征在于,所述方法包括:A communication method, characterized in that the method includes:
    第三服务实例向第一服务实例发送与第一会话相关的第一消息,所述第一消息包括目标标识,所述目标标识用于指示所述第一服务实例确定第二服务实例,所述第二服务实例用于为所述第一会话提供服务。The third service instance sends a first message related to the first session to the first service instance, the first message includes a target identifier, and the target identifier is used to instruct the first service instance to determine the second service instance, The second service instance is used to provide a service for the first session.
  42. 根据权利要求41中所述的方法,其特征在于,所述第一消息包括绑定方式指示信息,所述绑定方式指示信息用于指示所述第一会话与所述第三服务实例绑定,或与目标服务集合绑定,所述目标服务集合包括所述第二服务实例和所述第三服务实例。The method according to claim 41, wherein the first message includes binding mode indication information, and the binding mode indication information is used to indicate that the first session is bound to the third service instance Or bound to a target service set, where the target service set includes the second service instance and the third service instance.
  43. 根据权利要求41中所述的方法,其特征在于,包括:所述目标标识包括所述第三服务实例的标识。The method according to claim 41, comprising: the target identifier comprises an identifier of the third service instance.
  44. 根据权利要求41中所述的方法,其特征在于,包括:所述第三服务实例接收所述第一服务实例或网络存储功能NRF网元发送的能力指示信息,所述能力指示信息用于指示所述第一服务实例支持基于目标服务集合的负载均衡,所述目标服务集合包括所述第二服务实例和所述第三服务实例。The method according to claim 41, further comprising: receiving, by the third service instance, capability indication information sent by the first service instance or a network storage function NRF network element, and the capability indication information is used to indicate The first service instance supports load balancing based on a target service set, and the target service set includes the second service instance and the third service instance.
  45. 根据权利要求41中所述的方法,其特征在于,包括:所述第三服务实例向所述第一服务实例发送所述目标服务集合的标识和所述第三服务实例的标识,所述目标服务集合中包括所述第二服务实例和所述第三服务实例。The method according to claim 41, comprising: the third service instance sending the identifier of the target service set and the identifier of the third service instance to the first service instance, the target The service set includes the second service instance and the third service instance.
  46. 根据权利要求41中所述的方法,其特征在于,包括:所述第三服务实例向所述第一服务实例发送备份指示信息,备份指示信息用于指示第二服务实例为所述第三服务实例提供备份,或为所述第二服务实例服务的第一会话组提供备份,所述第一会话组包括所述第一会话。The method according to claim 41, comprising: the third service instance sending backup instruction information to the first service instance, the backup instruction information used to indicate that the second service instance is the third service The instance provides a backup, or provides a backup for a first session group served by the second service instance, the first session group including the first session.
  47. 一种通信设备,其特征在于,包括:收发单元,确定单元,其中收发单元用于接收第三服务实例或第四服务实例发送的与第一会话相关的第一消息,所述第一消息包括目标标识,所述确定单元用于根据所述目标标识,确定为所述第一会话提供服务的第二服务实例,所述收发单元还用于向所述第二服务实例发送与所述第一会话相关的第二消息。A communication device, comprising: a transceiver unit and a determining unit, wherein the transceiver unit is configured to receive a first message related to a first session sent by a third service instance or a fourth service instance, the first message includes A target identifier, the determining unit is configured to determine a second service instance providing a service for the first session according to the target identifier, and the transceiver unit is further configured to send the second service instance the Session related second message.
  48. 一种通信设备,其特征在于,包括:至少一个处理器和通信接口;所述通信接口用于所述通信装置与其他通信装置进行信息交互,当程序指令在所述至少一个处理器中执行时,使得所述通信装置实现如权利要求1到15,31到46中任一项所述的方法中在所述第一服务实例上的功能。A communication device, comprising: at least one processor and a communication interface; the communication interface is used for information communication between the communication device and other communication devices, and when a program instruction is executed in the at least one processor , So that the communication device implements the function on the first service instance in the method according to any one of claims 1 to 15, 31 to 46.
  49. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令在被计算机调用时,使所述计算机执行如权利要求1到15,31到46中任一权利要求所述的方法。A computer storage medium, characterized in that the computer storage medium stores computer-executable instructions, and when the computer-executable instructions are called by a computer, the computer executes the instructions in claims 1 to 15, 31 to 46 A method as claimed in any one of the claims.
  50. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1到15,31到46中任一项所述的方法。A computer program product containing instructions which, when run on a computer, causes the computer to perform the method according to any one of claims 1 to 15, 31 to 46.
  51. 一种通信芯片,其中存储有指令,当其在计算机设备上运行时,使得该通信芯片 执行如权利要求1到15,31到46中任一项所述的方法。A communication chip having instructions stored therein which, when run on a computer device, causes the communication chip to perform the method according to any one of claims 1 to 15, 31 to 46.
  52. 一种装置,用于执行如权利要求1到10中任一项所述方法。An apparatus for performing the method according to any one of claims 1 to 10.
  53. 一种装置,用于执行如权利要求11到15中任一项所述方法。An apparatus for performing the method according to any one of claims 11 to 15.
  54. 一种装置,用于执行如权利要求31到40中任一项所述方法。An apparatus for performing the method according to any one of claims 31 to 40.
  55. 一种装置,用于执行如权利要求41到46中任一项所述方法。An apparatus for performing the method according to any one of claims 41 to 46.
  56. 一种通信***,包括如权利要求16到30,47到49中任一项所述的通信设备,或者如权利要求52到55中任一项所述的装置。A communication system includes the communication device according to any one of claims 16 to 30, 47 to 49, or the device according to any one of claims 52 to 55.
PCT/CN2019/100418 2018-08-13 2019-08-13 Communication method and communication device WO2020034955A1 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
AU2019321895A AU2019321895C1 (en) 2018-08-13 2019-08-13 Communication method and communication device
EP19849892.5A EP3836515B1 (en) 2018-08-13 2019-08-13 Communication method and communication device for reducing complexity in processing of service instances.
JP2021507602A JP7196282B2 (en) 2018-08-13 2019-08-13 Communication method and communication device
KR1020217007395A KR102580499B1 (en) 2018-08-13 2019-08-13 Communication methods and communication devices
BR112021002797-1A BR112021002797A2 (en) 2018-08-13 2019-08-13 communication methods and apparatus, computer storage medium, chip system, communication system
US17/171,539 US11190602B2 (en) 2018-08-13 2021-02-09 Communication method and communications device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201810918830 2018-08-13
CN201810918830.0 2018-08-13
CN201910523684.6A CN110830543B (en) 2018-08-13 2019-06-17 Communication method and communication device
CN201910523684.6 2019-06-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/171,539 Continuation US11190602B2 (en) 2018-08-13 2021-02-09 Communication method and communications device

Publications (1)

Publication Number Publication Date
WO2020034955A1 true WO2020034955A1 (en) 2020-02-20

Family

ID=69525227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/100418 WO2020034955A1 (en) 2018-08-13 2019-08-13 Communication method and communication device

Country Status (1)

Country Link
WO (1) WO2020034955A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131311A (en) * 2010-01-19 2011-07-20 华为技术有限公司 Machine-to-machine communication method and device
CN107222392A (en) * 2017-06-02 2017-09-29 浙江嘉呼信息技术服务有限公司 Communication means, device, system and computer-readable storage medium
WO2018141266A1 (en) * 2017-02-06 2018-08-09 电信科学技术研究院 Routing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131311A (en) * 2010-01-19 2011-07-20 华为技术有限公司 Machine-to-machine communication method and device
WO2018141266A1 (en) * 2017-02-06 2018-08-09 电信科学技术研究院 Routing method and device
CN107222392A (en) * 2017-06-02 2017-09-29 浙江嘉呼信息技术服务有限公司 Communication means, device, system and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NTT DOCOMO: "New Solution: Temporary bindings between the service instances", SA WG2 MEETING #127-BIS S2-185461, vol. SA WG2, 2 June 2018 (2018-06-02), Newport Beach, US, pages 1 - 6, XP051536336 *

Similar Documents

Publication Publication Date Title
US11190602B2 (en) Communication method and communications device
US11838858B2 (en) System and method for UE context and PDU session context management
US11917498B2 (en) Communication method and communications apparatus
US20200367297A1 (en) Shared pdu session establishment and binding
EP3790305B1 (en) Session management for always-on sessions
CN112136294A (en) Message and system for influencing service route by application function
WO2019158010A1 (en) Resource management method, device and system
WO2022012310A1 (en) Communication method and apparatus
WO2020057401A1 (en) Method and apparatus for selecting network element
CN113115480A (en) Address information sending method, address information obtaining method, address information sending device, address information obtaining device, address information equipment and address information medium
CN111556539B (en) Method for executing UE, method for executing SMF entity and SMF entity
WO2019196811A1 (en) Communication method and related apparatus
US20230224770A1 (en) Communication method and apparatus
CN113206894A (en) DNS server discovery method and device, computer equipment and storage medium
CN111587586B (en) GTP tunnel supporting anchor-free backhaul
WO2022022322A1 (en) Method and device for accessing local network
CN110913437B (en) Communication method and network element
CN114071649B (en) Method and device for accessing local network
WO2020034955A1 (en) Communication method and communication device
RU2783809C2 (en) Communication method and communication device
WO2023143212A1 (en) Communication method and apparatus
WO2023273767A1 (en) Communication method, access and mobility management function entity, radio access network device, and computer-readable storage medium
WO2022141528A1 (en) Method and device for determining mec access point
WO2018201973A1 (en) Method and apparatus for message transmission
JP2023526325A (en) Data transfer support

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

Country of ref document: EP

Kind code of ref document: A1

DPE1 Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101)
ENP Entry into the national phase

Ref document number: 2021507602

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112021002797

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 20217007395

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2019849892

Country of ref document: EP

Effective date: 20210311

ENP Entry into the national phase

Ref document number: 2019321895

Country of ref document: AU

Date of ref document: 20190813

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 112021002797

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20210212