Disclosure of Invention
Aiming at the defects in the prior art, the embodiment of the invention provides a method, a base station, equipment and a system for recovering connection of a non-activated terminal.
In a first aspect, an embodiment of the present invention provides a method for recovering a connection of an inactive terminal, where the method includes:
after receiving an RRC connection recovery request sent by a non-activated terminal, distributing an interface signaling connection identifier and transmission layer configuration information for the terminal according to the connection request;
sending a request for acquiring an access layer context of the terminal to core network equipment, wherein the request carries the interface signaling connection identifier and transmission layer configuration information so that the core network equipment acquires the access layer context from an anchor base station corresponding to the terminal, and allocates the transmission layer configuration information for a radio access bearer in a radio access bearer list of the terminal according to the access layer context and the transmission layer configuration information;
receiving response information sent by the core network equipment, wherein the response information carries the access layer context and the radio access bearer list;
establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list and recovering the wireless access bearer in the wireless access bearer list;
and sending an RRC connection recovery instruction to the terminal, wherein the instruction carries the radio bearer corresponding to the recovered radio access bearer so that the terminal can recover the RRC connection.
In a second aspect, another embodiment of the present invention provides a method for recovering a connection of an inactive terminal, including:
receiving a request of an access layer context of a non-activated terminal sent by a target base station, wherein the request carries an interface signaling connection identifier and transmission layer configuration information which are allocated to the terminal by the target base station;
determining an anchor base station corresponding to the terminal according to the connection recovery identifier of the terminal;
acquiring an access stratum context of the terminal from the anchor base station;
determining a radio access bearer list of the terminal according to the access layer context, and allocating the transmission layer configuration information to radio access bearers in the radio access bearer list;
and sending response information to the target base station, wherein the response information carries the access layer context and the radio access bearer list, so that the target base station can establish NG interface signaling connection of the terminal according to the response information, recover the radio access bearer in the radio access bearer list and recover RRC connection of the terminal.
In a third aspect, an embodiment of the present invention provides a target base station, including:
the first receiving module is used for distributing signaling connection identification and transmission layer configuration information to the terminal according to a connection request after receiving an RRC connection recovery request sent by a non-activated terminal;
a first sending module, configured to send a request for obtaining an access stratum context of the terminal to a core network device, where the request carries the signaling connection identifier and transport layer configuration information, so that the core network device obtains the access stratum context from an anchor base station corresponding to the terminal, and allocates the transport layer configuration information for a radio access bearer in a radio access bearer list of the terminal according to the access stratum context and the transport layer configuration information;
a second receiving module, configured to receive response information sent by the core network device, where the response information carries the access stratum context and the radio access bearer list;
the processing module is used for establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list and recovering the wireless access bearer in the wireless access bearer list;
and the second sending module is used for sending an RRC connection recovery instruction to the terminal, wherein the instruction carries the radio bearer corresponding to the recovered radio access bearer so that the terminal can recover the RRC connection.
In a fourth aspect, an embodiment of the present invention provides a core network device, including:
a third receiving module, configured to receive a request for an access stratum context of an inactive terminal sent by a target base station, where the request carries an interface signaling connection identifier and transport layer configuration information allocated by the target base station for the terminal;
a context obtaining module, configured to determine, according to the connection recovery identifier of the terminal, an anchor base station corresponding to the terminal, and obtain an access stratum context of the terminal from the anchor base station;
a path switching module, configured to determine a radio access bearer list of the terminal according to the access stratum context, and allocate the transport layer configuration information to a radio access bearer in the radio access bearer list;
and a third sending module, configured to send response information to the target base station, where the response information carries the access stratum context and the radio access bearer list, so that the target base station establishes an NG interface signaling connection of the terminal according to the response information, recovers the radio access bearer in the radio access bearer list, and recovers an RRC connection of the terminal.
In a fifth aspect, an embodiment of the present invention provides a system for recovering a connection of an inactive terminal, where the system includes: the target base station, the core network device and the anchor base station;
the anchor base station is used for sending the access layer context of the terminal in the non-activated state to the core network equipment.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising: after receiving an RRC connection recovery request sent by a non-activated terminal, distributing an interface signaling connection identifier and transmission layer configuration information for the terminal according to the connection request; sending a request for acquiring an access layer context of the terminal to core network equipment, wherein the request carries the signaling connection identifier and transmission layer configuration information so that the core network equipment acquires the access layer context from an anchor base station corresponding to the terminal, and allocates the transmission layer configuration information to a radio access bearer in a radio access bearer list of the terminal according to the access layer context and the transmission layer configuration information; receiving response information sent by the core network equipment, wherein the response information carries the access layer context and the radio access bearer list; establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list and recovering the wireless access bearer in the wireless access bearer list; and sending an RRC connection recovery instruction to the terminal, wherein the instruction carries the radio bearer corresponding to the recovered radio access bearer so that the terminal can recover the RRC connection.
In a seventh aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following method: after receiving an RRC connection recovery request sent by a non-activated terminal, distributing an interface signaling connection identifier and transmission layer configuration information for the terminal according to the connection request; sending a request for acquiring an access layer context of the terminal to core network equipment, wherein the request carries the signaling connection identifier and transmission layer configuration information so that the core network equipment acquires the access layer context from an anchor base station corresponding to the terminal, and allocates the transmission layer configuration information to a radio access bearer in a radio access bearer list of the terminal according to the access layer context and the transmission layer configuration information; receiving response information sent by the core network equipment, wherein the response information carries the access layer context and the radio access bearer list; establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list and recovering the wireless access bearer in the wireless access bearer list; and sending an RRC connection recovery instruction to the terminal, wherein the instruction carries the radio bearer corresponding to the recovered radio access bearer so that the terminal can recover the RRC connection.
In the method for recovering connection of an inactive terminal provided in the embodiment of the present invention, when there is no Xn interface between a target base station and an anchor base station, the target base station obtains a context of an access layer of the terminal in a core network transfer manner, and in a signaling process of obtaining the context of the access layer of the terminal, establishment of a signaling connection of an NG interface related to the terminal and switching of a downlink transmission path are accompanied. When the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger the path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and a core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 4 is a schematic flowchart of a method for recovering a connection of an inactive terminal according to an embodiment of the present invention, where as shown in fig. 4, the method includes:
step S41, after receiving a RRC connection recovery request sent by a non-activated terminal, allocating an interface signaling connection identifier and transmission layer configuration information to the terminal according to the connection request;
specifically, when a terminal in an inactive state receives a page from the network or there is a small amount of uplink data/signaling to send, the terminal needs to reconnect to the wireless network. Since the terminal may move in the inactive state, when a new serving base station (hereinafter referred to AS a target base station) is not an original anchor base station when the terminal re-accesses the wireless network, the target base station needs to obtain a terminal access stratum Context (UE AS Context) saved by the anchor base station from the anchor base station in order to recover the RRC connection of the terminal. Firstly, an inactive state terminal sends a RRC connection recovery request to a target base station, the request carries a connection recovery identifier, specifically, the terminal sends an uplink random access code preamble to a 5G network, the target base station returns a random access response after receiving the preamble sent by the terminal, the terminal sends an RRC connection recovery request RRCConnectionResumRequest to the target base station to trigger an RRC connection recovery process, and the request carries a connection recovery identifier resumeD and a recovery connection cause value, such as mo-data. After receiving the RRC connection recovery request, the target base station determines an anchor base station identification gNB ID according to a connection recovery identification resumeID, the target base station locally searches whether an Xn interface of the anchor base station identification gNB ID is stored or not according to the anchor base station identification gNB ID, at the moment, the target base station finds that no Xn interface exists between the target base station and the anchor base station, and the required terminal access layer context needs to be acquired through core network transfer. The target base station allocates a new interface signaling connection identifier for the terminal, specifically a base station side NG signaling connection identifier (gNB UE NGAP ID), which is used for uniquely identifying the NG signaling connection related to the terminal in the target base station and reserving the configuration information of a transmission layer. The configuration information of the transmission layer is used for switching the downlink transmission path of the terminal, so that the downlink transmission data of the terminal is converted from the anchor base station path to the target base station path for transmission.
Step S42, sending a request for acquiring an access stratum context of the terminal to a core network device, where the request carries the interface signaling connection identifier and the transport layer configuration information, so that the core network device acquires the access stratum context from an anchor base station corresponding to the terminal, and allocates the transport layer configuration information for a radio access bearer in a radio access bearer list of the terminal according to the access stratum context and the transport layer configuration information;
specifically, the target base station sends a request for acquiring a context of an access layer of the terminal to the core network device, where the request carries a connection recovery identifier resumeID, a newly allocated signaling connection identifier gNB UE NGAP ID, and transport layer configuration information provided by the terminal.
After receiving the request, the core network device determines an anchor base station identifier gNB ID corresponding to the terminal according to a connection recovery identifier resumeID, and sends a request for acquiring a terminal Access layer Context to the anchor base station, wherein the request includes the connection recovery identifier resumeID, the anchor base station acquires the locally stored terminal Access layer Context according to the connection recovery identifier resumeID, and sends the Access layer Context to the core network device, after receiving the Access layer Context, the core network device determines a locally stored non-Access layer Context (abbreviated as Context) of the terminal according to a signaling connection identifier AMF UE NGAP ID in the Access layer Context, stores the received new signaling connection identifier gNB UE NGAP ID into the non-Access layer Context, and determines a Radio Access Bearer list (abbreviated as RAB list) corresponding to the terminal from the non-Access layer Context, and allocating transmission layer configuration information sent by the target base station to each radio access bearer RAB in the RAB list, completing downlink transmission path switching, and then sending request information for responding and acquiring the context of the access layer of the terminal to the target base station, wherein the response information comprises the context of the access layer of the terminal and the radio access bearer list, and the response information comprises the transmission layer configuration information allocated to each radio access bearer RAB in the radio access bearer list.
In practical applications, the target base station may further allocate a new security context after the allocation of the transport layer configuration information is completed, where the security context carries a key parameter (NCC), so that the target base station calculates a new key according to the new key parameter NCC to verify whether the terminal identity is correct.
In practical application, the core network device sends a request for acquiring the context of the access layer of the terminal to the anchor base station, and may further carry an instruction for instructing the anchor base station to autonomously release the context of the access layer after the anchor base station successfully sends the context of the access layer of the terminal to the core network device, so as to reduce a signaling interaction process between the anchor base station and the core network.
Step S43, receiving response information sent by the core network device, where the response information carries the access stratum context and the radio access bearer list;
specifically, the target base station receives information of a response acquisition terminal access layer context sent by the core network device, where the response information carries the terminal access layer context and the radio access bearer list, where the response information includes transport layer configuration information allocated to each RAB in the radio access bearer list, and the target base station stores the access layer context information locally and associates with a connection recovery identifier resume.
Step S44, establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list, and recovering the wireless access bearer in the wireless access bearer list;
specifically, after receiving the response message, the target base station acquires a terminal access layer context and a radio access bearer list, establishes an NG interface signaling connection between the target base station and the core network, which is related to the terminal, according to the interface signaling connection identifier and the transport layer configuration information, and recovers the radio access bearer in the radio access bearer list.
In practical application, the target base station can also calculate a new key according to the key parameter NCC in the security context in the response information and store the new key in the context of the terminal access layer.
Step S45, sending an RRC connection recovery instruction to the terminal, where the instruction carries a radio bearer corresponding to the recovered radio access bearer, so that the terminal can recover RRC connection.
Specifically, the target base station sends an RRC connection recovery command (rrcconnectionresponse) to the terminal, where the RRC connection recovery command includes a radio bearer corresponding to the radio access bearer to which the transport layer configuration information has been allocated, and after receiving the rrcconnectionresponse command, the terminal recovers the configuration of the radio bearer, enters an RRC _ CONNECTED state, and returns an RRC connection recovery complete message (rrcconnectionresponse) to the base station.
In practical application, the instruction sent by the target base station to the UE may further include a key parameter NCC, the terminal calculates a new key according to the key parameter NCC, after the target base station receives the information that the RRC connection recovery is completed, the target base station verifies that the terminal identity is correct and legal through the new key, and then the terminal may transmit uplink/downlink data on the recovered radio bearer.
In the method for recovering connection of an inactive terminal provided in the embodiment of the present invention, when there is no Xn interface between a target base station and an anchor base station, the target base station obtains a context of an access layer of the terminal in a core network transfer manner, and in a signaling process of obtaining the context of the access layer of the terminal, establishment of a signaling connection of an NG interface related to the terminal and switching of a downlink transmission path are accompanied. When the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger the path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and a core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
On the basis of the foregoing embodiment, further, the transport layer configuration information includes: the at least one transport layer address and the downlink GTP tunnel endpoint identify a DL GTP-TEID pair.
Specifically, after receiving a request for recovering RRC connection sent by a terminal in an inactive state, a target base station allocates a new interface signaling connection identifier gNB UE NGAP ID for the terminal, and a group of transport layer addresses and downlink GTP tunnel endpoint identifiers (DL GTP-TEID) pairs are reserved for the terminal, each transport layer address is bound with one DL GTP-TEID one by one, the number of the group of address TEID pairs can be configured according to actual conditions, e.g., 16, 32 or other values, and thereafter, the target base station sends a request to the core network device to obtain the terminal access stratum context, the request includes connection recovery identification resumeID provided by the terminal, allocated interface signaling connection identification gNB UE NGAP ID, and a list of reserved transport layer addresses and downlink GTP tunnel endpoint identifications DL GTP-TEIDs, each transport layer address in the list is bound to one DL GTP-TEID.
In the method for recovering connection of an inactive terminal provided by the embodiment of the present invention, after receiving an RRC connection recovery request, a target base station reserves a transport layer address and a downlink GTP tunnel endpoint identifier DL GTP-TEID pair for the terminal, and sends the reservation information to a core network, and obtains a context of an access layer of the terminal by a core network transfer method, and in a signaling process of obtaining the context of the access layer of the terminal, the establishment of NG interface signaling connection related to the terminal and the switching of a downlink transmission path are accompanied. When the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger the path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and a core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
On the basis of the foregoing embodiments, further, the establishing an NG interface signaling connection of the terminal according to the signaling connection identifier and the transport layer configuration information and recovering a radio access bearer in the radio access bearer list includes:
associating the signaling connection identifier with the access stratum context;
saving the radio access bearer list to the access stratum context;
recovering the configuration of the radio bearer corresponding to the radio access bearer;
and releasing the unallocated transport layer address and downlink GTP tunnel endpoint identification DL GTP-TEID pair in the transport layer configuration information.
Specifically, after receiving response information fed back by the core network device, the target base station acquires a terminal access layer context, stores the access layer context in the local, associates a connection recovery identifier resumeID and a signaling connection identifier gnnb UE NGAP ID, then stores a radio access bearer list carried in the response information into the access layer context, wherein the radio access bearer list includes a transport layer address allocated to each radio access bearer RAB and a downlink GTP tunnel endpoint identifier DL GTP-TEID pair, recovers configuration of a radio bearer corresponding to the radio access bearer, and then releases the transport layer address and the downlink GTP tunnel endpoint identifier DL GTP-TEID pair which are not allocated by the core network device. So far, the NG interface signaling connection related to the terminal between the target base station and the core network is established and the radio access bearer of the terminal is recovered.
And then the target base station sends an RRC connection recovery command to the terminal, wherein the command comprises radio bearer configuration information corresponding to each radio access bearer RAB in the radio access bearer list which is successfully recovered. And the terminal recovers the RRC connection according to the information and transmits uplink/downlink data on the radio bearer.
In the method for recovering connection of a non-activated terminal provided in the embodiment of the present invention, after receiving an RRC connection recovery request, a target base station acquires a context of an access layer of the terminal in a core network transfer manner, and in a signaling process of acquiring the context of the access layer of the terminal, establishment of an NG interface signaling connection related to the terminal and switching of a downlink transmission path are concomitantly completed. When the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger the path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and a core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
Fig. 5 is a schematic flow chart of a method for recovering a connection of an inactive terminal according to still another embodiment of the present invention, as shown in fig. 5, the method includes:
step S51, receiving a request of an access layer context of a non-activated terminal sent by a target base station, wherein the request carries an interface signaling connection identifier and transmission layer configuration information which are allocated to the terminal by the target base station;
specifically, when a terminal in an inactive state receives a page from the network or there is a small amount of uplink data/signaling to send, the terminal needs to reconnect to the wireless network. Since the terminal in the inactive state may move, when the target base station is not the original anchor base station when the terminal re-accesses the wireless network, the target base station needs to obtain the terminal access stratum context stored by the anchor base station from the anchor base station so as to recover the RRC connection of the terminal. Firstly, an inactive state terminal sends a request for recovering RRC connection to a target base station, wherein the request carries a connection recovery identifier, specifically, the terminal sends an uplink random access code preamble to a 5G network, the target base station returns a random access response after receiving the preamble sent by the terminal, the terminal sends a RRC connection recovery request (RRCConnectionResumRequest) to the target base station to trigger an RRC connection recovery process, and the request carries a connection recovery identifier resumeID and a recovery connection cause value, such as mo-data. After receiving the RRC connection recovery request, the target base station determines an anchor base station identification gNB ID according to a connection recovery identification resumeID, the target base station locally searches whether an Xn interface of the anchor base station identification gNB ID is stored or not according to the anchor base station identification gNB ID, at the moment, the target base station finds that no Xn interface exists between the target base station and the anchor base station, and the required terminal access layer context needs to be acquired through core network transfer. The target base station allocates a new interface signaling connection identifier for the terminal, specifically a base station side NG signaling connection identifier (gNB UE NGAP ID), which is used for uniquely identifying the NG signaling connection related to the terminal in the target base station and reserving the configuration information of a transmission layer. The configuration information of the transmission layer is used for switching the downlink transmission path of the terminal, so that the downlink transmission data of the terminal is converted from the anchor base station path to the target base station path for transmission.
And then the target base station sends a request for acquiring the context of the access layer of the terminal to the core network equipment, wherein the request carries a connection recovery identifier resumeID, a newly allocated interface signaling connection identifier gNB UE NGAP ID and transmission layer configuration information provided by the terminal.
Step S52, determining an anchor base station corresponding to the terminal according to the connection recovery identifier of the terminal, and acquiring the access stratum context of the terminal from the anchor base station;
specifically, after receiving the request, the core network device determines an anchor base station identifier gNB ID corresponding to the terminal according to the connection restoration identifier. And the core network equipment acquires the access layer context of the terminal from the anchor base station corresponding to the anchor base station identification gNB ID.
Step S53, determining the wireless access bearing list of the terminal according to the access layer context, and distributing the transmission layer configuration information to the wireless access bearing list;
specifically, the core network device finds a locally stored non-access stratum context of the terminal according to an interface signaling connection identifier in the access stratum context, stores a signaling connection identifier sent by a target base station in the non-access stratum context, and finds a radio access bearer list established by the terminal before entering an inactive state from the non-access stratum context. And the core network equipment allocates the transmission layer configuration information for each radio access bearer RAB in the radio access bearer list according to the transmission layer configuration information, and stores the allocated transmission layer configuration information into the local non-access layer context.
Step S54, sending a response message to the target base station, where the response message carries the access stratum context and the radio access bearer list, so that the target base station establishes an NG interface signaling connection of the terminal according to the response message, recovers the radio access bearer in the radio access bearer list, and recovers the RRC connection of the terminal.
Specifically, the core network device sends a response to the target base station to obtain information of a context of the access layer of the terminal, where the response information carries the context of the access layer of the terminal and a radio access bearer list, and after receiving the response information, the target base station stores the context information of the access layer locally and associates and connects with a resume identifier, resumeID. And establishing NG interface signaling connection related to the terminal between the target base station and the core network according to the interface signaling connection identifier and the transport layer configuration information, and recovering the wireless access bearer in the wireless access bearer list. And then, the target base station sends an RRC connection recovery instruction (RRCConnectionResume) to the terminal, wherein the RRC connection recovery instruction (RRCConnectionResume) comprises radio bearer configuration information corresponding to each radio access bearer RAB in the recovered radio access bearer list, and after the terminal receives the RRCConnectionResume instruction, the corresponding radio bearer is recovered based on the configuration information, the RRC _ CONNECTED state is entered, and information (RRCConnectionResumeComplete) of RRC connection recovery completion is returned to the base station.
In the method for recovering connection of an inactive terminal provided in the embodiment of the present invention, when there is no Xn interface between a target base station and an anchor base station, the target base station obtains a context of an access layer of the terminal in a core network transfer manner, and in a signaling process of obtaining the context of the access layer of the terminal, establishment of a signaling connection of an NG interface related to the terminal and switching of a downlink transmission path are accompanied. When the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger the path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and a core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
On the basis of the foregoing embodiment, further, the acquiring the access stratum context of the terminal from the anchor base station includes:
sending the request for obtaining the access stratum context of the terminal to the anchor base station, wherein the request carries an instruction for autonomously releasing the access stratum context after the anchor base station sends the request for obtaining the access stratum context;
and acquiring the access stratum context sent by the anchor base station.
Specifically, after receiving a request for acquiring a context of an access layer of a terminal sent by a target base station, core network equipment sends the request for acquiring the context of the access layer of the terminal to an anchor base station corresponding to the terminal, the request carries an instruction for instructing the anchor base station to autonomously release the context of the access layer after sending the request for the context of the access layer, after receiving the request, the anchor base station determines the context of the access layer of the terminal according to a connection recovery identifier, then sends the context of the access layer to the core network equipment, and then releases the context of the access layer. And then, the core network equipment acquires the access layer context sent by the anchor base station.
In the method for recovering connection of an inactive terminal provided in the embodiment of the present invention, when there is no Xn interface between a target base station and an anchor base station, the target base station obtains a context of an access layer of the terminal in a core network transfer manner, and in a signaling process of obtaining the context of the access layer of the terminal, establishment of a signaling connection of an NG interface related to the terminal and switching of a downlink transmission path are accompanied. And the anchor base station can independently release the context after sending the access layer context, so that interface signaling between the base station and the core network is reduced, after the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger a path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and the core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
Fig. 6 is a schematic flow chart of a method for recovering a connection of an inactive terminal according to another embodiment of the present invention, as shown in fig. 6, the method includes:
s61, the terminal UE sends an uplink random access code preamble to the 5G network;
s62, the target base station returns a random access response after receiving the preamble of the UE;
s63, UE sends RRCConnectionResumRequest message to trigger RRC connection recovery process, wherein the message includes resume ID and reason value;
and S64, after the target base station receives the connection recovery request message, acquiring the gNB ID of the anchor base station based on the resumeID, and discovering that no Xn interface exists between the new base station and the anchor base station by the new base station, and acquiring the required AS context through core network transfer. The target base station allocates a new base station side NG signaling connection identification (new gNB UE NGAP ID) for the UE, the new gNB UE NGAP ID is used for uniquely identifying the NG signaling connection related to the UE in the base station, and reserves a group of Transport Layer Address Transport Layer addresses and DL GTP-TEID pairs (each Transport Layer Address is bound with one GTP-to-one), the number of the group of Address TEID pairs is configurable (for example, 16 or 32, or even larger), the target base station sends a request message for acquiring UE AS context to the core network equipment, and the message contains the resume ID provided by the UE, the allocated new gNB UE NGAP ID, and the reserved Transport Layer Address and DL GTP-TEID list;
s65, the core network equipment receives the request message for obtaining UE context sent by the target base station, determines the anchor base station, and sends the request message for obtaining UE AS context to the anchor base station, wherein the request message comprises resume ID and a release instruction, and the release instruction is used for informing the anchor base station that the UE AS context can be released autonomously after the UE AS context is successfully returned to the core network;
s66, after receiving the request message of the core network equipment, the anchor base station searches the related UE AS context stored locally based on the resume ID, returns the UE AS context to the core network equipment, and then releases the UE AS context based on the indication of the core network;
s67, after receiving the UE AS context returned by the anchor base station, the core network equipment can find out the UE NAS context stored locally based on the NG signaling connection identification of the core network side in the UE AS context, store the new gNB UE NGAP ID provided by the target base station into the local UE NAS context, allocate the reserved transport layer address and the DL GTP-TEID pair provided by the target base station to each RAB bearer in the RAB bearer list restored by the core network for the UE, and store the corresponding relation into the local UE NAS context, namely, complete the switching of the downlink transmission path; then the core network equipment returns a response message for acquiring the UE AS context to the target base station, wherein the response message comprises the UE AS context acquired from the anchor base station, and an RAB bearer list recovered by the core network for the UE, wherein the RAB bearer list comprises a transport layer address and a DL GTP-TEID corresponding to each RAB bearer and new safety context information of the UE;
s68, the target base station receives a response message returned by the core network equipment, acquires a UE AS context from the response message, associates the new gNB UE NGAP ID with the UE AS context, recovers each RAB bearer in the RAB list (including a transport layer address and DL GTP-TEID corresponding to each RAB bearer), stores the RAB list in the UE AS context, releases the residual unallocated transport layer address and GTP-TEID, calculates a new key based on the security context information in the target base station, and stores the new key in the UE AS context, so that the NG signaling connection related to the UE between the target base station and the core network is established; then sending RRCConnectionResume message to UE, wherein the RRCConnectionResume message comprises configuration information of radio bearer corresponding to each RAB in the RAB list successfully recovered by the network side and new key parameter NCC;
s69, UE receives RRCConnectionResume message, recovers corresponding wireless bearing based on configuration information, calculates to obtain new key by NCC parameter, then enters RRC _ CONNECTED state, and returns RRCConnectionResumeCommple message to target base station;
after receiving the connection recovery completion message, the target base station verifies that the identity of the UE is correct and legal through the new secret key, and then the UE can transmit uplink/downlink data on the recovered radio bearer.
As can be seen from fig. 6, compared with the method shown in fig. 2, the method for restoring connection of an inactive terminal according to the embodiment of the present invention reduces 2 air interface signaling, and compared with the method shown in fig. 3, reduces 3 interface signaling, and when a core network control plane node control area is large, network congestion caused by a large amount of signaling load is avoided.
For example, the terminal UE is connected to the gNB1 at the earliest, after a while, since there is no data, the gNB1 allows the terminal UE to enter the INACTIVE state, and at some later time, the UE has uplink application data to transmit, and therefore needs to recover the RRC connection, and at this time, the UE has moved to the cell coverage of the gNB 2;
step 1), UE sends uplink preamble to gNB 2;
step 2), after receiving the preamble of the UE A, the gNB2 returns a random access response;
step 3) the UE sends an RRCConnectionResumRequest message to trigger the RRC connection recovery process, wherein the message comprises the resumeID and the connection recovery reason value which are sent to the UE by the gNB1 before;
step 4) after receiving the connection recovery request message, the gNB2 acquires the ID of the anchor base station gNB1 based on the resumeID therein, the gNB2 finds that no Xn interface exists between the gNB1 and the UE AS context required to be acquired through core network transfer, the gNB2 allocates a new gNB UE NGAP ID for the UE, and reserves a group of 8 transmission layer addresses and DL GTP-TEID pairs in total for the UE, then the gNB2 sends a request message for acquiring the UE AS context to the core network, and the message contains the resumeID of the UE, the new gNB UE NGAP ID allocated by the gNB2 and the reserved transmission layer addresses and DL GTP-TEID lists, wherein the message contains 8 pairs of member items;
step 5) the core network node receives the request message for acquiring the UE AS context sent by the gNB2, determines the identifier of the gNB1 based on the resumeID, and sends the request message for acquiring the UE context to the gNB1, wherein the request message comprises the resumeID and an instruction, and the instruction is used for informing the gNB1 that the UE AS context is released after the UE AS context is successfully returned to the core network;
step 6) after receiving the request message of the core network, gNB1 locally finds out the stored UE AS context based on resume ID, returns the stored UE AS context to the core network, and then releases the context information;
step 7) after the core network node receives the UE AS context returned by the gNB1, at the same time, the UE NAS context stored locally is found out based on AMF UE NGAP ID contained in the context, the new gNB UE NGAP ID provided by the gNB2 is stored in the local UE NAS context, an RAB list established before the UE enters an INACTIVE state is found out, 3 RABs exist in the list, the reserved transmission layer address provided by the gNB2 and 3 items in the DL GTP-TEIDs list are distributed to the 3 RAB bearers, the corresponding relation is stored in the local UE NAS context, and the switching of the downlink transmission path is completed; then the core network node returns a response message for acquiring the UE context to the gNB2, wherein the response message comprises the UE AS context acquired from the gNB1 and an RAB list, wherein the RAB list comprises a transport layer address and a DL GTP-TEID corresponding to each RAB bearer and new security context information of the UE;
step 8) the gNB2 receives a UE context acquisition response message returned by the core network, acquires a UE AS context therefrom, associates the new gNB UE NGAP ID with the UE AS context, stores an RAB list (including transport layer addresses and DL GTP-TEIDs corresponding to 3 RAB bearers) therein into the UE AS context, releases the remaining unallocated 5 pairs of transport layer addresses and GTP-TEIDs, calculates a new key based on the security context information therein by the gNB2 and stores the new key into the UE AS context, so far, the establishment of the NG interface signaling connection related to the UE is completed, and then sends an RRCConnectionResume message to the UE, wherein the RRCConnectionResume message includes the configuration information of the radio bearers corresponding to 3 RABs and a new key parameter NCC;
step 9) the UE receives the RRCConnectionResume message, recovers the radio bearer contained in the RRCConnectionResume message, calculates to obtain a new key by using NCC parameters, then enters into an RRC _ CONNECTED state, and returns an RRCConnectionResumeCommple message to the gNB 2;
step 10) after receiving the connection recovery completion message, the gNB2 verifies whether the UE identity is correct through the new key, and if so, the UE can transmit uplink/downlink data on the radio bearers corresponding to the 3 RAB radio access bearers.
If the UE is connected to the gNB1 earliest, after a period of time, because there is no data, the gNB1 allows the UE to enter the INACTIVE state, at a certain time later, the core network receives downlink application data sent to the UE, the data is sent to the base station gNB1, the gNB1 finds that the UE is already in the INACTIVE state, the gNB1 initiates paging, but at this time, the UE has moved to the cell coverage of the gNB2, and the UE cannot receive the paging message sent by the gNB1, so that the gNB1 fails to page the UE, feeds back the paging UE failure information to the core network, and returns the downlink data to the core network, and then the core network initiates paging in a larger specific area, the gNB2 receives the paging message sent by the core network, then sends the paging message out on a local paging channel, the UE receives the paging message sent by the gNB2, and then the UE performs the above steps 1) to 10), and recovers the RRC connection.
Fig. 7 is a schematic structural diagram of a target base station according to an embodiment of the present invention, and as shown in fig. 7, the target base station includes: a first receiving module 71, a first sending module 72, a second receiving module 73, a processing module 74 and a second sending module 75, wherein:
the first receiving module 71 is configured to, after receiving an RRC connection recovery request sent by an inactive terminal, allocate an interface signaling connection identifier and transport layer configuration information to the terminal according to the connection recovery request; the first sending module 72 is configured to send a request for obtaining an access stratum context of the terminal to a core network device, where the request carries the interface signaling connection identifier and the transport layer configuration information, so that the core network device obtains the access stratum context from an anchor base station corresponding to the terminal, and allocates the transport layer configuration information to a radio access bearer in a radio access bearer list of the terminal according to the access stratum context and the transport layer configuration information; the second receiving module 73 is configured to receive response information sent by the core network device, where the response information carries the access stratum context and the radio access bearer list; the processing module 74 is configured to establish an NG interface signaling connection of the terminal according to the signaling connection identifier and the radio access bearer list, and recover the radio access bearer in the radio access bearer list; the second sending module 75 is configured to send an RRC connection recovery instruction to the terminal, so that the terminal can recover the RRC connection.
Specifically, the first receiving module 71 receives an RRC connection recovery request sent by an inactive terminal, where the request carries a connection recovery identifier resumeID, determines an anchor base station identifier gNB ID according to the connection recovery identifier, and locally searches whether an Xn interface of the anchor base station identifier gNB ID is stored according to the anchor base station identifier gNB ID, and at this time, finds that there is no Xn interface with the anchor base station, and needs to obtain a required terminal access stratum context through core network transfer. The first receiving module 71 allocates a new signaling connection id to the terminal and reserves the transport layer configuration information. The transport layer configuration information is used for switching a downlink transmission path of the terminal.
The first sending module 72 sends a request for acquiring a context of a terminal access layer to a core network device, where the request carries a connection recovery identifier resumeID, a newly allocated signaling connection identifier new gbb UE NGAP ID, and transport layer configuration information provided by the terminal.
After receiving the request, the core network device determines an anchor base station identifier gNB ID corresponding to the terminal according to a connection recovery identifier resumeID, and sends a request for acquiring a terminal Access layer Context to the anchor base station, wherein the request includes the connection recovery identifier resumeID, the anchor base station acquires the locally stored terminal Access layer Context according to the connection recovery identifier resumeID, and sends the Access layer Context to the core network device, after receiving the Access layer Context, the core network device determines a locally stored non-Access layer Context (abbreviated as Context) of the terminal according to a signaling connection identifier AMF UE NGAP ID in the Access layer Context, stores the received new signaling connection identifier gNB UE NGAP ID into the non-Access layer Context, and determines a Radio Access Bearer list (abbreviated as RAB list) corresponding to the terminal from the non-Access layer Context, the RAB list is assigned with the transmitted transport layer configuration information for each RAB in the RAB list, and then the request information for obtaining the context of the access layer of the terminal in response is sent to the second receiving module 73, where the response information includes the context of the access layer of the terminal and the radio access bearer list, which includes the transport layer configuration information assigned for each RAB.
The second receiving module 73 receives information of responding to obtain a terminal access layer context sent by the core network device, where the responding information carries the terminal access layer context and the radio access bearer list, where the information includes transport layer configuration information allocated to each RAB in the radio access bearer list, and the processing module 74 stores the access layer context information locally and associates with the connection recovery identifier resume id. And then acquiring the context of the terminal access layer and a wireless access bearer list, establishing NG interface signaling connection according to the signaling connection identifier and the information, and recovering the wireless access bearer in the wireless access bearer list.
The second sending module 75 sends an RRC connection recovery command (rrcconnectionresponse) to the terminal, where the RRC connection recovery command includes configuration information of radio bearers corresponding to the radio bearers RAB in the radio access bearer list, and after receiving the rrcconnectionresponse command, the terminal recovers the corresponding radio bearers based on the configuration information, enters an RRC _ CONNECTED state, and returns information (rrcconnectionresummecomplete) of RRC connection recovery. The target base station provided in the embodiment of the present invention is configured to implement the method, and its functions specifically refer to the method embodiment, which is not described herein again.
In the target base station provided in the embodiment of the present invention, when there is no Xn interface between the target base station and the anchor base station, the target base station obtains the context of the access layer of the terminal in a core network transfer manner, and in the signaling process of obtaining the context of the access layer of the terminal, the establishment of the NG interface signaling connection related to the terminal and the switching of the downlink transmission path are accompanied. When the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger the path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and a core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
Fig. 8 is a schematic structural diagram of a core network device according to an embodiment of the present invention, and as shown in fig. 8, the core network device includes: a third receiving module 81, a context obtaining module 82, a path switching module 83, and a third sending module 84, where:
the third receiving module 81 is configured to receive a request of an access stratum context of an inactive terminal sent by a target base station, where the request carries an interface signaling connection identifier and transport layer configuration information allocated by the target base station to the terminal; the context obtaining module 82 is configured to determine, according to the terminal connection recovery identifier of the terminal, an anchor base station corresponding to the terminal, and obtain an access stratum context of the terminal from the anchor base station; the path switching module 83 is configured to determine a radio access bearer list of the terminal according to the access layer context, allocate the transport layer configuration information to a radio access bearer in the radio access bearer list, and complete switching of a downlink transmission path; the third sending module 84 is configured to send response information to the target base station, where the response information carries the access stratum context and the radio access bearer list, so that the target base station establishes an NG interface signaling connection of the terminal according to the response information, recovers the radio access bearer in the radio access bearer list, and recovers an RRC connection of the terminal.
Specifically, the inactive state terminal sends an RRC connection recovery request to the target base station, where the request carries a terminal connection recovery identifier resumeID, and after receiving the RRC connection recovery request, the target base station allocates a new signaling connection identifier, specifically a base station side NG signaling connection identifier (new gbb UE NGAP ID), to the terminal, where the new signaling connection identifier is used to uniquely identify NG signaling connection related to the terminal in the target base station, and reserve configuration information of a transmission layer. The configuration information of the transmission layer is used for switching the downlink transmission path of the terminal, so that the downlink transmission data of the terminal is converted from the anchor base station path to the target base station path for transmission. And then the target base station sends a request for acquiring the context of the terminal access layer to the core network equipment, wherein the request carries a terminal connection recovery identifier resumeID, a newly allocated interface signaling connection identifier gNB UE NGAP ID and transmission layer configuration information provided by the terminal. After the third receiving module 81 receives the request, the context obtaining module 82 determines the anchor base station identifier gNB ID corresponding to the terminal according to the terminal connection recovery identifier resumeID. And acquiring the access layer context of the terminal from the anchor base station corresponding to the anchor base station identification gNB ID. The path switching module 83 finds a locally stored non-access stratum context of the terminal according to the interface signaling connection identifier in the access stratum context, stores the signaling connection identifier sent by the target base station into the non-access stratum context, searches a radio access bearer list established before the terminal enters an inactive state from the non-access stratum context, allocates transmission layer configuration information to each radio access bearer RAB in the radio access bearer list, and stores the allocated transmission layer configuration information into the local non-access stratum context to complete the switching of the downlink transmission path. The third sending module 84 sends, to the target base station, information for obtaining the context of the access stratum of the terminal in response, where the response information carries the context of the access stratum of the terminal and a radio access bearer list, where the radio access bearer list includes transport layer configuration information allocated to each radio access bearer RAB.
And after receiving the response information, the target base station stores the access layer context information locally and associates the terminal connection recovery identifier resumeID. And establishing NG interface signaling connection related to the terminal between the target base station and the core network according to the interface signaling connection identifier, and recovering the wireless access bearer in the wireless access bearer list. And then, the target base station sends an RRC connection recovery instruction (RRCConnectionResume) to the terminal, wherein the RRC connection recovery instruction (RRCConnectionResume) comprises configuration information of radio bearers corresponding to all radio access bearers RABs in the radio access bearer list, after the terminal receives the RRCConnectionResume instruction, the corresponding radio bearers are recovered based on the configuration information, the RRC _ CONNECTED state is entered, and information (RRCConnectionResumeCommple) of RRC connection recovery completion is returned to the base station. The core network device provided in the embodiment of the present invention is configured to implement the method, and its functions specifically refer to the method embodiment, which is not described herein again.
In the core network device provided in the embodiment of the present invention, when there is no Xn interface between the target base station and the anchor base station, the target base station obtains the context of the access layer of the terminal in a core network transfer manner, and in the signaling process of obtaining the context of the access layer of the terminal, the establishment of the NG interface signaling connection related to the terminal and the switching of the downlink transmission path are accompanied. When the RRC connection of the terminal is successfully recovered, the target base station does not need to trigger the path switching process, so that air interface signaling between the base station and the terminal and interface signaling between the base station and a core network are reduced, when the number of inactive terminals is large, the signaling load of the air interface and the core network is reduced, network congestion is avoided, and the 5G network performance is improved.
Fig. 9 is a schematic structural diagram of a system for recovering connection of a terminal in an inactive state according to an embodiment of the present invention, where as shown in fig. 9, the system includes: the functions of the target base station 91 in the system specifically refer to the target base station embodiment, and the functions of the core network device 92 in the system specifically refer to the core network device embodiment, which are not described herein again, and the anchor base station 93 is configured to send a terminal access stratum context to the core network device 92, and autonomously release the access stratum context.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 10, the electronic device includes: a processor (processor)1001, a memory (memory)1002, and a bus 1003;
wherein, the processor 1001 and the memory 1002 complete the communication with each other through the bus 1003;
the processor 1001 is configured to call program instructions in the memory 1002 to perform the methods provided by the above-described method embodiments, including, for example: after receiving an RRC connection recovery request sent by a non-activated terminal, distributing an interface signaling connection identifier and transmission layer configuration information for the terminal according to the connection request; sending a request for acquiring an access layer context of the terminal to core network equipment, wherein the request carries the signaling connection identifier and transmission layer configuration information so that the core network equipment acquires the access layer context from an anchor base station corresponding to the terminal, and allocates the transmission layer configuration information for a radio access bearer in a radio access bearer list of the terminal according to the access layer context and the transmission layer configuration information to complete switching of a downlink transmission path; receiving response information sent by the core network equipment, wherein the response information carries the access layer context and the radio access bearer list; establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list and recovering the wireless access bearer in the wireless access bearer list; and sending an RRC connection recovery instruction to the terminal, wherein the instruction carries the radio bearer corresponding to the recovered radio access bearer so that the terminal can recover the RRC connection.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: after receiving an RRC connection recovery request sent by a non-activated terminal, distributing an interface signaling connection identifier and transmission layer configuration information for the terminal according to the connection request; sending a request for acquiring an access layer context of the terminal to core network equipment, wherein the request carries the signaling connection identifier and transmission layer configuration information so that the core network equipment acquires the access layer context from an anchor base station corresponding to the terminal, and allocates the transmission layer configuration information according to the access layer context and the transmission layer configuration information, namely a radio access bearer in a radio access bearer list of the terminal; receiving response information sent by the core network equipment, wherein the response information carries the access layer context and the radio access bearer list; establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list and recovering the wireless access bearer in the wireless access bearer list; and sending an RRC connection recovery instruction to the terminal, wherein the instruction carries the radio bearer corresponding to the recovered radio access bearer so that the terminal can recover the RRC connection.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include: after receiving an RRC connection recovery request sent by a non-activated terminal, distributing an interface signaling connection identifier and transmission layer configuration information for the terminal according to the connection request; sending a request for acquiring an access layer context of the terminal to core network equipment, wherein the request carries the signaling connection identifier and transmission layer configuration information so that the core network equipment acquires the access layer context from an anchor base station corresponding to the terminal, and allocates the transmission layer configuration information for a radio access bearer in a radio access bearer list of the terminal according to the access layer context and the transmission layer configuration information; receiving response information sent by the core network equipment, wherein the response information carries the access layer context and the radio access bearer list; establishing NG interface signaling connection of the terminal according to the interface signaling connection identifier and the wireless access bearer list and recovering the wireless access bearer in the wireless access bearer list; and sending an RRC connection recovery instruction to the terminal, wherein the instruction carries the radio bearer corresponding to the recovered radio access bearer so that the terminal can recover the RRC connection.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the devices and the like are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.