CN117693071A - Session connection method, device, electronic equipment and medium - Google Patents
Session connection method, device, electronic equipment and medium Download PDFInfo
- Publication number
- CN117693071A CN117693071A CN202211105901.8A CN202211105901A CN117693071A CN 117693071 A CN117693071 A CN 117693071A CN 202211105901 A CN202211105901 A CN 202211105901A CN 117693071 A CN117693071 A CN 117693071A
- Authority
- CN
- China
- Prior art keywords
- upf
- dnn
- session connection
- client
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000004891 communication Methods 0.000 claims abstract description 74
- 230000002159 abnormal effect Effects 0.000 claims description 32
- 230000006870 function Effects 0.000 claims description 26
- 230000003068 static effect Effects 0.000 claims description 13
- 238000011084 recovery Methods 0.000 claims description 7
- 230000005856 abnormality Effects 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 claims description 6
- 238000010295 mobile communication Methods 0.000 abstract description 4
- 230000008878 coupling Effects 0.000 description 11
- 238000010168 coupling process Methods 0.000 description 11
- 238000005859 coupling reaction Methods 0.000 description 11
- 230000004044 response Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 208000037550 Primary familial polycythemia Diseases 0.000 description 5
- 230000005012 migration Effects 0.000 description 5
- 238000013508 migration Methods 0.000 description 5
- 208000017693 primary familial polycythemia due to EPO receptor mutation Diseases 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000004075 alteration Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001769 paralizing effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1096—Supplementary features, e.g. call forwarding or call holding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/16—Communication-related supplementary services, e.g. call-transfer or call-hold
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Computer And Data Communications (AREA)
Abstract
The application discloses a session connection method, a session connection device, electronic equipment and a session connection medium, and belongs to the field of mobile communication. The method comprises the following steps: acquiring a data network name DNN corresponding to a first user plane function network element UPF of communication connection; determining a priority of the first UPF relative to the DNN; determining a standby UPF corresponding to the DNN under the condition that the priority of the first UPF relative to the DNN is the primary UPF; determining a first session connection corresponding to the DNN on the standby UPF; and notifying a target client to establish a second session connection with a target server through the first UPF, wherein the target client and the target server are the client and the server corresponding to the first session connection.
Description
Technical Field
The application belongs to the field of mobile communication, and in particular relates to a session connection method, a session connection device, electronic equipment and a session connection medium
Background
In 5G networks, a backup UPF is typically configured for a primary UPF, typically a primary UPF bearer service. When the primary UPF fails, the backup UPF carries traffic on the primary UPF. That is, during failure of the primary UPF, the client performs service processing through the backup UPF, that is, the client establishes a session connection with the server through the backup UPF. When the primary UPF is restored to normal, the primary UPF re-carries the service, and the standby UPF does not carry the service of the primary UPF. However, a client that previously established a session with the server through the backup UPF (i.e., during failure of the primary UPF) may still reside on the backup UPF, thereby experiencing a business process aberration.
Disclosure of Invention
An object of the embodiments of the present application is to provide a session connection method, apparatus, electronic device, readable storage medium, chip and computer program product, which can solve the problem that session connection of a client residing on a standby UPF cannot be automatically migrated to an active UPF.
In a first aspect, an embodiment of the present application provides a session connection method, where the method includes: acquiring a data network name DNN corresponding to a first user plane function network element UPF of communication connection; determining a priority of the first UPF relative to the DNN; determining a standby UPF corresponding to the DNN under the condition that the priority of the first UPF relative to the DNN is the primary UPF; determining a first session connection corresponding to the DNN on the standby UPF; and notifying a target client to establish a second session connection with a target server through the first UPF, wherein the target client and the target server are the client and the server corresponding to the first session connection.
In a second aspect, an embodiment of the present application provides a session connection apparatus, including: the first acquisition module is used for acquiring a data network name DNN corresponding to a first user plane function network element UPF of the communication connection; a first determining module, configured to determine a priority of the first UPF relative to the DNN; a second determining module, configured to determine, when the priority of the first UPF relative to the DNN is a primary UPF, a backup UPF corresponding to the DNN; a third determining module, configured to determine a first session connection corresponding to the DNN on the backup UPF; and the first notification module is used for notifying the target client to establish second session connection with the target server through the first UPF, and the target client and the target server are the client and the server corresponding to the first session connection.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In this embodiment of the present application, a DNN corresponding to a first UPF is obtained, and when it is determined that the first UPF is an active UPF with respect to the corresponding DNN, a standby UPF corresponding to the DNN is determined, and a first session connection corresponding to the DNN on the standby UPF, a target client corresponding to the first session connection is notified to establish a second session connection with a target server corresponding to the first session connection through the active UPF (i.e., the first UPF). Thereby enabling migration of the first session connection of the client residing on the standby UPF onto the primary UPF.
Drawings
Fig. 1 (a) schematically shows a first state diagram of the basic architecture of a 5G network;
fig. 1 (b) schematically shows a second state diagram of the basic architecture of a 5G network;
FIG. 2 schematically illustrates a flow chart of a session connection method provided by an embodiment of the present application;
fig. 3 schematically illustrates a signaling interaction diagram for the SMF to establish coupling with the first UPF provided in an embodiment of the present application;
FIG. 4 schematically illustrates a flow chart of a session connection method provided by an embodiment of the present application;
FIG. 5 schematically illustrates a flow chart of a session connection method provided by an embodiment of the present application;
FIG. 6 schematically illustrates a flow chart of a session connection method provided by an embodiment of the present application;
fig. 7 schematically illustrates a structural schematic diagram of a session connection device provided in an embodiment of the present application;
fig. 8 schematically illustrates an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following provides the embodiments of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawingsWill beThe connection method will be described in detail.
In the vertical industry of a 5G (5 th Generation, fifth Generation mobile communication) network, a static IP address (Internet Protocol Address ) is allocated to a part of the user terminals on the network side, that is, a part of the user's services are carried based on a dedicated network allocated to the user, similar to an APN (Access Point Name ) access technology in 4G (4 th Generation, fourth Generation mobile communication). The service mapped by the DNN (Data Network Name ) corresponding to the static IP address cannot realize load balancing on multiple UPFs (User Plane Function, user plane function network elements), that is, at the same time, the service mapped by the DNN corresponding to the static IP address can only be carried on one UPF.
However, the following scenario was attempted: the UPF used for carrying the service mapped by the DNN corresponding to the static IP address fails itself or is in communication with AN (R) AN (Radio Access Network/Access Network ) in the user plane, such as a gNB (next Generation Node B, gndeb, 5G base station), or is in communication with AN SMF (Session Management Function, session management function Network element) in the control plane (i.e. N4 interface is in communication with), and the Network will fall into a paralytic disaster. Therefore, for disaster recovery, a backup UPF is typically configured for the UPF (i.e., the primary UPF) for carrying the service mapped by the DNN corresponding to the static IP address, where the primary UPF has a higher priority than the backup UPF. When the main UPF does not have the faults, the main UPF bears the service mapped by DNN corresponding to the static IP address, namely the client establishes session connection with the server through the main UPF; when the main UPF fails, the standby UPF is started to bear the service mapped by DNN corresponding to the static IP address, namely the client establishes session connection with the server through the standby UPF.
However, when the primary UPF eliminates the above-mentioned failure, the primary UPF bearer service is re-enabled, and the backup UPF no longer carries the primary UPF service. However, a portion of the clients that previously established a session connection with the server through the backup UPF (i.e., during the failure of the primary UPF) may still reside on the UPF, i.e., after the primary UPF fails (the backup UPF no longer carries traffic for the primary UPF), the clients that performed traffic processing through the backup UPF during the failure of the primary UPF may still request that a session connection be established with the server through the backup UPF, and a traffic processing aberration phenomenon occurs in which the session connection establishment fails.
The technical problem is exemplarily described below in one scenario.
Fig. 1 (a) schematically shows a first state diagram of the basic architecture of a 5G network. Referring to fig. 1 (a), an AMF (Access and Mobility Management Function ) network element, a first SMF (SMF-1) and a second SMF (SMF-2) are all registered with an NRF (Network Repository Function ) network element, and the AMF communicates with both SMF-1 and SMF-2 based on a service interface provided by the NRF. Illustratively, SMF-1 establishes a communication connection with both a first UPF (UPF-1) and a second UPF (UPF-2) via an N4 interface, UPF-1 being a primary UPF corresponding to DNN number one (DNN-1) and UPF-2 being a backup UPF corresponding to DNN-1. That is, UPF-1 and UPF-2 are dedicated lines for carrying static subscriptions, identified by DNN. Accordingly, the IP address of the client that performs network access through UPF-1 and UPF-2 is statically subscribed to by RADIUS (Remote Authentication Dial-In User Service ).
With continued reference to fig. 1 (a), the enterprise application as the server establishes a communication link with dedicated lines UPF-1 and UPF-2 based on the N6 interface, and the first GRE tunnel (Generic Routing Encapsulation tunnel, generic routing encapsulation protocol tunnel) corresponding to the communication link between the enterprise application and UPF-1 has a higher priority than the second GRE tunnel corresponding to the communication link between the enterprise application and UPF-2. That is, when both UPF-1 and UPF-2 are normal, the enterprise application prefers UPF-1 as a route to transmit data to ensure quality of service.
When UPF-1 is normal, when UE (User Equipment) as a client is ready to establish session connection with enterprise application, a tunnel establishment request is initiated to SMF-1 through gNB and AMF, a communication tunnel is requested to be established between the UE and UPF-1, after the SMF-1 receives the tunnel establishment request, a tunnel (marked as a first tunnel) of UE-gNB-UPF-1 is established, namely, communication connection is established between gNB and UPF-1 through an N3 interface. The UE establishes a session connection with the enterprise application through the first tunnel and the first GRE tunnel.
Fig. 1 (b) schematically shows a second state diagram of the basic architecture of a 5G network. Referring to FIG. 1 (b), when SMF-1 knows that UPF-1 fails, illustratively UPF-1 fails itself, fails to communicate with gNB (i.e., fails to communicate with the N3 interface) and/or fails to communicate with SMF-1 (i.e., fails to communicate with the N4 interface), SMF-1 activates a client accessing the enterprise application onto the backup UPF corresponding to the first DNN. I.e., SMF-1 creates a tunnel (denoted as "second tunnel") between UE-gNB-UPF-2 between UE and UPF-2, i.e., a communication connection is established between gNB and UPF-2 through the N3 interface (the specific procedure is similar to the creation of the first tunnel and is not repeated here). At this point, the UE establishes a session connection with the enterprise application through the second tunnel and the second GRE tunnel.
Please refer to fig. 1 (a) and fig. 1 (b) in combination. When the UPF-1 returns to normal from failure, the own routing information is broadcasted to the network through its own N6 interface, and after the enterprise application monitors the routing information, the enterprise application will choose to connect to the active UPF, i.e. UPF-1, according to the priority of the first GRE tunnel being higher than the priority of the second GRE tunnel, and the state at this time on the enterprise side is as shown in fig. 1 (a), but this change in the network is not perceived by the UE. With continued reference to fig. 1 (b), after the UPF-1 returns to normal from failure, a UE (denoted as a resident UE) that has previously established a session connection with the enterprise application through the second tunnel and the second GRE tunnel (during the failure of the UPF-1) may still remain resident on the standby UPF, i.e. UPF-2, i.e. the resident UE still desires to access the enterprise application through the second tunnel between UE-gNB-UPF-2 shown in fig. 1 (b), and obviously the resident UE cannot successfully access the enterprise application, and a service processing aberration phenomenon of failure of session connection establishment occurs.
Furthermore, it should be noted that one UPF in the network is a backup UPF with respect to a certain DNN (denoted as "first DNN"), but may also be a primary UPF with respect to other DNNs (denoted as "second DNN"), i.e. the same dedicated UPF may be both a primary UPF and a backup UPF. Therefore, after the primary UPF corresponding to the first DNN returns from the anomaly, all session connections on the standby UPF corresponding to the first DNN cannot be migrated to the primary UPF corresponding to the first DNN, and in particular, sessions corresponding to the second DNN on the standby UPF corresponding to the first DNN cannot be migrated to the primary UPF corresponding to the first DNN.
The following is still an exemplary illustration of the scenario illustrated in fig. 1 (a) and 1 (b). Referring to FIG. 1 (a), SMF-2 establishes a communication connection with UPF-2\UPF-3\UPF-4. Illustratively, UPF-1 is the primary UPF/UPF-2 is the backup UPF relative to DNN-1; with respect to DNN No. two (DNN-2), UPF-2 is the primary UPF/UPF-3 is the backup UPF. When UPF-1 returns to normal from failure, all sessions on UPF-2 cannot be migrated to UPF-1.
Therefore, in order to overcome the above-mentioned technical drawbacks, in the related art, it is common for the network operator to manually disconnect the associated clients from the session connection corresponding to the DNN residing on a certain UPF which is a standby UPF for a certain DNN, and then reselect the associated clients to the primary UPF corresponding to the DNN, so as to perform the service processing normally. For example, the network operator finds the UEs that need to be forced to be off line based on the backup UPF corresponding to the DNN-1, i.e., the UPF-2 operation log, then manually forces the UEs to be off line, and then reselects the UEs to the corresponding primary UPF, i.e., the UPF-1. This not only consumes a lot of manpower, but also has poor timeliness, and cannot meet the actual demands.
Fig. 2 schematically shows a flowchart of a session connection method provided in an embodiment of the present application. Referring to fig. 2, the session connection method is applied to SMF, and includes the following steps S201 to S205:
S201, obtaining a data network name DNN corresponding to a first user plane function network element UPF of the communication connection.
The DNN corresponding to the first UPF refers to the DNN supported on the first UPF.
After the SMF establishes N4 coupling with the first UPF, the SMF searches DNN corresponding to the first UPF from the data based on the identity of the first UPF.
As shown in fig. 3, a signaling interaction diagram for the SMF to establish coupling with the first UPF provided in the embodiment of the present application is schematically shown. Referring to fig. 3, first, the SMF initiates PFCP Association Setup Request (PFCP coupling setup request) message to the first UPF, where the message carries two key cells, nodeid and CHOICE, where the nodeid cell is a unique identifier of the sending node (i.e., the SMF), contains the FQDN (Fully Qualified Domain Name ) or IPv4/IPv6 address of the node, and the CHOICE cell indicates UTC (Universal Time Coordinated, coordinated universal time) time when the node is started. After receiving the PFCP coupling establishment request message, the first UPF sends an N4 Association Setup Response (N4/PFCP coupling establishment response) message to the corresponding SMF to respond. The response message carries three key cells, namely, a nodeid, a cause and a CHOICE, wherein the nodeid represents a unique identifier of the first UPF, the CHOICE cell indicates UTC time when the first UPF is started, and the cause cell represents the acceptance or rejection of a corresponding request message. If the cause cell indicates acceptance PFCP Association Setup Request, the SMF establishes a coupling with the first UPF.
In some alternative embodiments, the coupling establishment procedure shown in fig. 3 may be the first time that the SMF establishes a coupling with the first UPF. In some alternative embodiments, the coupling establishment procedure shown in fig. 3 may be such that after the first UPF has recovered from failure, the SMF reestablishes coupling with the first UPF.
Illustratively, after the SMF-1 is coupled with the UPF-1 in the scenario illustrated in FIG. 1 (a) and FIG. 1 (b), the SMF-1 searches the DNN corresponding to the UPF-1 from the database based on the identity of the UPF-1.
S202, determining the priority of the first UPF relative to the DNN.
Based on the foregoing, one dedicated line UPF in the 5G network may support multiple DNNs, and the dedicated line UP may be a primary UPF with respect to a portion of the DNNs supported, and a backup UPF with respect to a portion of the DNNs. The purpose of determining the priority of the first UPF relative to the DNN is to determine whether the first UPF is a primary UPF or a backup UPF relative to the DNN.
In some alternative embodiments, the SMF may query the database as to whether the first UPF is the primary UPF or the backup UPF with respect to each of all DNNs to which the first UPF corresponds.
Illustratively, after the SMF-1 in the scenario illustrated in FIG. 1 (a) and FIG. 1 (b) finds the DNN corresponding to UPF-1 from the database, it may continue to find whether UPF-1 is the primary UPF or the backup UPF with respect to each DNN in all DNNs corresponding to UPF-1. For example, the UPF-1 is found to be the primary UPF corresponding to DNN-1 relative to DNN-1.
And S203, determining a standby UPF corresponding to the DNN when the priority of the first UPF relative to the DNN is the primary UPF.
Based on the foregoing, one DNN in a 5G network corresponds to two dedicated UPFs, where one UPF is the primary UPF corresponding to the DNN and the other UPF is the backup UPF corresponding to the DNN. When the first UPF is determined to be the primary UPF relative to the DNN, a standby UPF corresponding to the DNN also exists.
In some alternative embodiments, the SMF may query the data for an identity of a standby UPF corresponding to the DNN having the first UPF as the primary UPF, thereby determining a standby UPF corresponding to the DNN having the first UPF as the primary UPF.
Illustratively, in the scenario illustrated in FIG. 1 (a) and FIG. 1 (b), SMF-1 searches the database for a UPF-1 that is the primary UPF corresponding to DNN-1 relative to DNN-1, and continues to search the database for a DNN-1 backup UPF, and searches for a UPF-2 that is a DNN-1 backup UPF.
S204, determining a first session connection corresponding to the DNN on the standby UPF.
Based on the foregoing, in the 5G network, each DNN has a correspondence with a static IP address allocated for the client. In some alternative embodiments, the SMF may query from the database whether the IP address of the client that establishes the session connection through the backup UPF is an IP address corresponding to the DNN in which the first UPF is the primary UPF, and if so, determine that there is a first session connection corresponding to the client identified by the IP address on the backup UPF, i.e. the first session connection of the client corresponding to the found IP addresses still resides on the backup UPF.
Illustratively, in the scenario illustrated in fig. 1 (a) and 1 (b), if the SMF-1 finds that the UPF-2 is a standby UPF of DNN-1 from the database, then it continues to find in the database whether the IP address of the client that establishes the session connection through the UPF-2 is the IP address corresponding to DNN-1, and if so, there is a session connection corresponding to DNN-1 on the UPF-2, i.e., the found clients corresponding to these IP addresses still reside on the standby UPF-2, and the session connection corresponding to these DNN-1 needs to be migrated to UPF-1.
S205, notifying a target client to establish a second session connection with a target server through the first UPF, wherein the target client and the target server are the client and the server corresponding to the first session connection.
The client and the server corresponding to the first session connection are the client and the server for performing service processing through the first session connection.
The SMF establishes a tunnel between the client corresponding to the searched IP address and the first UPF based on the searched IP address corresponding to DNN taking the first UPF as the main UPF, and informs the client corresponding to the searched IP address to establish session connection with the target server through the first UPF, namely, sends new session connection information to the client corresponding to the searched IP address, wherein the session connection information comprises a unique identifier of the first UPF and a PDU (Protocol Data Units, protocol data unit) session identifier based on the first UPF and the target server to establish session connection. After the client corresponding to the found IP address receives the session connection information, a second session connection is established with the target server based on the tunnel established between the client corresponding to the found IP address and the first UPF.
By way of example, in the scenario illustrated in fig. 1 (a) and fig. 1 (b), if the SMF-1 finds that the IP address corresponding to DNN-1 exists in the IP address of the client that establishes the session connection through UPF-2, a tunnel is established between the client corresponding to the found IP address and UPF-1, and the clients corresponding to the found IP address are notified to establish the session connection with the enterprise application through UPF-1, that is, new session connection information is sent to the client corresponding to the found IP address, where the session connection information includes a unique identifier of UPF-1 and a PDU session identifier that establishes the session connection with the enterprise application based on UPF-1. After the client corresponding to the found IP address receives the session connection information, a second session connection is established with the enterprise application based on the tunnel established between the client corresponding to the found IP address and UPF-1.
In this embodiment of the present application, a DNN corresponding to a first UPF is obtained, and when it is determined that the first UPF is an active UPF with respect to the corresponding DNN, a standby UPF corresponding to the DNN is determined, and a first session connection corresponding to the DNN on the standby UPF, a target client corresponding to the first session connection is notified to establish a second session connection with a target server corresponding to the first session connection through the active UPF (i.e., the first UPF). Thereby enabling migration of the first session connection of the client residing on the standby UPF onto the primary UPF.
In some alternative embodiments, after step S204, the session connection method shown in fig. 2 further includes the steps of: and releasing the static IP address and the user plane resource allocated for the target client when the first session connection is established.
When the client establishes a PDU session connection with the server through the UPF, the SMF allocates a corresponding IP address and a user plane resource to the client, for example, allocates a corresponding UPF and a PDU session routing path, and the SMF records the information allocated to the client.
Obviously, when the SMF activates a service corresponding to one DNN to the backup UPF, the SMF also records that the IP address and the user plane resource are allocated to the client. At this time, the first session connection residing on the backup UPF needs to be migrated to the primary UPF, and these activating the client to the backup UPF allocates an IP address and a user plane resource to the client, which becomes invalid, and the SMF deletes these information stored locally, that is, the static IP address and the user plane resource allocated to the target client when the first session connection is established.
In some alternative embodiments, after step S204, the session connection method shown in fig. 2 further includes the steps of: and notifying the client corresponding to the first session connection and the standby UPF to release the first session connection.
After the session of the client corresponding to the first session connection is migrated to the primary UPF, the session connection of the client on the standby UPF is an invalid connection, and the invalid connection is released, so that the standby UPF normally performs service processing. In some alternative embodiments, the SMF notifies the client corresponding to the first session connection and the backup UPF to release the first session connection. Illustratively, the SMF notifies the corresponding UPF of the client corresponding to the target IP address (the IP address corresponding to the found DNN having the first UPF as the primary UPF and the IP address for which the session connection is established with the server through the standby UPF corresponding to the DNN) to release the PDU session connection therebetween. The SMF may refer to the 5G standard communication protocol for informing the UPF and the UE of releasing the session connection, and will not be described herein.
Fig. 4 schematically shows a flowchart of a session connection method provided in an embodiment of the present application. Referring to fig. 4, the session connection method is applied to SMF, and includes the following steps S401 to S409:
s401, monitoring the communication connection state with the first UPF.
The SMF monitors the status of the communication connection with the first UPF.
In some alternative embodiments, the communication connection status is monitored between the SMF and the first UPF by a heartbeat signal. Specifically, the SMF periodically sends heartbeat data packets to the first UPF, if the first UPF communicates with the SMF normally, the first UPF sends heartbeat response data packets to the SMF after receiving each heartbeat data packet, and the SMF confirms that the SMF communicates with the first UPF normally after receiving the heartbeat response data packets; if the communication between the first UPF and the SMF is abnormal, the first UPF cannot receive the heartbeat data packet, and naturally cannot return the heartbeat response data packet to the SMF, after the preset time is exceeded, the SMF does not receive the heartbeat response data packet returned by the first UPF, and the SMF confirms that the communication between the first UPF and the SMF is abnormal.
Of course, in other embodiments, the SMF may monitor the communication connection state with the first UPF by other manners, such as ping detection, and thus, the monitoring manner is not specifically limited in the embodiments of the present application.
S402, acquiring DNN corresponding to the first UPF when the communication connection state with the first UPF is abnormal.
And acquiring DNN corresponding to the first UPF when the communication connection state with the first UPF is abnormal. Illustratively, as shown in FIG. 1 (b), when an N4 interface link between SMF-1 and UPF-1 is monitored for abnormal communication, SMF-1 acquires DNN corresponding to UPF-1.
S403, determining the standby UPF corresponding to the DNN.
For the description of the step S402 of acquiring the DNN corresponding to the first UPF and determining the standby UPF corresponding to the DNN in step S403, please refer to the foregoing steps S201 and S202, which are not repeated herein.
S404, receiving a request of a client to establish session connection with a server, and routing a first session connection between the client and the server through the standby UPF.
At this time, the primary UPF fails, and when the SMF receives a request from the client to establish a PDU session connection with the server, the SMF activates the client to the backup UPF, similar to the activation of the UE to the backup UPF-2 in fig. 1 (b), and detailed description thereof will be omitted herein.
And S405, acquiring a data network name DNN corresponding to a first user plane function network element UPF of the communication connection under the condition that the communication connection state with the first UPF is monitored to be recovered from abnormal to normal.
When the SMF again monitors that the communication connection state with the first UPF is restored from abnormal to normal, a procedure of migrating the session connection on the standby UPF to the primary UPF is performed, i.e., S405 to S409.
S406, determining the priority of the first UPF relative to the DNN.
S407, determining a standby UPF corresponding to the DNN when the priority of the first UPF relative to the DNN is the primary UPF.
S408, determining a first session connection corresponding to the DNN on the standby UPF.
S409, notifying a target client to establish a second session connection with a target server through the first UPF, wherein the target client and the target server are the client and the server corresponding to the first session connection.
Steps S405 to S409 are the same as steps S201 to S205 described above, and are not described here again.
In the embodiment of the application, when the communication abnormality between the SMF and the first UPF is detected, the related service taking the first UPF as the primary UPF is migrated to the standby UPF, so that the network has certain disaster recovery capability. After the SMF resumes normal communication with the first UPF, acquiring DNN corresponding to the first UPF, and determining a standby UPF corresponding to the DNN and a first session connection corresponding to the DNN on the standby UPF under the condition that the first UPF is determined to be the primary UPF relative to the corresponding DNN, notifying a target client corresponding to the first session connection to establish a second session connection with a target server corresponding to the first session connection through the primary UPF (i.e. the first UPF). Thereby enabling migration of the first session connection of the client residing on the standby UPF onto the primary UPF.
Fig. 5 schematically shows a flowchart of a session connection method provided in an embodiment of the present application. Referring to fig. 5, the session connection method is applied to SMF, and includes the following steps S501-S508:
s501, abnormal information which is sent by AN access network element AN and indicates abnormal communication between the AN and the first UPF is received, and DNN corresponding to the first UPF is obtained.
In the embodiment of the application, the AN monitors a communication state with the first UPF, and when the AN monitors that the communication state with the first UPF is abnormal, the AN sends abnormal information to the SMF. And the SMF receives the abnormal information which is sent by the AN and indicates that the AN and the first UPF are abnormal in communication, and obtains DNN corresponding to the first UPF.
Illustratively, as shown in FIG. 1 (b), the gNB monitors that the N3 interface link between the gNB and the UPF-1 is abnormal, sends an abnormal message to the SMF-1, and after the SMF-1 receives the abnormal message, the SMF-1 acquires DNN corresponding to the UPF-1.
In some alternative embodiments, the communication connection status is monitored between the AN and the first UPF via a heartbeat signal. Specifically, the AN periodically sends heartbeat data packets to the first UPF, if the first UPF communicates with the AN normally, the first UPF sends heartbeat response data packets to the AN after receiving each heartbeat data packet, and the AN confirms that the AN communicates with the first UPF normally after receiving the heartbeat response data packets; if the communication between the first UPF and the AN is abnormal, the first UPF cannot receive the heartbeat data packet, and naturally cannot return the heartbeat response data packet to the AN, after the preset time is exceeded, the AN does not receive the first UPF to return the heartbeat response data packet, and the AN confirms that the communication between the AN and the first UPF is abnormal.
Of course, in other embodiments, the AN may monitor the communication connection state with the first UPF by other manners, such as ping detection, and thus, the monitoring manner is not specifically limited in the embodiments of the present application.
S502, determining the standby UPF corresponding to the DNN.
For the description of the step S501 of acquiring the DNN corresponding to the first UPF and determining the standby UPF corresponding to the DNN in the step S502, please refer to the foregoing step S201 and S202, which are not repeated herein.
S503, receiving a request of a client to establish session connection with a server, and routing a first session connection between the client and the server through the AN and the standby UPF.
At this time, the primary UPF fails, and when the SMF receives a request from the client to establish a PDU session connection with the server, the SMF activates the client to the backup UPF, similar to the activation of the UE to the backup UPF-2 in fig. 1 (b), and detailed description thereof will be omitted herein.
S504, receiving a recovery message sent by the AN and indicating that the AN and the first UPF communication recover from abnormality, and acquiring a data network name DNN corresponding to a first user plane function network element UPF of communication connection.
And when the AN monitors that the communication state with the first UPF is abnormal and returns to normal again, sending information of returning to normal to the SMF. The SMF receives the information sent by the AN indicating that the AN and the first UPF communicate to recover from the anomaly, and executes a process of migrating the session connection on the standby UPF to the primary UPF, i.e., S505-S508.
S505, determining the priority of the first UPF relative to the DNN.
S506, determining a standby UPF corresponding to the DNN when the priority of the first UPF relative to the DNN is the primary UPF.
S507, determining a first session connection corresponding to the DNN on the standby UPF.
S508, notifying the target client to establish a second session connection with the target server through the first UPF, wherein the target client and the target server are the client and the server corresponding to the first session connection.
Steps S505 to S508 are the same as steps S201 to S205 described above, and are not repeated here.
In the embodiment of the application, when the AN monitors that the AN is abnormal in communication with the first UPF, the AN is timely notified to the SMF, and the SMF transfers related services taking the first UPF as the primary UPF to the standby UPF, so that the network has certain disaster recovery capability. After the SMF resumes normal communication with the first UPF, acquiring DNN corresponding to the first UPF, and determining a standby UPF corresponding to the DNN and a first session connection corresponding to the DNN on the standby UPF under the condition that the first UPF is determined to be the primary UPF relative to the corresponding DNN, notifying a target client corresponding to the first session connection to establish a second session connection with a target server corresponding to the first session connection through the primary UPF (i.e. the first UPF). Thereby enabling migration of the first session connection of the client residing on the standby UPF onto the primary UPF.
Fig. 6 schematically shows a flowchart of a session connection method provided in an embodiment of the present application. Referring to fig. 6, the session connection method is applied to SMF, and includes the following steps S601-S508:
s601, acquiring DNN corresponding to the first UPF under the condition that the communication connection state with the first UPF is abnormal and abnormal information which is sent by AN access network element AN and indicates that the AN and the first UPF are abnormal in communication is monitored;
namely, when communication abnormality occurs at the same time on AN N4 interface link between a first UPF and AN SMF and AN N3 interface link between the first UPF and AN AN, DNN corresponding to the first UPF is obtained.
S602, determining the standby UPF corresponding to the DNN.
S603, receiving a request of a client for establishing session connection with a server, and routing a first session connection between the client and the server through the AN and the standby UPF.
S604, under the condition that the communication connection state with the first UPF is monitored to be recovered from abnormal to normal and a recovery message sent by the AN and indicating that the AN and the first UPF are recovered from abnormal to normal is received, acquiring a data network name DNN corresponding to the first user plane function network element UPF of the communication connection, and acquiring the data network name DNN corresponding to the first user plane function network element UPF of the communication connection.
And when the AN monitors that the communication state with the first UPF is abnormal and returns to normal again, sending information of returning to normal to the SMF. When the SMF receives the information sent by the AN indicating that the AN and the first UPF communicate from the anomaly and also detects that the communication between the SMF and the first UPF is also recovered, a process of migrating the session connection on the standby UPF to the active UPF is executed, that is, S505-S508.
S605, determining the priority of the first UPF relative to the DNN.
S606, if the priority of the first UPF relative to the DNN is the primary UPF, determining the standby UPF corresponding to the DNN.
S607, determining a first session connection corresponding to the DNN on the standby UPF.
S608, notifying a target client to establish second session connection with a target server through the first UPF, wherein the target client and the target server are the client and the server corresponding to the first session connection.
Steps S505 to S508 are the same as steps S201 to S205 described above, and are not repeated here.
According to the session connection method provided by the embodiment of the application, the execution subject can be the session connection device. In the embodiment of the present application, a method for executing session connection by using a session connection device is taken as an example, and the session connection device provided in the embodiment of the present application is described.
Fig. 7 is a schematic structural diagram of a session connection device according to an embodiment of the present application. Referring to fig. 7, the session connection apparatus 700 is applied to an SMF network element, and the session connection apparatus 700 includes:
a first obtaining module 701, configured to obtain a data network name DNN corresponding to a first user plane function network element UPF of a communication connection;
a first determining module 702 configured to determine a priority of the first UPF relative to the DNN;
a second determining module 703, configured to determine, if the priority of the first UPF relative to the DNN is a primary UPF, a backup UPF corresponding to the DNN;
a third determining module 704, configured to determine a first session connection corresponding to the DNN on the backup UPF;
the first notification module 705 is configured to notify, by using the first UPF, a target client to establish a second session connection with a target server, where the target client and the target server are a client and a server corresponding to the first session connection.
In some alternative embodiments, the session connection device 700 further includes:
and the first releasing module is used for releasing the static IP address and the user plane resource which are distributed for the target client when the first session connection is established.
In some alternative embodiments, the session connection device 700 further includes:
and the second notification module is used for notifying the client corresponding to the first session connection and the standby UPF to release the first session connection.
In some alternative embodiments, the session connection device 700 further includes:
the first monitoring module is used for monitoring the communication connection state with the first UPF;
the second acquisition module is used for acquiring DNN corresponding to the first UPF under the condition that the communication connection state with the first UPF is abnormal;
a fourth determining module, configured to determine a standby UPF corresponding to the DNN;
and the first routing module is used for receiving a request of establishing session connection between the client and the server and routing the first session connection between the client and the server through the standby UPF.
In some alternative embodiments, the first obtaining module 701 includes:
and the first acquisition sub-module is used for acquiring a data network name DNN corresponding to the first user plane function network element UPF of the communication connection under the condition that the communication connection state with the first UPF is monitored to recover from the abnormality to the normal state.
In some alternative embodiments, the session connection device 700 further includes:
A third obtaining module, configured to receive anomaly information sent by AN access network element AN and indicating that the AN is abnormal to the communication between the AN and the first UPF, and obtain DNN corresponding to the first UPF;
a fifth determining module, configured to determine a standby UPF corresponding to the DNN;
and the second routing module is used for receiving a request of establishing session connection between the client and the server, and routing the first session connection between the client and the server through the AN and the standby UPF.
In some alternative embodiments, the first obtaining module 701 includes:
and the second acquisition sub-module is used for receiving a recovery message sent by the AN and indicating that the AN and the first UPF are in communication with each other to recover from abnormality, and acquiring a data network name DNN corresponding to a first user plane function network element UPF in communication connection.
In this embodiment of the present application, a DNN corresponding to a first UPF is obtained, and when it is determined that the first UPF is an active UPF with respect to the corresponding DNN, a standby UPF corresponding to the DNN is determined, and a first session connection corresponding to the DNN on the standby UPF, a target client corresponding to the first session connection is notified to establish a second session connection with a target server corresponding to the first session connection through the active UPF (i.e., the first UPF). Thereby enabling migration of the first session connection of the client residing on the standby UPF onto the primary UPF.
The session connection device in the embodiment of the application may be an electronic device, or may be a component in the electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a server, network attached storage (Network Attached Storage, NAS), computer (personal computer, PC), etc., and embodiments of the present application are not particularly limited.
The session connection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The session connection device provided in the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 6, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 8, the embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, where a program or an instruction capable of running on the processor 801 is stored in the memory 802, and the program or the instruction implements each step of the above-mentioned session connection method embodiment when being executed by the processor 801, and the steps can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
It should be noted that, the electronic device in the embodiment of the present application includes the SMF network element, the UPF network element, and the like described above.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the session connection method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run a program or an instruction, implement each process of the above session connection method embodiment, and achieve the same technical effect, so that repetition is avoided, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the session connection method embodiment described above, and achieve the same technical effects, and are not described herein in detail for avoiding repetition.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
Claims (10)
1. A method of session connection, the method comprising:
acquiring a data network name DNN corresponding to a first user plane function network element UPF of communication connection;
determining a priority of the first UPF relative to the DNN;
determining a standby UPF corresponding to the DNN under the condition that the priority of the first UPF relative to the DNN is the primary UPF;
determining a first session connection corresponding to the DNN on the standby UPF;
and notifying a target client to establish a second session connection with a target server through the first UPF, wherein the target client and the target server are the client and the server corresponding to the first session connection.
2. The method of claim 1, wherein after said determining the first session connection corresponding to the DNN on the backup UPF, the method further comprises:
and releasing the static IP address and the user plane resource allocated for the target client when the first session connection is established.
3. The method of claim 1, wherein after said determining the first session connection corresponding to the DNN on the backup UPF, the method further comprises:
and notifying the client corresponding to the first session connection and the standby UPF to release the first session connection.
4. A method according to any one of claims 1 to 3, characterized in that before the acquiring of the data network name DNN corresponding to the first user plane function network element UPF of the communication connection, the method further comprises:
monitoring a communication connection state with a first UPF;
acquiring DNN corresponding to the first UPF under the condition that the communication connection state with the first UPF is abnormal;
determining a standby UPF corresponding to the DNN;
and receiving a request of a client for establishing session connection with a server, and routing a first session connection between the client and the server through the standby UPF.
5. The method according to claim 4, wherein the obtaining the data network name DNN corresponding to the first user plane function element UPF of the communication connection includes:
and under the condition that the communication connection state of the first UPF is monitored to be recovered from abnormal to normal, acquiring a data network name DNN corresponding to the first user plane function network element UPF of the communication connection.
6. A method according to any one of claims 1 to 3, further comprising:
receiving abnormal information which is sent by AN access network element AN and indicates that the AN is abnormal to the communication of the first UPF, and acquiring DNN corresponding to the first UPF;
Determining a standby UPF corresponding to the DNN;
a request from a client to establish a session connection with a server is received, and a first session connection between the client and the server is routed through the AN and the backup UPF.
7. The method according to claim 4, wherein the obtaining the data network name DNN corresponding to the first user plane function element UPF of the communication connection includes:
and receiving a recovery message sent by the AN and indicating that the AN and the first UPF communicate to recover from abnormality, and acquiring a data network name DNN corresponding to a first user plane function network element UPF of communication connection.
8. A session connection apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a data network name DNN corresponding to a first user plane function network element UPF of the communication connection;
a first determining module, configured to determine a priority of the first UPF relative to the DNN;
a second determining module, configured to determine, when the priority of the first UPF relative to the DNN is a primary UPF, a backup UPF corresponding to the DNN;
a third determining module, configured to determine a first session connection corresponding to the DNN on the backup UPF;
And the first notification module is used for notifying the target client to establish second session connection with the target server through the first UPF, and the target client and the target server are the client and the server corresponding to the first session connection.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the session connection method of any of claims 1-7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the session connection method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211105901.8A CN117693071A (en) | 2022-09-09 | 2022-09-09 | Session connection method, device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211105901.8A CN117693071A (en) | 2022-09-09 | 2022-09-09 | Session connection method, device, electronic equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117693071A true CN117693071A (en) | 2024-03-12 |
Family
ID=90132598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211105901.8A Pending CN117693071A (en) | 2022-09-09 | 2022-09-09 | Session connection method, device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117693071A (en) |
-
2022
- 2022-09-09 CN CN202211105901.8A patent/CN117693071A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12052588B2 (en) | UE migration method, apparatus, system, and storage medium | |
US8913484B2 (en) | System and method for session restoration at geo-redundant gateways | |
EP3544232B1 (en) | Processing method, device and system for nf component abnormality | |
CN111083718A (en) | Session management method, network function and network system | |
CN109995844B (en) | Method and device for realizing control plane resource migration and network function entity | |
CN110932876B (en) | Communication system, method and device | |
CN104144124B (en) | Data forwarding method, Apparatus and system | |
CN110771097B (en) | Connectivity monitoring for data tunneling between network device and application server | |
CN101262479B (en) | A network file share method, server and network file share system | |
JP2022532694A (en) | Server computers, methods for providing applications, mobile communication networks, and methods for providing access to server computers. | |
US20220345532A1 (en) | Apparatus, method, and computer program | |
CN101247255A (en) | Method and system for processing damage | |
CN117693071A (en) | Session connection method, device, electronic equipment and medium | |
CN114338607B (en) | Method, device and system for confirming IP address of 5G user terminal | |
US11757987B2 (en) | Load balancing systems and methods | |
CN113824595A (en) | Link switching control method and device and gateway equipment | |
CN110024423B (en) | Error indication processing method, device and system | |
WO2024125269A1 (en) | Voice service establishment method, network device, and storage medium | |
EP3062549A1 (en) | Network node and method | |
EP3893541A1 (en) | Local gtpu node information reporting method, apparatus, and storage medium | |
CN113055200A (en) | Disaster recovery method, device, equipment and medium based on short message gateway centralization | |
CN116847387A (en) | Communication method and communication device | |
CN118803987A (en) | Method and apparatus for managing a packet data network gateway control plane PGW-C | |
CN116744352A (en) | Network disaster recovery method, device and storage medium | |
CN115604753A (en) | Session establishing method, device, system, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |