WO2022170948A1 - 实现通信连续性的方法及相关设备 - Google Patents

实现通信连续性的方法及相关设备 Download PDF

Info

Publication number
WO2022170948A1
WO2022170948A1 PCT/CN2022/073418 CN2022073418W WO2022170948A1 WO 2022170948 A1 WO2022170948 A1 WO 2022170948A1 CN 2022073418 W CN2022073418 W CN 2022073418W WO 2022170948 A1 WO2022170948 A1 WO 2022170948A1
Authority
WO
WIPO (PCT)
Prior art keywords
nat
target
source
data packet
address
Prior art date
Application number
PCT/CN2022/073418
Other languages
English (en)
French (fr)
Inventor
熊春山
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to EP22752110.1A priority Critical patent/EP4247024A4/en
Priority to KR1020237021991A priority patent/KR20230110801A/ko
Publication of WO2022170948A1 publication Critical patent/WO2022170948A1/zh
Priority to US17/987,792 priority patent/US11856650B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • H04L61/2528Translation at a proxy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2564NAT traversal for a higher-layer protocol, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2582NAT traversal through control of the NAT server, e.g. using universal plug and play [UPnP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/12Reselecting a serving backbone network switching or routing node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • H04W8/28Number portability ; Network address portability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/14Backbone network devices

Definitions

  • the present disclosure relates to the field of communication technologies, and in particular, to a method for realizing communication continuity, an application function device, a target application server, a session management function device, a user equipment, and a computer-readable storage medium.
  • the network address of the AS will change, and the communication between the UE (User Equipment, user equipment) and the AS will be interrupted, resulting in interruption of ongoing business communication. Therefore, a technical problem that needs to be solved is: when the UE moves, how to relocate the AS to maintain the continuity of the service (such as little communication delay); or, when the AS relocates but the UE does not move, how to maintain Continuity of business (eg, little communication delay).
  • the AS is migrated to the target AS network address of the target AS
  • the context of the target AS is changed, and all the contexts related to the IP (Internet Protocol, Internet Protocol) protocol stack of the source AS are seamlessly modified to the target AS.
  • IP Internet Protocol, Internet Protocol
  • this method is based on the premise that the AS has the ability to modify the IP protocol stack context of the kernel after migration. Therefore, this method is not a standardized and widely used technology, that is, this ability is not available. of.
  • Embodiments of the present disclosure provide a method for realizing communication continuity, an application function device, a target application server, a session management function device, a user equipment, and a computer-readable storage medium, which can maintain the communication continuity when the application server of the user equipment is migrated. continuity.
  • An embodiment of the present disclosure provides a method for realizing communication continuity, which is applied to an AF (Application Function) corresponding to a UE, and the UE has established a connection with a source AS by using the allocated source network address information of the UE; wherein, the The method includes: determining to migrate from the source AS to the target AS; transmitting a first NAT (Network Address Translation, network address translation) parameter to an SMF (Session Management Function, session management function), so that the SMF determines a target UPF (User Plane Function, user plane function)/PSA (PDU (Protocol Data Unit, Protocol Data Unit) Session Anchor, PDU Session Anchor), the target UPF/PSA is used to reallocate UE target network address information for the UE, and according to The first NAT parameter, the UE source network address information, and the UE target network address information generate a second NAT parameter, and return the second NAT parameter to the SMF, and according to the second NAT parameter, the received Perform
  • An embodiment of the present disclosure provides a method for implementing communication continuity, which is applied to a target AS; wherein the method includes: using AF to configure a third NAT parameter, where the third NAT parameter is a second NAT based on the target UPF/PSA parameters; obtain a data packet, wherein the data packet is a data packet generated after the target UPF/PSA performs NAT conversion according to the second NAT parameter or a data packet generated by the target AS; according to the third The NAT parameter performs NAT conversion on the data packet; if the data packet is a data packet generated by the target AS, the data packet after NAT conversion according to the third NAT parameter is sent to the target UPF/PSA , so that the target UPF/PSA performs NAT translation again according to the second NAT parameter.
  • An embodiment of the present disclosure provides a method for realizing communication continuity, which is applied to an SMF corresponding to a UE, and the UE has established a connection with a source AS by using the allocated source network address information of the UE; wherein, the method includes: obtaining the first information from the AF.
  • a NAT parameter determines the target UPF/PSA, so that the target UPF/PSA reassigns UE target network address information to the UE, and enables the UE to continue to use the UE source network address information; to the target UPF/PSA
  • the PSA sends the first NAT parameter so that the target UPF/PSA generates a second NAT parameter based on the first NAT parameter, the UE target network address information and the UE source network address information; from the target UPF /PSA receives the second NAT parameter, and the target UPF/PSA is used to perform NAT translation on the received data packet according to the second NAT parameter; pass the second NAT parameter to the AF, so that all
  • the AF configures a third NAT parameter for the target AS according to the second NAT parameter, and migrates from the source AS to the target AS, and the target AS is configured to The packet is NATed.
  • An embodiment of the present disclosure provides a method for realizing communication continuity, which is applied to a UE, and the UE has established a connection with a source AS by using the allocated UE source network address information; wherein, the method includes: transmitting an uplink to a target UPF/PSA data packet, so that the target UPF/PSA performs a first NAT translation on the upstream data packet according to the second upstream NAT parameter, generates a first NAT-translated upstream data packet, and sends the first NAT-translated upstream data packet to the target AS.
  • the target AS is used to perform second NAT conversion on the uplink data packets converted by the first NAT according to the third uplink NAT parameter; receive downlink data packets through the target UPF/PSA, wherein the target AS uses performing a third NAT conversion on the downlink data packet according to the third downlink NAT parameter, and the target UPF/PSA is configured to perform a fourth NAT conversion on the downlink data packet after the third NAT conversion according to the second downlink NAT parameter .
  • An embodiment of the present disclosure provides an application function device, including: one or more processors; a memory configured to store one or more programs, when the one or more programs are executed by the one or more processors , causing the one or more processors to implement the method as described in any of the above embodiments.
  • Embodiments of the present disclosure provide a target application server, including: one or more processors; and a memory configured to store one or more programs, when the one or more programs are executed by the one or more processors , causing the one or more processors to implement the method as described in any of the above embodiments.
  • An embodiment of the present disclosure provides a session management function device, including: one or more processors; a memory configured to store one or more programs, when the one or more programs are executed by the one or more processors , causing the one or more processors to implement the method as described in any of the above embodiments.
  • An embodiment of the present disclosure provides a user equipment, including: one or more processors; and a memory configured to store one or more programs, when the one or more programs are executed by the one or more processors, The one or more processors are caused to implement the method as described in any of the above embodiments.
  • Embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for realizing communication continuity as described in the foregoing embodiments.
  • An embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a memory configured to store one or more programs, when the one or more programs are executed by the one or more processors , causing the one or more processors to implement the method for implementing communication continuity as described in the above embodiments.
  • a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various optional implementations described above.
  • the AF determines to migrate the source AS to the target AS
  • the AF The first NAT parameter can be transmitted to the SMF, so that the SMF can reselect the target UPF/PSA after receiving the first NAT parameter, and the target UPF/PSA can re-allocate the UE with new UE target network address information, the target UPF/PSA
  • the PSA can generate the second NAT parameter according to the original UE source network address information of the UE and the reassigned UE target network address information, and the first NAT parameter, so that when the target UPF/PSA receives the data packet, the target UPF/PSA can The data packet may be NATed according to the second NAT parameter.
  • the target UPF/PSA can send the second NAT parameter to the SMF, and the SMF can pass the second NAT parameter to the AF, and the AF can further configure the third NAT parameter for the target AS according to the received second NAT parameter.
  • the target AS can perform NAT translation on the obtained data packet according to the third NAT parameter, that is, the same data packet undergoes two NAT translations of the target UPF/PSA and the target AS, so that the target AS finally The source address and destination address of the obtained data packet remain unchanged from the source address and destination address originally sent by the UE, or the source address and destination address of the data packet finally obtained by the UE are kept unchanged from the source address and destination address originally sent by the target AS. constant.
  • the network address translation technology can be used to maintain business continuity when the AS is migrated; Post-communication continuity technology is easy to standardize and deploy on a large scale.
  • FIG. 1 shows a schematic diagram of an EC architecture in the related art.
  • FIG. 2 shows a schematic diagram of another EC architecture in the related art.
  • FIG. 3 schematically shows a flowchart of a method for achieving communication continuity according to an embodiment of the present disclosure.
  • FIG. 4 schematically shows an interaction diagram of a method for implementing communication continuity according to an embodiment of the present disclosure.
  • FIG. 5 schematically shows an interaction diagram of a method for realizing communication continuity according to another embodiment of the present disclosure.
  • FIG. 6 schematically shows an interaction diagram of a method for realizing communication continuity according to yet another embodiment of the present disclosure.
  • FIG. 7 schematically shows a schematic diagram of the architecture of a target application server according to an embodiment of the present disclosure.
  • FIG. 8 schematically shows an interaction diagram of the method for realizing communication continuity based on the target application server shown in FIG. 7 .
  • FIG. 9 schematically shows a schematic diagram of the architecture of a target application server according to another embodiment of the present disclosure.
  • FIG. 10 schematically shows an interaction diagram of the method for realizing communication continuity based on the target application server shown in FIG. 9 .
  • FIG. 11 schematically shows a flow chart of a method for realizing communication continuity according to another embodiment of the present disclosure.
  • FIG. 12 schematically shows a flow chart of a method for realizing communication continuity according to yet another embodiment of the present disclosure.
  • FIG. 13 schematically shows a flow chart of a method for realizing communication continuity according to still another embodiment of the present disclosure.
  • FIG. 14 schematically shows a block diagram of an application function device according to an embodiment of the present disclosure.
  • FIG. 15 schematically shows a block diagram of a target application server according to an embodiment of the present disclosure.
  • FIG. 16 schematically shows a block diagram of a session management function device according to an embodiment of the present disclosure.
  • FIG. 17 schematically shows a block diagram of a user equipment according to an embodiment of the present disclosure.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments; in electronic equipment.
  • the above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by an electronic device, the electronic device enables the electronic device to implement the methods described in the following embodiments.
  • the electronic device can implement the various steps shown in FIG. 3 or FIG. 4 or FIG. 5 or FIG. 6 or FIG. 8 or FIG. 10 or FIG. 11 or FIG. 12 or FIG. 13 .
  • EC Edge Computing, Edge Computing minimizes the communication delay between the UE and the AS by deploying the AS to a location close to the UE.
  • the realization of EC includes two basic architectures, as shown in Figure 1 and Figure 2 respectively.
  • UPF User Plane Function, user plane function
  • PSA PDU (Protocol Data Unit, Protocol Data Unit) Session Anchor, PDU session anchor point
  • AN Access Network, access network
  • EAS Edge Application Server
  • UPF/PSA1 (hereinafter also referred to as source protocol data unit session anchor user plane function, abbreviated as source UPF/PSA) is deployed at the central location, a UL CL ( Uplink Classifier)/BP (Branching Point, branch point), and then branch out a UPF/PSA2 near the base station (also called the target protocol data unit session anchor point user plane function, abbreviated as target UPF/PSA, Sometimes it is also represented by PSA2), and the EAS is deployed in the same DN of the local access (Local Access) connected to PSA2.
  • source UPF/PSA1 hereinafter also referred to as source protocol data unit session anchor user plane function, abbreviated as source UPF/PSA
  • UL CL Uplink Classifier
  • BP Brain Point, branch point
  • Figure 1 does not use UL CL/BP to access EAS
  • Figure 2 uses UL CL/BP to access EAS.
  • NEF Network Exposure Function
  • Nnef refers to the Nnef message for obtaining services provided by NEF
  • PCF Policy Control Function
  • Npcf the Npcf message that obtains the services provided by PCF
  • AF Application Function, that is, application function
  • Naf refers to the Naf message that obtains the services provided by AF
  • AMF Access and Mobility Management Function, that is, access and mobility management functions
  • Namf refers to the Namf message for obtaining the services provided by AMF.
  • Session Management Function which is the session management function
  • Nsmf refers to the Nsmf message that obtains the services provided by SMF.
  • UE and AMF interact through N1 interface
  • AMF and AN communicate through N2 interface
  • SMF and UPF through N4 interface
  • AN and UPF through N3 interface
  • UPF and DN through N6 interface
  • UPFs communicate with each other through the N9 interface.
  • FIG. 3 schematically shows a flowchart of a method for achieving communication continuity according to an embodiment of the present disclosure.
  • the method provided in the embodiment of FIG. 3 can be applied to the application function AF corresponding to the UE, and the UE has established a connection with the source application server (represented as the source AS) by using the allocated UE source network address information, but the present disclosure is not limited to this .
  • the UE source network address information is the user equipment source network address information, which may include the UE source IP address (the source Internet Protocol address of the user equipment, denoted as IPue1) and the source UE port number (the source user equipment port number, denoted as PORTue1) .
  • IPue1 the source Internet Protocol address of the user equipment
  • PORTue1 the source user equipment port number
  • the method provided by the embodiment of the present disclosure may include the following steps.
  • step S310 it is determined to migrate from the source AS to the target AS (target application server).
  • Migration in this embodiment of the present disclosure refers to functionally moving the source AS to the target AS, which may include but not be limited to two forms:
  • Application migration which may include the following embodiments in FIG. 9 and FIG. 10 .
  • application migration is a process of moving software applications from one computing environment to another computing environment.
  • These include migrating applications from one data center to another, from a public cloud to a private cloud, or from a company's on-premises servers to a cloud service provider's computing environment.
  • Server migration refers to migrating IDC (Internet Data Center, Internet Data Center) servers, virtual machines, cloud hosts or other types of servers from other cloud platforms from one place to another (such as data centers, public clouds, private clouds) , central cloud, migration between edge clouds).
  • IDC Internet Data Center, Internet Data Center
  • Server migration may include, but is not limited to, physical server migration (similar to moving after computer hibernation) and virtual machine migration, that is, migrating a VM (Virtual Machine, virtual machine) from one place to another. The migration of this VM is divided into hot migration and cold migration.
  • physical server migration similar to moving after computer hibernation
  • virtual machine migration that is, migrating a VM (Virtual Machine, virtual machine) from one place to another. The migration of this VM is divided into hot migration and cold migration.
  • Migrating a physical server is to migrate the Migrate for Compute Engine Connector ISO from virtual or physical DVD (Digital Video Disc, high-density digital video disc), ROM (Read-Only Memory, read-only memory)/CD (Compact Disk, optical disk) and other devices.
  • the image is booted into RAM (Random Access Memory), which can migrate physical servers to the cloud.
  • the Migrate for Compute Engine connector maps the physical server's local storage and creates stub VMware virtual machines as management objects for Migrate for Compute Engine cloud migration operations.
  • Determining in the embodiments of the present disclosure means that the AF makes a decision to migrate from the source AS to the target AS, that is, the AF determines that the migration has not been implemented when migrating from the source AS to the target AS, but implements the migration in subsequent steps.
  • (E)AS1 is used to represent the source application server or source edge application server, and the corresponding source AS network address information may include the source AS IP address (represented as IPas1) and the source AS port number (represented as PORTas1);
  • (E)AS2 Indicates the target application server or the target edge application server, and the corresponding target AS network address information may include the target AS IP address (represented as IPas2) and the target AS port number (represented as PORTas2).
  • determining to migrate from the source AS to the target AS may include: receiving an event open early notification message from the SMF; and determining to migrate from the source AS to the target according to the event open early notification message AS.
  • determining to migrate from the source AS to the target AS may include: receiving a data impact early notification message from a NEF, wherein the NEF is configured to receive an event open early notification message from the SMF, and according to the The event opening early notification message sends the data impact early notification message to the AF.
  • the first NAT parameter is transmitted to the SMF, so that the SMF determines the target UPF/PSA, and the target UPF/PSA is used to reassign UE target network address information to the UE, and according to the first NAT parameters, the UE source network address information and the UE destination network address information to generate a second NAT parameter, return the second NAT parameter to the SMF, and perform NAT translation on the received data packet according to the second NAT parameter .
  • the AF transmits the first NAT parameter to the SMF, which is used to instruct to perform NAT translation.
  • the SMF reselects a UPF/PSA2 different from the UPF/PSA1 as the target UPF/PSA.
  • UE target network address information ie, user equipment target network address information
  • the UE target network address information may include the UE target IP address (represented as IPue2) and the target UE Port number (denoted as PORTue2).
  • the UPF/PSA2 may generate the second NAT parameter according to the first NAT parameter, the UE source network address information and the UE target network address information, and return the second NAT parameter to the SMF.
  • UPF/PSA2 can also perform different NAT translations on the received data packets (which may include the uplink data packets sent by the UE, and may also include the downlink data packets sent by the target AS that have been NATed once) according to the second NAT parameter. .
  • the first NAT parameter may include target AS network address information of the target AS, where the target AS network address information includes a target AS IP address and a target AS port number.
  • transmitting the first NAT parameter to the SMF may include: sending an event opening application relocation message to the SMF, where the event opening application relocation message carries the target AS IP address and the target AS The port number.
  • transmitting the first NAT parameter to the SMF may include: sending a data-affecting application relocation information message to the network opening function NEF, where the data-affecting application relocation information message carries the target AS IP address and all The target AS port number, so that the NEF sends an event opening application relocation message to the SMF, and the event opening application relocation message carries the target AS IP address and the target AS port number.
  • transmitting the first NAT parameter to the SMF may include sending a policy authorization setup/update request message to the policy control function PCF.
  • the policy authorization establishment/update request message carries the target AS IP address and the target AS port number, so that the PCF sends a session management policy control update notification message to the SMF.
  • the session management policy control update notification message carries the target AS IP address and the target AS port number.
  • step S330 the second NAT parameter is obtained from the SMF.
  • step S340 configure a third NAT parameter for the target AS according to the second NAT parameter, and migrate from the source AS to the target AS, so that the target AS can perform an operation on the target AS according to the third NAT parameter.
  • the above data packets are NATed.
  • the data packet may include an uplink data packet sent by the UE.
  • the second NAT parameters include second uplink NAT parameters.
  • the target UPF/PSA may be used to perform a first NAT translation on the upstream data packet according to the second upstream NAT parameter.
  • the third NAT parameters may include third upstream NAT parameters.
  • the source AS network address information of the source AS may include the source AS IP address.
  • configuring the third NAT parameter for the target AS according to the second NAT parameter may include: generating the third upstream NAT parameter according to the second upstream NAT parameter.
  • the target AS includes a Middle-Box and an inner target AS.
  • the intermediate box and the internal target AS are different network entities and communicate through network connections.
  • the network address of the intermediate box is the target AS IP address.
  • configuring third NAT parameters for the target AS according to the second NAT parameters, and migrating from the source AS to the target AS may include: configuring the third upstream NAT parameters to the middle box so that the middle box performs second NAT conversion on the upstream data packets after the first NAT conversion according to the third upstream NAT parameters, obtains the upstream data packets after the second NAT conversion, and
  • the network to which the internal target AS is connected sends the uplink data packet converted by the second NAT to the internal target AS; the source AS IP address of the source AS is used as the network address of the internal target AS, so that the The internal target AS receives the second NAT-translated upstream data packet from the intermediate box through the network connected to the intermediate box.
  • the UL IP data packet obtained by the target AS at this time has the same source IP address, source port number (Port Number), destination IP address, and destination port number (Port Number) as the UL IP data packet obtained by (E)AS1, the The continuity of the UL IP packet data connection can be realized, so that the continuity of the UL IP service can be realized.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter.
  • configuring a third NAT parameter for the target AS according to the second NAT parameter, and migrating from the source AS to the target AS may further include: generating the third NAT parameter according to the second downlink NAT parameter Downlink NAT parameters; configure the third downlink NAT parameters to the intermediate box, so that the intermediate box performs third NAT translation on the downlink data packets sent by the internal target AS according to the third downlink NAT parameters , and send the downlink data packet converted by the third NAT to the target UPF/PSA, and the target UPF/PSA is further configured to perform the first step on the downlink data packet converted by the third NAT according to the second downlink NAT parameter.
  • the downlink data packets received by the UE have the same source IP address, source Port Number, destination IP address, and destination Port Number as the downlink data packets received before. Realize the continuity of DL IP services.
  • the target AS may include a first NAT middleware (Middleware) and an internal source AS.
  • configuring third NAT parameters for the target AS according to the second NAT parameters, and migrating from the source AS to the target AS may include: configuring the third uplink NAT parameters to the first NAT middleware, so that the first NAT middleware performs second NAT translation on the upstream data packets converted by the first NAT according to the third upstream NAT parameters, obtains the upstream data packets after the second NAT conversion, and Sending the second NAT-translated uplink data packet to the internal source AS; after migrating the source AS to the target AS, the image of the operating environment of the source AS (for example, through the virtual machine migration technology, the source AS actually keeps unchanged) to the internal source AS (so that the network address of the internal source AS is the source AS IP address), so that the internal source AS receives the second NAT translation through the first NAT middleware subsequent upstream packets.
  • the image of the operating environment of the source AS for example, through
  • the UL IP packet data connection can be realized. Continuity, so that the continuity of UL IP service can be realized.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter.
  • configuring a third NAT parameter for the target AS according to the second NAT parameter, and migrating from the source AS to the target AS may further include: generating the third NAT parameter according to the second downlink NAT parameter Downlink NAT parameters; configure the third downlink NAT parameters to the first NAT middleware, so that the first NAT middleware performs the downlink data packets sent by the internal source AS according to the third downlink NAT parameters.
  • the third NAT converts, and sends the downlink data packets converted by the third NAT to the target UPF/PSA, and the target UPF/PSA is further used to perform the downlink data packets converted by the third NAT according to the second downlink NAT parameters.
  • the data packet is subjected to a fourth NAT conversion to obtain a fourth NAT converted downlink data packet and send the fourth NAT converted downlink data packet to the UE.
  • the downlink data packets received by the UE have the same source IP address, source Port Number, destination IP address, and destination Port Number as the downlink data packets received before. Realize the continuity of DL IP services.
  • the target AS may include a target IP protocol stack and an internal source AS runtime program
  • the target IP protocol stack may include a second NAT middleware.
  • configuring a third NAT parameter for the target AS according to the second NAT parameter, and migrating from the source AS to the target AS may include: sending the third uplink NAT parameter to the target IP protocol stack, so as to configure the third upstream NAT parameter to the second NAT middleware, and the second NAT middleware performs second NAT conversion, to obtain the upstream data packet whose destination address is the source AS IP address; copy the operating program of the source AS to the target AS to obtain the internal source AS operating program, and the internal source AS operating program As the running program of the source AS (making the network address of the target IP protocol stack the IP address of the target AS), so that the internal source AS running program receives the destination address as the source from the target IP protocol stack The upstream packet of the AS IP address.
  • the UL IP packet data connection can be realized. Continuity, so that the continuity of UL IP service can be realized.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter.
  • configuring a third NAT parameter for the target AS according to the second NAT parameter, and migrating from the source AS to the target AS may further include: generating the third NAT parameter according to the second downlink NAT parameter Downlink NAT parameters; sending the third downlink NAT parameters to the target IP protocol stack, so as to configure the third downlink NAT parameters to the second NAT middleware, the second NAT middleware according to the
  • the third downlink NAT parameter performs third NAT translation on the downlink data packets sent by the internal source AS running program, and sends the downlink data packets after the third NAT translation to the target UPF/PSA, and the target UPF/PSA It is also used to perform fourth NAT conversion on the downlink data packets converted by the third NAT according to the second downlink NAT parameters, obtain the
  • the UE source network address information may include a UE source IP address and a source UE port number
  • the UE target network address information may include a UE target IP address and a target UE port number
  • the source AS network The address information may also include the source AS port number.
  • the second uplink NAT parameter can be used to instruct the target UPF/PSA to convert the source address of the uplink data packet from the UE source IP address to the UE target IP address, and convert the uplink data packet
  • the destination address is converted from the source AS IP address to the target AS IP address
  • the third upstream NAT parameter can be used to instruct the target AS to convert the source address of the upstream data packet after the first NAT conversion from the The UE target IP address is converted into the UE source IP address, and the destination address of the uplink data packet converted by the first NAT is converted from the target AS IP address to the source AS IP address; or, the second uplink NAT
  • the parameter can be used to instruct the target UPF/PSA to convert the source address of the uplink data packet from the UE source IP address to the UE target IP address, and convert the destination address of the uplink data packet from the source AS
  • the IP address is converted into the target AS IP address, and the destination port of the upstream data packet is converted from the source AS port number to the destination
  • the address is converted into the source AS IP address, and the destination port of the upstream data packet converted by the first NAT is converted from the target AS port number to the source AS port number; or, the second upstream NAT parameter can be It is used to instruct the target UPF/PSA to convert the source address of the uplink data packet from the UE source IP address to the UE target IP address, and convert the destination address of the uplink data packet from the source AS IP address.
  • the third uplink NAT parameter can be used to instruct the target AS to
  • the source address of the uplink data packet converted by the first NAT is converted from the UE target IP address to the UE source IP address, and the destination address of the uplink data packet converted by the first NAT is converted from the target AS IP address to
  • the source port of the uplink data packet converted by the first NAT is converted from the target UE port number to the source UE port number; or, the second uplink NAT parameter can be used to indicate the
  • the target UPF/PSA converts the source address of the uplink data packet from the UE source IP address to the UE target IP address, and converts the destination address of the uplink data packet from the source AS IP address to the target AS IP address, convert the source port of the uplink data packet from the source UE port number to the target UE port number, and convert the destination port of the uplink data packet
  • the AS IP address converts the source port of the uplink data packet converted by the first NAT from the target UE port number to the source UE port number, convert the destination port of the uplink data packet converted by the first NAT from the target port number
  • the AS port number is converted to the source AS port number; or, the second uplink NAT parameter may be used to instruct the target UPF/PSA to convert the source address of the uplink data packet from the UE source IP address to the source IP address of the source.
  • the UE target IP address, and the destination port of the uplink data packet is converted from the source AS port number to the target AS port number;
  • the third uplink NAT parameter can be used to instruct the target AS to convert the first NAT
  • the source address of the converted uplink data packet is converted from the UE target IP address to the UE source IP address, and the destination port of the uplink data packet converted by the first NAT is converted from the target AS port number to the source AS port number; or, the second uplink NAT parameter may be used to instruct the target UPF/PSA to translate the source address of the uplink data packet from the UE source IP address to the UE target IP address,
  • the source port of the uplink data packet is converted from the source UE port number to the target UE port number, and the destination port of the uplink data packet is converted from the source AS port number to the target AS port number;
  • the third uplink NAT parameter may be used to instruct the target AS to convert the source address of the uplink data packet converted by the first NAT from the UE target
  • the third downlink NAT parameter may be used to instruct the target AS to translate the source address of the downlink data packet from the source AS IP address to the target AS IP address, The destination address of the downlink data packet is converted from the UE source IP address to the UE target IP address; the second downlink NAT parameter may be used to indicate that the target UPF/PSA converts the downlink data packet after the third NAT conversion.
  • the source address is converted from the target AS IP address to the source AS IP address, and the destination address of the downlink data packet converted by the third NAT is converted from the UE target IP address to the UE source IP address; or, all
  • the third downlink NAT parameter can be used to instruct the target AS to convert the source address of the downlink data packet from the source AS IP address to the target AS IP address, and convert the destination address of the downlink data packet from the
  • the UE source IP address is converted into the UE target IP address, and the destination port of the downlink data packet is converted from the source UE port number to the target UE port number;
  • the second downlink NAT parameter can be used to indicate
  • the target UPF/PSA converts the source address of the downlink data packet converted by the third NAT from the target AS IP address to the source AS IP address, and converts the destination address of the downlink data packet converted by the third NAT from the target AS IP address to the source AS IP address.
  • the NAT parameter can be used to instruct the target AS to convert the source address of the downlink data packet from the source AS IP address to the target AS IP address, and to convert the destination address of the downlink data packet from the UE source IP address.
  • the address is converted into the target IP address of the UE, and the source port of the downlink data packet is converted from the source AS port number of the source AS to the target AS port number of the target AS;
  • the second downlink NAT parameter can be For instructing the target UPF/PSA to convert the source address of the downlink data packet after the third NAT conversion from the target AS IP address to the source AS IP address, and the purpose of converting the downlink data packet after the third NAT conversion
  • the address is converted from the UE target IP address to the UE source IP address, and the source port of the downlink data packet after the third NAT conversion is converted from the target AS port number to the source AS port number; or, all
  • the third downlink NAT parameter can be used to instruct the target AS to convert the source address of the downlink data packet from the source AS IP address to the target AS IP address, and convert the destination address of the downlink data packet from the converting the UE source IP address to the UE target IP address, converting the source port of the downlink data packet from the source
  • the source AS port number, and the destination port of the downlink data packet converted by the third NAT is converted from the target UE port number to the source UE port number; or, the third downlink NAT parameter can be used to indicate the The target AS converts the source address of the downlink data packet from the source ASIP address to the target AS IP address, and converts the destination port of the downlink data packet from the source UE port number to the target UE port number; the first The second downlink NAT parameter may be used to instruct the target UPF/PSA to convert the source address of the downlink data packet converted by the third NAT from the target AS IP address to the source AS IP address, and convert the The destination port of the downlink data packet is converted from the target UE port number to the source UE port number; or, the third downlink NAT parameter may be used to instruct the target AS to change the source address of the downlink data packet from the source address of the downlink data packet.
  • the source AS IP address is converted into the target AS IP address
  • the source port is converted from the source AS port number of the source AS to the target AS port number of the target AS
  • the destination port of the downlink data packet is converted from the source UE.
  • the port number is converted into the target UE port number;
  • the second downlink NAT parameter can be used to instruct the target UPF/PSA to convert the source address of the downlink data packet after the third NAT conversion from the target AS IP address to the
  • the source AS IP address, the source port of the downlink data packet converted by the third NAT is converted from the target AS port number to the source AS port number, and the destination port of the downlink data packet converted by the third NAT is converted from the target AS port number.
  • the target UE port number is converted into the source UE port number.
  • the NAT translation in this embodiment of the present disclosure may include any one of the following six situations:
  • the target UPF/PSA converts the source address of the uplink data packet from IPue1 to IPue2 according to the second uplink NAT parameter, and the destination address of the uplink data packet from the Described IPas1 is converted into IPas2, obtains the upstream data packet after the first NAT conversion, and sends it to the target AS;
  • the target AS receives the upstream data packet after the first NAT conversion from the target UPF/PSA, according to the third upstream NAT
  • the parameter converts the source address of the upstream data packet after the first NAT conversion from the IPue2 to IPue1, and the destination address from IPas2 to IPas1, and obtains the upstream data packet after the second NAT conversion.
  • the uplink data packet after NAT conversion is the uplink data packet originally sent by the UE, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target AS generates a downlink data packet to be sent to the UE.
  • the source address of the downlink data packet is IPas1 and the destination address is IPue1.
  • the target AS performs a third NAT conversion on the downlink data packet according to the third downlink NAT parameter, that is, the downlink data
  • the source address of the packet is converted from IPas1 to IPas2, and the destination address is converted from IPue1 to IPue2, and the third NAT converted downstream data packet is obtained and sent to the target UPF/PSA.
  • the target UPF/PSA receives the downlink data packet converted by the third NAT, and converts the source address of the downlink data packet converted by the third NAT from IPas2 to IPas1 according to the second downlink NAT parameter, and converts the destination address from IPue2 to IPue1 , to obtain the fourth NAT-translated downlink data packet.
  • the downlink data packet after the fourth NAT conversion is the downlink data packet originally sent by the target AS, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target UPF/PSA After the target UPF/PSA receives the uplink data packet sent by the UE, the target UPF/PSA converts the source address of the uplink data packet from IPue1 to IPue2 and the destination address from the IPas1 to IPue2 according to the second uplink NAT parameter.
  • the destination port is converted from PORTas1 to PORTas2 to obtain the first NAT-translated upstream data packet and send it to the target AS; after the target AS receives the first NAT-translated upstream data packet from the target UPF/PSA,
  • the source address of the first NAT-translated upstream data packet is converted from the IPue2 to IPue1
  • the destination address is converted from IPas2 to IPas1
  • the destination port is converted from PORTas2 to PORTas1, so as to obtain the second NAT-translated data packet. of upstream packets.
  • the uplink data packet after the second NAT conversion is the uplink data packet originally sent by the UE, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target AS generates a downlink data packet to be sent to the UE.
  • the source address of the downlink data packet is IPas1, the destination address is IPue1, and the destination port is PORTue1.
  • the target AS performs a third NAT translation on the downlink data packet according to the third downlink NAT parameter. , that is, the source address of the downlink data packet is converted from IPas1 to IPas2, the destination address is converted from IPue1 to IPue2, and the destination port is converted from PORTue1 to PORTue2, and the third NAT converted downlink data packet is obtained and sent to the target UPF/PSA.
  • the target UPF/PSA receives the downlink data packet converted by the third NAT, and converts the source address converted by the third NAT from IPas2 to IPas1 according to the second downlink NAT parameters, the destination address is converted from IPue2 to IPue1, and the destination port is from PORTue2 is converted to PORTue1 to obtain downstream data packets after the fourth NAT translation.
  • the downlink data packet after the fourth NAT conversion is the downlink data packet originally sent by the target AS, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target UPF/PSA After the target UPF/PSA receives the uplink data packet sent by the UE, the target UPF/PSA converts the source address of the uplink data packet from IPue1 to IPue2 and the destination address from the IPas1 to IPue2 according to the second uplink NAT parameter.
  • the source port is converted from PORTue1 to PORTue2, obtains the first NAT-translated upstream data packet, and sends it to the target AS; after the target AS receives the first NAT-translated upstream data packet from the target UPF/PSA, it will
  • the third upstream NAT parameter converts the source address of the first NAT-translated upstream data packet from the IPue2 to IPue1, the destination address from IPas2 to IPas1, and the source port from PORTue2 to PORTue1, so as to obtain the second NAT-translated upstream data packet. upstream packets. After two NAT conversions, the uplink data packet after the second NAT conversion is the uplink data packet originally sent by the UE, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target AS generates a downlink data packet to be sent to the UE.
  • the source address of the downlink data packet is IPas1, the destination address is IPue1, and the source port is PORTas1.
  • the target AS performs a third NAT translation on the downlink data packet according to the third downlink NAT parameter , that is, the source address of the downlink data packet is converted from IPas1 to IPas2, the destination address is converted from IPue1 to IPue2, and the source port is converted from PORTas1 to PORTas2, and the downlink data packet after the third NAT conversion is obtained and sent to the target UPF/PSA.
  • the destination UPF/PSA receives the downlink data packet converted by the third NAT, and converts the source address converted by the third NAT from IPas2 to IPas1 according to the second downlink NAT parameters, the destination address is converted from IPue2 to IPue1, and the source port is from PORTas2 is translated to PORTas1 to obtain the fourth NAT-translated downstream packets.
  • the downlink data packet after the fourth NAT conversion is the downlink data packet originally sent by the target AS, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target UPF/PSA After the target UPF/PSA receives the uplink data packet sent by the UE, the target UPF/PSA converts the source address of the uplink data packet from IPue1 to IPue2 and the destination address from the IPas1 to IPue2 according to the second uplink NAT parameter.
  • the source port is converted from PORTue1 to PORTue2, the destination port is converted from PORTas1 to PORTas2, and the upstream data packet after the first NAT conversion is obtained and sent to the target AS; the target AS receives the first NAT conversion from the target UPF/PSA
  • the source address of the upstream data packet converted by the first NAT is converted from the IPue2 to IPue1, the destination address is converted from IPas2 to IPas1, and the source port is converted from PORTue2 to PORTue1, The destination port is converted from PORTas2 to PORTas1 to obtain the second NAT-translated upstream data packets.
  • the uplink data packet after the second NAT conversion is the uplink data packet originally sent by the UE, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target AS generates a downlink data packet to be sent to the UE.
  • the source address of the downlink data packet is IPas1, the destination address is IPue1, the source port is PORTas1, and the destination port is PORTue1.
  • the target AS determines the downlink data packet according to the third downlink NAT parameter. Perform the third NAT conversion, that is, the source address of the downlink data packet is converted from IPas1 to IPas2, the destination address is converted from IPue1 to IPue2, the source port is converted from PORTas1 to PORTas2, and the destination port is converted from PORTue1 to PORTue2, after obtaining the third NAT conversion and sent to the target UPF/PSA.
  • the target UPF/PSA receives the downlink data packet converted by the third NAT, and converts the source address converted by the third NAT from IPas2 to IPas1 according to the parameters of the second downlink NAT, and the destination address converted by the third NAT is from IPue2 Converted to IPue1, the source port converted by the third NAT is converted from PORTas2 to PORTas1, and the destination port converted by the third NAT is converted from PORTue2 to PORTue1, so as to obtain downlink data packets converted by the fourth NAT.
  • the downlink data packet after the fourth NAT conversion is the downlink data packet originally sent by the target AS, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target UPF/PSA After the target UPF/PSA receives the uplink data packet sent by the UE, the target UPF/PSA converts the source address of the uplink data packet from IPue1 to IPue2 and the destination port from PORTas1 to PORTas2 according to the second uplink NAT parameter.
  • the target AS converts the first NAT according to the third upstream NAT parameter
  • the source address of the upstream data packet is converted from the IPue2 to IPue1, and the destination port is converted from PORTas2 to PORTas1, so as to obtain the upstream data packet after the second NAT conversion.
  • the uplink data packet after the second NAT conversion is the uplink data packet originally sent by the UE, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target AS generates a downlink data packet to be sent to the UE.
  • the source address of the downlink data packet is IPas1 and the destination port is PORTue1.
  • the target AS performs a third NAT translation on the downlink data packet according to the third downlink NAT parameter, that is, the downlink data
  • the source address of the packet is converted from IPas1 to IPas2, and the destination port is converted from PORTue1 to PORTue2, and the downstream data packet after the third NAT conversion is obtained and sent to the target UPF/PSA.
  • the destination UPF/PSA receives the downlink data packet converted by the third NAT, and converts the source address converted by the third NAT from IPas2 to IPas1 according to the second downlink NAT parameters, and the destination port is converted from PORTue2 to PORTue1 to obtain the first Four NAT-translated downstream packets.
  • the downlink data packet after the fourth NAT conversion is the downlink data packet originally sent by the target AS, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target UPF/PSA After the target UPF/PSA receives the uplink data packet sent by the UE, the target UPF/PSA converts the source address of the uplink data packet from IPue1 to IPue2 and the source port from PORTue1 to PORTue2 according to the second uplink NAT parameter.
  • the destination port is converted from PORTas1 to PORTas2, obtains the upstream data packet after the first NAT conversion, and sends it to the target AS; after the target AS receives the upstream data packet after the first NAT conversion from the target UPF/PSA, according to the third
  • the upstream NAT parameter converts the source address of the upstream data packet converted by the first NAT from the IPue2 to IPue1, converts the source port of the upstream data packet converted by the first NAT from PORTue2 to PORTue1, and converts the first NAT converted upstream data packet.
  • the destination port of the upstream data packet is converted from PORTas2 to PORTas1 to obtain the upstream data packet after the second NAT translation. After two NAT conversions, the uplink data packet after the second NAT conversion is the uplink data packet originally sent by the UE, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the target AS generates a downlink data packet to be sent to the UE.
  • the source address of the downlink data packet is IPas1, the source port is PORTas1, and the destination port is PORTue1.
  • the target AS performs a third NAT translation on the downlink data packet according to the third downlink NAT parameter. , that is, the source address of the downlink data packet is converted from IPas1 to IPas2, the source port is converted from PORTas1 to PORTas2, and the destination port is converted from PORTue1 to PORTue2, and the third NAT converted downlink data packet is obtained and sent to the target UPF/PSA.
  • the target UPF/PSA receives the downlink data packet converted by the third NAT, converts the source address converted by the third NAT from IPas2 to IPas1 according to the parameters of the second downlink NAT, and converts the source port converted by the third NAT from IPas2 to IPas1.
  • PORTas2 is converted to PORTas1
  • the destination port converted by the third NAT is converted from PORTue2 to PORTue1 to obtain downlink data packets converted by the fourth NAT.
  • the downlink data packet after the fourth NAT conversion is the downlink data packet originally sent by the target AS, that is, it has the same source IP address, source Port Number, destination IP address, and destination Port Number.
  • the destination address is not converted, and at this time, it can be considered that the target AS and the source AS are in the same local area network, that is, IPas1 is equal to IPas2.
  • the above 4) is used as an example for illustration, that is, the source address, source port, destination address and destination port of the uplink data packet or the downlink data packet are simultaneously converted, but the present disclosure is not limited to this.
  • the AF when the UE has established a connection with the source application server AS by using the allocated UE source network address information and communicated with the source application server AS, if the AF determines to migrate from the source AS to the target AS, the AF can Transmit the first NAT parameter to the SMF, so that the SMF can reselect the target UPF/PSA after receiving the first NAT parameter, and the target UPF/PSA can re-allocate the UE with new UE target network address information, the target UPF/PSA
  • the second NAT parameter may be generated according to the original UE source network address information of the UE and the reassigned UE target network address information, and according to the first NAT parameter, so that when the target UPF/PSA receives the data packet, the target UPF/PSA can The data packet may be NATed according to the second NAT parameter.
  • the target UPF/PSA can send the second NAT parameter to the SMF, and the SMF can pass the second NAT parameter to the AF, and the AF can further configure the third NAT parameter for the target AS according to the received second NAT parameter.
  • the target AS can perform NAT translation on the obtained data packet according to the third NAT parameter, that is, the same data packet undergoes two NAT translations between the target UPF/PSA and the target AS, so that the target AS can
  • the source address and destination address of the data packet finally obtained remain unchanged from the source address and destination address originally sent by the UE, or the source address and destination address of the data packet finally obtained by the UE are the same as those originally sent by the target AS. constant.
  • the network address translation technology can be used to maintain service continuity when the AS is migrated; Post-communication continuity technology is easy to standardize and deploy on a large scale.
  • FIG. 4 schematically shows an interaction diagram of a method for implementing communication continuity according to an embodiment of the present disclosure.
  • step 1 of the embodiment of FIG. 4 the UE establishes a PDU session through SMF, UPF/PSA1.
  • step 2 of the embodiment in FIG. 4 the UE establishes an IP connection with (E)AS1 (the corresponding network address is represented as IPas1 ) to perform service interaction.
  • UPF/PSA1 assigns an IP address to the UE, marked as IPue1.
  • the UE establishes an IP connection with an (E)AS1 through the assigned IPue1 to perform IP communication.
  • E E
  • step 3a of the embodiment of FIG. 4 the SMF sends Nsmf_EventExposure_Notify (early notification) to the AF.
  • the early notification is represented as Early Notification
  • the late notification hereinafter is represented as Late Notification
  • the SMF finds that the UE is far from its original location, it determines to trigger the migration of (E)AS1 to a target application server (E)AS2 that is closer to the UE, so it sends Nsmf_EventExposure_Notify (Early Notification) to the AF, that is, an event open early notification message.
  • step 4 of the embodiment in FIG. 4 after receiving the Nsmf_EventExposure_Notify (Early Notification) from the SMF, the AF determines to migrate (E)AS1 to (E)AS2.
  • the AF may determine to migrate (E)AS1 to (E)AS2 according to the Nsmf_EventExposure_Notify (Early Notification) sent by the SMF, but in other embodiments, the AF may also trigger the (E)AS2 by itself.
  • E) AS1 migrates to another target application server (E) AS2 (for example, (E) AS1 is about to be overloaded), so step 3a in FIG. 4 is optional, but is not limited in the present disclosure.
  • step 5a of the embodiment of FIG. 4 the AF sends Nsmf_EventExposure_AppRelocationInfo (IPas2 and PORTas2) to the SMF.
  • step 3a in FIG. 4 the AF sends Nsmf_EventExposure_AppRelocationInfo (IPas2 and PORTas2) to the SMF, that is, an event open application relocation message, and the event open application relocation message includes (E) the IPas2 of AS2.
  • the Port Number (port number) of the (E)AS2 that communicates with the UE may also be included, that is, PORTas2.
  • Step 5a in Figure 4 is also optional.
  • step 6 of the embodiment of FIG. 4 the AF sends an Npcf_PolicyAuthorization_Create/Update request (IPas2 and PORTas2) to the PCF.
  • steps 3a and 5a in FIG. 4 are not executed, but the AF initiates the routing update command, the AF sends the Npcf_PolicyAuthorization_Create/Update Request (request) to the PCF, that is, the policy authorization establishment/update request message, and the policy authorization IPas2 is included in the setup/update request message.
  • PORTas2 can also be included.
  • step 7 of the embodiment of FIG. 4 after receiving the Npcf_PolicyAuthorization_Create/Update request (IPas2 and PORTas2) from the AF, the PCF sends Npcf_SMPolicyControl_UpdateNotify (IPas2 and PORTas2) to the SMF.
  • the PCF sends Npcf_SMPolicyControl_UpdateNotify, that is, a session management policy control update notification message, to the SMF, and the session management policy control update notification message includes IPas2.
  • Npcf_SMPolicyControl_UpdateNotify that is, a session management policy control update notification message
  • the session management policy control update notification message includes IPas2.
  • PORTas2 can also be included. Steps 6 and 7 in Figure 4 are optional.
  • Step 8a in the embodiment of FIG. 4 is optional, the anchor relocation process of the SSC mode 2 or SSC mode 3 of the PDU session (the allocated IPue2 is not delivered to the UE).
  • SMF determines to initiate PDU Session SSC (Session and Service Continuity, session and service continuity) Mode (mode) 2 or SSC Mode 3 Anchor relocation, then for SSC Mode 2 and SSC Mode 3, SMF selects a new PSA2 , PSA2 assigns a new IPue2 address to this UE, but this IPue2 address may not be passed to the UE, that is, the UE still uses the previous IPue1 (the UE is required to use the previous IP address), but in the following step 17, PSA2 will Convert the previous IPue1 to the new IPue2 through NAT.
  • PSA2 will Convert the previous IPue1 to the new IPue2 through NAT.
  • PSA2 allocates the corresponding CN Tunnel Information (the core network tunnel information, where CN is the Core Network, that is, the core network), and transmits the core network tunnel information to the SMF, and the SMF selects a new UL CL (Uplink Classifer)/BP (Branching Point) As the target UL CL/BP, the core network tunnel information is then configured to the UL CL/BP and the RAN (Radio AN, radio access network, not shown in Figure 4).
  • CN the Core Network
  • BP Brainnching Point
  • CN Tunnel Information may include GTP-U (General packet radio service Tunnel Protocol-User, user plane General Radio Packet Service (GPRS) Tunneling Protocol) tunnel IP address (GTP-U tunnel IP address) and TEID (Tunnel Endpoint Identifier) , tunnel endpoint identification) information (TEID information).
  • GTP-U General packet radio service Tunnel Protocol-User, user plane General Radio Packet Service (GPRS) Tunneling Protocol
  • GTP-U tunnel IP address GTP-U tunnel IP address
  • TEID Tunnel Endpoint Identifier
  • TEID information tunnel endpoint identification
  • step 8b of the embodiment of Fig. 4 SMF sends N4 session establishment request message (N4 Session Establishment Request) to PSA2, and PSA2 returns N4 session establishment response message (N4 Session Establishment Response) to SMF.
  • N4 Session Establishment Request N4 Session Establishment Request
  • PSA2 returns N4 session establishment response message (N4 Session Establishment Response) to SMF.
  • step 8a If step 8a is not executed, but the SMF determines to add or modify the PSA2 of the UL CL/BP, the SMF selects a new PSA2, and the PSA2 assigns a new IPue2 address to the UE, but does not pass this IPue2 address to the UE, that is, The UE still uses the previous IPue1, but in the following step 17, PSA2 will convert the previous IPue1 to the new IPue2 through NAT. PSA2 allocates the corresponding CN Tunnel Information and transmits the CN Tunnel Information to the SMF.
  • the manner in which the AF transmits the first NAT parameter to the SMF is not limited to the several manners exemplified above.
  • the SMF also sends indication information to PSA2 for instructing PSA2 to buffer the UL data packet before receiving the data transmission notification.
  • step 9 of the embodiment of Fig. 4 the SMF sends an N4 session establishment request message (N4 Session Establishment Request) to the UL CL/BP, and the UL CL/BP returns an N4 session establishment response message (N4 Session Establishment Response) to the SMF.
  • N4 Session Establishment Request an N4 session establishment request message
  • N4 Session Establishment Response an N4 session establishment response message
  • the SMF selects a new UL CL/BP, and then configures the CN Tunnel Information allocated by PSA2 to the UL CL/BP and RAN.
  • step 10 of the embodiment of FIG. 4 if the UE sends the UL IP, that is, the uplink data packet to the UL CL/BP at this time, and the UL CL/BP sends the received uplink data packet to the PSA2, then the PSA2 buffers it first. For the upstream data packet, PSA2 does not immediately send the upstream data packet to N6, but buffers the upstream data packet until after step 15.
  • step 11 of the embodiment of FIG. 4 the SMF sends an N4 session command (N4 Session Command) to PSA2, instructing PSA2 to perform NAT translation and redirection.
  • N4 Session Command N4 Session Command
  • SMF sends a NAT instruction to PSA2, instructing to convert IPas1 and PORTas1 of (E)AS1 to IPas2 and PORTas2 of (E)AS2. It can also instruct to convert the UE's IPue1 to the UE's new IPue2 at the same time.
  • PSA2 returns an N4 session response (N4 Session Response) to the SMF, and the N4 Session Response carries a second NAT parameter, and the second NAT parameter includes IPas2.
  • N4 Session Response N4 Session Response
  • the second NAT parameter includes IPas2.
  • PORTas2 can also be included.
  • the PSA2 replies to the SMF, and can simultaneously indicate in the second NAT parameter to convert the UE's PORTue1 to PORTue2.
  • the second NAT parameter may include a second uplink NAT parameter and a second downlink NAT parameter, wherein the second uplink NAT parameter refers to a parameter used by PSA2 to perform NAT conversion on the uplink data packet sent by the UE, and the second downlink NAT parameter refers to PSA2 is a parameter used to perform NAT translation on the downlink data packets received from the target AS (here refers to the downlink data packets that have undergone the third NAT translation).
  • the SMF sends Nsmf_EventExposure_Notify (Late Notification, NAT parameters (IPas2 and PORTas2)) to the AF, that is, an event opening late notification message.
  • Nsmf_EventExposure_Notify Late Notification, NAT parameters (IPas2 and PORTas2)
  • Nsmf_EventExposure_Notify (Late Notification, NAT parameters (IPas2 and PORTas2)
  • the SMF notifies the AF that the switch from (E)AS1 to (E)AS2 can be performed.
  • NAT parameters include NAT parameters in the event opening late notification message, such as instructing to convert (E)AS1's IPas1 and PORTas1 to (E)AS2's IPas2 and PORTas2, convert UE's IPue1 to UE's new IPue2, and convert UE's PORTue1 to PORTue2.
  • step 14 of the embodiment of FIG. 4 the AF migrates (E)AS1 to (E)AS2.
  • Nsmf_EventExposure_Notify Late Notification, NAT parameters (IPas2 and PORTas2)
  • AF migrates (E)AS1 to (E)AS2, and the IP address of (E)AS2 has been changed to IPas2.
  • step 15 of the embodiment of Fig. 4 SMF sends N4 Session Command (that is, data transmission notification) to PSA2 to notify PSA2 that it can start to send upstream data packets and receive downstream data packets through the N6 interface, and PSA2 also needs to perform NAT translation.
  • N4 Session Command that is, data transmission notification
  • step 16 of the embodiment of FIG. 4 the UE sends a UL IP data packet (that is, the above-mentioned UL data packet), that is, an uplink data packet, to the UL CL/BP, and the UL CL/BP then forwards the uplink data packet to PSA2.
  • a UL IP data packet that is, the above-mentioned UL data packet
  • the UL CL/BP then forwards the uplink data packet to PSA2.
  • the UE continues to send a UL data packet.
  • the source address of the UL data packet is IPue1, the destination address is IPas1, the source port is PORTue1, and the destination port is PORTas1.
  • the UL data packet may also include a transmission protocol, which is expressed as UL IP data Packet (source IPue1, destination IPas1, source port PORTue1, destination port PORTas1, transport protocol).
  • step 17 in the embodiment of FIG. 4 the PSA2 performs a first NAT translation on the upstream data packet according to the second upstream NAT parameter to obtain the upstream data packet after the first NAT translation.
  • PSA2 performs the first NAT translation of the UL IP packet, converts IPas1 and PORTas1 to IPas2 and PORTas2, converts IPue1 to IPue2, converts PORTue1 to PORTue2, and obtains the first NAT-translated UL IP packet (source IPue2 , destination IPas2, source port PORTue2, destination port PORTas2, transmission protocol).
  • PSA2 sends the first NAT-translated upstream data packet to (E)AS2.
  • PSA2 sends the first NAT-translated UL IP data packet (source IPue2, destination IPas2, source port PORTue2, destination port PORTas2, transmission protocol) to (E)AS2.
  • (E) AS2 receives the first NAT-transformed UL IP data packet (source IPue2, destination IPas2, source port PORTue2, destination port PORTas2, transmission protocol), it will also perform second NAT translation on it to Obtain UL IP data packets (source IPue1, destination IPas1, source port PORTue1, destination port PORTas1, transmission protocol), see Figure 6- Figure 10 below for details. Since the UL IP data packet obtained by (E)AS2 and the UL IP data packet obtained by (E)AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, the UL IP packet can be realized The continuity of data connection can realize the continuity of UL IP service.
  • step 19 of the embodiment of Fig. 4 (E) AS2 generates a DL IP data packet, that is, a downlink data packet, and sends the downlink data packet to PSA2.
  • (E) AS2 generates a downlink data packet, for example, it can be expressed as a DL IP data packet (source IPas1, destination IPue1, source port PORTas1, destination port PORTue1, transmission protocol); (E) AS2 and after performing the third NAT translation on it , the downlink data packet converted by the third NAT is sent to PSA2, for example, the downlink data packet converted by the third NAT can be represented as a DL IP data packet (source IPas2, destination IPue2, source port PORTas2, destination port PORTue2, transmission protocol), see Figure 6- Figure 10 below for details.
  • PSA2 processes the third NAT-translated downlink data packet received from the target AS according to the second downlink NAT parameters.
  • the fourth NAT conversion is performed to obtain the downlink data packets after the fourth NAT conversion.
  • the downlink data packet converted by the third NAT may be represented as a DL IP data packet (source IPas2, destination IPue2, source port PORTas2, destination port PORTue2, transmission protocol), and PSA2 converts the received third NAT again after Do the fourth NAT conversion on the downlink data packets to obtain DL IP data packets (source IPas1, destination IPue1, source port PORTas1, destination port PORTue1, transmission protocol).
  • PSA2 sends the fourth NAT-translated downlink data packet to the UL CL/BP, and the UL CL/BP forwards it to the UE.
  • PSA2 sends DL IP packets (source IPas1, destination IPue1, source port PORTas1, destination port PORTue1, transport protocol) to UL CL/BP, and then reach UE through RAN. Since the DL IP data packet received by the UE and the DL data packet sent by (E)AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, the DL IP packet data connection can be realized. so that the continuity of DL IP services can be realized.
  • both UL and DL IP data packets can realize the continuity of IP packet data connection, so that the continuity of UL and DL IP services can be realized, so the continuity of the entire IP service is guaranteed.
  • the information of the UL and DL data packets corresponding to the above steps 16 and 21 is consistent with the information of the UL and DL data packets in step 2, that is, the source address, destination address, source port and destination port have not changed. , so the IP connection is maintained, so business continuity is guaranteed.
  • the following illustrates the way in which the IP connection can still be maintained after (E) the IP address of AS2 is changed to IPas2 through the embodiments of FIG. 6 to FIG. 10 .
  • FIG. 5 schematically shows an interaction diagram of a method for realizing communication continuity according to another embodiment of the present disclosure.
  • step 3a in FIG. 4 is replaced by steps 3b and 3c
  • step 5a in FIG. 4 is replaced by steps 5b and 5c
  • FIG. 4 is replaced by steps 13a and 13b in step 13.
  • step 3b of the embodiment of FIG. 5 the SMF sends Nsmf_EventExposure_Notify (Early Notification), that is, an event exposure early notification message, to the NEF.
  • Nsmf_EventExposure_Notify Error Notification
  • NEF sends Nnef_TrafficInfluence_Notify (Early Notification) to AF, that is, an early notification message of data influence.
  • step 5b of the embodiment of FIG. 5 the AF sends Nnef_TrafficInfluence_AppRelocationInfo (IPas2 and PORTas2), that is, a data-influenced application relocation information message, to the NEF.
  • Nnef_TrafficInfluence_AppRelocationInfo IPas2 and PORTas2
  • NEF receives Nnef_TrafficInfluence_AppRelocationInfo (IPas2 and PORTas2)
  • NEF sends Nsmf_EventExposure_AppRelocationInfo (IPas2 and PORTas2) to SMF, that is, event exposure application relocation message.
  • step 13a of the embodiment of FIG. 5 the SMF sends Nsmf_EventExposure_Notify (late notification, NAT parameters (IPas2 and PORTas2)), that is, an event open late notification message, to the NEF.
  • Nsmf_EventExposure_Notify late notification, NAT parameters (IPas2 and PORTas2)
  • NEF sends Nnef_TrafficInfluence_Notify (late notification, NAT parameters (IPas2 and PORTas2)) to AF, that is, data influence late notification information.
  • FIG. 6 schematically shows an interaction diagram of a method for realizing communication continuity according to yet another embodiment of the present disclosure.
  • the flow of the embodiment in FIG. 6 is refined on the AF and (E)AS2 sides based on FIG. 4 or FIG. 5 .
  • (E)AS2 may include M-B (Middle-Box, middle box) and I-(E)AS2 (internal target AS). That is, the application (application) of (E)AS1 and the user context data of the entire operating system running on it are migrated to I-(E)AS2, that is, I-(E)AS2 keeps the original (E)AS1 exactly the same.
  • the application and system context is equivalent to moving (E)AS1 to I-(E)AS2, and at the same time, deploying an intermediate box in front of I-(E)AS2, so that the intermediate box and I-(E)AS2 form a (E) AS2.
  • M-B and I-(E)AS2 are different network entities and communicate through network connection.
  • the I-(E)AS2 keeps the IPas1 address of the (E)AS1 unchanged, and the context of the connection with the UE does not change.
  • step 14 can be divided into step 14-1 and step 14-2, and after step 18, step 18-1 and step 18 can be further included -2, step 19-1 and step 19-2 may be further included before step 19.
  • step 14-1 of the embodiment of FIG. 6 the AF sets the third NAT parameter on the M-B.
  • the third NAT parameter may include a third upstream NAT parameter and a third downstream NAT parameter, where the third upstream NAT parameter refers to the target AS's translation of the first NAT received from the target UPF/PSA.
  • a parameter for performing NAT translation on an upstream data packet, and the third downstream NAT parameter refers to a parameter for performing NAT translation on a downstream data packet generated by the target AS itself.
  • the AF can generate the third upstream NAT parameter according to the second upstream NAT parameter provided in step 13, generate the third downstream NAT parameter according to the second downstream NAT parameter, and then generate the third upstream NAT parameter and the third downstream NAT parameter Sent to M-B to instruct M-B to perform NAT translation corresponding to PSA2.
  • the AF may also directly send the second upstream NAT parameter and the second downstream NAT parameter to the target AS, and the target AS itself generates the third upstream NAT parameter according to the second upstream NAT parameter, according to The second downstream NAT parameter generates the third downstream NAT parameter.
  • the first NAT translation of PSA2 is: convert the destination address IPas1 of the UL data packet to IPas2, convert the destination port PORTas1 to PORTas2, convert the source address IPue1 of the UL data packet to IPue2, source port PORTue1 Converted to PORTue2 (see step 17 in Figure 4), then AF requires M-B to perform the second NAT conversion of the UL data packet after the first NAT conversion: convert IPas2 and PORTas2 into IPas1 and PORTas1, and IPue2 and PORTue2 into IPue1 and PORTue1 (see step 18-1 below).
  • the UL IP packet data can be realized.
  • the continuity of the connection so that the continuity of the UL IP service can be realized.
  • the fourth NAT translation of PSA2 is: translate the source address IPas2 of the DL data packet after the third NAT translation into IPas1, translate the source port PORTas2 into PORTas1, and translate the DL data after the third NAT translation into PORTas1.
  • the destination address IPue2 of the packet is converted to IPue1
  • the destination port IPORTue2 is converted to PORTue1 (see step 20)
  • AF requires M-B to perform the third NAT conversion of the DL data packet: convert IPue1 and PORTue1 to IPue2 and PORTue2, and convert IPas1 to PORTas1 for IPas2 and PORTas2.
  • the DL IP packet data connection can be realized. Continuity, so that the continuity of DL IP services can be achieved.
  • step 14-2 of the embodiment in FIG. 6 AF migrates (E)AS1 to I-(E)AS2, and I-(E)AS2 keeps all the IP contexts of the original (E)AS1, that is, the address of IPas1 No change, nor does the context of the connection with the UE change.
  • I-(E)AS2 migrates the user context of (E)AS1 to I-(E)AS2, and I-(E)AS2 maintains the original IP context of (E)AS1, that is, the address of IPas1 remains unchanged, and the connection with the UE is The context does not change, that is, the IP address of I-(E)AS2 is also IPas1 at this time.
  • the external IP address of M-B is IPas2, and M-B and I-(E)AS2 are combined to form (E)AS2, so the external network address of (E)AS2 is IPas2.
  • step 18-1 of the embodiment of FIG. 6 after receiving the upstream data packet after the first NAT translation from the PSA2, the M-B performs a second NAT translation on the upstream data packet after the first NAT translation to obtain the second NAT Converted upstream packets.
  • M-B performs the corresponding second NAT conversion on the UL data packets converted by the first NAT, converts IPas2 and PORTas2 into IPas1 and PORTas1, and converts IPue2 and PORTue2 into IPue1 and PORTue1, that is, obtains UL IP data packets (source IPue1, destination IPas1, source port PORTue1, destination port PORTas1, transport protocol).
  • step 18-2 in the embodiment of FIG. 6 the M-B sends the upstream data packet to the I-(E)AS2.
  • the M-B forwards the second NAT-translated UL data packet (that is, the UL data packet sent by the UE) to the I-(E)AS2, because the source address, destination address, source port, destination port and transmission protocol of the UL data packet are not available. changes, so that the I-(E)AS2 can continue to communicate with the UE seamlessly.
  • I-(E)AS2 In step 19-1 of the embodiment of FIG. 6, I-(E)AS2 generates a downlink data packet and sends it to M-B.
  • the I-EAS2 sends a DL data packet, for example, it is assumed to be a DL IP data packet (source IPas1, destination IPue1, source port PORTas1, destination port PORTue1, transmission protocol).
  • step 19-2 of the embodiment of FIG. 6 after receiving the downlink data packet from the I-(E)AS2, the M-B performs a third NAT conversion on the downlink data packet to generate a downlink data packet after the third NAT conversion, and send the downlink data packet converted by the third NAT to PSA2.
  • M-B performs the third NAT conversion on the DL data packets, converts IPue1 and PORTue1 into IPue2 and PORTue2, and converts IPas1 and PORTas1 into IPas2 and PORTas2, that is, generates the third NAT-translated DL IP data packets (source IPas2, destination IPue2 , source port PORTas2, destination port PORTue2, transmission protocol).
  • PSA2 performs the fourth NAT conversion on the received downlink data packet converted by the third NAT, and then sends the downlink data packet after the fourth NAT conversion to the UE, because the DL IP data packet received by the UE at this time is the same as ( E)
  • the DL IP data packets sent by AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, so that the continuity of the data connection of the DL IP packet can be realized, so that the continuity of the DL IP service can be realized. .
  • both UL and DL IP data packets can realize the continuity of IP packet data connection, so that the continuity of UL and DL IP services can be realized, so the continuity of the entire IP service is guaranteed.
  • FIG. 6 The other steps in FIG. 6 can be referred to the above-mentioned embodiments of FIG. 4 and FIG. 5 .
  • FIG. 7 schematically shows a schematic diagram of the architecture of a target application server according to an embodiment of the present disclosure.
  • AS2 may include NAT M-W (NAT Middle Ware, namely the first NAT middleware, abbreviated as M-W in Figure 8) and I-(E) AS1 (internal source AS), at (E)
  • the target application server where AS2 is located adopts a technology similar to VM (Virtual Machine, virtual machine), that is, (E)AS1 is migrated to (E)AS2 as a VM, which is represented by I-(E)AS1.
  • VM Virtual Machine, virtual machine
  • a NAT M-W is connected between the IP protocol stack 2 on the (E)AS2 target application server and the I-(E)AS1, wherein the functions performed by the NAT M-W are the same as those performed by the M-B in the embodiment of FIG. 6 .
  • the I-(E)AS1 has the IP protocol stack 1 of the (E)AS1.
  • NAT M-W can modify (E) the IP protocol stack 2 of AS2, so that NAT M-W obtains the first NAT-transformed upstream data packet sent by PSA2, and performs second NAT translation on the first NAT-translated upstream data packet to obtain upstream packets.
  • NAT M-W transmits upstream data packets to I-(E)AS1 through its API (Application Programming Interface).
  • FIG. 8 schematically shows an interaction diagram of the method for realizing communication continuity based on the target application server shown in FIG. 7 .
  • step 14 can be divided into step 14-1 and step 14-2, and after step 18, step 18-1 and step 18 can be further included -2, step 19-1 and step 19-2 may be further included before step 19.
  • the AF sets the third NAT parameter on the M-W.
  • the third NAT parameter may include a third upstream NAT parameter and a third downstream NAT parameter.
  • the AF can generate the third upstream NAT parameter according to the second upstream NAT parameter provided in step 13, generate the third downstream NAT parameter according to the second downstream NAT parameter, and then generate the third upstream NAT parameter and the third downstream NAT parameter Sent to M-W to instruct M-W to perform NAT translation corresponding to PSA2.
  • step 14-2 of the embodiment of FIG. 8 AF migrates (E)AS1 to I-(E)AS1 (as VM), and I-(E)AS1 (as VM) keeps the original (E)AS1
  • the IP context that is, the IPas1 address does not change, nor does the connection context with the UE change.
  • step 18-1 in the embodiment of FIG. 8 after receiving the first NAT-translated upstream data packet from PSA2, the M-W performs second NAT translation on the first NAT-translated upstream data packet to obtain the second NAT Converted upstream packets.
  • the M-W sends the upstream data packet to the I-(E)AS1 (as the VM). Since the UL IP data packet obtained by (E)AS2 and the UL IP data packet obtained by (E)AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, the UL IP packet can be realized The continuity of data connection can realize the continuity of UL IP service.
  • I-(E)AS1 (as VM) generates downlink data packets and sends them to M-W.
  • step 19-2 of the embodiment of FIG. 8 after receiving the downlink data packet from the I-(E)AS1 (as the VM), the M-W performs a third NAT conversion on the downlink data packet, and generates a third NAT converted data packet. downlink data packets, and send the third NAT-transformed downlink data packets to PSA2, so that PSA2 performs fourth NAT translation on the third NAT-transformed downlink data packets.
  • Fig. 8 is similar to the flowchart of the embodiment of Fig. 6, except that M-B is replaced by NAT M-W, and the interaction between M-B and I-(E)AS2 is an external interface, while the interaction between NAT M-W and I-(E)AS1 is internal interface.
  • PSA2 performs the fourth NAT conversion on the received downlink data packet after the third NAT conversion, and then sends the downlink data packet to the UE, because the DL IP data packet received by the UE at this time is the same as the DL IP data packets have the same source IP address, source Port Number, destination IP address, and destination Port Number, so that the continuity of the data connection of the DL IP packet can be realized, so that the continuity of the DL IP service can be realized.
  • both UL and DL IP data packets can realize the continuity of IP packet data connection, so that the continuity of UL and DL IP services can be realized, so the continuity of the entire IP service is guaranteed.
  • FIG. 9 schematically shows a schematic diagram of the architecture of a target application server according to another embodiment of the present disclosure.
  • (E)AS2 may include (E)AS2's IP protocol stack 2 (target IP protocol stack) and I-(E)AS1 (internal source AS running application (running Application)), IP protocol stack 2
  • It further includes NAT M-W (second NAT middleware, abbreviated as M-W in Figure 10), which migrates from the running program of (E)AS1 to (E)AS2, and (E)AS2 has I-(E)AS1, I -(E)AS1 is used as the running Application of (E)AS1, does not have IP protocol stack 1 of (E)AS1, and IP protocol stack 2 obtains the first NAT-translated upstream data packet sent by PSA2, and uses IP protocol stack 2
  • the NAT M-W performs second NAT conversion on the upstream data packet converted by the first NAT to obtain the upstream data packet converted by the second NAT.
  • the IP protocol stack 2 transmits this up
  • the I-(E)AS1 in the embodiment of FIG. 9 is not a VM of (E)AS1 ((E)AS1’s VM is on this VM with (E) Copy (copy)) of the operating environment of AS1, here is to migrate the user context of (E)AS1 to (E)AS2, but because the IP address of (E)AS2 has changed, at this time, in (E)AS2 Install a NAT Middle Ware middleware on the computer (equivalent to installing a VPN (Virtual Private Network, virtual private network) software in the computer), map IPas2 of (E)AS2 to IPas1, that is, from I-(E)AS1 From the looks of it, the IP address of the entire server is IPas1, but in fact, its external IP address is IPas2. Please note that there is no IP stack 1 on the I-(E)AS1 at this time. On the other hand, the I-(E)AS1 in the embodiment of FIG. 9 is not a VM of (E)AS1 ((E
  • FIG. 10 schematically shows an interaction diagram of the method for realizing communication continuity based on the target application server shown in FIG. 9 .
  • step 14 can be divided into step 14-1 and step 14-2, and after step 18, step 18-1 and step 18 can be further included -2, step 19-1 and step 19-2 may be further included before step 19.
  • the AF sets the third NAT parameter (including the third upstream NAT parameter and the third downstream NAT parameter) on the IP protocol stack 2, and the IP protocol stack 2 further includes M-W.
  • the AF may generate the third NAT parameter according to the second NAT parameter, and then send the third NAT parameter to the IP protocol stack 2, and the IP protocol stack 2 transmits the third NAT parameter to the M-W within it.
  • step 14-2 of the embodiment of FIG. 10 AF migrates (E)AS1 to I-(E)AS1 (internal source AS running program), and I-(E)AS1 (internal source AS running program) keeps the original All IP contexts of (E)AS1, that is, the address of IPas1 remains unchanged, and the context of the connection with the UE does not change.
  • step 18-1 of the embodiment of FIG. 10 after receiving the first NAT-translated upstream data packet from PSA2, the IP protocol stack 2 uses the M-W therein to perform a second NAT on the first NAT-translated upstream data packet conversion, and obtain the uplink data packet converted by the second NAT.
  • the IP protocol stack 2 sends the upstream data packet to the I-(E)AS1 (an internal source AS running program). Since the UL IP data packet obtained by (E)AS2 and the UL IP data packet obtained by (E)AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, the UL IP packet can be realized The continuity of data connection can realize the continuity of UL IP service.
  • step 19-1 in the embodiment of FIG. 10 the I-(E)AS1 (internal source AS running program) generates a downlink data packet and sends it to the IP protocol stack 2 .
  • step 19-2 of the embodiment of FIG. 10 after receiving the downlink data packet from the I-(E)AS1 (internal source AS running program), the IP protocol stack 2 uses the M-W in the downlink data packet to perform the first processing on the downlink data packet. Three NAT conversions are performed to generate a third NAT converted downlink data packet, and the IP protocol stack 2 sends the third NAT converted downlink data packet to PSA2.
  • PSA2 performs the fourth NAT conversion on the received downlink data packet converted by the third NAT, and then sends the downlink data packet after the fourth NAT conversion to the UE, because the DL IP data packet received by the UE at this time is the same as ( E)
  • the DL IP data packets sent by AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, so that the continuity of the data connection of the DL IP packet can be realized, so that the continuity of the DL IP service can be realized. .
  • both UL and DL IP data packets can realize the continuity of IP packet data connection, so that the continuity of UL and DL IP services can be realized, so the continuity of the entire IP service is guaranteed.
  • Fig. 10 is similar to the flowchart of the embodiment of Fig. 6, except that M-B is replaced by NAT M-W, and the interaction between M-B and I-(E)AS2 is an external interface, while the interaction between NAT M-W and I-(E)AS1 is internal interface.
  • the new IPas2 of (E)AS2 is made NAT translation (transforming the IP address of (E)AS), then perform NAT translation on the external IP address of (E)AS2 again, and convert the new external IP address after NAT translation to the pre-migration (E)AS1 IPas1, so only the external IP address corresponding to (E)AS2 has changed (that is, changed from IPas1 to IPas2), but the (E)AS inside (E)AS2 (the above I-(E)AS2 or I-( E) The IP address of AS1) itself remains unchanged, that is, it remains IPas1, thereby realizing the communication continuity of the IP address.
  • the previous network such as a 5G network
  • the new IPas2 of (E)AS2 is NATed and the port parameters are also NATed (that is, to (E) The IP address of the AS and (E) AS destination port and/or UE source port have been converted), then the external IP address of (E) AS2 is NATed again, and the new external IP address after NAT conversion is converted. It is the IPas1 of (E)AS1 before the migration, and the changed destination port and/or source port is subjected to NAT translation, so that only the external IP address and destination port and/or source port corresponding to (E)AS2 have changed ( i.e.
  • the IP address itself remains unchanged, that is, it remains IPas1, the destination port remains PORTas1, and/or the source port remains PORTue1, thereby realizing the communication continuity of the IP address.
  • FIG. 11 schematically shows a flow chart of a method for realizing communication continuity according to another embodiment of the present disclosure.
  • the method provided in the embodiment of FIG. 11 can be applied to the target application server, that is, the target AS.
  • the method provided by the embodiment of the present disclosure may include the following steps.
  • step S1110 use the AF to configure a third NAT parameter to migrate from the source AS to the target AS, where the third NAT parameter is generated according to the second NAT parameter of the target UPF/PSA.
  • step S1120 a data packet is obtained, wherein the data packet is a data packet generated by the target UPF/PSA after performing NAT translation according to the second NAT parameter or a data packet generated by the target AS.
  • step S1130 NAT translation is performed on the data packet according to the third NAT parameter.
  • step S1140 if the data packet is a data packet generated by the target AS, the data packet after NAT conversion according to the third NAT parameter is sent to the target UPF/PSA, so that the target UPF can /PSA performs NAT translation again according to the second NAT parameter.
  • the data packet may include an uplink data packet sent by the UE
  • the second NAT parameter may include a second uplink NAT parameter
  • the target UPF/PSA may be used according to the second uplink NAT parameter
  • the first NAT conversion is performed on the upstream data packet
  • the third NAT parameter may include a third upstream NAT parameter
  • the source AS network address information of the source AS may include the source AS IP address
  • the AF may be used to
  • the second upstream NAT parameter generates the third upstream NAT parameter.
  • the target AS may include an intermediate box and an inner target AS.
  • the intermediate box and the internal target AS are different network entities and communicate through network connections.
  • the network address of the intermediate box is the target AS IP address of the target AS.
  • the configuring the third NAT parameter by using the AF to migrate from the source AS to the target AS may include: the intermediate box obtains the third uplink NAT parameter from the AF;
  • the source AS IP address of the source AS is used as the network address of the internal target AS.
  • the performing NAT conversion on the data packet according to the third NAT parameter may include: the middle box body receiving the first NAT-translated upstream data packet from the target UPF/PSA; the middle box body; The body performs second NAT translation on the upstream data packets converted by the first NAT according to the third upstream NAT parameters, and obtains the upstream data packets after the second NAT conversion; the intermediate box body communicates with the internal target AS. The connected network sends the second NAT-translated uplink data packet to the internal target AS.
  • the UL IP packet obtained by (E)AS2 and the UL IP data packet obtained by (E)AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, the UL IP packet can be realized
  • the continuity of data connection can realize the continuity of UL IP service.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter
  • the The AF may also be configured to generate the third downlink NAT parameter according to the second downlink NAT parameter.
  • the configuring the third NAT parameter by using the AF may further include: acquiring the third downlink NAT parameter from the AF by the intermediate box.
  • performing the NAT conversion on the data packet according to the third NAT parameter may further include: the internal target AS sends the downlink data packet to the intermediate box; the intermediate box according to the third NAT parameter
  • the downlink NAT parameter performs a third NAT conversion on the downlink data packet; the intermediate box sends the downlink data packet after the third NAT conversion to the target UPF/PSA, so that the target UPF/PSA can perform the third NAT conversion on the downlink data packet according to the third NAT conversion.
  • the second downlink NAT parameter performs a fourth NAT conversion on the downlink data packet converted by the third NAT, obtains the downlink data packet converted by the fourth NAT, and sends the downlink data packet after the fourth NAT conversion to the UE.
  • the DL IP packet data connection can be realized. so that the continuity of DL IP services can be realized.
  • both UL and DL IP data packets can realize the continuity of IP packet data connection, so that the continuity of UL and DL IP services can be realized, so the continuity of the entire IP service is guaranteed.
  • the target AS may include a first NAT middleware and an internal source AS.
  • using the AF to configure the third NAT parameter and migrating from the source AS to the target AS may include: the first NAT middleware obtains the third uplink NAT parameter from the AF; The image of the operating environment of the source AS is copied to the internal source AS (making the network address of the internal source AS the IP address of the source AS).
  • performing NAT translation on the data packet according to the third NAT parameter may include: the first NAT middleware receiving the first NAT-translated upstream data packet from the target UPF/PSA; the first NAT middleware; The NAT middleware performs a second NAT conversion on the upstream data packet converted by the first NAT according to the third upstream NAT parameter, and obtains the upstream data packet after the second NAT conversion; the first NAT middleware converts the The second NAT-translated upstream data packet is sent to the internal source AS.
  • the UL IP packet obtained by (E)AS2 and the UL IP data packet obtained by (E)AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, the UL IP packet can be realized
  • the continuity of data connection can realize the continuity of UL IP service.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter
  • the The AF is further configured to generate the third downlink NAT parameter according to the second downlink NAT parameter.
  • using the AF to configure the third NAT parameter may further include: the first NAT middleware acquiring the third downlink NAT parameter from the AF.
  • the performing NAT translation on the data packet according to the third NAT parameter may further include: the internal source AS sending the downlink data packet to the first NAT middleware; the first NAT middleware The first NAT middleware sends the third NAT-transformed downlink data packet to the target UPF/PSA, so that the The target UPF/PSA performs a fourth NAT conversion on the downlink data packets after the third NAT conversion according to the second downlink NAT parameters, obtains the downlink data packets after the fourth NAT conversion, and sends the downlink data packets after the fourth NAT conversion packets to the UE.
  • the DL IP packet data connection can be realized. so that the continuity of DL IP services can be realized.
  • both UL and DL IP data packets can realize the continuity of IP packet data connection, so that the continuity of UL and DL IP services can be realized, so the continuity of the entire IP service is guaranteed.
  • the target AS may include a target IP protocol stack and an internal source AS runtime program
  • the target IP protocol stack may include a second NAT middleware.
  • using the AF to configure the third NAT parameter and migrating from the source AS to the target AS may include: the target IP protocol stack obtains the third upstream NAT parameter from the AF; the target IP protocol stack obtains the third upstream NAT parameter; Configure the third upstream NAT parameter to the second NAT middleware; copy the running program of the source AS to the target AS through the AF to obtain the running program of the internal source AS, the internal source AS
  • the AS running program is used as the running program of the source AS (making the network address of the target IP protocol stack the IP address of the target AS).
  • performing NAT conversion on the data packet according to the third NAT parameter may include: the target IP protocol stack receives the uplink data packet after the first NAT conversion from the target UPF/PSA; the second NAT The middleware performs second NAT conversion on the upstream data packet converted by the first NAT according to the third upstream NAT parameter, and obtains the destination address as the upstream data packet of the source AS IP address; the target IP protocol stack will The upstream data packet whose destination address is the source AS IP address is sent to the internal source AS running program.
  • the UL IP packet obtained by (E)AS2 and the UL IP data packet obtained by (E)AS1 have the same source IP address, source Port Number, destination IP address, and destination Port Number, the UL IP packet can be realized
  • the continuity of data connection can realize the continuity of UL IP service.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter
  • the The AF may also be configured to generate the third downlink NAT parameter according to the second downlink NAT parameter.
  • using the AF to configure the third NAT parameter may further include: the target IP protocol stack obtains the third downlink NAT parameter from the AF; the target IP protocol stack configures the third downlink NAT parameter to the Describe the second NAT middleware.
  • the performing NAT conversion on the data packet according to the third NAT parameter may further include: the internal source AS running program sends a downlink data packet to the target IP protocol stack; the second NAT middleware Perform third NAT conversion on the downlink data packet according to the third downlink NAT parameter; the target IP protocol stack sends the downlink data packet after the third NAT conversion to the target UPF/PSA, so that the target UPF can /PSA performs fourth NAT translation on the downlink data packets converted by the third NAT according to the second downlink NAT parameters, obtains the downlink data packets after the fourth NAT conversion, and sends the downlink data packets after the fourth NAT conversion to UE.
  • the DL IP packet data connection can be realized. so that the continuity of DL IP services can be realized.
  • both UL and DL IP data packets can realize the continuity of IP packet data connection, so that the continuity of UL and DL IP services can be realized, so the continuity of the entire IP service is guaranteed.
  • FIG. 12 schematically shows a flow chart of a method for realizing communication continuity according to yet another embodiment of the present disclosure.
  • the method provided in the embodiment of FIG. 12 can be applied to the session management function SMF corresponding to the user equipment UE, and the UE has established a connection with the source application server AS by using the allocated UE source network address information.
  • the method provided by the embodiment of the present disclosure may include the following steps.
  • step S1210 the first NAT parameter is obtained from the AF.
  • a target UPF/PSA is determined, so that the target UPF/PSA reallocates UE target network address information to the UE, and enables the UE to continue to use the UE source network address information.
  • the target UPF/PSA may also be used to allocate core network tunnel information.
  • the method may further include: acquiring the core network tunnel information from the target UPF/PSA; sending an indication to the target UPF/PSA information to indicate that if the target UPF/PSA receives an uplink data packet from the UE before receiving the data transmission notification sent by the SMF, the target UPF/PSA buffers the uplink data packet; A target UL CL/BP is selected, and the core network tunnel information is configured for the target UL CL/BP and the radio access network.
  • step S1230 the first NAT parameter is sent to the target UPF/PSA, so that the target UPF/PSA can base on the first NAT parameter, the UE target network address information and the UE source network address information A second NAT parameter is generated.
  • step S1240 the second NAT parameter is received from the target UPF/PSA, and the target UPF/PSA is used to perform NAT translation on the received data packet according to the second NAT parameter.
  • step S1250 the second NAT parameter is passed to the AF, so that the AF configures a third NAT parameter for the target AS according to the second NAT parameter, and migrates from the source AS to the A target AS, where the target AS is configured to perform NAT translation on the data packet according to the third NAT parameter.
  • the method may further include: sending a data transmission notification to the target UPF/PSA to notify the target UPF/PSA to pass the target upstream classification
  • the receiver UL CL/BP receives the uplink data packet sent by the UE, or sends the downlink data packet to the UE through the target UL CL/BP.
  • FIG. 13 schematically shows a flow chart of a method for realizing communication continuity according to still another embodiment of the present disclosure.
  • the method provided in the embodiment of FIG. 13 can be applied to the user equipment UE, which has established a connection with the source application server AS by using the allocated UE source network address information.
  • the method provided by the embodiment of the present disclosure may include the following steps.
  • step S1310 the upstream data packet is transmitted to the target UPF/PSA, so that the target UPF/PSA performs the first NAT translation on the upstream data packet according to the second upstream NAT parameter, and generates the upstream data packet after the first NAT translation , and send the first NAT-translated upstream data packet to the target AS.
  • the target AS is configured to perform a second NAT translation on the upstream data packet after the first NAT translation according to the third upstream NAT parameter.
  • step S1320 receive a downlink data packet through the target UPF/PSA, wherein the target AS is used to perform a third NAT translation on the downlink data packet according to the third downlink NAT parameter, and the target UPF/PSA is used to perform a third NAT translation on the downlink data packet.
  • a fourth NAT conversion is performed on the downlink data packet converted by the third NAT according to the second downlink NAT parameter.
  • FIG. 14 schematically shows a block diagram of an application function device according to an embodiment of the present disclosure.
  • an embodiment of the present disclosure provides an application function device 1400.
  • the application function device 1400 may include: one or more processors 1401; a memory 1403 configured to store one or more programs, when the one or more programs When executed by the one or more processors 1401, the one or more programs 1401 cause the one or more processors 1401 to implement the method described in any of the above embodiments.
  • the user equipment UE corresponding to the application function 1400 device has established a connection with the source application server AS by using the allocated UE source network address information.
  • the program can be specifically used to: determine the migration from the source AS to the target AS; transmit the first NAT parameter to the SMF, so that the SMF determines the target UPF/PSA, and the target UPF/PSA is used to reset the UE for the UE Allocate UE target network address information, and generate and return to the SMF a second NAT parameter according to the first NAT parameter, the UE source network address information and the UE target network address information, according to the second NAT parameter Perform NAT translation on the received data packet; obtain the second NAT parameter from the SMF; configure a third NAT parameter for the target AS according to the second NAT parameter, and migrate from the source AS to the target AS, so that the target AS performs NAT translation on the data packet according to the third NAT parameter.
  • the program may include: an application server migration determination unit 14031, which can be used to determine the migration from the source AS to the target AS; a first NAT parameter transmission unit 14032, which can be used to transmit the first NAT parameters to the SMF, so that The SMF determines a target UPF/PSA, and the target UPF/PSA is used to reallocate UE target network address information for the UE, and based on the first NAT parameter, the UE source network address information and the UE target
  • the network address information generates a second NAT parameter, returns the second NAT parameter to the SMF, and performs NAT translation on the received data packet according to the second NAT parameter; obtains the second NAT parameter from the SMF;
  • the second NAT parameter obtaining unit 14033 can be used to obtain the second NAT parameter from the SMF;
  • the third NAT parameter configuration unit 14034 can be used to configure the third NAT parameter for the target AS according to the second NAT parameter , and migrate from the source AS to the target AS, so
  • the application server migration determining unit 14031 may be configured to: receive an event opening early notification message from the SMF; and determine to migrate from the source AS to the target AS according to the event opening early notification message.
  • the application server migration determination unit 14031 may be configured to: receive a data impact early notification message from the NEF, wherein the NEF is configured to receive an event open early notification message from the SMF, and according to the event open early notification message The notification message sends the data impact early notification message to the AF.
  • the first NAT parameter may include target AS network address information of the target AS, and the target AS network address information may include a target AS IP address and a target AS port number.
  • the first NAT parameter transmission unit 14032 may be configured to: send an event opening application relocation message to the SMF, where the event opening application relocation message carries the target AS IP address and the target AS The port number.
  • the first NAT parameter transmission unit 14032 may be configured to: send a data-influencing application relocation information message to the NEF, where the data-influencing application relocation information message carries the target AS IP address and the target AS port number, so that the NEF sends an event opening application relocation message to the SMF, and the event opening application relocation message carries the target AS IP address and the target AS port number.
  • the first NAT parameter transmission unit 14032 may be configured to: send a policy authorization establishment/update request message to the policy control function PCF, where the policy authorization establishment/update request message carries the target AS IP address and all The target AS port number of the target AS, so that the PCF sends a session management policy control update notification message to the SMF, and the session management policy control update notification message carries the target AS IP address and the target AS of the target AS The port number.
  • the data packet may include an uplink data packet sent by the UE
  • the second NAT parameter may include a second uplink NAT parameter
  • the target UPF/PSA may be used according to the second uplink
  • the NAT parameter performs the first NAT translation on the upstream data packet
  • the third NAT parameter may include the third upstream NAT parameter
  • the source AS network address information of the source AS may include the source AS IP address.
  • configuring the third NAT parameter for the target AS according to the second NAT parameter may include: generating the third upstream NAT parameter according to the second upstream NAT parameter.
  • the target AS may include an intermediate box and an internal target AS, the intermediate box and the internal target AS are different network entities, and communicate through a network connection.
  • the network address is the target AS IP address.
  • the third NAT parameter configuration unit 14034 may be configured to configure the third upstream NAT parameter to the intermediate box, so that the intermediate box can perform the first NAT-translated upstream NAT parameter according to the third upstream NAT parameter.
  • the source AS IP address of the source AS is used as the network address of the internal target AS, so that the internal target AS receives the second NAT-translated uplink from the intermediate box through the network connected to the intermediate box data pack.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter.
  • the third NAT parameter configuration unit 14034 may also be configured to: generate the third downlink NAT parameter according to the second downlink NAT parameter; configure the third downlink NAT parameter to the intermediate box, so that the The middle box performs third NAT conversion on the downlink data packet sent by the internal target AS according to the third downlink NAT parameter, and sends the downlink data packet after the third NAT conversion to the target UPF/PSA, and the The target UPF/PSA is further configured to perform a fourth NAT conversion on the downlink data packets after the third NAT conversion according to the second downlink NAT parameters, obtain the downlink data packets after the fourth NAT conversion, and send the fourth NAT conversion The subsequent downlink data packets are sent to the UE.
  • the target AS may include a first NAT middleware and an internal source AS.
  • the third NAT parameter configuration unit 14034 can configure: configure the third upstream NAT parameter to the first NAT middleware, so that the first NAT middleware configures the first NAT according to the third upstream NAT parameter
  • the converted upstream data packet is converted by the second NAT, the upstream data packet after the second NAT conversion is obtained, and the upstream data packet after the second NAT conversion is sent to the internal source AS;
  • the image of the operating environment is copied to the internal source AS (making the network address of the internal source AS the IP address of the source AS), so that the internal source AS receives the second NAT through the first NAT middleware Converted upstream packets.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter.
  • the third NAT parameter configuration unit 14034 may be further configured to: generate the third downlink NAT parameter according to the second downlink NAT parameter; configure the third downlink NAT parameter to the first NAT middleware, so that The first NAT middleware performs third NAT conversion on the downlink data packets sent by the internal source AS according to the third downlink NAT parameters, and sends the downlink data packets after the third NAT conversion to the target UPF/ PSA, the target UPF/PSA is further configured to perform a fourth NAT conversion on the downlink data packet after the third NAT conversion according to the second downlink NAT parameter, obtain the downlink data packet after the fourth NAT conversion, and send the The fourth NAT converted downlink data packet is sent to the UE.
  • the target AS may include a target IP protocol stack and an internal source AS runtime program, the target IP protocol stack including a second NAT middleware.
  • the third NAT parameter configuration unit 14034 may be configured to: send the third upstream NAT parameter to the target IP protocol stack, so as to configure the third upstream NAT parameter to the second NAT middleware, wherein all the The second NAT middleware performs the second NAT conversion on the upstream data packet converted by the first NAT according to the third upstream NAT parameter, and obtains the upstream data packet whose destination address is the source AS IP address;
  • the operating program of the source AS is copied to the target AS to obtain the operating program of the internal source AS, and the operating program of the internal source AS is used as the operating program of the source AS (the network address of the target IP protocol stack is the target AS IP address), so that the internal source AS running program receives the upstream data packet whose destination address is the source AS IP address from the target IP protocol stack.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter.
  • the third NAT parameter configuration unit 14034 can be further configured to: generate the third downlink NAT parameter according to the second downlink NAT parameter; send the third downlink NAT parameter to the target IP protocol stack, so that the The third downlink NAT parameter is configured to the second NAT middleware, and the second NAT middleware performs third NAT translation on the downlink data packet sent by the internal source AS running program according to the third downlink NAT parameter , and send the downlink data packet converted by the third NAT to the target UPF/PSA, and the target UPF/PSA is further configured to perform the first step on the downlink data packet converted by the third NAT according to the second downlink NAT parameter.
  • Four NAT conversions obtaining a fourth NAT converted downlink data packet, and sending the fourth NAT converted downlink data packet to the
  • the UE source network address information may include a UE source IP address and a source UE port number
  • the UE target network address information may include a UE target IP address and a target UE port number
  • the source AS network The address information may also include the source AS port number.
  • the second uplink NAT parameter may be used to instruct the target UPF/PSA to convert the source address of the uplink data packet from the UE source IP address to the UE target IP address, and convert the uplink data packet's source address to the UE target IP address.
  • the destination address is converted from the source AS IP address to the target AS IP address;
  • the third uplink NAT parameter can be used to instruct the target AS to convert the source address of the uplink data packet after the first NAT conversion from the UE target
  • the IP address is converted into the source IP address of the UE, and the destination address of the uplink data packet converted by the first NAT is converted from the target AS IP address to the source AS IP address; or, the second uplink NAT parameter can be used instructing the target UPF/PSA to convert the source address of the uplink data packet from the UE source IP address to the UE target IP address, and convert the destination address of the uplink data packet from the source AS IP address
  • the destination port of the upstream data packet is converted from the source AS port number to the target AS port number;
  • the third upstream NAT parameter can be used to instruct the target AS to convert the first
  • the source address of the NAT-transformed uplink data packet is converted from the UE target IP address to the UE source IP address, and the destination address of
  • the second upstream NAT parameter can be used to indicate the target UPF /PSA converts the source address of the uplink data packet from the UE source IP address to the UE target IP address, and converts the destination address of the uplink data packet from the source AS IP address to the target AS IP address, convert the source port of the uplink data packet from the source UE port number to the target UE port number;
  • the third uplink NAT parameter can be used to instruct the target AS to convert the uplink data after the first NAT conversion
  • the source address of the packet is converted from the UE target IP address to the UE source IP address, the destination address of the uplink data packet after the first NAT conversion is converted from the target AS IP address to the source ASIP address, and the The source port of the first NAT-translated uplink data packet is converted from the target UE port number to the source UE port number; or, the second uplink NAT parameter
  • the source port of the data packet is converted from the source UE port number to the target UE port number, and the destination port of the uplink data packet is converted from the source AS port number to the target AS port number;
  • the first Three upstream NAT parameters can be used to indicate the target AS Convert the source address of the uplink data packet after the first NAT conversion from the UE target IP address to the UE source IP address, and convert the destination address of the uplink data packet after the first NAT conversion from the target AS IP address.
  • the source port of the uplink data packet converted by the first NAT is converted from the target UE port number to the source UE port number, and the purpose of the uplink data packet converted by the first NAT
  • the port is converted from the target AS port number to the source AS port number;
  • the second uplink NAT parameter may be used to instruct the target UPF/PSA to convert the source address of the uplink data packet from the UE source IP address
  • the address is converted into the target IP address of the UE, and the destination port of the uplink data packet is converted from the source AS port number to the target AS port number;
  • the third uplink NAT parameter can be used to instruct the target AS to
  • the source address of the uplink data packet converted by the first NAT is converted from the UE target IP address to the UE source IP address, and the destination port of the uplink data packet converted by the first NAT is converted from the target AS port number to the source AS port number; or, the second uplink NAT parameter may be used to instruct the target UPF/PSA to translate the source
  • the UE source network address information may include a UE source IP address and a source UE port number
  • the UE target network address information may include a UE target IP address and a target UE port number
  • the source AS network The address information may also include the source AS port number.
  • the third downlink NAT parameter can be used to instruct the target AS to convert the source address of the downlink data packet from the source AS IP address to the target AS IP address, and convert the destination address of the downlink data packet Convert from the UE source IP address to the UE target IP address;
  • the second downlink NAT parameter can be used to instruct the target UPF/PSA to convert the source address of the third NAT-translated downlink data packet from the target AS
  • the IP address is converted to the source AS IP address, and the destination address of the downlink data packet converted by the third NAT is converted from the UE target IP address to the UE source IP address; or, the third downlink NAT parameter can be used to instruct the target AS to convert the source address of the downlink data packet from the source AS IP address to the target AS IP address, and convert the destination address of the downlink data packet from the UE source IP address to the target AS IP address.
  • the second downlink NAT parameter can be used to instruct the destination UPF/PSA to convert the third
  • the source address of the downlink data packet converted by NAT is converted from the target AS IP address to the source AS IP address, and the destination address of the downlink data packet converted by the third NAT is converted from the UE target IP address to the source AS IP address.
  • the UE source IP address is to convert the destination port of the downlink data packet after the third NAT conversion from the target UE port number to the source UE port number; or, the third downlink NAT parameter can be used to indicate the target AS converting the source address of the downlink data packet from the source AS IP address to the target AS IP address, converting the destination address of the downlink data packet from the UE source IP address to the UE target IP address, and converting the source port of the downlink data packet from the source AS port number of the source AS to the target AS port number of the target AS; the second downlink NAT parameter can be used to instruct the target UPF/PSA to convert the first The source address of the downlink data packet converted by the third NAT is converted from the target AS IP address to the source AS IP address, and the destination address of the downlink data packet converted by the third NAT is converted from the UE target IP address to the source AS IP address.
  • the UE source IP address, and the source port of the downlink data packet converted by the third NAT is converted from the target AS port number to the source AS port number; or, the third downlink NAT parameter can be used to indicate the
  • the target AS converts the source address of the downlink data packet from the source AS IP address to the target AS IP address, and converts the destination address of the downlink data packet from the UE source IP address to the UE target IP address address, converting the source port of the downlink data packet from the source AS port number of the source AS to the target AS port number of the target AS, and converting the destination port of the downlink data packet from the source UE port number to Target UE port number;
  • the second downlink NAT parameter The number can be used to instruct the target UPF/PSA to convert the source address of the downlink data packet after the third NAT conversion from the target ASIP address to the source AS IP address, and the purpose of converting the downlink data packet after the third NAT conversion
  • the address is converted from the UE target IP address to the
  • the address is converted from the source ASIP address to the target AS IP address, and the destination port of the downlink data packet is converted from the source UE port number to the target UE port number;
  • the second downlink NAT parameter can be used to indicate the target UPF/PSA converts the source address of the downlink data packet after the third NAT conversion from the target AS IP address to the source AS IP address, and converts the destination port of the downlink data packet after the third NAT conversion from the target UE
  • the port number is converted into the source UE port number; or, the third downlink NAT parameter may be used to instruct the target AS to convert the source address of the downlink data packet from the source AS IP address to the target AS IP address, convert the source port of the downlink data packet from the source AS port number of the source AS to the target AS port number of the target AS, and convert the destination port of the downlink data packet from the source UE port number to the target port number UE port number;
  • the second downlink NAT parameter can be used to instruct the target UPF/PSA
  • FIG. 15 schematically shows a block diagram of a target application server according to an embodiment of the present disclosure.
  • the target application server 1500 may include: one or more processors 1501; a memory 1503 configured to store one or more programs, when the one or more programs are executed by the one or more processors When executed, 1501 causes the one or more processors 1501 to implement the method described in any of the above embodiments.
  • the program can be specifically used for: using AF to configure a third NAT parameter, and migrating from the source AS to the target AS, the third NAT parameter is generated according to the second NAT parameter of the target UPF/PSA; obtaining a data packet, The data packet is a data packet generated by the target UPF/PSA after performing NAT conversion according to the second NAT parameter or a data packet generated by the target AS; the data packet is processed according to the third NAT parameter.
  • NAT conversion if the data packet is a data packet generated by the target AS, the data packet after NAT conversion according to the third NAT parameter is sent to the target UPF/PSA, so that the target UPF/PSA Perform NAT translation again according to the second NAT parameter.
  • the program may further include: a third NAT parameter configuration unit 15031, which may be used to configure a third NAT parameter using AF to migrate from the source AS to the target AS, and the third NAT parameter is based on the target UPF/ is generated by the second NAT parameter of the PSA;
  • the data packet obtaining unit 15032 can be used to obtain a data packet, wherein the data packet is a data packet generated after the target UPF/PSA performs NAT conversion according to the second NAT parameter or The data packet generated by the target AS;
  • the NAT conversion unit 15033 can be used to perform NAT conversion on the data packet according to the third NAT parameter;
  • the data packet sending unit 15034 can be used to: if the data packet is If the data packet generated by the target AS, the data packet after NAT conversion according to the third NAT parameter is sent to the target UPF/PSA, so that the target UPF/PSA performs NAT again according to the second NAT parameter convert.
  • the data packet may include an uplink data packet sent by the UE
  • the second NAT parameter may include a second uplink NAT parameter
  • the target UPF/PSA may be used according to the second uplink NAT parameter
  • the first NAT conversion is performed on the upstream data packet
  • the third NAT parameter may include a third upstream NAT parameter
  • the source AS network address information of the source AS may include the source AS IP address
  • the AF may be used to
  • the second upstream NAT parameter generates the third upstream NAT parameter.
  • the target AS may include an intermediate box and an inner target AS.
  • the intermediate box and the internal target AS are different network entities and communicate through network connections.
  • the network address of the intermediate box is the target AS IP address of the target AS.
  • the third NAT parameter configuration unit 15031 can be configured to: the intermediate box obtains the third upstream NAT parameter from the AF; the source AS IP address of the source AS is used as the internal target through the AF The network address of the AS.
  • the NAT conversion unit 15033 may be configured to: the intermediate box receives the first NAT-translated upstream data packet from the target UPF/PSA; the intermediate box converts the first NAT to the first NAT according to the third upstream NAT parameter The converted upstream data packet is converted by the second NAT to obtain the upstream data packet converted by the second NAT; the intermediate box is connected to the internal target AS through the network, and the second NAT converted upstream data packet is obtained. Uplink data packets are sent to the internal target AS.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter
  • the The AF may also be configured to generate the third downlink NAT parameter according to the second downlink NAT parameter.
  • the third NAT parameter configuration unit 15031 may be further configured to: the intermediate box acquires the third downlink NAT parameter from the AF.
  • the NAT conversion unit 15033 can be further configured to: the internal target AS sends the downlink data packet to the intermediate box; the intermediate box performs the first step on the downlink data packet according to the third downlink NAT parameter.
  • the intermediate box sends the downlink data packets converted by the third NAT to the target UPF/PSA, so that the target UPF/PSA can perform the third NAT conversion on the downlink data packets converted by the third NAT according to the second downlink NAT parameters.
  • the downlink data packet is subjected to the fourth NAT conversion, the downlink data packet after the fourth NAT conversion is obtained, and the fourth NAT converted downlink data packet is sent to the UE.
  • the target AS may include a first NAT middleware and an internal source AS.
  • the third NAT parameter configuration unit 15031 may be configured to: the first NAT middleware obtains the third upstream NAT parameter from the AF; and copy the image of the operating environment of the source AS to the The internal source AS (making the network address of the internal source AS the source AS IP address).
  • the NAT translation unit 15033 may be configured as: the first NAT middleware receives the first NAT-translated upstream data packet from the target UPF/PSA; the first NAT middleware according to the third upstream NAT parameter Perform second NAT conversion on the uplink data packets converted by the first NAT to obtain the uplink data packets converted by the second NAT; the first NAT middleware sends the uplink data packets converted by the second NAT to the internal source AS.
  • the data packet further includes a downlink data packet
  • the second NAT parameter further includes a second downlink NAT parameter
  • the third NAT parameter further includes a third downlink NAT parameter
  • the AF is further configured to
  • the NAT parameter generates the third downlink NAT parameter.
  • the third NAT parameter configuration unit 15031 may be further configured to: the first NAT middleware acquires the third downlink NAT parameter from the AF.
  • the NAT conversion unit 15033 may be further configured to: the internal source AS sends the downlink data packet to the first NAT middleware; The data packet is subjected to a third NAT translation; the first NAT middleware sends the downlink data packet after the third NAT translation to the target UPF/PSA, so that the target UPF/PSA pairs the The downlink data packet after the third NAT conversion is subjected to the fourth NAT conversion, the downlink data packet after the fourth NAT conversion is obtained, and the fourth NAT converted downlink data packet is sent to the UE.
  • the target AS may include a target IP protocol stack and an internal source AS runtime program, the target IP protocol stack including a second NAT middleware.
  • the third NAT parameter configuration unit 15031 may be configured to: the target IP protocol stack obtains the third upstream NAT parameter from the AF; the target IP protocol stack configures the third upstream NAT parameter to the Second NAT middleware; copy the running program of the source AS to the target AS through the AF to obtain the running program of the internal source AS, and the running program of the internal source AS is used as the running program of the source AS ( Let the network address of the target IP protocol stack be the target AS IP address).
  • the NAT translation unit 15033 may be configured to: the target IP protocol stack receives the first NAT-translated upstream data packet from the target UPF/PSA; the second NAT middleware converts the upstream data packet to the third upstream NAT parameter according to the third upstream NAT parameter.
  • the upstream data packet after the first NAT conversion is converted by the second NAT to obtain the upstream data packet whose destination address is the source AS IP address;
  • the upstream data packet is sent to the internal source AS to run the program.
  • the data packet may further include a downlink data packet
  • the second NAT parameter may further include a second downlink NAT parameter
  • the third NAT parameter may further include a third downlink NAT parameter
  • the The AF may also be configured to generate the third downlink NAT parameter according to the second downlink NAT parameter.
  • the third NAT parameter configuration unit 15031 may also be configured to: the target IP protocol stack obtains the third downlink NAT parameter from the AF; the target IP protocol stack configures the third downlink NAT parameter to the Describe the second NAT middleware.
  • the NAT conversion unit 15033 can also be configured to: the internal source AS running program sends a downlink data packet to the target IP protocol stack; the second NAT middleware converts the downlink data to the downlink data according to the third downlink NAT parameter The third NAT conversion is performed on the packet; the target IP protocol stack sends the downlink data packet after the third NAT conversion to the target UPF/PSA, so that the target UPF/PSA can perform the third NAT conversion on the third The downlink data packet after the NAT conversion is subjected to a fourth NAT conversion to obtain the downlink data packet after the fourth NAT conversion and send the fourth NAT converted downlink data packet to the UE.
  • FIG. 16 schematically shows a block diagram of a session management function device according to an embodiment of the present disclosure.
  • the session management function device 1600 may include: one or more processors 1601; a memory 1603 configured to store one or more programs, when the one or more programs are processed by the one or more programs When the processor 1601 is executed, the one or more processors 1601 are caused to implement the method described in any of the above embodiments.
  • the UE corresponding to the session management function device 1600 has established a connection with the source application server AS by using the allocated UE source network address information.
  • the program may be specifically used to: obtain the first NAT parameter from the AF; determine the target UPF/PSA, so that the target UPF/PSA reassigns the UE target network address information to the UE, and causes the UE to continue to use the UE source network address information; sending the first NAT parameter to the target UPF/PSA, so that the target UPF/PSA can base on the first NAT parameter, the UE target network address information and the UE source network address information to generate a second NAT parameter; receive the second NAT parameter from the target UPF/PSA, and the target UPF/PSA is used to perform NAT translation on the received data packet according to the second NAT parameter; convert the The second NAT parameter is passed to the AF, so that the AF configures the third NAT parameter for the target AS according to the second NAT parameter, and migrates from the source AS to the target AS, and the target AS uses the performing NAT translation on the data packet according to the third NAT parameter.
  • the program may further include: a first NAT parameter obtaining unit 16031, which can be used to obtain the first NAT parameter from the AF; and a target UPF/PSA determining unit 16032, which can be used to determine the target UPF/PSA, so that the target UPF/PSA reallocates UE target network address information for the UE, and makes the UE continue to use the UE source network address information;
  • the first NAT parameter sending unit 16033 can be used to send the target UPF/PSA the first NAT parameter, so that the target UPF/PSA generates a second NAT parameter according to the first NAT parameter, the UE target network address information and the UE source network address information;
  • the second NAT parameter receiving unit 16034 Can be used to receive the second NAT parameter from the target UPF/PSA, and the target UPF/PSA is used to perform NAT translation on the received data packet according to the second NAT parameter;
  • the second NAT parameter transfer unit 16035 can be used to pass the second
  • the target UPF/PSA may also be used to allocate core network tunnel information.
  • the program may further include: a core network tunnel information acquisition unit, which can be used to acquire the core network tunnel information from the target UPF/PSA after the target UPF/PSA is determined; an indication information sending unit, which can be used to send the information to the target UPF/PSA.
  • the target UPF/PSA sends indication information to indicate that: if the target UPF/PSA receives an uplink data packet from the UE before receiving the data transmission notification sent by the SMF, the target UPF/PSA will
  • the PSA buffers the uplink data packets; the uplink classifier selection unit can be used to select a target uplink classifier UL CL/BP, and configure the core network tunnel information for the target UL CL/BP and the radio access network.
  • the program may further include: a data transmission notification sending unit, which may be configured to send a data transmission notification to the target UPF/PSA after passing the second NAT parameter to the AF, so as to notify all
  • the target UPF/PSA receives the uplink data packet sent by the UE through the target UL CL/BP, or sends the downlink data packet to the UE through the target UL CL/BP.
  • FIG. 17 schematically shows a block diagram of a user equipment according to an embodiment of the present disclosure.
  • the user equipment 1700 may include: one or more processors 1701 ; and a memory 1703 configured to store one or more programs, when the one or more programs are executed by the one or more processors 1701 When executed, the one or more processors 1701 are caused to implement the method described in any of the above embodiments.
  • the UE has established a connection with the source application server AS by using the allocated UE source network address information.
  • the program can be specifically used for: transmitting an uplink data packet to the target UPF/PSA, so that the target UPF/PSA performs a first NAT conversion on the uplink data packet according to the second uplink NAT parameter, and generates a first NAT converted data packet.
  • Uplink data packets and send the first NAT-transformed uplink data packets to the target AS, and the target AS is used to perform second NAT conversion on the first NAT-transformed uplink data packets according to the third uplink NAT parameter;
  • the target UPF/PSA receives the downlink data packet, wherein the target AS is configured to perform a third NAT translation on the downlink data packet according to the third downlink NAT parameter, and the target UPF/PSA is configured to perform a third NAT translation on the downlink data packet according to the second downlink NAT parameter A fourth NAT conversion is performed on the downlink data packets converted by the third NAT.
  • the program may further include: an uplink data packet transmission unit 17031, which may be configured to transmit an uplink data packet to the target UPF/PSA, so that the target UPF/PSA performs the first step on the uplink data packet according to the second uplink NAT parameter. 1.
  • an uplink data packet transmission unit 17031 which may be configured to transmit an uplink data packet to the target UPF/PSA, so that the target UPF/PSA performs the first step on the uplink data packet according to the second uplink NAT parameter.
  • NAT conversion generating the first NAT-translated upstream data packet, and sending the first NAT-translated upstream data packet to the target AS, where the target AS is used for the first NAT-translated upstream data packet according to the third upstream NAT parameter
  • the data packet is subjected to the second NAT conversion; the downlink data packet receiving unit 17032 can be used to receive the downlink data packet through the target UPF/PSA, wherein the target AS is used to perform the downlink data packet according to the third downlink NAT parameter.
  • the third NAT conversion, the target UPF/PSA is configured to perform a fourth NAT conversion on the downstream data packet after the third NAT conversion according to the second downstream NAT parameter.
  • FIG. 14 , FIG. 15 , FIG. 16 and FIG. 17 which show the application function device 1400 , the target application server 1500 , the session management function device 1600 and the user suitable for implementing the embodiments of the present application
  • FIG. 14 , FIG. 15 , FIG. 16 and FIG. 17 show the application function device 1400 , the target application server 1500 , the session management function device 1600 and the user suitable for implementing the embodiments of the present application
  • FIG. 14 , FIG. 15 , FIG. 16 and FIG. 17 which show the application function device 1400 , the target application server 1500 , the session management function device 1600 and the user suitable for implementing the embodiments of the present application
  • FIG. 14 , FIG. 15 , FIG. 16 and FIG. 17 which show the application function device 1400 , the target application server 1500 , the session management function device 1600 and the user suitable for implementing the embodiments of the present application
  • FIG. 14 , FIG. 15 , FIG. 16 and FIG. 17 show the application function device 1400 , the target application server 1500
  • the application function device 1400 may further include: communication interfaces (1402, 1502, 1602, 1702) and communication buses (1404, 1504, 1604, 1704).
  • the processors (1401, 1501, 1601, 1701), the communication interfaces (1402, 1502, 1602, 1702) and the memories (1403, 1503, 1603, 1703) communicate with each other through the communication bus (1404, 1504, 1604, 1704). Communication.
  • the communication interfaces (1404, 1504, 1604, 1704) may be interfaces of a communication module, such as interfaces of a GSM (Global System for Mobile communications, global system for mobile communications) module.
  • the processor 1301 is used to execute programs.
  • the memories (1403, 1503, 1603, 1703) are used to store programs.
  • a program may include a computer program including computer operating instructions.
  • the processor (1401, 1501, 1601, 1701) may be a central processing unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present disclosure.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • the memories may include high-speed RAM (random access memory, random access memory) memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , which includes several instructions to cause a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a touch terminal, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本公开实施例提供了一种实现通信连续性的方法及相关设备。该方法应用于UE对应的AF,UE已利用分配的UE源网络地址信息与源AS建立连接。该方法包括:确定从源AS迁移至目标AS;向SMF传输第一NAT参数,以便SMF确定目标UPF/PSA,目标UPF/PSA用于为UE重新分配UE目标网络地址信息,并根据第一NAT参数、UE源网络地址信息和UE目标网络地址信息生成第二NAT参数,并向SMF返回第二NAT参数,根据第二NAT参数对接收到的数据包进行NAT转换;从SMF获取第二NAT参数;根据第二NAT参数给目标AS配置第三NAT参数,并从源AS迁移至目标AS,以便目标AS根据第三NAT参数对数据包进行NAT转换。

Description

实现通信连续性的方法及相关设备
本申请要求于2021年2月10日提交中国专利局、申请号为202110184916.7、申请名称为“实现通信连续性的方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及通信技术领域,具体而言,涉及一种实现通信连续性的方法、应用功能设备、目标应用服务器、会话管理功能设备、用户设备和计算机可读存储介质。
背景技术
当AS(Application Server,应用服务器)进行迁移后,AS的网络地址将发生改变,此时UE(User Equipment,用户设备)与AS的通信就会中断,造成正在进行的业务通信中断。因此,一个需要解决的技术问题是:当UE发生移动时,如何进行AS的迁移,以保持业务的连续性(如通信延迟很少);或者,当AS发生迁移而UE没有移动时,如何保持业务的连续性(如通信延迟很少)。
相关技术中,AS迁移到目标AS的目标AS网络地址后,目标AS的上下文进行改变,将源AS的IP(Internet Protocol,网际互连协议)协议栈相关的上下文全部无缝地修改到目标AS网络地址信息上,从而实现AS迁移到目标AS网络地址信息后,仍然与UE保持IP通信的连续性。
但这种方式是基于AS在迁移后具有修改内核的IP协议栈上下文的能力的前提下,因此,这种方式不是一种可以标准化的、广泛得到使用的技术,也就是这种能力并不是可用的。
发明内容
本公开实施例提供一种实现通信连续性的方法、应用功能设备、目标应用服务器、会话管理功能设备、用户设备和计算机可读存储介质,能够在用户设备的应用服务器发生迁移时,保持通信的连续性。
本公开实施例提供一种实现通信连续性的方法,应用于UE对应的AF(Application Function,应用功能),所述UE已利用分配的UE源网络地址信息与源AS建立连接;其中,所述方法包括:确定从所述源AS迁移至目标AS;向SMF(Session Management Function,会话管理功能)传输第一NAT(Network Address Translation,网络地址转换)参数,以便所述SMF确定目标UPF(User Plane Function,用户面功能)/PSA(PDU(Protocol Data Unit,协议数据单元)Session Anchor,PDU会话锚点),所述目标UPF/PSA用于为所述UE重新分配UE目标网络地址信息,并根据所述第一NAT参数、所述UE源网络地址信息和所述UE目标网络地址信息生成第二NAT参数,并向所述SMF返回第二NAT参数,根据所述第二NAT参数对接收到的数据包进行NAT转换;从所述SMF获取所述第二NAT参数;根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,以便所述目标AS根据所述第三NAT参数对所述数据包进行NAT转换。
本公开实施例提供一种实现通信连续性的方法,应用于目标AS;其中,所述方法包括:利用AF配置第三NAT参数,所述第三NAT参数是根据目标UPF/PSA的第二NAT参数生成的;获取数据包,其中所述数据包是所述目标UPF/PSA根据所述第二NAT参数进行NAT转换后生成的数据包或者所述目标AS生成的数据包;根据所述第三NAT参数对所述数据包进行NAT转换;若所述数据包是所述目标AS生成的数据包,则将根据所述第三NAT参数进行NAT转换后的数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二NAT参数再次进行NAT转换。
本公开实施例提供一种实现通信连续性的方法,应用于UE对应的SMF,所述UE已利用分配的UE源网络地址信息与源AS建立连接;其中,所述方法包括:从AF获取第一NAT参数;确定目标UPF/PSA,以便所述目标UPF/PSA为所述UE重新分配UE目标网络地址信息,且使所述UE继续使用所述UE源网络地址信息;向所述目标UPF/PSA发送所述第一NAT参数,以便所述目标UPF/PSA根据所述第一NAT参数、所述UE目标网络地址信息和所述UE源网络地址信息生成第二NAT参数;从所述目标UPF/PSA接收所述第二NAT参数,所述目标UPF/PSA用于根据所述第二NAT参数对接收到的数据包进行NAT转换;将所述第二NAT参数传递至所述AF,以便所述AF根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,所述目标AS用于根据 所述第三NAT参数对所述数据包进行NAT转换。
本公开实施例提供一种实现通信连续性的方法,应用于UE,所述UE已利用分配的UE源网络地址信息与源AS建立连接;其中,所述方法包括:向目标UPF/PSA传输上行数据包,以便所述目标UPF/PSA根据第二上行NAT参数对所述上行数据包进行第一NAT转换,生成第一NAT转换后的上行数据包,并向目标AS发送第一NAT转换后的上行数据包,所述目标AS用于根据第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换;通过所述目标UPF/PSA接收下行数据包,其中所述目标AS用于根据第三下行NAT参数对所述下行数据包进行第三NAT转换,所述目标UPF/PSA用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换。
本公开实施例提供一种应用功能设备,包括:一个或多个处理器;存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述任一实施例所述的方法。
本公开实施例提供一种目标应用服务器,包括:一个或多个处理器;存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述任一实施例所述的方法。
本公开实施例提供一种会话管理功能设备,包括:一个或多个处理器;存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述任一实施例所述的方法。
本公开实施例提供一种用户设备,包括:一个或多个处理器;存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述任一实施例所述的方法。
本公开实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述实施例中所述的实现通信连续性的方法。
本公开实施例提供了一种电子设备,包括:一个或多个处理器;存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中所述的实现通信连续性的方法。
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实现方式中提供的方法。
在本公开的一些实施例所提供的技术方案中,当UE已利用分配的UE源网络地址信息与源应用服务器AS建立连接,进行通信后,若AF确定将源AS迁移至目标AS,则AF可以向SMF传输第一NAT参数,这样,SMF可以在接收到第一NAT参数后,重新选择目标UPF/PSA,目标UPF/PSA可以重新为该UE分配新的UE目标网络地址信息,目标UPF/PSA可以根据UE原来的UE源网络地址信息和该重新分配的UE目标网络地址信息,以及第一NAT参数生成第二NAT参数,从而使得当目标UPF/PSA接收到数据包时,目标UPF/PSA可以根据该第二NAT参数对该数据包进行NAT转换。目标UPF/PSA可以将该第二NAT参数发送给SMF,SMF可以将该第二NAT参数再传递给AF,AF可以进一步根据接收到的第二NAT参数给目标AS配置第三NAT参数,这样,当目标AS获取到数据包时,其可以根据该第三NAT参数对获取的数据包进行NAT转换,即同一个数据包经过目标UPF/PSA和目标AS的两次NAT转换,从而使得目标AS最终获得的数据包的源地址和目的地址与UE最初发送的源地址和目的地址保持不变,或者使UE最终获得的数据包的源地址和目的地址与目标AS最初发送的源地址和目的地址保持不变。一方面,利用网络地址转换技术,能够实现当AS发生迁移时,保持业务的连续性;另一方面,在AS迁移后对内核无需修改,容易实现,是一种可用的和可靠地实现AS迁移后的通信的连续性的技术,容易进行标准化与大规模部署。
附图说明
图1示出了相关技术中一种EC架构的示意图。
图2示出了相关技术中另一种EC架构的示意图。
图3示意性示出了根据本公开的一实施例的实现通信连续性的方法的流程图。
图4示意性示出了根据本公开的一实施例的实现通信连续性的方法的交互示意图。
图5示意性示出了根据本公开的另一实施例的实现通信连续性的方法的交互示意图。
图6示意性示出了根据本公开的又一实施例的实现通信连续性的方法的交互示意图。
图7示意性示出了根据本公开的一实施例的目标应用服务器的架构示意图。
图8示意性示出了基于图7所示的目标应用服务器的实现通信连续性的方法的交互示意图。
图9示意性示出了根据本公开的另一实施例的目标应用服务器的架构示意图。
图10示意性示出了基于图9所示的目标应用服务器的实现通信连续性的方法的交互示意图。
图11示意性示出了根据本公开的另一实施例的实现通信连续性的方法的流程示意图。
图12示意性示出了根据本公开的又一实施例的实现通信连续性的方法的流程示意图。
图13示意性示出了根据本公开的再一实施例的实现通信连续性的方法的流程示意图。
图14示意性示出了根据本公开的一实施例的应用功能设备的框图。
图15示意性示出了根据本公开的一实施例的目标应用服务器的框图。
图16示意性示出了根据本公开的一实施例的会话管理功能设备的框图。
图17示意性示出了根据本公开的一实施例的用户设备的框图。
具体实施方式
根据本公开的实施例,下文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读存储介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。
作为另一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如下述实施例中所述的方法。例如,所述的电子设备可以实现如图3或图4或图5或图6或图8或图10或图11或图12或图13所示的各个步骤。
EC(边缘计算,Edge Computing)通过将AS部署到离UE近的位置,从而实现UE与AS的通信时延最小化。其中,实现EC包括两个基本的架构,分别如图1和图2所示。
图1中,是将UPF(User Plane Function,用户面功能)/PSA(PDU(Protocol Data Unit,协议数据单元)Session Anchor,PDU会话锚点)部署在基站(AN(Access Network,接入网))附近,同时将EAS(Edge Application Server,边缘应用服务器)部署在与PSA相连的DN(Data Network,数据网络)中。
图2中,是在UPF/PSA1(下文也称之为源协议数据单元会话锚点用户面功能,简写为源UPF/PSA)部署在中心位置时,通过在近基站AN处部署一个UL CL(Uplink Classifier,上行分类器)/BP(Branching Point,分支点),然后分出一个近基站的UPF/PSA2(也称之为目标协议数据单元会话锚点用户面功能,简写为目标UPF/PSA,有时候也用PSA2表示),将EAS部署在与PSA2相连的本地接入(Local Access)的相同DN。
即图1没有利用UL CL/BP访问EAS,图2利用UL CL/BP访问EAS。
上述图1和图2中,NEF的英文全称是Network Exposure Function,即网络开放功能,Nnef是指获取NEF提供的服务的Nnef消息。PCF的英文全称是Policy Control Function,即策略控制功能,Npcf是指获取PCF提供的服务的Npcf消息。AF的英文全称是Application Function,即应用功能),Naf是指获取AF提供的服务的Naf消息。AMF的英文全称是Access and Mobility Management Function,即接入和移动性管理功能,Namf是指获取AMF提供的服务的Namf消息。SMF的英文全称是Session Management Function,即会话管理功能,Nsmf是指获取SMF提供的服务的Nsmf消息。UE与AMF之间通过N1接口交互,AMF与AN之间通过N2接口交互,SMF与UPF之间通过N4接口交互,AN与UPF之间通过N3接口交互,UPF与DN之间通过N6接口交互,UPF之间通过N9接 口交互。
图3示意性示出了根据本公开的一实施例的实现通信连续性的方法的流程图。图3实施例提供的方法可应用于UE对应的应用功能AF,所述UE已利用分配的UE源网络地址信息与源应用服务器(表示为源AS)建立连接,但本公开并不限定于此。
其中,UE源网络地址信息即用户设备源网络地址信息,可以包括UE源IP地址(用户设备源网际互联协议地址,表示为IPue1)和源UE端口号(源用户设备端口号,表示为PORTue1)。
如图3所示,本公开实施例提供的方法可以包括如下步骤。
在步骤S310中,确定从所述源AS迁移至目标AS(目标应用服务器)。
本公开实施例中的迁移是指将源AS功能性地移动到目标AS,可以包括但不限于两种形态:
1)应用迁移,可以包括下图9和图10实施例。
其中,应用迁移是将软件应用,从一种计算环境移动到另一种计算环境的过程。其中包括将应用从一个数据中心迁移到另一个数据中心,从公有云迁移到私有云,或从一家公司的本地部署服务器迁移到云服务提供商的计算环境。
2)服务器迁移,可以包括下图6以及图7和图8实施例。
服务器迁移是指将包括IDC(Internet Data Center,互联网数据中心)服务器、虚拟机、其他云平台的云主机或其他类型的服务器从一个地方迁移到另外一个地方(如数据中心,公有云,私有云,中心云,边缘云之间的迁移)。
服务器迁移又可以包括但不限于物理服务器迁移(类似于计算机休眠后移动)以及虚拟机迁移,即将一个VM(Virtual Machine,虚拟机)从一个地方迁移到另外一个地方。这个VM的迁移又分为热迁移与冷迁移。
迁移物理服务器是通过从虚拟或物理DVD(Digital Video Disc,高密度数字视频光盘)、ROM(Read-Only Memory,只读存储器)/CD(Compact Disk,光盘)等设备将Migrate for Compute Engine Connector ISO(为计算引擎连接器ISO迁移)映像引导到RAM(Random Access Memory,随机存取存储器)中,可以将物理服务器迁移到云端。Migrate for Compute Engine连接器会映射物理服务器的本地存储,并创建存根VMware虚拟机作为Migrate for Compute Engine云迁移操作的管理对象。
本公开实施例中的“确定”是指AF做出要从源AS迁移至目标AS的决定,即AF确定从源AS迁移至目标AS时尚未实现迁移,而是在后续步骤中实现迁移。
需要说明的是,本公开实施例提出的技术方案,不仅可以解决EC的问题,同样可以解决非EC的问题。因此,后面不作特别的说明,不再特指EC的问题,即后面所说的(E)AS既可以是EAS,也可以是AS。下面用(E)AS1表示源应用服务器或者源边缘应用服务器,其对应的源AS网络地址信息可以包括源AS IP地址(表示为IPas1)和源AS端口号(表示为PORTas1);(E)AS2表示目标应用服务器或者目标边缘应用服务器,其对应的目标AS网络地址信息可以包括目标AS IP地址(表示为IPas2)和目标AS端口号(表示为PORTas2)。
在示例性实施例中,确定从所述源AS迁移至目标AS,可以包括:从SMF接收事件开放早通知消息;根据所述事件开放早通知消息,确定从所述源AS迁移至所述目标AS。
在示例性实施例中,确定从所述源AS迁移至目标AS,可以包括:从NEF接收数据影响早通知消息,其中所述NEF用于从所述SMF接收事件开放早通知消息,并根据所述事件开放早通知消息向所述AF发送所述数据影响早通知消息。
在步骤S320中,向SMF传输第一NAT参数,以便所述SMF确定目标UPF/PSA,所述目标UPF/PSA用于为所述UE重新分配UE目标网络地址信息,并根据所述第一NAT参数、所述UE源网络地址信息和所述UE目标网络地址信息生成第二NAT参数,并向所述SMF返回第二NAT参数,根据所述第二NAT参数对接收到的数据包进行NAT转换。
在本公开实施例中,AF向SMF传输第一NAT参数,用于指示进行NAT转换,SMF收到该第一NAT参数后,重新选择不同于UPF/PSA1的UPF/PSA2作为目标UPF/PSA。目标UPF/PSA(即UPF/PSA2)为该UE重新分配的UE目标网络地址信息(即用户设备目标网络地址信息),UE目标网络地址信息可以包括UE目标IP地址(表示为IPue2)和目标UE端口号(表示为PORTue2)。 UPF/PSA2可以根据该第一NAT参数、UE源网络地址信息和UE目标网络地址信息生成第二NAT参数,并向SMF返回该第二NAT参数。UPF/PSA2还可以根据该第二NAT参数对接收到的数据包(可以包括UE发送的上行数据包,还可以包括目标AS发送的已经过一次NAT转换的下行数据包)分别进行不同的NAT转换。
在示例性实施例中,所述第一NAT参数可以包括所述目标AS的目标AS网络地址信息,所述目标AS网络地址信息包括目标AS IP地址和目标AS端口号。
在示例性实施例中,向SMF传输第一NAT参数,可以包括:向所述SMF发送事件开放应用重定位消息,所述事件开放应用重定位消息携带所述目标AS IP地址和所述目标AS端口号。
在示例性实施例中,向SMF传输第一NAT参数,可以包括:向网络开放功能NEF发送数据影响应用重定位信息消息,所述数据影响应用重定位信息消息携带所述目标AS IP地址和所述目标AS端口号,以便所述NEF向所述SMF发送事件开放应用重定位消息,所述事件开放应用重定位消息携带所述目标AS IP地址和所述目标AS端口号。
在示例性实施例中,向SMF传输第一NAT参数,可以包括:向策略控制功能PCF发送策略授权建立/更新请求消息。所述策略授权建立/更新请求消息携带所述目标AS IP地址和所述目标AS端口号,以便所述PCF向所述SMF发送会话管理策略控制更新通知消息。所述会话管理策略控制更新通知消息携带所述目标AS IP地址和所述目标AS端口号。
在步骤S330中,从所述SMF获取所述第二NAT参数。
在步骤S340中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,以便所述目标AS根据所述第三NAT参数对所述数据包进行NAT转换。
在示例性实施例中,所述数据包可以包括所述UE发送的上行数据包。所述第二NAT参数包括第二上行NAT参数。所述目标UPF/PSA可以用于根据所述第二上行NAT参数对所述上行数据包进行第一NAT转换。所述第三NAT参数可以包括第三上行NAT参数。所述源AS的源AS网络地址信息可以包括源AS IP地址。其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,可以包括:根据所述第二上行NAT参数生成所述第三上行NAT参数。
在示例性实施例中,所述目标AS包括中间盒体(Middle-Box)和内部目标AS。所述中间盒体和所述内部目标AS是不同的网络实体,通过网络连接进行通信。所述中间盒体的网络地址为所述目标AS IP地址。其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,可以包括:将所述第三上行NAT参数配置至所述中间盒体,以便所述中间盒体根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包,并通过与所述内部目标AS连接的网络,将所述第二NAT转换后的上行数据包发送给所述内部目标AS;将所述源AS的源AS IP地址作为所述内部目标AS的网络地址,以便所述内部目标AS通过与所述中间盒体连接的网络,从所述中间盒体接收所述第二NAT转换后的上行数据包。由于此时目标AS获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源端口号(Port Number),目的IP地址,目的端口号(Port Number),就可以实现UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在示例性实施例中,所述数据包还可以包括下行数据包,所述第二NAT参数还可以包括第二下行NAT参数,所述第三NAT参数还可以包括第三下行NAT参数。其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并将从述源AS迁移至所述目标AS,还可以包括:根据所述第二下行NAT参数生成所述第三下行NAT参数;将所述第三下行NAT参数配置至所述中间盒体,以便所述中间盒体根据所述第三下行NAT参数对所述内部目标AS发送的下行数据包进行第三NAT转换,并将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包并发送所述第四NAT转换后的下行数据包至所述UE。UE接收到的下行数据包同之前接收到的下行数据包一样,具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现下行数据包数据连接的连续性,从而可以实现DL IP业务的连续性。
在示例性实施例中,所述目标AS可以包括第一NAT中间件(Middleware)和内部源AS。其中, 根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,可以包括:将所述第三上行NAT参数配置至所述第一NAT中间件,以便所述第一NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包,并将所述第二NAT转换后的上行数据包发送给内部源AS;将所述源AS的运行环境的映像(例如通过虚拟机迁移技术,将源AS迁移到目标AS后,源AS实际上保持不变)拷贝至所述内部源AS(使得所述内部源AS的网络地址为所述源AS IP地址),以便所述内部源AS通过所述第一NAT中间件接收所述第二NAT转换后的上行数据包。由于此时目标AS获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在示例性实施例中,所述数据包还可以包括下行数据包,所述第二NAT参数还可以包括第二下行NAT参数,所述第三NAT参数还可以包括第三下行NAT参数。其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,还可以包括:根据所述第二下行NAT参数生成所述第三下行NAT参数;将所述第三下行NAT参数配置至所述第一NAT中间件,以便所述第一NAT中间件根据所述第三下行NAT参数对所述内部源AS发送的下行数据包进行第三NAT转换,并将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包并发送所述第四NAT转换后的下行数据包至所述UE。UE接收到的下行数据包同之前接收到的下行数据包一样,具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现下行数据包数据连接的连续性,从而可以实现DL IP业务的连续性。
在示例性实施例中,所述目标AS可以包括目标IP协议栈和内部源AS运行程序,所述目标IP协议栈可以包括第二NAT中间件。其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,可以包括:将所述第三上行NAT参数发送至所述目标IP协议栈,以便将所述第三上行NAT参数配置至所述第二NAT中间件,所述第二NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得目的地址为所述源AS IP地址的所述上行数据包;将所述源AS的运行程序拷贝至所述目标AS获得所述内部源AS运行程序,所述内部源AS运行程序作为所述源AS的运行程序(使所述目标IP协议栈的网络地址为所述目标AS IP地址),以便所述内部源AS运行程序从所述目标IP协议栈接收目的地址为所述源AS IP地址的所述上行数据包。由于此时目标AS获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在示例性实施例中,所述数据包还可以包括下行数据包,所述第二NAT参数还可以包括第二下行NAT参数,所述第三NAT参数还可以包括第三下行NAT参数。其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,还可以包括:根据所述第二下行NAT参数生成所述第三下行NAT参数;将所述第三下行NAT参数发送至所述目标IP协议栈,以便将所述第三下行NAT参数配置至所述第二NAT中间件,所述第二NAT中间件根据所述第三下行NAT参数对所述内部源AS运行程序发送的下行数据包进行第三NAT转换,并将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包并发送所述第四NAT转换后的下行数据包至所述UE。UE接收到的下行数据包同之前接收到的下行数据包一样,具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现下行数据包数据连接的连续性,从而可以实现DL IP业务的连续性。
在示例性实施例中,所述UE源网络地址信息可以包括UE源IP地址和源UE端口号,所述UE目标网络地址信息可以包括UE目标IP地址和目标UE端口号,所述源AS网络地址信息还可以包括源AS端口号。
其中,所述第二上行NAT参数可以用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换 为所述目标AS IP地址;所述第三上行NAT参数可以用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址;或者,所述第二上行NAT参数可以用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,以及将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可以用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址,以及将第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第二上行NAT参数可以用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号;所述第三上行NAT参数可以用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源ASIP地址,将第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第二上行NAT参数可以用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号,以及将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可以用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,目的地址从所述目标AS IP地址转换为所述源AS IP地址,将第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号,将第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第二上行NAT参数可以用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可以用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第二上行NAT参数可以用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号,以及将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可以用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号,以及将第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号。
在示例性实施例中,所述第三下行NAT参数可以用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址;所述第二下行NAT参数可以用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址;或者,所述第三下行NAT参数可以用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,将所述下行数据包的目的端口从所述源UE端口号转换为所述目标UE端口号;所述第二下行NAT参数可以用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第三下行NAT参数可以用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP 地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,以及将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号;所述第二下行NAT参数可以用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,以及将第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第三下行NAT参数可以用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号,以及将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数可以用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标ASIP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,将第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号,以及将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第三下行NAT参数可以用于指示所述目标AS将所述下行数据包的源地址从所述源ASIP地址转换为所述目标AS IP地址,将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数可以用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第三下行NAT参数可以用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号,将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数可以用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号,以及将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号。
具体地,本公开实施例中的NAT转换可以包括如下六种情形中的任意一种:
1)转换上行数据包或者下行数据包的源地址和目的地址。
这种情况下,目标UPF/PSA接收到UE发送的上行数据包之后,目标UPF/PSA根据第二上行NAT参数将上行数据包的源地址从IPue1转换为IPue2,上行数据包的目的地址从所述IPas1转换为IPas2,获得第一NAT转换后的上行数据包,并将其发送至目标AS;目标AS从目标UPF/PSA接收到第一NAT转换后的上行数据包之后,根据第三上行NAT参数将第一NAT转换后的上行数据包的源地址从所述IPue2转换为IPue1,目的地址从IPas2转换为IPas1,获得第二NAT转换后的上行数据包,经过两次NAT转换后,该第二NAT转换后的上行数据包即为UE最初发送的上行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
目标AS生成准备发送至UE的下行数据包,该下行数据包的源地址为IPas1,目的地址为IPue1,目标AS根据第三下行NAT参数对该下行数据包进行第三NAT转换,即将该下行数据包的源地址从IPas1转换为IPas2,目的地址从IPue1转换为IPue2,获得第三NAT转换后的下行数据包,并发送至目标UPF/PSA。目标UPF/PSA接收到该第三NAT转换后的下行数据包,根据第二下行NAT参数将该第三NAT转换后的下行数据包的源地址从IPas2转换为IPas1,目的地址从IPue2转换为IPue1,以获得第四NAT转换后的下行数据包。经过两次NAT转换后,该第四NAT转换后的下行数据包即为目标AS最初发送的下行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
2)转换上行数据包或者下行数据包的源地址、目的地址和目的端口。
这种情况下,目标UPF/PSA接收到UE发送的上行数据包之后,目标UPF/PSA根据第二上行NAT参数将上行数据包的源地址从IPue1转换为IPue2,目的地址从所述IPas1转换为IPas2,目的端口从PORTas1转换为PORTas2,以获得第一NAT转换后的上行数据包,并将其发送至目标AS;目标 AS从目标UPF/PSA接收到第一NAT转换后的上行数据包之后,根据第三上行NAT参数将第一NAT转换后的上行数据包的源地址从所述IPue2转换为IPue1,目的地址从IPas2转换为IPas1,目的端口从PORTas2转换为PORTas1,以获得第二NAT转换后的上行数据包。经过两次NAT转换后,该第二NAT转换后的上行数据包即为UE最初发送的上行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
目标AS生成准备发送至UE的下行数据包,该下行数据包的源地址为IPas1,目的地址为IPue1,目的端口为PORTue1,目标AS根据第三下行NAT参数对该下行数据包进行第三NAT转换,即将该下行数据包的源地址从IPas1转换为IPas2,目的地址从IPue1转换为IPue2,目的端口从PORTue1转换为PORTue2,获得第三NAT转换后的下行数据包,并发送至目标UPF/PSA。目标UPF/PSA接收到该第三NAT转换后的下行数据包,根据第二下行NAT参数将该第三NAT转换后的源地址从IPas2转换为IPas1,目的地址从IPue2转换为IPue1,目标端口从PORTue2转换为PORTue1,以获得第四NAT转换后的下行数据包。经过两次NAT转换后,该第四NAT转换后的下行数据包即为目标AS最初发送的下行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
3)转换上行数据包或者下行数据包的源地址、源端口和目的地址。
这种情况下,目标UPF/PSA接收到UE发送的上行数据包之后,目标UPF/PSA根据第二上行NAT参数将上行数据包的源地址从IPue1转换为IPue2,目的地址从所述IPas1转换为IPas2,源端口从PORTue1转换为PORTue2,获得第一NAT转换后的上行数据包,并将其发送至目标AS;目标AS从目标UPF/PSA接收到第一NAT转换后的上行数据包之后,根据第三上行NAT参数将第一NAT转换后的上行数据包的源地址从所述IPue2转换为IPue1,目的地址从IPas2转换为IPas1,源端口从PORTue2转换为PORTue1,以获得第二NAT转换后的上行数据包。经过两次NAT转换后,该第二NAT转换后的上行数据包即为UE最初发送的上行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
目标AS生成准备发送至UE的下行数据包,该下行数据包的源地址为IPas1,目的地址为IPue1,源端口为PORTas1,目标AS根据第三下行NAT参数对该下行数据包进行第三NAT转换,即将该下行数据包的源地址从IPas1转换为IPas2,目的地址从IPue1转换为IPue2,源端口从PORTas1转换为PORTas2,获得第三NAT转换后的下行数据包,并发送至目标UPF/PSA。目标UPF/PSA接收到该第三NAT转换后的下行数据包,根据第二下行NAT参数将该第三NAT转换后的源地址从IPas2转换为IPas1,目的地址从IPue2转换为IPue1,源端口从PORTas2转换为PORTas1,以获得第四NAT转换后的下行数据包。经过两次NAT转换后,该第四NAT转换后的下行数据包即为目标AS最初发送的下行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
4)转换上行数据包或者下行数据包的源地址、源端口、目的地址和目的端口。
这种情况下,目标UPF/PSA接收到UE发送的上行数据包之后,目标UPF/PSA根据第二上行NAT参数将上行数据包的源地址从IPue1转换为IPue2,目的地址从所述IPas1转换为IPas2,源端口从PORTue1转换为PORTue2,目的端口从PORTas1转换为PORTas2,获得第一NAT转换后的上行数据包,并将其发送至目标AS;目标AS从目标UPF/PSA接收到第一NAT转换后的上行数据包之后,根据第三上行NAT参数将第一NAT转换后的上行数据包的源地址从所述IPue2转换为IPue1,目的地址从IPas2转换为IPas1,源端口从PORTue2转换为PORTue1,目的端口从PORTas2转换为PORTas1,以获得第二NAT转换后的上行数据包。经过两次NAT转换后,该第二NAT转换后的上行数据包即为UE最初发送的上行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
目标AS生成准备发送至UE的下行数据包,该下行数据包的源地址为IPas1,目的地址为IPue1,源端口为PORTas1,目的端口为PORTue1,目标AS根据第三下行NAT参数对该下行数据包进行第三NAT转换,即将该下行数据包的源地址从IPas1转换为IPas2,目的地址从IPue1转换为IPue2,源端口从PORTas1转换为PORTas2,目的端口从PORTue1转换为PORTue2,获得第三NAT转换后的下行数据包,并发送至目标UPF/PSA。目标UPF/PSA接收到该第三NAT转换后的下行数据 包,根据第二下行NAT参数将该第三NAT转换后的源地址从IPas2转换为IPas1,该第三NAT转换后的目的地址从IPue2转换为IPue1,该第三NAT转换后的源端口从PORTas2转换为PORTas1,该第三NAT转换后的目的端口从PORTue2转换为PORTue1,以获得第四NAT转换后的下行数据包。经过两次NAT转换后,该第四NAT转换后的下行数据包即为目标AS最初发送的下行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
5)转换上行数据包或者下行数据包的源地址和目的端口。
这种情况下,目标UPF/PSA接收到UE发送的上行数据包之后,目标UPF/PSA根据第二上行NAT参数将上行数据包的源地址从IPue1转换为IPue2,目的端口从PORTas1转换为PORTas2,获得第一NAT转换后的上行数据包,并将其发送至目标AS;目标AS从目标UPF/PSA接收到第一NAT转换后的上行数据包之后,根据第三上行NAT参数将第一NAT转换后的上行数据包的源地址从所述IPue2转换为IPue1,目的端口从PORTas2转换为PORTas1,以获得第二NAT转换后的上行数据包。经过两次NAT转换后,该第二NAT转换后的上行数据包即为UE最初发送的上行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
目标AS生成准备发送至UE的下行数据包,该下行数据包的源地址为IPas1,目的端口为PORTue1,目标AS根据第三下行NAT参数对该下行数据包进行第三NAT转换,即将该下行数据包的源地址从IPas1转换为IPas2,目的端口从PORTue1转换为PORTue2,获得第三NAT转换后的下行数据包,并发送至目标UPF/PSA。目标UPF/PSA接收到该第三NAT转换后的下行数据包,根据第二下行NAT参数将该第三NAT转换后的源地址从IPas2转换为IPas1,目的端口从PORTue2转换为PORTue1,以获得第四NAT转换后的下行数据包。经过两次NAT转换后,该第四NAT转换后的下行数据包即为目标AS最初发送的下行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
6)转换上行数据包或者下行数据包的源地址、源端口和目的端口。
这种情况下,目标UPF/PSA接收到UE发送的上行数据包之后,目标UPF/PSA根据第二上行NAT参数将上行数据包的源地址从IPue1转换为IPue2,源端口从PORTue1转换为PORTue2,目的端口从PORTas1转换为PORTas2,获得第一NAT转换后的上行数据包,并将其发送至目标AS;目标AS从目标UPF/PSA接收到第一NAT转换后的上行数据包之后,根据第三上行NAT参数将第一NAT转换后的上行数据包的源地址从所述IPue2转换为IPue1,将第一NAT转换后的上行数据包的源端口从PORTue2转换为PORTue1,将第一NAT转换后的上行数据包的目的端口从PORTas2转换为PORTas1,以获得第二NAT转换后的上行数据包。经过两次NAT转换后,该第二NAT转换后的上行数据包即为UE最初发送的上行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
目标AS生成准备发送至UE的下行数据包,该下行数据包的源地址为IPas1,源端口为PORTas1,目的端口为PORTue1,目标AS根据第三下行NAT参数对该下行数据包进行第三NAT转换,即将该下行数据包的源地址从IPas1转换为IPas2,源端口从PORTas1转换为PORTas2,目的端口从PORTue1转换为PORTue2,获得第三NAT转换后的下行数据包,并发送至目标UPF/PSA。目标UPF/PSA接收到该第三NAT转换后的下行数据包,根据第二下行NAT参数将该第三NAT转换后的源地址从IPas2转换为IPas1,将该第三NAT转换后的源端口从PORTas2转换为PORTas1,将该第三NAT转换后的目的端口从PORTue2转换为PORTue1,以获得第四NAT转换后的下行数据包。经过两次NAT转换后,该第四NAT转换后的下行数据包即为目标AS最初发送的下行数据包,即具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number。
其中,在上述5)和6)中对于上行数据包而言,未转换目的地址,此时可以认为目标AS与源AS处于同一局域网内,即IPas1等于IPas2。
在下面的举例说明中,均以上述4)为例进行举例说明,即同时转换上行数据包或者下行数据包的源地址、源端口、目的地址和目的端口,但本公开并不限定于此。
本公开实施方式提供的实现通信连续性的方法,当UE已利用分配的UE源网络地址信息与源应用服务器AS建立连接,进行通信后,若AF确定从源AS迁移至目标AS,则AF可以向SMF传输第 一NAT参数,这样,SMF可以在接收到第一NAT参数后,重新选择目标UPF/PSA,目标UPF/PSA可以重新为该UE分配新的UE目标网络地址信息,目标UPF/PSA可以根据UE原来的UE源网络地址信息和该重新分配的UE目标网络地址信息,以及根据第一NAT参数生成第二NAT参数,从而使得当目标UPF/PSA接收到数据包时,目标UPF/PSA可以根据该第二NAT参数对该数据包进行NAT转换。目标UPF/PSA可以将该第二NAT参数发送给SMF,SMF可以将该第二NAT参数再传递给AF,AF可以进一步根据接收到的第二NAT参数给目标AS配置第三NAT参数,这样,当目标AS获取到数据包时,目标AS可以根据该第三NAT参数对获取的数据包进行NAT转换,即同一个数据包经过目标UPF/PSA和目标AS的两次NAT转换,从而使得目标AS最终获得的数据包的源地址和目的地址与UE最初发送的源地址和目的地址保持不变,或者使UE最终获得的数据包的源地址和目的地址与目标AS最初发送的源地址和目的地址保持不变。一方面,利用网络地址转换技术,能够实现当AS发生迁移时,保持业务的连续性;另一方面,在AS迁移后对内核无需修改,容易实现,是一种可用的和可靠地实现AS迁移后的通信的连续性的技术,容易进行标准化与大规模部署。
下面结合图4-10对图3实施例提供的方法进行举例说明。
图4示意性示出了根据本公开的一实施例的实现通信连续性的方法的交互示意图。
在图4实施例的步骤1中,UE通过SMF,UPF/PSA1建立了一个PDU会话。
在图4实施例的步骤2中,UE与(E)AS1(对应的网络地址表示为IPas1)建立了IP连接,进行业务的交互。
UPF/PSA1为UE分配了一个IP地址,标记为IPue1。UE通过分配的IPue1与一个(E)AS1建立了IP连接,进行IP通信。UL(Uplink,上行)数据包与DL(Downlink,下行)数据包的信息例如可分别参见图4的步骤16与步骤21。
在图4实施例的步骤3a中,SMF向AF发送Nsmf_EventExposure_Notify(早通知)。
本公开实施例中,早通知表示为Early Notification,下文中的晚通知表示为Late Notification。
若SMF发现UE远离了原来的位置,确定触发将(E)AS1迁移到离UE更近的一个目标应用服务器(E)AS2,因此向AF发送Nsmf_EventExposure_Notify(Early Notification),即事件开放早通知消息。
在图4实施例的步骤4中,AF从SMF接收到Nsmf_EventExposure_Notify(Early Notification)后,确定要将(E)AS1迁移到(E)AS2。
需要说明的是,本公开实施例中,AF可以根据SMF发送的Nsmf_EventExposure_Notify(Early Notification)确定要将(E)AS1迁移到(E)AS2,但在其他实施例中,AF也可以自行触发将(E)AS1迁移到另外一个目标应用服务器(E)AS2(例如(E)AS1快过载了),因此图4中的步骤3a是可选的,但本公开对此不做限定。
在图4实施例的步骤5a中,AF向SMF发送Nsmf_EventExposure_AppRelocationInfo(IPas2与PORTas2)。
若图4中的步骤3a执行了,则AF向SMF发送Nsmf_EventExposure_AppRelocationInfo(IPas2与PORTas2),即事件开放应用重定位消息,且该事件开放应用重定位消息中包含有(E)AS2的IPas2。可选的,还可以同时包含与UE通信的(E)AS2的Port Number(端口号),即PORTas2。图4中的步骤5a也是可选的。
在图4实施例的步骤6中,AF向PCF发送Npcf_PolicyAuthorization_Create/Update请求(IPas2与PORTas2)。
若图4中的步骤3a和步骤5a没有执行,而是由AF发起路由更新更新的命令,则AF向PCF发送Npcf_PolicyAuthorization_Create/Update Request(请求),即策略授权建立/更新请求消息,且该策略授权建立/更新请求消息中包括IPas2。可选的,还可以同时包含PORTas2。
在图4实施例的步骤7中,PCF从AF接收到Npcf_PolicyAuthorization_Create/Update请求(IPas2与PORTas2)之后,向SMF发送Npcf_SMPolicyControl_UpdateNotify(IPas2与PORTas2)。
PCF向SMF发送Npcf_SMPolicyControl_UpdateNotify即会话管理策略控制更新通知消息,且该会话管理策略控制更新通知消息中包括IPas2。可选的,还可以同时包含PORTas2。图4中的步骤6和步骤7是可选的。
图4实施例的步骤8a是可选的,PDU会话的SSC模式2或SSC模式3的锚重定位过程(分配的IPue2不传递给UE)。
若SMF确定发起PDU Session的SSC(Session and Service Continuity,会话和服务连续性)Mode(模式)2或SSC Mode 3的Anchor重定位,则对于SSC Mode 2与SSC Mode 3,SMF选择一个新的PSA2,PSA2为此UE分配一个新的IPue2地址,但可以不将此IPue2地址传递给UE,即UE仍然使用之前的IPue1(UE被要求使用之前的IP地址),但在下面步骤17中,PSA2会将之前的IPue1通过NAT转换为新的IPue2。PSA2分配对应的CN Tunnel Information(核心网隧道信息,其中CN是Core Network即核心网),并将核心网隧道信息传输给SMF,SMF选择一个新的UL CL(Uplink Classifer)/BP(Branching Point)作为目标UL CL/BP,然后向UL CL/BP和RAN(Radio AN,无线接入网,图4中未示出)配置该核心网隧道信息。
其中,CN Tunnel Information可以包括GTP-U(General packet radio service Tunnel Protocol-User,用户面通用无线分组业务(GPRS)隧道传输协议)tunnel IP address(GTP-U隧道IP地址)和TEID(Tunnel Endpoint Identifier,隧道端点标识)information(TEID信息)。
在图4实施例的步骤8b中,SMF向PSA2发送N4会话建立请求消息(N4 Session Establishment Request),PSA2向SMF返回N4会话建立响应消息(N4 Session Establishment Response)。
若步骤8a没有执行,而是SMF确定增加或修改UL CL/BP的PSA2,则SMF选择一个新的PSA2,PSA2为此UE分配一个新的IPue2地址,但不将此IPue2地址传递给UE,即UE仍然使用之前的IPue1,但在下面步骤17中,PSA2会将之前的IPue1通过NAT转换为新的IPue2。PSA2分配对应的CN Tunnel Information,并将CN Tunnel Information传输给SMF。
AF将第一NAT参数传递给SMF的方式不限于上述例举的几种方式。
在上述步骤8a和8b中,SMF还向PSA2发送指示信息,以用于命令在未接收到数据传输通知之前,PSA2先缓冲(buffer)UL数据包。
在图4实施例的步骤9中,SMF向UL CL/BP发送N4会话建立请求消息(N4 Session Establishment Request),UL CL/BP向SMF返回N4会话建立响应消息(N4 Session Establishment Response)。
SMF选择一个新的UL CL/BP,然后向UL CL/BP和RAN配置PSA2所分配的CN Tunnel Information。
在图4实施例的步骤10中,若UE在此时向UL CL/BP发送UL IP即上行数据包,UL CL/BP再将接收到的上行数据包发送至PSA2,则PSA2此时先缓存该上行数据包,PSA2不立即将该上行数据包发往N6,而是缓冲,直到步骤15后才发。
在图4实施例的步骤11中,SMF向PSA2发送N4会话指令(N4 Session Command),指示PSA2进行NAT转换与转向。
SMF向PSA2发NAT指示,指示将(E)AS1的IPas1与PORTas1转换为(E)AS2的IPas2与PORTas2。还可以同时指示将UE的IPue1转换为UE新的IPue2。
在图4实施例的步骤12中,PSA2向SMF返回N4会话响应(N4 Session Response),该N4Session Response携带第二NAT参数,该第二NAT参数包括IPas2。可选的,还可以同时包含PORTas2。
PSA2回复SMF,并可以在该第二NAT参数中同时指示将UE的PORTue1转换为PORTue2。该第二NAT参数可以包括第二上行NAT参数和第二下行NAT参数,其中第二上行NAT参数是指PSA2用于对UE发送的上行数据包进行NAT转换的参数,第二下行NAT参数是指PSA2用于对从目标AS接收到的下行数据包(这里指已经经过第三NAT转换的下行数据包)进行NAT转换的参数。
在图4实施例的步骤13中,SMF向AF发送Nsmf_EventExposure_Notify(Late Notification,NAT参数(IPas2与PORTas2)),即事件开放晚通知消息。
SMF通过Nsmf_EventExposure_Notify(Late Notification,NAT参数(IPas2与PORTas2)),向AF通告可进行(E)AS1到(E)AS2的切换了。在事件开放晚通知消息中包含NAT参数,例如指示将(E)AS1的IPas1与PORTas1转换为(E)AS2的IPas2与PORTas2,将UE的IPue1转换为UE新的IPue2,将UE 的PORTue1转换为PORTue2。
在图4实施例的步骤14中,AF将(E)AS1迁移到(E)AS2。
AF接收到Nsmf_EventExposure_Notify(Late Notification,NAT参数(IPas2与PORTas2))之后,将(E)AS1迁移到(E)AS2,(E)AS2的IP地址已经改变到IPas2上。
在图4实施例的步骤15中,SMF向PSA2发送N4 Session Command(即数据传输通知),以通知PSA2可以开始通过N6接口发送上行数据包与接收下行数据包,同时PSA2也要进行NAT转换。
在图4实施例的步骤16中,UE向UL CL/BP发送UL IP数据包(即上述UL数据包)即上行数据包,UL CL/BP再将该上行数据包转发至PSA2。
例如,UE继续发送UL数据包,该UL数据包的源地址为IPue1,目的地址为IPas1,源端口为PORTue1,目的端口为PORTas1,该UL数据包还可以包括传输协议,即表示为UL IP数据包(源IPue1,目的IPas1,源端口PORTue1,目的端口PORTas1,传输协议)。
在图4实施例的步骤17中,PSA2根据第二上行NAT参数对该上行数据包进行第一NAT转换,获得第一NAT转换后的上行数据包。
例如,PSA2进行UL IP数据包的第一NAT转换,将IPas1与PORTas1转换为IPas2与PORTas2,将IPue1转换为IPue2,将PORTue1转换为PORTue2,获得第一NAT转换后的UL IP数据包(源IPue2,目的IPas2,源端口PORTue2,目的端口PORTas2,传输协议)。
在图4实施例的步骤18中,PSA2将该第一NAT转换后的上行数据包发送至(E)AS2。
例如,PSA2将第一NAT转换后的UL IP数据包(源IPue2,目的IPas2,源端口PORTue2,目的端口PORTas2,传输协议)发给(E)AS2。
其中,(E)AS2接收到该第一NAT转换后的UL IP数据包(源IPue2,目的IPas2,源端口PORTue2,目的端口PORTas2,传输协议)后,还会对其进行第二NAT转换,以获得UL IP数据包(源IPue1,目的IPas1,源端口PORTue1,目的端口PORTas1,传输协议),具体参见下面的图6-图10。由于此时(E)AS2获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在图4实施例的步骤19中,(E)AS2生成DL IP数据包即下行数据包,并将该下行数据包发送至PSA2。
(E)AS2生成下行数据包,例如,可表示为DL IP数据包(源IPas1,目的IPue1,源端口PORTas1,目的端口PORTue1,传输协议);(E)AS2并对其进行第三NAT转换后,将该第三NAT转换后的下行数据包发送至PSA2,例如,该第三NAT转换后的下行数据包可表示为DL IP数据包(源IPas2,目的IPue2,源端口PORTas2,目的端口PORTue2,传输协议),具体参见下面的图6-图10。
在图4实施例的步骤20中,PSA2接收到目标AS发送的第三NAT转换后的下行数据包后,根据第二下行NAT参数对从目标AS接收到的第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包。
例如,该第三NAT转换后的下行数据包可表示为DL IP数据包(源IPas2,目的IPue2,源端口PORTas2,目的端口PORTue2,传输协议),PSA2再次对接收到的该第三NAT转换后的下行数据包做第四NAT转换,获得DL IP数据包(源IPas1,目的IPue1,源端口PORTas1,目的端口PORTue1,传输协议)。
在图4实施例的步骤21中,PSA2将该第四NAT转换后的下行数据包发送至UL CL/BP,UL CL/BP再将其转发给UE。
例如,PSA2将DL IP数据包(源IPas1,目的IPue1,源端口PORTas1,目的端口PORTue1,传输协议)发送给UL CL/BP,然后通过RAN到达UE。由于此时UE接收到的DL IP数据包与(E)AS1所发送的DL数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
同时由于UL与DL IP数据包都能够实现IP包数据连接的连续性,从而可以实现UL与DL IP业务的连续性,因此整个IP业务的连续性得到保证。
在本公开实施例中,因上述步骤16和步骤21对应的UL和DL数据包与步骤2中的UL和DL数据包的信息一致,即源地址、目的地址、源端口与目的端口都没有改变,所以IP连接保持,因此业务的连续性得到了保证。下面通过图6-图10的实施例来阐明(E)AS2的IP地址改变为IPas2后仍然能够保持IP连接的方式。
图5示意性示出了根据本公开的另一实施例的实现通信连续性的方法的交互示意图。
图5实施例与上述图4实施例的不同之处在于,用步骤3b和3c代替图4中的步骤3a,并用步骤5b和5c代替图4中的步骤5a,用步骤13a和13b代替图4中的步骤13。
在图5实施例的步骤3b中,SMF向NEF发送Nsmf_EventExposure_Notify(Early Notification),即事件开放早通知消息。
在图5实施例的步骤3c中,NEF接收到Nsmf_EventExposure_Notify(Early Notification)之后,再向AF发送Nnef_TrafficInfluence_Notify(早通知),即数据影响早通知消息。
在图5实施例的步骤5b中,AF向NEF发送Nnef_TrafficInfluence_AppRelocationInfo(IPas2与PORTas2),即数据影响应用重定位信息消息。
在图5实施例的步骤5c中,NEF接收到Nnef_TrafficInfluence_AppRelocationInfo(IPas2与PORTas2)之后,NEF向SMF发送Nsmf_EventExposure_AppRelocationInfo(IPas2与PORTas2),即事件开放应用重定位消息。
在图5实施例的步骤13a中,SMF向NEF发送Nsmf_EventExposure_Notify(晚通知,NAT参数(IPas2与PORTas2)),即事件开放晚通知消息。
在图5实施例的步骤13b中,NEF接收到Nsmf_EventExposure_Notify(晚通知,NAT参数(IPas2与PORTas2))之后,向AF发送Nnef_TrafficInfluence_Notify(晚通知,NAT参数(IPas2与PORTas2)),即数据影响晚通知消息。
图6示意性示出了根据本公开的又一实施例的实现通信连续性的方法的交互示意图。图6实施例的流程是在图4或图5的基础上进行的在AF与(E)AS2侧的细化。
如图6所示,(E)AS2可以包括M-B(Middle-Box,中间盒体)和I-(E)AS2(内部目标AS)。也就是将(E)AS1的Application(应用)及其运行的整个操作系统的用户上下文数据迁移到了I-(E)AS2,即I-(E)AS2保持原有的(E)AS1完全相同的应用与系统上下文,相当于将(E)AS1搬到I-(E)AS2,同时,在I-(E)AS2前面部署一个中间盒体,这样中间盒体与I-(E)AS2形成一个(E)AS2。其中M-B和I-(E)AS2是不同的网络实体,通过网络连接进行通信。I-(E)AS2保持(E)AS1的IPas1的地址不变,与UE的连接的上下文也不改变。
图6实施例与上述图4和图5实施例的不同之处在于,可以将上述步骤14拆分为步骤14-1和步骤14-2,步骤18之后可以进一步包括步骤18-1和步骤18-2,步骤19之前可以进一步包括步骤19-1和步骤19-2。
在图6实施例的步骤14-1中,AF在M-B上设置第三NAT参数。
本公开实施例中,该第三NAT参数可以包括第三上行NAT参数和第三下行NAT参数,其中第三上行NAT参数是指目标AS对从目标UPF/PSA接收到的第一NAT转换后的上行数据包进行NAT转换的参数,第三下行NAT参数是指目标AS对自身生成的下行数据包进行NAT转换的参数。
具体地,AF可以根据步骤13中提供的第二上行NAT参数生成第三上行NAT参数,根据第二下行NAT参数生成第三下行NAT参数,然后将该第三上行NAT参数和第三下行NAT参数发送给M-B,以指示M-B作与PSA2对应的NAT转换。
但本公开并不限定于此,例如,AF也可以直接将第二上行NAT参数和第二下行NAT参数发送给目标AS,由目标AS自己根据第二上行NAT参数生成第三上行NAT参数,根据第二下行NAT参数生成第三下行NAT参数。
例如,对于UL数据包,PSA2的第一NAT转换是:将UL数据包的目的地址IPas1转换为IPas2,将目的端口PORTas1转换为PORTas2,将UL数据包的源地址IPue1转换为IPue2,源端口PORTue1转换为PORTue2(见图4中的步骤17),则AF要求M-B对经过第一NAT转换后的UL数据 包的第二NAT转换是:将IPas2与PORTas2转换为IPas1与PORTas1,IPue2与PORTue2转换为IPue1与PORTue1(见下面的步骤18-1)。由于使得(E)AS2获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
例如,对于DL数据包,PSA2的第四NAT转换是:将第三NAT转换后的DL数据包的源地址IPas2转换为IPas1,将源端口PORTas2转换为PORTas1,将第三NAT转换后的DL数据包的目的地址IPue2转换为IPue1,目的端口IPORTue2转换为PORTue1(见步骤20),则AF要求M-B对DL数据包的第三NAT转换是:将IPue1与PORTue1转换为IPue2与PORTue2,IPas1与PORTas1转换为IPas2与PORTas2。由于使得UE接收到的DL IP数据包与(E)AS1所发送的DL数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
AF如何为(E)AS2选择M-B,则不作限制规定。另外AF在发送M-B消息前,就已经知道M-B对应的IP地址是IPas2,并已经在前面的步骤中,将此IPas2地址提供给PSA2了。
在图6实施例的步骤14-2中,AF将(E)AS1迁移到I-(E)AS2,I-(E)AS2保持原有的(E)AS1的IP所有上下文,即IPas1的地址不变,与UE的连接的上下文也不改变。
AF将(E)AS1的用户上下文迁移到I-(E)AS2上来,I-(E)AS2保持原有的(E)AS1的IP的上下文,即IPas1的地址不变,与UE的连接的上下文也不改变,即此时I-(E)AS2的IP地址也是IPas1。M-B对外的IP地址是IPas2,而M-B与I-(E)AS2联合组成为(E)AS2,这样(E)AS2的外部网络地址是IPas2。
在图6实施例的步骤18-1中,M-B从PSA2接收到第一NAT转换后的上行数据包后,对该第一NAT转换后的上行数据包进行第二NAT转换,获得该第二NAT转换后的上行数据包。
例如,M-B对第一NAT转换后的UL数据包执行对应的第二NAT转换,将IPas2与PORTas2转换为IPas1与PORTas1,IPue2与PORTue2转换为IPue1与PORTue1,即获得UL IP数据包(源IPue1,目的IPas1,源端口PORTue1,目的端口PORTas1,传输协议)。
在图6实施例的步骤18-2中,M-B将该上行数据包发送至I-(E)AS2。
M-B将第二NAT转换后的UL数据包(即UE发送的UL数据包)转发给I-(E)AS2,因UL数据包的源地址、目的地址、源端口、目的端口及传输协议都没有改变,因此,I-(E)AS2可以无缝地继续与UE进行通信。
在图6实施例的步骤19-1中,I-(E)AS2生成下行数据包,并将其发送至M-B。
I-EAS2发送DL数据包,例如假设为DL IP数据包(源IPas1,目的IPue1,源端口PORTas1,目的端口PORTue1,传输协议)。
在图6实施例的步骤19-2中,M-B从I-(E)AS2接收到该下行数据包后,对该下行数据包进行第三NAT转换,生成第三NAT转换后的下行数据包,并将该第三NAT转换后的下行数据包发送至PSA2。
例如,M-B对DL数据包执行第三NAT转换,将IPue1与PORTue1转换为IPue2与PORTue2,IPas1与PORTas1转换为IPas2与PORTas2,即生成第三NAT转换后的DL IP数据包(源IPas2,目的IPue2,源端口PORTas2,目的端口PORTue2,传输协议)。
PSA2对接收到的经过第三NAT转换的下行数据包再次进行第四NAT转换,然后将该第四NAT转换后的下行数据包发送至UE,由于此时UE接收到的DL IP数据包与(E)AS1所发送的DL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
同时由于UL与DL IP数据包都能够实现IP包数据连接的连续性,从而可以实现UL与DL IP业务的连续性,因此整个IP业务的连续性得到保证。
图6中的其它的步骤均可参加上述图4和图5实施例。
图7示意性示出了根据本公开的一实施例的目标应用服务器的架构示意图。如图7所示,(E)AS2可以包括NAT M-W(NAT Middle Ware,即第一NAT中间件,图8中简写为M-W)和I-(E)AS1(内部源AS),在(E)AS2所在目标应用服务器上采用类似于VM(Virtual Machine,虚拟机)技术,即将(E)AS1迁移到(E)AS2作为一个VM,用I-(E)AS1表示。
同上述图6实施例,将(E)AS1的Application的用户上下文迁移到了I-(E)AS1,即I-(E)AS1保持原有的(E)AS1的IP的上下文,即IPas1的地址不变,与UE的连接的上下文也不改变。在(E)AS2目标应用服务器上的IP协议栈2与I-(E)AS1之间接入一个NAT M-W,其中NAT M-W所执行的功能与图6实施例中的M-B所执行的功能是一样的。
参见图7可知,I-(E)AS1具有(E)AS1的IP协议栈1。NAT M-W可以修改(E)AS2的IP协议栈2,使得NAT M-W获得PSA2发送的第一NAT转换后的上行数据包,并对该第一NAT转换后的上行数据包进行第二NAT转换,获得上行数据包。NAT M-W通过其API(Application Programming Interface,应用程序接口)将上行数据包传输给I-(E)AS1。
图8示意性示出了基于图7所示的目标应用服务器的实现通信连续性的方法的交互示意图。
图8实施例与上述图4和图5实施例的不同之处在于,可以将上述步骤14拆分为步骤14-1和步骤14-2,步骤18之后可以进一步包括步骤18-1和步骤18-2,步骤19之前可以进一步包括步骤19-1和步骤19-2。
在图8实施例的步骤14-1中,AF在M-W上设置第三NAT参数。本公开实施例中,该第三NAT参数可以包括第三上行NAT参数和第三下行NAT参数。
具体地,AF可以根据步骤13中提供的第二上行NAT参数生成第三上行NAT参数,根据第二下行NAT参数生成第三下行NAT参数,然后将该第三上行NAT参数和第三下行NAT参数发送给M-W,以指示M-W作与PSA2对应的NAT转换。
在图8实施例的步骤14-2中,AF将(E)AS1迁移到I-(E)AS1(作为VM),I-(E)AS1(作为VM)保持原有的(E)AS1的IP的上下文,即IPas1的地址不变,与UE的连接的上下文也不改变。
在图8实施例的步骤18-1中,M-W从PSA2接收到第一NAT转换后的上行数据包后,对该第一NAT转换后的上行数据包进行第二NAT转换,获得该第二NAT转换后的上行数据包。
在图8实施例的步骤18-2中,M-W将该上行数据包发送至I-(E)AS1(作为VM)。由于此时(E)AS2获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在图8实施例的步骤19-1中,I-(E)AS1(作为VM)生成下行数据包,并将其发送至M-W。
在图8实施例的步骤19-2中,M-W从I-(E)AS1(作为VM)接收到该下行数据包后,对该下行数据包进行第三NAT转换,生成第三NAT转换后的下行数据包,并将该第三NAT转换后的下行数据包发送至PSA2,以便PSA2对该第三NAT转换后的下行数据包进行第四NAT转换。
图8实施例类似图6实施例的流程图,只是将M-B替换为NAT M-W,且M-B与I-(E)AS2的交互是外部接口,而NAT M-W与I-(E)AS1的交互为内部接口。
PSA2对接收到的经过第三NAT转换的下行数据包再次进行第四NAT转换,然后将该下行数据包发送至UE,由于此时UE接收到的DL IP数据包与(E)AS1所发送的DL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
同时由于UL与DL IP数据包都能够实现IP包数据连接的连续性,从而可以实现UL与DL IP业务的连续性,因此整个IP业务的连续性得到保证。
图9示意性示出了根据本公开的另一实施例的目标应用服务器的架构示意图。如图9所示,(E)AS2可以包括(E)AS2的IP协议栈2(目标IP协议栈)和I-(E)AS1(内部源AS运行程序(running Application)),IP协议栈2中进一步包括NAT M-W(第二NAT中间件,图10中简写为M-W),从(E)AS1的运行程序迁移至(E)AS2,(E)AS2中具有了I-(E)AS1,I-(E)AS1作为(E)AS1的running Application,不具有(E)AS1的IP协议栈1,IP协议栈2获得PSA2发送的第一NAT转换后的上行数据包,利用IP协议栈2中的NAT M-W对该第一NAT转换后的上行数据包进行第二NAT转换,获得第二NAT转换后的上行数据包。IP协议栈2通过其API将该上行数据包传输给I-(E)AS1(内部源AS运行程序)。
图9实施例与图7实施例的区别是,图9实施例中的I-(E)AS1不是作为(E)AS1的VM((E)AS1的 VM是在此VM上有与(E)AS1的运营环境的Copy(拷贝)),这里是将(E)AS1的用户上下文迁移到(E)AS2上,但是由于(E)AS2的IP地址发生了改变,这时,在(E)AS2上安装一个NAT Middle Ware的中间件(相当于在计算机中安装了一个VPN(Virtual Private Network,虚拟专用网络)软件),将(E)AS2的IPas2映射到IPas1,即从I-(E)AS1来看,整个服务器的IP地址是IPas1,但实际上,其外部IP地址是IPas2。请注意此时的I-(E)AS1上没有IP协议栈1了。而图7实施例上的I-(E)AS1有自己的虚拟网卡与IP协议栈1。
图10示意性示出了基于图9所示的目标应用服务器的实现通信连续性的方法的交互示意图。
图10实施例与上述图4和图5实施例的不同之处在于,可以将上述步骤14拆分为步骤14-1和步骤14-2,步骤18之后可以进一步包括步骤18-1和步骤18-2,步骤19之前可以进一步包括步骤19-1和步骤19-2。
在图10实施例的步骤14-1中,AF在IP协议栈2上设置第三NAT参数(包括第三上行NAT参数和第三下行NAT参数),IP协议栈2中进一步包括M-W。
具体地,AF可以根据第二NAT参数生成第三NAT参数,然后将该第三NAT参数发送给IP协议栈2,IP协议栈2将该第三NAT参数传递给其内的M-W。
在图10实施例的步骤14-2中,AF将(E)AS1迁移到I-(E)AS1(内部源AS运行程序),I-(E)AS1(内部源AS运行程序)保持原有的(E)AS1的IP所有上下文,即IPas1的地址不变,与UE的连接的上下文也不改变。
在图10实施例的步骤18-1中,IP协议栈2从PSA2接收到第一NAT转换后的上行数据包后,利用其中的M-W对该第一NAT转换后的上行数据包进行第二NAT转换,获得该第二NAT转换后的上行数据包。
在图10实施例的步骤18-2中,IP协议栈2将该上行数据包发送至I-(E)AS1(内部源AS运行程序)。由于此时(E)AS2获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在图10实施例的步骤19-1中,I-(E)AS1(内部源AS运行程序)生成下行数据包,并将其发送至IP协议栈2。
在图10实施例的步骤19-2中,IP协议栈2从I-(E)AS1(内部源AS运行程序)接收到该下行数据包后,利用其内的M-W对该下行数据包进行第三NAT转换,生成第三NAT转换后的下行数据包,IP协议栈2将该第三NAT转换后的下行数据包发送至PSA2。
PSA2对接收到的经过第三NAT转换的下行数据包再次进行第四NAT转换,然后将该第四NAT转换后的下行数据包发送至UE,由于此时UE接收到的DL IP数据包与(E)AS1所发送的DL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
同时由于UL与DL IP数据包都能够实现IP包数据连接的连续性,从而可以实现UL与DL IP业务的连续性,因此整个IP业务的连续性得到保证。
图10实施例类似图6实施例的流程图,只是将M-B替换为NAT M-W,且M-B与I-(E)AS2的交互是外部接口,而NAT M-W与I-(E)AS1的交互为内部接口。
本公开实施方式提供的实现通信连续性的方法,对于上行数据包,当之前的网络(例如5G网络)在(E)AS1迁移到(E)AS2后,将(E)AS2新的IPas2做了NAT转换(对(E)AS的IP地址做了变换),则将(E)AS2的外部IP地址再次做NAT转换,将NAT转换后的新的外部IP地址转换为迁移前的(E)AS1的IPas1,从而只是(E)AS2所对应的外部IP地址发生了改变(即从IPas1改变为了IPas2),但(E)AS2内部的(E)AS(上述I-(E)AS2或I-(E)AS1)本身的IP地址不变,即仍然保持为IPas1,从而实现了IP地址的通信连续性。
对于上行数据包,若之前的5G网络在(E)AS1迁移到(E)AS2后,将(E)AS2新的IPas2做了NAT转换且对端口参数也做了NAT转换(即对(E)AS的IP地址与(E)AS目的端口和/或UE的源端口均做了变换),则将(E)AS2的外部IP地址再次做NAT转换,将NAT转换后的新的外部IP地址转换为迁移前的 (E)AS1的IPas1,并且将改变的目的端口和/或源端口进行NAT转换,从而只是(E)AS2所对应的外部IP地址和目的端口和/或源端口发生了改变(即从IPas1改变为了IPas2,从PORTas1改变为了PORTas2,和/或从PORTue1改变为了PORTue2),但(E)AS2内部的(E)AS(上述I-(E)AS2或I-(E)AS1)本身的IP地址不变,即仍然保持为IPas1,目的端口仍然保持为PORTas1,和/或源端口仍然保持为PORTue1,从而实现了IP地址的通信连续性。
由于通信的双向性,对于UL与DL IP数据包的处理是对称的。
图11示意性示出了根据本公开的另一实施例的实现通信连续性的方法的流程示意图。图11实施例提供的方法可以应用于目标应用服务器即目标AS。如图11所示,本公开实施例提供的方法可以包括以下步骤。
在步骤S1110中,利用AF配置第三NAT参数,从源AS迁移至所述目标AS,所述第三NAT参数是根据目标UPF/PSA的第二NAT参数生成的。
在步骤S1120中,获取数据包,其中所述数据包是所述目标UPF/PSA根据所述第二NAT参数进行NAT转换后生成的数据包或者所述目标AS生成的数据包。
在步骤S1130中,根据所述第三NAT参数对所述数据包进行NAT转换。
在步骤S1140中,若所述数据包是所述目标AS生成的数据包,则将根据所述第三NAT参数进行NAT转换后的数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二NAT参数再次进行NAT转换。
在示例性实施例中,所述数据包可包括UE发送的上行数据包,所述第二NAT参数可包括第二上行NAT参数,所述目标UPF/PSA可用于根据所述第二上行NAT参数对所述上行数据包进行第一NAT转换,所述第三NAT参数可包括第三上行NAT参数,所述源AS的源AS网络地址信息可包括源AS IP地址,所述AF可用于根据所述第二上行NAT参数生成所述第三上行NAT参数。
在示例性实施例中,所述目标AS可包括中间盒体和内部目标AS。所述中间盒体和所述内部目标AS是不同的网络实体,通过网络连接进行通信。所述中间盒体的网络地址为所述目标AS的目标AS IP地址。其中,所述利用AF配置第三NAT参数,从源AS迁移至所述目标AS,可包括:所述中间盒体从所述AF获取所述第三上行NAT参数;通过所述AF将所述源AS的源AS IP地址作为所述内部目标AS的网络地址。其中,所述根据所述第三NAT参数对所述数据包进行NAT转换,可包括:所述中间盒体从所述目标UPF/PSA接收第一NAT转换后的上行数据包;所述中间盒体根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包;所述中间盒体通过与所述内部目标AS连接的网络,将所述第二NAT转换后的上行数据包发送至所述内部目标AS。由于此时(E)AS2获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数,所述AF还可用于根据所述第二下行NAT参数生成所述第三下行NAT参数。其中,所述利用AF配置第三NAT参数,还可包括:所述中间盒体从所述AF获取所述第三下行NAT参数。其中,根据所述第三NAT参数对所述数据包进行NAT转换,还可包括:所述内部目标AS向所述中间盒体发送所述下行数据包;所述中间盒体根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;所述中间盒体将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至UE。由于此时UE接收到的DL IP数据包与(E)AS1所发送的DL数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
同时由于UL与DL IP数据包都能够实现IP包数据连接的连续性,从而可以实现UL与DL IP业务的连续性,因此整个IP业务的连续性得到保证。
在示例性实施例中,所述目标AS可包括第一NAT中间件和内部源AS。其中,利用AF配置第三 NAT参数,从源AS迁移至所述目标AS,可包括:所述第一NAT中间件从所述AF获取所述第三上行NAT参数;通过所述AF将所述源AS的运行环境的映像拷贝至所述内部源AS(使所述内部源AS的网络地址为所述源AS IP地址)。其中,根据所述第三NAT参数对所述数据包进行NAT转换,可包括:所述第一NAT中间件从所述目标UPF/PSA接收第一NAT转换后的上行数据包;所述第一NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包;所述第一NAT中间件将所述第二NAT转换后的上行数据包发送至所述内部源AS。由于此时(E)AS2获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数,所述AF还用于根据所述第二下行NAT参数生成所述第三下行NAT参数。其中,利用AF配置第三NAT参数,还可包括:所述第一NAT中间件从所述AF获取所述第三下行NAT参数。其中,所述根据所述第三NAT参数对所述数据包进行NAT转换,还可包括:所述内部源AS向所述第一NAT中间件发送所述下行数据包;所述第一NAT中间件根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;所述第一NAT中间件将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至UE。由于此时UE接收到的DL IP数据包与(E)AS1所发送的DL数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
同时由于UL与DL IP数据包都能够实现IP包数据连接的连续性,从而可以实现UL与DL IP业务的连续性,因此整个IP业务的连续性得到保证。
在示例性实施例中,所述目标AS可包括目标IP协议栈和内部源AS运行程序,所述目标IP协议栈可包括第二NAT中间件。其中,所述利用AF配置第三NAT参数,从源AS迁移至所述目标AS,可包括:所述目标IP协议栈从所述AF获取所述第三上行NAT参数;所述目标IP协议栈将所述第三上行NAT参数配置至所述第二NAT中间件;通过所述AF将所述源AS的运行程序拷贝至所述目标AS以获得所述内部源AS运行程序,所述内部源AS运行程序作为所述源AS的运行程序(使所述目标IP协议栈的网络地址为所述目标AS IP地址)。其中,根据所述第三NAT参数对所述数据包进行NAT转换,可包括:所述目标IP协议栈从所述目标UPF/PSA接收第一NAT转换后的上行数据包;所述第二NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得目的地址为所述源AS IP地址的所述上行数据包;所述目标IP协议栈将目的地址为所述源AS IP地址的所述上行数据包发送至所述内部源AS运行程序。由于此时(E)AS2获得UL IP数据包与(E)AS1所获得的UL IP数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了UL IP包数据连接的连续性,从而可以实现UL IP业务的连续性。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数,所述AF还可用于根据所述第二下行NAT参数生成所述第三下行NAT参数。其中,利用AF配置第三NAT参数,还可包括:所述目标IP协议栈从所述AF获取所述第三下行NAT参数;所述目标IP协议栈将所述第三下行NAT参数配置至所述第二NAT中间件。其中,所述根据所述第三NAT参数对所述数据包进行NAT转换,还可包括:所述内部源AS运行程序向所述目标IP协议栈发送下行数据包;所述第二NAT中间件根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;所述目标IP协议栈将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至UE。由于此时UE接收到的DL IP数据包与(E)AS1所发送的DL数据包具有相同的源IP地址,源Port Number,目的IP地址,目的Port Number,就可以实现了DL IP包数据连接的连续性,从而可以实现DL IP业务的连续性。
同时由于UL与DL IP数据包都能够实现IP包数据连接的连续性,从而可以实现UL与DL IP业务的连续性,因此整个IP业务的连续性得到保证。
本公开实施例提供的实现通信连续性的方法的具体实现可以参照上述其它实施例中实现通信连续性的方法中的内容,在此不再赘述。
图12示意性示出了根据本公开的又一实施例的实现通信连续性的方法的流程示意图。图12实施例提供的方法可以应用于用户设备UE对应的会话管理功能SMF,所述UE已利用分配的UE源网络地址信息与源应用服务器AS建立连接。如图12所示,本公开实施例提供的方法可以包括以下步骤。
在步骤S1210中,从AF获取第一NAT参数。
在步骤S1220中,确定目标UPF/PSA,以便所述目标UPF/PSA为所述UE重新分配UE目标网络地址信息,且使所述UE继续使用所述UE源网络地址信息。
在示例性实施例中,所述目标UPF/PSA还可以用于分配核心网隧道信息。其中,在确定目标协议数据单元会话锚点用户面功能UPF/PSA之后,所述方法还可以包括:从所述目标UPF/PSA获取所述核心网隧道信息;向所述目标UPF/PSA发送指示信息,以用于指示若所述目标UPF/PSA在接收到所述SMF发送的数据传输通知之前,从所述UE接收到上行数据包,则所述目标UPF/PSA缓冲所述上行数据包;选择目标UL CL/BP,并给所述目标UL CL/BP和无线接入网配置所述核心网隧道信息。
在步骤S1230中,向所述目标UPF/PSA发送所述第一NAT参数,以便所述目标UPF/PSA根据所述第一NAT参数、所述UE目标网络地址信息和所述UE源网络地址信息生成第二NAT参数。
在步骤S1240中,从所述目标UPF/PSA接收所述第二NAT参数,所述目标UPF/PSA用于根据所述第二NAT参数对接收到的数据包进行NAT转换。
在步骤S1250中,将所述第二NAT参数传递至所述AF,以便所述AF根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,所述目标AS用于根据所述第三NAT参数对所述数据包进行NAT转换。
在示例性实施例中,将所述NAT参数传递至所述AF之后,所述方法还可以包括:向所述目标UPF/PSA发送数据传输通知,以通知所述目标UPF/PSA通过目标上行分类器UL CL/BP接收所述UE发送的上行数据包,或者通过所述目标UL CL/BP向所述UE发送下行数据包。
本公开实施例提供的实现通信连续性的方法的具体实现可以参照上述其它实施例中实现通信连续性的方法中的内容,在此不再赘述。
图13示意性示出了根据本公开的再一实施例的实现通信连续性的方法的流程示意图。图13实施例提供的方法可以应用于用户设备UE,所述UE已利用分配的UE源网络地址信息与源应用服务器AS建立连接。如图13所示,本公开实施例提供的方法可以包括以下步骤。
在步骤S1310中,向目标UPF/PSA传输上行数据包,以便所述目标UPF/PSA根据第二上行NAT参数对所述上行数据包进行第一NAT转换,生成第一NAT转换后的上行数据包,并向目标AS发送第一NAT转换后的上行数据包。所述目标AS用于根据第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换。
在步骤S1320中,通过所述目标UPF/PSA接收下行数据包,其中所述目标AS用于根据第三下行NAT参数对所述下行数据包进行第三NAT转换,所述目标UPF/PSA用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换。
本公开实施例提供的实现通信连续性的方法的具体实现可以参照上述其它实施例中实现通信连续性的方法中的内容,在此不再赘述。
图14示意性示出了根据本公开的一实施例的应用功能设备的框图。如图14所示,本公开实施例提供了一种应用功能设备1400,应用功能设备1400可以包括:一个或多个处理器1401;存储器1403,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器1401执行时,使得所述一个或多个处理器1401实现如上述任一实施例所述的方法。
其中,与应用功能1400设备对应的用户设备UE已利用分配的UE源网络地址信息与源应用服务器AS建立连接。
其中,程序可具体用于:确定从所述源AS迁移至目标AS;向SMF传输第一NAT参数,以便所 述SMF确定目标UPF/PSA,所述目标UPF/PSA用于为所述UE重新分配UE目标网络地址信息,并根据所述第一NAT参数、所述UE源网络地址信息和所述UE目标网络地址信息生成并向所述SMF返回第二NAT参数,根据所述第二NAT参数对接收到的数据包进行NAT转换;从所述SMF获取所述第二NAT参数;根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,以便所述目标AS根据所述第三NAT参数对所述数据包进行NAT转换。
继续参考图14,程序可包括:应用服务器迁移确定单元14031,可以用于确定从所述源AS迁移至目标AS;第一NAT参数传输单元14032,可以用于向SMF传输第一NAT参数,以便所述SMF确定目标UPF/PSA,所述目标UPF/PSA用于为所述UE重新分配UE目标网络地址信息,并根据所述第一NAT参数、所述UE源网络地址信息和所述UE目标网络地址信息生成第二NAT参数,并向所述SMF返回第二NAT参数,根据所述第二NAT参数对接收到的数据包进行NAT转换;从所述SMF获取所述第二NAT参数;第二NAT参数获取单元14033,可以用于从所述SMF获取所述第二NAT参数;第三NAT参数配置单元14034,可以用于根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,以便所述目标AS根据所述第三NAT参数对所述数据包进行NAT转换。
在示例性实施例中,应用服务器迁移确定单元14031可配置为:从所述SMF接收事件开放早通知消息;根据所述事件开放早通知消息,确定从所述源AS迁移至所述目标AS。
在示例性实施例中,应用服务器迁移确定单元14031可配置为:从NEF接收数据影响早通知消息,其中所述NEF用于从所述SMF接收事件开放早通知消息,并根据所述事件开放早通知消息向所述AF发送所述数据影响早通知消息。
在示例性实施例中,所述第一NAT参数可包括所述目标AS的目标AS网络地址信息,所述目标AS网络地址信息可包括目标AS IP地址和目标AS端口号。
在示例性实施例中,第一NAT参数传输单元14032可配置为:向所述SMF发送事件开放应用重定位消息,所述事件开放应用重定位消息携带所述目标AS IP地址和所述目标AS端口号。
在示例性实施例中,第一NAT参数传输单元14032可配置为:向NEF发送数据影响应用重定位信息消息,所述数据影响应用重定位信息消息携带所述目标AS IP地址和所述目标AS端口号,以便所述NEF向所述SMF发送事件开放应用重定位消息,所述事件开放应用重定位消息携带所述目标AS IP地址和所述目标AS端口号。
在示例性实施例中,第一NAT参数传输单元14032可配置为:向策略控制功能PCF发送策略授权建立/更新请求消息,所述策略授权建立/更新请求消息携带所述目标AS IP地址和所述目标AS的目标AS端口号,以便所述PCF向所述SMF发送会话管理策略控制更新通知消息,所述会话管理策略控制更新通知消息携带所述目标AS IP地址和所述目标AS的目标AS端口号。
在示例性实施例中,所述数据包可包括所述UE发送的上行数据包,所述第二NAT参数可包括第二上行NAT参数,所述目标UPF/PSA可用于根据所述第二上行NAT参数对所述上行数据包进行第一NAT转换,所述第三NAT参数可包括第三上行NAT参数,所述源AS的源AS网络地址信息可包括源AS IP地址。其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,可包括:根据所述第二上行NAT参数生成所述第三上行NAT参数。
在示例性实施例中,所述目标AS可以包括中间盒体和内部目标AS,所述中间盒体和所述内部目标AS是不同的网络实体,通过网络连接进行通信,所述中间盒体的网络地址为所述目标AS IP地址。其中,第三NAT参数配置单元14034可配置:将所述第三上行NAT参数配置至所述中间盒体,以便所述中间盒体根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包,并通过与所述内部目标AS连接的网络,将所述上行数据包发送给所述内部目标AS;将所述源AS的源AS IP地址作为所述内部目标AS的网络地址,以便所述内部目标AS通过与所述中间盒体连接的网络,从所述中间盒体接收所述第二NAT转换后的上行数据包。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数。其中,第三NAT参数配置单元14034还 可配置为:根据所述第二下行NAT参数生成所述第三下行NAT参数;将所述第三下行NAT参数配置至所述中间盒体,以便所述中间盒体根据所述第三下行NAT参数对所述内部目标AS发送的下行数据包进行第三NAT转换,并将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至所述UE。
在示例性实施例中,所述目标AS可以包括第一NAT中间件和内部源AS。其中,第三NAT参数配置单元14034可配置:将所述第三上行NAT参数配置至所述第一NAT中间件,以便所述第一NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包,并将所述第二NAT转换后的上行数据包发送给内部源AS;将所述源AS的运行环境的映像拷贝至所述内部源AS(使所述内部源AS的网络地址为所述源AS IP地址),以便所述内部源AS通过所述第一NAT中间件接收所述第二NAT转换后的上行数据包。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数。其中,第三NAT参数配置单元14034还可配置为:根据所述第二下行NAT参数生成所述第三下行NAT参数;将所述第三下行NAT参数配置至所述第一NAT中间件,以便所述第一NAT中间件根据所述第三下行NAT参数对所述内部源AS发送的下行数据包进行第三NAT转换,并将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至所述UE。
在示例性实施例中,所述目标AS可以包括目标IP协议栈和内部源AS运行程序,所述目标IP协议栈包括第二NAT中间件。其中,第三NAT参数配置单元14034可配置:将所述第三上行NAT参数发送至所述目标IP协议栈,以便将所述第三上行NAT参数配置至所述第二NAT中间件,其中所述第二NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得目的地址为所述源AS IP地址的所述上行数据包;将所述源AS的运行程序拷贝至所述目标AS以获得所述内部源AS运行程序,所述内部源AS运行程序作为所述源AS的运行程序(使所述目标IP协议栈的网络地址为所述目标AS IP地址),以便所述内部源AS运行程序从所述目标IP协议栈接收目的地址为所述源AS IP地址的所述上行数据包。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数。其中,第三NAT参数配置单元14034还可配置为:根据所述第二下行NAT参数生成所述第三下行NAT参数;将所述第三下行NAT参数发送至所述目标IP协议栈,以便将所述第三下行NAT参数配置至所述第二NAT中间件,所述第二NAT中间件根据所述第三下行NAT参数对所述内部源AS运行程序发送的下行数据包进行第三NAT转换,并将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至所述UE。
在示例性实施例中,所述UE源网络地址信息可包括UE源IP地址和源UE端口号,所述UE目标网络地址信息可包括UE目标IP地址和目标UE端口号,所述源AS网络地址信息还可包括源AS端口号。其中,所述第二上行NAT参数可用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址;所述第三上行NAT参数可用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址;或者,所述第二上行NAT参数可用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址,将第一NAT转 换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第二上行NAT参数可用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号;所述第三上行NAT参数可用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源ASIP地址,以及将第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第二上行NAT参数可用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号,以及将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址,将第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号,以及将第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第二上行NAT参数可用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第二上行NAT参数可用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号,将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数可用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号,以及将第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号。
在示例性实施例中,所述UE源网络地址信息可包括UE源IP地址和源UE端口号,所述UE目标网络地址信息可包括UE目标IP地址和目标UE端口号,所述源AS网络地址信息还可包括源AS端口号。其中,所述第三下行NAT参数可用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址;所述第二下行NAT参数可用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址;或者,所述第三下行NAT参数可用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,将所述下行数据包的目的端口从所述源UE端口号转换为所述目标UE端口号;所述第二下行NAT参数可用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第三下行NAT参数可用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,以及将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号;所述第二下行NAT参数可用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,以及将第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号;或者,所述第三下行NAT参数可用于指示所述目标AS将所述下行数据包 的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号,以及将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数可用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标ASIP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,将第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号,以及将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第三下行NAT参数可用于指示所述目标AS将所述下行数据包的源地址从所述源ASIP地址转换为所述目标AS IP地址,将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数可用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,所述第三下行NAT参数可用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号,将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数可用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号,以及将第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号。
本公开实施例提供的应用功能设备中的各个单元的具体实现可以参照上述实现通信连续性的方法中的内容,在此不再赘述。
图15示意性示出了根据本公开的一实施例的目标应用服务器的框图。如图15所示,目标应用服务器1500可以包括:一个或多个处理器1501;存储器1503,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器1501执行时,使得所述一个或多个处理器1501实现如上述任一实施例中所述的方法。
其中,程序可具体用于:利用AF配置第三NAT参数,从源AS迁移至所述目标AS,所述第三NAT参数是根据目标UPF/PSA的第二NAT参数生成的;获取数据包,其中所述数据包是所述目标UPF/PSA根据所述第二NAT参数进行NAT转换后生成的数据包或者所述目标AS生成的数据包;根据所述第三NAT参数对所述数据包进行NAT转换;若所述数据包是所述目标AS生成的数据包,则将根据所述第三NAT参数进行NAT转换后的数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二NAT参数再次进行NAT转换。
继续参考图15,程序可进一步包括:第三NAT参数配置单元15031,可以用于利用AF配置第三NAT参数,从源AS迁移至所述目标AS,所述第三NAT参数是根据目标UPF/PSA的第二NAT参数生成的;数据包获取单元15032,可以用于获取数据包,其中所述数据包是所述目标UPF/PSA根据所述第二NAT参数进行NAT转换后生成的数据包或者所述目标AS生成的数据包;NAT转换单元15033,可以用于根据所述第三NAT参数对所述数据包进行NAT转换;数据包发送单元15034,可以用于:若所述数据包是所述目标AS生成的数据包,则将根据所述第三NAT参数进行NAT转换后的数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二NAT参数再次进行NAT转换。
在示例性实施例中,所述数据包可包括UE发送的上行数据包,所述第二NAT参数可包括第二上行NAT参数,所述目标UPF/PSA可用于根据所述第二上行NAT参数对所述上行数据包进行第一NAT转换,所述第三NAT参数可包括第三上行NAT参数,所述源AS的源AS网络地址信息可包括源AS IP地址,所述AF可用于根据所述第二上行NAT参数生成所述第三上行NAT参数。
在示例性实施例中,所述目标AS可包括中间盒体和内部目标AS。所述中间盒体和所述内部目标AS是不同的网络实体,通过网络连接进行通信。所述中间盒体的网络地址为所述目标AS的目标AS IP地址。其中,第三NAT参数配置单元15031可配置为:所述中间盒体从所述AF获取所述第三上行NAT参数;通过所述AF将所述源AS的源AS IP地址作为所述内部目标AS的网络地址。其中,NAT 转换单元15033可配置为:所述中间盒体从所述目标UPF/PSA接收第一NAT转换后的上行数据包;所述中间盒体根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包;所述中间盒体通过与所述内部目标AS连接的网络,将所述第二NAT转换后的上行数据包发送至所述内部目标AS。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数,所述AF还可用于根据所述第二下行NAT参数生成所述第三下行NAT参数。其中,第三NAT参数配置单元15031还可配置为:所述中间盒体从所述AF获取所述第三下行NAT参数。其中,NAT转换单元15033还可配置为:所述内部目标AS向所述中间盒体发送所述下行数据包;所述中间盒体根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;所述中间盒体将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包并发送所述第四NAT转换后的下行数据包至UE。
在示例性实施例中,所述目标AS可包括第一NAT中间件和内部源AS。其中,第三NAT参数配置单元15031可配置为:所述第一NAT中间件从所述AF获取所述第三上行NAT参数;通过所述AF将所述源AS的运行环境的映像拷贝至所述内部源AS(使所述内部源AS的网络地址为所述源AS IP地址)。其中,NAT转换单元15033可配置为:所述第一NAT中间件从所述目标UPF/PSA接收第一NAT转换后的上行数据包;所述第一NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包;所述第一NAT中间件将所述第二NAT转换后的上行数据包发送至所述内部源AS。
所述数据包还包括下行数据包,所述第二NAT参数还包括第二下行NAT参数,所述第三NAT参数还包括第三下行NAT参数,所述AF还用于根据所述第二下行NAT参数生成所述第三下行NAT参数。其中,第三NAT参数配置单元15031还可配置为:所述第一NAT中间件从所述AF获取所述第三下行NAT参数。其中,NAT转换单元15033还可配置为:所述内部源AS向所述第一NAT中间件发送所述下行数据包;所述第一NAT中间件根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;所述第一NAT中间件将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包并发送所述第四NAT转换后的下行数据包至UE。
在示例性实施例中,所述目标AS可包括目标IP协议栈和内部源AS运行程序,所述目标IP协议栈包括第二NAT中间件。其中,第三NAT参数配置单元15031可配置为:所述目标IP协议栈从所述AF获取所述第三上行NAT参数;所述目标IP协议栈将所述第三上行NAT参数配置至所述第二NAT中间件;通过所述AF将所述源AS的运行程序拷贝至所述目标AS以获得所述内部源AS运行程序,所述内部源AS运行程序作为所述源AS的运行程序(使所述目标IP协议栈的网络地址为所述目标AS IP地址)。其中,NAT转换单元15033可配置为:所述目标IP协议栈从所述目标UPF/PSA接收第一NAT转换后的上行数据包;所述第二NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得目的地址为所述源AS IP地址的所述上行数据包;所述目标IP协议栈将目的地址为所述源AS IP地址的所述上行数据包发送至所述内部源AS运行程序。
在示例性实施例中,所述数据包还可包括下行数据包,所述第二NAT参数还可包括第二下行NAT参数,所述第三NAT参数还可包括第三下行NAT参数,所述AF还可用于根据所述第二下行NAT参数生成所述第三下行NAT参数。其中,第三NAT参数配置单元15031还可配置为:所述目标IP协议栈从所述AF获取所述第三下行NAT参数;所述目标IP协议栈将所述第三下行NAT参数配置至所述第二NAT中间件。其中,NAT转换单元15033还可配置为:所述内部源AS运行程序向所述目标IP协议栈发送下行数据包;所述第二NAT中间件根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;所述目标IP协议栈将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换,获得第四NAT转换后的下行数据包并发送第四NAT转换后的下行数据包至UE。
本公开实施例提供的目标应用服务器中的各个单元的具体实现可以参照上述实现通信连续性的方 法中的内容,在此不再赘述。
图16示意性示出了根据本公开的一实施例的会话管理功能设备的框图。如图16所示,会话管理功能设备1600可以包括:一个或多个处理器1601;存储器1603,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器1601执行时,使得所述一个或多个处理器1601实现如上述任一实施例所述的方法。
其中,会话管理功能设备1600对应的UE已利用分配的UE源网络地址信息与源应用服务器AS建立连接。
其中,程序可具体用于:从AF获取第一NAT参数;确定目标UPF/PSA,以便所述目标UPF/PSA为所述UE重新分配UE目标网络地址信息,且使所述UE继续使用所述UE源网络地址信息;向所述目标UPF/PSA发送所述第一NAT参数,以便所述目标UPF/PSA根据所述第一NAT参数、所述UE目标网络地址信息和所述UE源网络地址信息生成第二NAT参数;从所述目标UPF/PSA接收所述第二NAT参数,所述目标UPF/PSA用于根据所述第二NAT参数对接收到的数据包进行NAT转换;将所述第二NAT参数传递至所述AF,以便所述AF根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,所述目标AS用于根据所述第三NAT参数对所述数据包进行NAT转换。
继续参考图16,程序可进一步包括:第一NAT参数获取单元16031,可以用于从AF获取第一NAT参数;目标UPF/PSA确定单元16032,可以用于确定目标UPF/PSA,以便所述目标UPF/PSA为所述UE重新分配UE目标网络地址信息,且使所述UE继续使用所述UE源网络地址信息;第一NAT参数发送单元16033,可以用于向所述目标UPF/PSA发送所述第一NAT参数,以便所述目标UPF/PSA根据所述第一NAT参数、所述UE目标网络地址信息和所述UE源网络地址信息生成第二NAT参数;第二NAT参数接收单元16034,可以用于从所述目标UPF/PSA接收所述第二NAT参数,所述目标UPF/PSA用于根据所述第二NAT参数对接收到的数据包进行NAT转换;第二NAT参数传递单元16035,可以用于将所述第二NAT参数传递至所述AF,以便所述AF根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,所述目标AS用于根据所述第三NAT参数对所述数据包进行NAT转换。
在示例性实施例中,所述目标UPF/PSA还可用于分配核心网隧道信息。其中,程序还可包括:核心网隧道信息获取单元,可以用于在确定目标UPF/PSA之后,从所述目标UPF/PSA获取所述核心网隧道信息;指示信息发送单元,可以用于向所述目标UPF/PSA发送指示信息,以用于指示:若所述目标UPF/PSA在接收到所述SMF发送的数据传输通知之前,从所述UE接收到上行数据包,则所述目标UPF/PSA缓冲所述上行数据包;上行分类器选择单元,可以用于选择目标上行分类器UL CL/BP,并给所述目标UL CL/BP和无线接入网配置所述核心网隧道信息。
在示例性实施例中,程序还可包括:数据传输通知发送单元,可以用于将所述第二NAT参数传递至所述AF之后,向所述目标UPF/PSA发送数据传输通知,以通知所述目标UPF/PSA通过目标UL CL/BP接收所述UE发送的上行数据包,或者通过所述目标UL CL/BP向所述UE发送下行数据包。
本公开实施例提供的会话管理功能设备中的各个单元的具体实现可以参照上述实现通信连续性的方法中的内容,在此不再赘述。
图17示意性示出了根据本公开的一实施例的用户设备的框图。如图17所示,用户设备1700可以包括:一个或多个处理器1701;存储器1703,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器1701执行时,使得所述一个或多个处理器1701实现如上述任一实施例所述的方法。其中,UE已利用分配的UE源网络地址信息与源应用服务器AS建立连接。
其中,程序可具体用于:向目标UPF/PSA传输上行数据包,以便所述目标UPF/PSA根据第二上行NAT参数对所述上行数据包进行第一NAT转换,生成第一NAT转换后的上行数据包,并向目标AS发送第一NAT转换后的上行数据包,所述目标AS用于根据第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换;通过所述目标UPF/PSA接收下行数据包,其中所述目标AS用于根据第三下行NAT参数对所述下行数据包进行第三NAT转换,所述目标UPF/PSA用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换。
参考图17,程序可进一步包括:上行数据包传输单元17031,可以用于向目标UPF/PSA传输上行数据包,以便所述目标UPF/PSA根据第二上行NAT参数对所述上行数据包进行第一NAT转换,生成第一NAT转换后的上行数据包,并向目标AS发送第一NAT转换后的上行数据包,所述目标AS用于根据第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换;下行数据包接收单元17032,可以用于通过所述目标UPF/PSA接收下行数据包,其中所述目标AS用于根据第三下行NAT参数对所述下行数据包进行第三NAT转换,所述目标UPF/PSA用于根据所述第二下行NAT参数对第三NAT转换后的下行数据包进行第四NAT转换。
本公开实施例提供的用户设备中的各个单元的具体实现可以参照上述实现通信连续性的方法中的内容,在此不再赘述。
需要说明的是,参考上述图14、图15、图16和图17,其示出了适于用来实现本申请实施例的应用功能设备1400、目标应用服务器1500、会话管理功能设备1600和用户设备1700的结构示意图。图14、图15、图16和图17示出的结构仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。
参照图14、图15、图16和图17,本公开实施例提供的应用功能设备1400、目标应用服务器1500、会话管理功能设备1600和用户设备1700还可以分别包括:通信接口(1402、1502、1602、1702)和通信总线(1404、1504、1604、1704)。
其中处理器(1401、1501、1601、1701)、通信接口(1402、1502、1602、1702)和存储器(1403、1503、1603、1703)通过通信总线(1404、1504、1604、1704)完成相互间的通信。
通信接口(1404、1504、1604、1704)可以为通信模块的接口,如GSM(Global System for Mobile communications,全球移动通信系统)模块的接口。处理器1301用于执行程序。存储器(1403、1503、1603、1703)用于存放程序。程序可以包括计算机程序,该计算机程序包括计算机操作指令。
处理器(1401、1501、1601、1701)可以是一个中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本公开实施例的一个或多个集成电路。
存储器(1403、1503、1603、1703)可以包含高速RAM(random access memory,随机存取存储器)存储器,也可以还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多单元的特征和功能可以在一个单元中具体化。反之,上文描述的一个单元的特征和功能可以进一步划分为由多个单元来具体化。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本公开实施方式的方法。
本领域技术人员在考虑说明书及实践这里公开的申请后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (33)

  1. 一种实现通信连续性的方法,应用于UE对应的AF,所述UE已利用分配的UE源网络地址信息与源AS建立连接;其中,所述方法包括:
    确定从所述源AS迁移至目标AS;
    向SMF传输第一NAT参数,以便所述SMF确定目标UPF/PSA,所述目标UPF/PSA用于为所述UE重新分配UE目标网络地址信息,并根据所述第一NAT参数、所述UE源网络地址信息和所述UE目标网络地址信息生成第二NAT参数,并向所述SMF返回所述第二NAT参数,以及根据所述第二NAT参数对接收到的数据包进行NAT转换;
    从所述SMF获取所述第二NAT参数;
    根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,以便所述目标AS根据所述第三NAT参数对所述数据包进行NAT转换。
  2. 根据权利要求1所述的方法,其中,所述确定从所述源AS迁移至目标AS,包括:
    从所述SMF接收事件开放早通知消息;
    根据所述事件开放早通知消息,确定从所述源AS迁移至所述目标AS。
  3. 根据权利要求1所述的方法,其中,所述确定从所述源AS迁移至目标AS,包括:
    从NEF接收数据影响早通知消息,其中所述NEF用于从所述SMF接收事件开放早通知消息,并根据所述事件开放早通知消息向所述AF发送所述数据影响早通知消息。
  4. 根据权利要求1所述的方法,其中,所述第一NAT参数包括所述目标AS的目标AS网络地址信息,所述目标AS网络地址信息包括目标AS IP地址和目标AS端口号;其中,所述向SMF传输第一NAT参数,包括:
    向所述SMF发送事件开放应用重定位消息,所述事件开放应用重定位消息携带所述目标AS IP地址和所述目标AS端口号。
  5. 根据权利要求1所述的方法,其中,所述第一NAT参数包括所述目标AS的目标AS网络地址信息,所述目标AS网络地址信息包括目标AS IP地址和目标AS端口号;其中,所述向SMF传输第一NAT参数,包括:
    向NEF发送数据影响应用重定位信息消息,所述数据影响应用重定位信息消息携带所述目标AS IP地址和所述目标AS端口号,以便所述NEF向所述SMF发送事件开放应用重定位消息,所述事件开放应用重定位消息携带所述目标AS IP地址和所述目标AS端口号。
  6. 根据权利要求1所述的方法,其中,所述第一NAT参数包括所述目标AS的目标AS网络地址信息,所述目标AS网络地址信息包括目标AS IP地址和目标AS端口号;其中,所述向SMF传输第一NAT参数,包括:
    向PCF发送策略授权建立/更新请求消息,所述策略授权建立/更新请求消息携带所述目标AS IP地址和所述目标AS端口号,以便所述PCF向所述SMF发送会话管理策略控制更新通知消息,所述会话管理策略控制更新通知消息携带所述目标AS IP地址和所述目标AS端口号。
  7. 根据权利要求4至6任一项所述的方法,其中,所述数据包包括所述UE发送的上行数据包,所述第二NAT参数包括第二上行NAT参数,所述目标UPF/PSA用于根据所述第二上行NAT参数对所述上行数据包进行第一NAT转换,所述第三NAT参数包括第三上行NAT参数,所述源AS的源AS网络地址信息包括源AS IP地址;
    其中,所述根据所述第二NAT参数给所述目标AS配置第三NAT参数,包括:
    根据所述第二上行NAT参数生成所述第三上行NAT参数。
  8. 根据权利要求7所述的方法,其中,所述目标AS包括中间盒体和内部目标AS,所述中间盒体和所述内部目标AS是不同的网络实体,通过网络连接进行通信,所述中间盒体的网络地址为所述目标AS IP地址;其中,所述根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,包括:
    将所述第三上行NAT参数配置至所述中间盒体,以便所述中间盒体根据所述第三上行NAT参数 对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包,并通过与所述内部目标AS连接的网络,将所述第二NAT转换后的上行数据包发送给所述内部目标AS;
    将所述源AS的源AS IP地址作为至所述内部目标AS的网络地址,以便所述内部目标AS通过与所述中间盒体连接的网络,从所述中间盒体接收所述第二NAT转换后的上行数据包。
  9. 根据权利要求8所述的方法,其中,所述数据包还包括下行数据包,所述第二NAT参数还包括第二下行NAT参数,所述第三NAT参数还包括第三下行NAT参数;其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,还包括:
    根据所述第二下行NAT参数生成所述第三下行NAT参数;
    将所述第三下行NAT参数配置至所述中间盒体,以便所述中间盒体根据所述第三下行NAT参数对所述内部目标AS发送的下行数据包进行第三NAT转换,并将所述第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对所述第三NAT转换后的下行数据包进行第四NAT转换,获得所述第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至所述UE。
  10. 根据权利要求7所述的方法,其中,所述目标AS包括第一NAT中间件和内部源AS;其中,所述根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,包括:
    将所述第三上行NAT参数配置至所述第一NAT中间件,以便所述第一NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包,并将所述第二NAT转换后的上行数据包发送给内部源AS;
    将所述源AS的运行环境的映像拷贝至所述内部源AS,以便所述内部源AS通过所述第一NAT中间件接收所述第二NAT转换后的上行数据包。
  11. 根据权利要求10所述的方法,其中,所述数据包还包括下行数据包,所述第二NAT参数还包括第二下行NAT参数,所述第三NAT参数还包括第三下行NAT参数;其中,所述根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,还包括:
    根据所述第二下行NAT参数生成所述第三下行NAT参数;
    将所述第三下行NAT参数配置至所述第一NAT中间件,以便所述第一NAT中间件根据所述第三下行NAT参数对所述内部源AS发送的下行数据包进行第三NAT转换,并将所述第三NAT转换后的下行数据包发送至所述目标UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对所述第三NAT转换后的下行数据包进行第四NAT转换,获得所述第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至所述UE。
  12. 根据权利要求7所述的方法,其中,所述目标AS包括目标IP协议栈和内部源AS运行程序,所述目标IP协议栈包括第二NAT中间件;其中,所述根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,包括:
    将所述第三上行NAT参数发送至所述目标IP协议栈,以便将所述第三上行NAT参数配置至所述第二NAT中间件,所述第二NAT中间件根据所述第三上行NAT参数对第一NAT转换后的上行数据包进行第二NAT转换,获得目的地址为所述源AS IP地址的所述上行数据包;
    将所述源AS的运行程序拷贝至所述目标AS以获得所述内部源AS运行程序,所述内部源AS运行程序作为所述源AS的运行程序,以便所述内部源AS运行程序从所述目标IP协议栈接收目的地址为所述源AS IP地址的所述上行数据包。
  13. 根据权利要求12所述的方法,其中,所述数据包还包括下行数据包,所述第二NAT参数还包括第二下行NAT参数,所述第三NAT参数还包括第三下行NAT参数;其中,根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,还包括:
    根据所述第二下行NAT参数生成所述第三下行NAT参数;
    将所述第三下行NAT参数发送至所述目标IP协议栈,以便将所述第三下行NAT参数配置至所述第二NAT中间件,所述第二NAT中间件根据所述第三下行NAT参数对所述内部源AS运行程序发送的下行数据包进行第三NAT转换,并将所述第三NAT转换后的下行数据包发送至所述目标 UPF/PSA,所述目标UPF/PSA还用于根据所述第二下行NAT参数对所述第三NAT转换后的下行数据包进行第四NAT转换,获得所述第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至所述UE。
  14. 根据权利要求7所述的方法,其中,所述UE源网络地址信息包括UE源IP地址和源UE端口号,所述UE目标网络地址信息包括UE目标IP地址和目标UE端口号,所述源AS网络地址信息还包括源AS端口号;其中,
    所述第二上行NAT参数用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址;所述第三上行NAT参数用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将所述第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址;或者,
    所述第二上行NAT参数用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,以及将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将所述第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址,以及将所述第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,
    所述第二上行NAT参数用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,以及将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号;所述第三上行NAT参数用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将所述第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源ASIP地址,以及将所述第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号;或者,
    所述第二上行NAT参数用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的地址从所述源AS IP地址转换为所述目标AS IP地址,以及将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号,将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将所述第一NAT转换后的上行数据包的目的地址从所述目标AS IP地址转换为所述源AS IP地址,将所述第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号,以及将所述第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,
    所述第二上行NAT参数用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将所述第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号;或者,
    所述第二上行NAT参数用于指示所述目标UPF/PSA将所述上行数据包的源地址从所述UE源IP地址转换为所述UE目标IP地址,将所述上行数据包的源端口从所述源UE端口号转换为所述目标UE端口号,以及将所述上行数据包的目的端口从所述源AS端口号转换为所述目标AS端口号;所述第三上行NAT参数用于指示所述目标AS将第一NAT转换后的上行数据包的源地址从所述UE目标IP地址转换为所述UE源IP地址,将所述第一NAT转换后的上行数据包的源端口从所述目标UE端口号转换为所述源UE端口号,以及将所述第一NAT转换后的上行数据包的目的端口从所述目标AS端口号转换为所述源AS端口号。
  15. 根据权利要求9、11或13任一项所述的方法,其中,所述UE源网络地址信息包括UE源IP地址和源UE端口号,所述UE目标网络地址信息包括UE目标IP地址和目标UE端口号,所述源AS网络地址信息还包括源AS端口号;其中,
    所述第三下行NAT参数用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址;所述第二下行NAT参数用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将所述第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址;或者,
    所述第三下行NAT参数用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,以及将所述下行数据包的目的端口从所述源UE端口号转换为所述目标UE端口号;所述第二下行NAT参数用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将所述第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,以及将所述第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,
    所述第三下行NAT参数用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,以及将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号;所述第二下行NAT参数用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将所述第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,以及将所述第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号;或者,
    所述第三下行NAT参数用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的目的地址从所述UE源IP地址转换为所述UE目标IP地址,将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号,以及将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标ASIP地址转换为所述源AS IP地址,将所述第三NAT转换后的下行数据包的目的地址从所述UE目标IP地址转换为所述UE源IP地址,将所述第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号,以及将所述第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,
    所述第三下行NAT参数用于指示所述目标AS将所述下行数据包的源地址从所述源ASIP地址转换为所述目标AS IP地址,将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将所述第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号;或者,
    所述第三下行NAT参数用于指示所述目标AS将所述下行数据包的源地址从所述源AS IP地址转换为所述目标AS IP地址,将所述下行数据包的源端口从所述源AS的源AS端口号转换为所述目标AS的目标AS端口号,将所述下行数据包的目的端口从源UE端口号转换为目标UE端口号;所述第二下行NAT参数用于指示所述目标UPF/PSA将第三NAT转换后的下行数据包的源地址从所述目标AS IP地址转换为所述源AS IP地址,将所述第三NAT转换后的下行数据包的源端口从所述目标AS端口号转换为所述源AS端口号,将所述第三NAT转换后的下行数据包的目的端口从所述目标UE端口号转换为所述源UE端口号。
  16. 一种实现通信连续性的方法,应用于目标AS;其中,所述方法包括:
    利用AF配置第三NAT参数,从源AS迁移至所述目标AS,所述第三NAT参数是根据目标UPF/PSA的第二NAT参数生成的;
    获取数据包,其中所述数据包是所述目标UPF/PSA根据所述第二NAT参数进行NAT转换后生成的数据包或者所述目标AS生成的数据包;
    根据所述第三NAT参数对所述数据包进行NAT转换;
    若所述数据包是所述目标AS生成的数据包,则将根据所述第三NAT参数进行NAT转换后的数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二NAT参数再次进行NAT转换。
  17. 根据权利要求16所述的方法,其中,所述数据包包括UE发送的上行数据包,所述第二NAT参数包括第二上行NAT参数,所述目标UPF/PSA用于根据所述第二上行NAT参数对所述上行数据包进行第一NAT转换,所述第三NAT参数包括第三上行NAT参数,所述源AS的源AS网络地址信息包括源AS IP地址,所述AF用于根据所述第二上行NAT参数生成所述第三上行NAT参数。
  18. 根据权利要求17所述的方法,其中,所述目标AS包括中间盒体和内部目标AS,所述中间盒体和所述内部目标AS是不同的网络实体,通过网络连接进行通信,所述中间盒体的网络地址为所述目标AS的目标AS IP地址;其中,所述利用AF配置第三NAT参数,从源AS迁移至所述目标AS,包括:
    所述中间盒体从所述AF获取所述第三上行NAT参数;
    通过所述AF将所述源AS的源AS IP地址作为所述内部目标AS的网络地址;
    其中,所述根据所述第三NAT参数对所述数据包进行NAT转换,包括:
    所述中间盒体从所述目标UPF/PSA接收所述第一NAT转换后的上行数据包;
    所述中间盒体根据所述第三上行NAT参数对所述第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包;
    所述中间盒体通过与所述内部目标AS连接的网络,将所述上行数据包发送至所述内部目标AS。
  19. 根据权利要求18所述的方法,其中,所述数据包还包括下行数据包,所述第二NAT参数还包括第二下行NAT参数,所述第三NAT参数还包括第三下行NAT参数,所述AF还用于根据所述第二下行NAT参数生成所述第三下行NAT参数;其中,所述利用AF配置第三NAT参数,还包括:
    所述中间盒体从所述AF获取所述第三下行NAT参数;
    其中,根据所述第三NAT参数对所述数据包进行NAT转换,还包括:
    所述内部目标AS向所述中间盒体发送所述下行数据包;
    所述中间盒体根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;
    所述中间盒体将所述第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对所述第三NAT转换后的下行数据包进行第四NAT转换,获得所述第四NAT转换后的下行数据包并发送所述第四NAT转换后的下行数据包至UE。
  20. 根据权利要求17所述的方法,其中,所述目标AS包括第一NAT中间件和内部源AS;其中,所述利用AF配置第三NAT参数,从源AS迁移至所述目标AS,包括:
    所述第一NAT中间件从所述AF获取所述第三上行NAT参数;
    通过所述AF将所述源AS的运行环境的映像拷贝至所述内部源AS;
    其中,根据所述第三NAT参数对所述数据包进行NAT转换,包括:
    所述第一NAT中间件从所述目标UPF/PSA接收所述第一NAT转换后的上行数据包;
    所述第一NAT中间件根据所述第三上行NAT参数对所述第一NAT转换后的上行数据包进行第二NAT转换,获得所述第二NAT转换后的上行数据包;
    所述第一NAT中间件将所述第二NAT转换后的上行数据包发送至所述内部源AS。
  21. 根据权利要求20所述的方法,其中,所述数据包还包括下行数据包,所述第二NAT参数还包括第二下行NAT参数,所述第三NAT参数还包括第三下行NAT参数,所述AF还用于根据所述第二下行NAT参数生成所述第三下行NAT参数;其中,所述利用AF配置第三NAT参数,还包括:
    所述第一NAT中间件从所述AF获取所述第三下行NAT参数;
    其中,根据所述第三NAT参数对所述数据包进行NAT转换,还包括:
    所述内部源AS向所述第一NAT中间件发送所述下行数据包;
    所述第一NAT中间件根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;
    所述第一NAT中间件将所述第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对所述第三NAT转换后的下行数据包进行第四NAT转换,获得所述第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至UE。
  22. 根据权利要求17所述的方法,其中,所述目标AS包括目标IP协议栈和内部源AS运行程序,所述目标IP协议栈包括第二NAT中间件;其中,所述利用AF配置第三NAT参数,从源AS迁移至所述目标AS,包括:
    所述目标IP协议栈从所述AF获取所述第三上行NAT参数;
    所述目标IP协议栈将所述第三上行NAT参数配置至所述第二NAT中间件;
    通过所述AF将所述源AS的运行程序拷贝至所述目标AS以获得所述内部源AS运行程序,所述内部源AS运行程序作为所述源AS的运行程序;
    其中,所述根据所述第三NAT参数对所述数据包进行NAT转换,包括:
    所述目标IP协议栈从所述目标UPF/PSA接收第一NAT转换后的上行数据包;
    所述第二NAT中间件根据所述第三上行NAT参数对所述第一NAT转换后的上行数据包进行第二NAT转换,获得目的地址为所述源AS IP地址的所述上行数据包;
    所述目标IP协议栈将目的地址为所述源AS IP地址的所述上行数据包发送至所述内部源AS运行程序。
  23. 根据权利要求22所述的方法,其中,所述数据包还包括下行数据包,所述第二NAT参数还包括第二下行NAT参数,所述第三NAT参数还包括第三下行NAT参数,所述AF还用于根据所述第二下行NAT参数生成所述第三下行NAT参数;其中,所述利用AF配置第三NAT参数,还包括:
    所述目标IP协议栈从所述AF获取所述第三下行NAT参数;
    所述目标IP协议栈将所述第三下行NAT参数配置至所述第二NAT中间件;
    其中,根据所述第三NAT参数对所述数据包进行NAT转换,还包括:
    所述内部源AS运行程序向所述目标IP协议栈发送下行数据包;
    所述第二NAT中间件根据所述第三下行NAT参数对所述下行数据包进行第三NAT转换;
    所述目标IP协议栈将第三NAT转换后的下行数据包发送至所述目标UPF/PSA,以便所述目标UPF/PSA根据所述第二下行NAT参数对所述第三NAT转换后的下行数据包进行第四NAT转换,获得所述第四NAT转换后的下行数据包,并发送所述第四NAT转换后的下行数据包至UE。
  24. 一种实现通信连续性的方法,应用于UE对应的SMF,所述UE已利用分配的UE源网络地址信息与源AS建立连接;其中,所述方法包括:
    从AF获取第一NAT参数;
    确定目标UPF/PSA,以便所述目标UPF/PSA为所述UE重新分配UE目标网络地址信息,且使所述UE继续使用所述UE源网络地址信息;
    向所述目标UPF/PSA发送所述第一NAT参数,以便所述目标UPF/PSA根据所述第一NAT参数、所述UE目标网络地址信息和所述UE源网络地址信息生成第二NAT参数;
    从所述目标UPF/PSA接收所述第二NAT参数,所述目标UPF/PSA用于根据所述第二NAT参数对接收到的数据包进行NAT转换;
    将所述第二NAT参数传递至所述AF,以便所述AF根据所述第二NAT参数给所述目标AS配置第三NAT参数,并从所述源AS迁移至所述目标AS,所述目标AS用于根据所述第三NAT参数对所述数据包进行NAT转换。
  25. 根据权利要求24所述的方法,其中,所述目标UPF/PSA还用于分配核心网隧道信息;其中,在确定目标UPF/PSA之后,所述方法还包括:
    从所述目标UPF/PSA获取所述核心网隧道信息;
    向所述目标UPF/PSA发送指示信息,以用于指示若所述目标UPF/PSA在接收到所述SMF发送的数据传输通知之前,从所述UE接收到上行数据包,则所述目标UPF/PSA缓冲所述上行数据包;
    选择目标UL CL/BP,并给所述目标UL CL/BP和无线接入网配置所述核心网隧道信息。
  26. 根据权利要求24或25所述的方法,其中,将所述第二NAT参数传递至所述AF之后,所述 方法还包括:
    向所述目标UPF/PSA发送数据传输通知,以通知所述目标UPF/PSA通过目标UL CL/BP接收所述UE发送的上行数据包,或者通过所述目标UL CL/BP向所述UE发送下行数据包。
  27. 一种实现通信连续性的方法,应用于UE,所述UE已利用分配的UE源网络地址信息与源AS建立连接;其中,所述方法包括:
    向目标UPF/PSA传输上行数据包,以便所述目标UPF/PSA根据第二上行NAT参数对所述上行数据包进行第一NAT转换,生成所述第一NAT转换后的上行数据包并向目标AS发送所述第一NAT转换后的上行数据包,所述目标AS用于根据第三上行NAT参数对所述第一NAT转换后的上行数据包进行第二NAT转换;
    通过所述目标UPF/PSA接收下行数据包,其中所述目标AS用于根据第三下行NAT参数对所述下行数据包进行第三NAT转换,所述目标UPF/PSA用于根据所述第二下行NAT参数对所述第三NAT转换后的下行数据包进行第四NAT转换。
  28. 一种应用功能设备,包括:
    一个或多个处理器;
    存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至15中任一项所述的方法。
  29. 一种目标应用服务器,包括:
    一个或多个处理器;
    存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求16至23中任一项所述的方法。
  30. 一种会话管理功能设备,包括:
    一个或多个处理器;
    存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求24至26中任一项所述的方法。
  31. 一种用户设备,包括:
    一个或多个处理器;
    存储器,配置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求27所述的方法。
  32. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至15中任一项所述的方法或者如权利要求16至23中任一项所述的方法或者如权利要求24至26中任一项所述的方法或者如权利要求27所述的方法。
  33. 一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行如权利要求1至27中任一项所述的实现通信连续性的方法。
PCT/CN2022/073418 2021-02-10 2022-01-24 实现通信连续性的方法及相关设备 WO2022170948A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP22752110.1A EP4247024A4 (en) 2021-02-10 2022-01-24 METHOD FOR IMPLEMENTING COMMUNICATION CONTINUITY AND ASSOCIATED APPARATUS
KR1020237021991A KR20230110801A (ko) 2021-02-10 2022-01-24 통신 연속성 구현 방법 및 관련 디바이스
US17/987,792 US11856650B2 (en) 2021-02-10 2022-11-15 Method for implementing communication continuity and related device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110184916.7 2021-02-10
CN202110184916.7A CN113014630A (zh) 2021-02-10 2021-02-10 实现通信连续性的方法及相关设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/987,792 Continuation US11856650B2 (en) 2021-02-10 2022-11-15 Method for implementing communication continuity and related device

Publications (1)

Publication Number Publication Date
WO2022170948A1 true WO2022170948A1 (zh) 2022-08-18

Family

ID=76402326

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/073418 WO2022170948A1 (zh) 2021-02-10 2022-01-24 实现通信连续性的方法及相关设备

Country Status (5)

Country Link
US (1) US11856650B2 (zh)
EP (1) EP4247024A4 (zh)
KR (1) KR20230110801A (zh)
CN (1) CN113014630A (zh)
WO (1) WO2022170948A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014630A (zh) 2021-02-10 2021-06-22 腾讯科技(深圳)有限公司 实现通信连续性的方法及相关设备
US20220255996A1 (en) * 2021-02-11 2022-08-11 Verizon Patent And Licensing Inc. Systems and methods for exposing user equipment identities to applications

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180324646A1 (en) * 2017-05-08 2018-11-08 Samsung Electronics Co., Ltd. Method and apparatus for supporting session continuity for 5g cellular network
CN111586670A (zh) * 2020-04-30 2020-08-25 腾讯科技(深圳)有限公司 用于实现业务连续性的方法及相关设备
WO2021009166A1 (en) * 2019-07-16 2021-01-21 Telefonaktiebolaget Lm Ericsson (Publ) Enabling nat for user plane traffic
CN113014630A (zh) * 2021-02-10 2021-06-22 腾讯科技(深圳)有限公司 实现通信连续性的方法及相关设备

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7453852B2 (en) * 2003-07-14 2008-11-18 Lucent Technologies Inc. Method and system for mobility across heterogeneous address spaces
CN100454882C (zh) * 2003-12-19 2009-01-21 华为技术有限公司 多isp局域网的出口选择方法及装置
EP2787693B1 (en) * 2013-04-05 2015-12-09 Telefonaktiebolaget L M Ericsson (publ) User plane traffic handling using network address translation and request redirection
CN109218455B (zh) * 2017-06-30 2021-04-09 华为技术有限公司 一种应用实例地址的转换方法和装置
US20190007500A1 (en) * 2017-07-03 2019-01-03 Electronics And Telecommunications Research Institute Method for protocol data unit (pdu) session anchor relocation and 5g network registration
US11778693B2 (en) * 2018-01-30 2023-10-03 Nokia Technologies Oy Support of protocol data unit session types in the network
CN110633127A (zh) * 2018-06-25 2019-12-31 华为技术有限公司 一种数据处理方法及相关设备
CN112771994A (zh) * 2018-08-02 2021-05-07 苹果公司 3gpp(第三代合作伙伴计划)upf(用户平面功能)和边缘计算应用程序服务器的关联
US11218438B2 (en) * 2019-04-12 2022-01-04 Huawei Technologies Co., Ltd. System, apparatus and method to support data server selection
US11438272B2 (en) * 2019-12-31 2022-09-06 Opanga Networks, Inc. System and method for mobility tracking
US11418600B1 (en) * 2020-12-15 2022-08-16 Cisco Technology, Inc. Session and service/flow continuity
US20230232322A1 (en) * 2022-01-18 2023-07-20 Oracle International Corporation Methods, systems, and computer readable media for prioritizing among alternate network function (nf) instances

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180324646A1 (en) * 2017-05-08 2018-11-08 Samsung Electronics Co., Ltd. Method and apparatus for supporting session continuity for 5g cellular network
WO2021009166A1 (en) * 2019-07-16 2021-01-21 Telefonaktiebolaget Lm Ericsson (Publ) Enabling nat for user plane traffic
CN111586670A (zh) * 2020-04-30 2020-08-25 腾讯科技(深圳)有限公司 用于实现业务连续性的方法及相关设备
CN113014630A (zh) * 2021-02-10 2021-06-22 腾讯科技(深圳)有限公司 实现通信连续性的方法及相关设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4247024A4

Also Published As

Publication number Publication date
EP4247024A4 (en) 2024-03-27
CN113014630A (zh) 2021-06-22
US11856650B2 (en) 2023-12-26
EP4247024A1 (en) 2023-09-20
KR20230110801A (ko) 2023-07-25
US20230074358A1 (en) 2023-03-09

Similar Documents

Publication Publication Date Title
US10965737B1 (en) Cloud computing in communications service provider networks
WO2021184774A1 (zh) 基于边缘计算的通信方法、装置、存储介质及电子设备
US10700979B2 (en) Load balancing for a virtual networking system
US11190375B2 (en) Data packet processing method, host, and system
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US11418995B2 (en) Mobility of cloud compute instances hosted within communications service provider networks
WO2022170948A1 (zh) 实现通信连续性的方法及相关设备
US11394662B2 (en) Availability groups of cloud provider edge locations
US10979534B1 (en) Latency-based placement of cloud compute instances within communications service provider networks
US9588807B2 (en) Live logical partition migration with stateful offload connections using context extraction and insertion
US8830870B2 (en) Network adapter hardware state migration discovery in a stateful environment
WO2021164316A1 (zh) 应用于边缘计算场景的通信方法、存储介质及电子设备
US11159344B1 (en) Connectivity of cloud edge locations to communications service provider networks
US11757792B2 (en) Using edge-optimized compute instances to execute user workloads at provider substrate extensions
CN108886473B (zh) 一种管理方法及装置
WO2019223496A1 (zh) 一种边缘计算应用迁移的方法和装置
WO2019062830A1 (zh) 实例业务拓扑的生成方法及装置
WO2016206171A1 (zh) 一种基于网络隔离的安全连网方法及终端
JP2022550517A (ja) サービスオフロード方法、装置、システム、電子機器、及びコンピュータプログラム
WO2019011144A1 (zh) 一种虚拟网络设备、路由设备及虚拟网络的连接方法
CN109067573B (zh) 一种流量调度方法及装置
US11595347B1 (en) Dual-stack network addressing in cloud provider network edge locations
WO2018153357A1 (en) Application instance relocation
Chang et al. Scalable and elastic telecommunication services in the cloud
JP2009053770A (ja) 通信制御装置、通信制御方法及び通信制御プログラム

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022752110

Country of ref document: EP

Effective date: 20230612

ENP Entry into the national phase

Ref document number: 20237021991

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE