Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and apparatus for establishing a data connection of a 5G terminal, and a 5G terminal.
The embodiment of the disclosure provides a method for establishing a data connection of a 5G terminal, which is applied to the 5G terminal, and comprises the following steps:
responding to the operation of switching the 5G terminal from a 4G network to the 5G network, and sending an SIB parameter request of a cell corresponding to the 5G network to a cell corresponding to the 4G network through the 4G network under the condition that the 5G terminal is connected with the 4G network, wherein the SIB parameter of the cell corresponding to the 5G network is stored by switching a network protocol data unit to the cell corresponding to the 4G network;
receiving a target SIB parameter of the cell corresponding to the 5G network, which is sent by the cell corresponding to the 4G network to the 5G terminal through the 4G network, acquiring a cell connection parameter corresponding to the 5G network from SIB1 information carried in the target SIB parameter, and acquiring wireless resource configuration information of the 5G terminal for 5G network connection from SIB2 information carried in the target SIB parameter;
performing SIB authentication on a cell corresponding to the 5G network according to the cell connection parameters and the radio resource configuration information, generating a Service Request comprising PDU sequences information of the 5G terminal under the condition that the SIB authentication is passed, and sending the Service Request to the cell corresponding to the 4G network through the 4G network so as to enable the cell corresponding to the 4G network to forward the Service Request to the cell corresponding to the 5G network;
and receiving SMF information corresponding to the 5G network and sent by the 4G network for the Service Request, and establishing data connection between the 5G terminal and the 5G network according to a target allocation IP address carried in the SMF information, wherein the SMF information is generated according to the PDU sequences information after the Service Request is received by a cell corresponding to the 5G network.
In a preferred real-time manner, the cell corresponding to the 4G network and the cell corresponding to the 5G network belong to the same blockchain CA center jurisdiction, and the target SIB parameter is generated according to the following manner:
under the condition that the cell corresponding to the 4G network receives the SIB parameter request, according to the identification information of the cell corresponding to the 5G network carried in the SIB parameter request, a UE certificate of the 5G terminal carried in the SIB parameter request and a digital certificate issued by the blockchain CA center to the cell corresponding to the 4G network are sent to the cell corresponding to the 5G network;
and the cell corresponding to the 5G network verifies the cell corresponding to the 4G network according to the digital certificate to acquire the validity and the validity of the target SIB parameter of the cell corresponding to the 5G network, adds the UE certificate of the 5G terminal into the UE certificate list of the cell corresponding to the 5G network under the condition that the validity and the validity verification pass, and generates and transmits the target SIB parameter of the cell corresponding to the 5G network.
In a preferred real-time manner, the cell corresponding to the 5G network verifies the validity and effectiveness of the cell corresponding to the 4G network according to the digital certificate, including:
the cell corresponding to the 5G network verifies the validity of the digital certificate corresponding to the cell corresponding to the 4G network from a key certificate list broadcasted by the blockchain center;
under the condition that the validity verification is passed, the cell corresponding to the 5G network acquires a valid time interval corresponding to the digital certificate from the block chain CA center according to the digital certificate corresponding to the cell corresponding to the 4G network;
and under the condition that the current time is in the effective time interval, determining that the validity verification of the target SIB parameters of the cell corresponding to the 5G network is passed by the cell corresponding to the 4G network.
In a preferred real-time manner, the establishing the data connection between the 5G terminal and the 5G network according to the target allocation IP address carried in the SMF information includes:
according to the target distribution IP address carried in the SMF information, determining a network ID matched with the 5G terminal, and determining whether an operator ID represented by the target distribution IP address is consistent with the operator ID corresponding to the 5G terminal;
and acquiring an IP address according to the result that whether the operator ID represented by the target IP address is consistent with the operator ID corresponding to the 5G terminal, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the IP address.
In a preferred real-time manner, the IP address includes a dynamic IP address or a roaming IP address, the obtaining an IP address according to a result of whether the operator ID represented by the target allocation IP address is consistent with the operator ID corresponding to the 5G terminal, and establishing a data connection between the 5G terminal and the 5G network according to the network ID and the IP address, including:
under the condition that the operator ID represented by the target allocation IP address is consistent with the operator ID corresponding to the 5G terminal, selecting the dynamic IP address as the dynamic IP address for accessing the 5G terminal from the target allocation IP address, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the dynamic IP address;
under the condition that the operator ID represented by the target allocation IP address is inconsistent with the operator ID corresponding to the 5G terminal, sending a roaming connection request for establishing data connection with the cell corresponding to the 5G network in a roaming mode to the cell corresponding to the 4G network according to the target allocation IP address;
and receiving a roaming IP address sent by a cell corresponding to the 4G network for the roaming connection request, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the roaming IP address.
In a preferred real-time manner, the performing SIB authentication on the 5G terminal according to the cell connection parameter and the radio resource configuration information includes:
determining whether a cell corresponding to the 5G network is a cell established by a pseudo base station or a cell established by a pseudo relay base station according to the cell connection parameters;
comparing the effective bit carried by the radio resource configuration information with the preset effective bit of the 5G terminal under the condition that the cell corresponding to the 5G network is not the cell established by the pseudo base station and the cell established by the pseudo relay base station, and determining whether the 5G terminal is effective in the cell corresponding to the 5G network;
and under the condition that the 5G terminal is determined to be effective in the cell corresponding to the 5G network, determining that the 5G terminal passes SIB authentication.
In a preferred real-time manner, the PDU Sessions information includes an active PDU Session, an assigned PDU Session, ciphering parameters and PDU Session status, a 5G-S-TMSI, a NAS message and Exempt Indication.
The embodiment of the disclosure provides a 5G terminal data connection establishment device, which is applied to a 5G terminal, and comprises:
a sending module, configured to respond to an operation that the 5G terminal is switched from a 4G network to a 5G network, and send, through the 4G network, a SIB parameter request of a cell corresponding to the 5G network to a cell corresponding to the 4G network when the 5G terminal is in a 4G network connection, where SIB parameters of the cell corresponding to the 5G network are stored by switching network protocol data units to the cell corresponding to the 4G network;
a receiving module, configured to receive a target SIB parameter of the cell corresponding to the 5G network, where the cell corresponding to the 4G network sends the target SIB parameter of the cell corresponding to the 5G network to the 5G terminal through the 4G network, obtain a cell connection parameter corresponding to the 5G network from SIB1 information carried in the target SIB parameter, and obtain radio resource configuration information of the 5G terminal for performing 5G network connection from SIB2 information carried in the target SIB parameter;
an authentication module, configured to perform SIB authentication on a cell corresponding to the 5G network according to the cell connection parameter and the radio resource configuration information, generate a Service Request including PDU Sessions information of the 5G terminal when the SIB authentication passes, and send the Service Request to the cell corresponding to the 4G network through the 4G network, so that the cell corresponding to the 4G network forwards the Service Request to the cell corresponding to the 5G network;
the establishing module is configured to receive SMF information corresponding to the 5G network sent by the 4G network for the Service Request, and establish data connection between the 5G terminal and the 5G network according to a target allocation IP address carried in the SMF information, where the SMF information is generated according to the PDU sequences information after receiving the Service Request by a cell corresponding to the 5G network.
In a preferred real-time manner, the establishing module is configured to:
according to the target distribution IP address carried in the SMF information, determining a network ID matched with the 5G terminal, and determining whether an operator ID represented by the target distribution IP address is consistent with the operator ID corresponding to the 5G terminal;
and acquiring an IP address according to the result that whether the operator ID represented by the target IP address is consistent with the operator ID corresponding to the 5G terminal, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the IP address.
The embodiment of the disclosure provides a 5G terminal, which comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the method of any of the preceding embodiments.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
transmitting an SIB parameter request of a cell corresponding to the 5G network to a cell corresponding to the 4G network through the 4G network under the condition that the 5G terminal is in 4G network connection by responding to the operation that the 5G terminal is switched from the 4G network to the 5G network; receiving a target SIB parameter of a cell corresponding to a 5G network, which is sent to a 5G terminal by a cell corresponding to the 4G network through the 4G network, acquiring a cell connection parameter corresponding to the 5G network from SIB1 information carried in the target SIB parameter, and acquiring wireless resource configuration information of the 5G terminal for 5G network connection from SIB2 information carried in the target SIB parameter; performing SIB authentication on a cell corresponding to a 5G network according to the cell connection parameters and the radio resource configuration information, generating a Service Request comprising PDU sequences information of the 5G terminal under the condition that the SIB authentication is passed, and sending the Service Request to the cell corresponding to the 4G network through the 4G network so as to enable the cell corresponding to the 4G network to forward the Service Request to the cell corresponding to the 5G network; and receiving SMF information corresponding to the 5G network sent by the 4G network aiming at the Service Request, and establishing data connection between the 5G terminal and the 5G network according to the target distribution IP address carried in the SMF information. Thereby improving the stability and the safety of the 5G terminal for establishing the 5G data connection.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Referring to fig. 1, an embodiment of the present disclosure provides a method for establishing a data connection of a 5G terminal, which is applied to the 5G terminal, and the method includes:
and S11, responding to the operation of switching the 5G terminal from the 4G network to the 5G network, and sending an SIB parameter request of a cell corresponding to the 5G network to the cell corresponding to the 4G network through the 4G network under the condition that the 5G terminal is connected with the 4G network.
The SIB parameters of the cells corresponding to the 5G network are stored in the cells corresponding to the 4G network through network protocol data unit switching.
The operation of switching from the 4G network to the 5G network may be an operation of manually performing network switching on the 5G terminal by the user, or may be an automatic switching operation triggered after the position information of the 5G terminal characterizes that the 5G terminal enters a preset position range.
The cell corresponding to the 5G network exchanges SIB parameters to the cell corresponding to the 4G network with overlapping coverage area through a network protocol data unit, the cell corresponding to the 4G network confirms whether the coverage area overlaps or not under the condition that the SIB parameters of the cell corresponding to any 5G network are received, and stores the SIB parameters of the cell corresponding to the 5G network under the condition that the coverage area overlaps.
S12, receiving a target SIB parameter of the cell corresponding to the 5G network, which is sent to the 5G terminal by the cell corresponding to the 4G network through the 4G network, and acquiring a cell connection parameter corresponding to the 5G network from SIB1 information carried in the target SIB parameter, and acquiring wireless resource configuration information of the 5G terminal for 5G network connection from SIB2 information carried in the target SIB parameter;
s13, performing SIB authentication on the cell corresponding to the 5G network according to the cell connection parameter and the wireless resource configuration information, generating a Service Request comprising PDU sequences information of the 5G terminal under the condition that the SIB authentication is passed, and sending the Service Request to the cell corresponding to the 4G network through the 4G network so as to enable the cell corresponding to the 4G network to forward the Service Request to the cell corresponding to the 5G network;
s14, receiving SMF information corresponding to the 5G network and sent by the 4G network for the Service Request, and establishing data connection between the 5G terminal and the 5G network according to a target allocation IP address carried in the SMF information, wherein the SMF information is generated according to the PDU sequences information after the Service Request is received by a cell corresponding to the 5G network.
In a preferred real-time manner, the cell corresponding to the 4G network and the cell corresponding to the 5G network belong to the same blockchain CA center jurisdiction, and as shown in fig. 2, the target SIB parameters are generated according to the following manners:
s21, under the condition that the cell corresponding to the 4G network receives the SIB parameter request, according to the identification information of the cell corresponding to the 5G network carried in the SIB parameter request, a UE certificate of the 5G terminal carried in the SIB parameter request and a digital certificate issued by the blockchain CA center to the cell corresponding to the 4G network are sent to the cell corresponding to the 5G network;
s22, the cell corresponding to the 5G network verifies the cell corresponding to the 4G network according to the digital certificate to acquire the validity and the validity of the target SIB parameter of the cell corresponding to the 5G network, and adds the UE certificate of the 5G terminal into the UE certificate list of the cell corresponding to the 5G network under the condition that the validity and the validity verification pass, and generates and transmits the target SIB parameter of the cell corresponding to the 5G network.
In a preferred real-time manner, referring to fig. 3, in S22, the verifying, by the cell corresponding to the 5G network, the validity and availability of the cell corresponding to the 4G network according to the digital certificate includes:
s221, the cell corresponding to the 5G network verifies the validity of the digital certificate corresponding to the cell corresponding to the 4G network from the key certificate list broadcasted by the block chain center;
s222, under the condition that the validity verification is passed, the cell corresponding to the 5G network acquires a valid time interval corresponding to the digital certificate from the blockchain CA center according to the digital certificate corresponding to the cell corresponding to the 4G network;
and S223, determining that the validity verification of the target SIB parameter of the cell corresponding to the 5G network is passed by the cell corresponding to the 4G network under the condition that the current time is in the effective time interval.
In a preferred real-time manner, referring to fig. 4, in S14, the establishing a data connection between the 5G terminal and the 5G network according to the target allocation IP address carried in the SMF information includes:
s141, determining a network ID matched with the 5G terminal according to a target allocation IP address carried in SMF information, and determining whether an operator ID represented by the target allocation IP address is consistent with an operator ID corresponding to the 5G terminal;
s142, according to the result that whether the operator ID represented by the target allocation IP address is consistent with the operator ID corresponding to the 5G terminal, acquiring the IP address, and according to the network ID and the IP address, establishing data connection between the 5G terminal and the 5G network.
In a preferred real-time manner, the IP address includes a dynamic IP address or a roaming IP address, and in S142, the step of obtaining the IP address according to a result of whether the operator ID represented by the target allocation IP address is consistent with the operator ID corresponding to the 5G terminal, and establishing a data connection between the 5G terminal and the 5G network according to the network ID and the IP address includes:
under the condition that the operator ID represented by the target allocation IP address is consistent with the operator ID corresponding to the 5G terminal, selecting the dynamic IP address as the dynamic IP address for accessing the 5G terminal from the target allocation IP address, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the dynamic IP address;
under the condition that the operator ID represented by the target allocation IP address is inconsistent with the operator ID corresponding to the 5G terminal, sending a roaming connection request for establishing data connection with the cell corresponding to the 5G network in a roaming mode to the cell corresponding to the 4G network according to the target allocation IP address;
and receiving a roaming IP address sent by a cell corresponding to the 4G network for the roaming connection request, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the roaming IP address.
In a preferred real-time manner, the performing SIB authentication on the 5G terminal according to the cell connection parameter and the radio resource configuration information includes:
determining whether a cell corresponding to the 5G network is a cell established by a pseudo base station or a cell established by a pseudo relay base station according to the cell connection parameters;
comparing the effective bit carried by the radio resource configuration information with the preset effective bit of the 5G terminal under the condition that the cell corresponding to the 5G network is not the cell established by the pseudo base station and the cell established by the pseudo relay base station, and determining whether the 5G terminal is effective in the cell corresponding to the 5G network;
and under the condition that the 5G terminal is determined to be effective in the cell corresponding to the 5G network, determining that the 5G terminal passes SIB authentication.
In a preferred real-time manner, the PDU Sessions information includes an active PDU Session, an assigned PDU Session, ciphering parameters and PDU Session status, a 5G-S-TMSI, a NAS message and Exempt Indication.
Referring to fig. 5, an embodiment of the present disclosure provides a 5G terminal data connection establishment apparatus, which is applied to a 5G terminal, the apparatus 500 includes:
a sending module 510, configured to respond to an operation of switching the 5G terminal from the 4G network to the 5G network, and send, through the 4G network, a SIB parameter request of a cell corresponding to the 5G network to a cell corresponding to the 4G network when the 5G terminal is in a 4G network connection, where SIB parameters of the cell corresponding to the 5G network are stored by switching network protocol data units to the cell corresponding to the 4G network;
a receiving module 520, configured to receive a target SIB parameter of the cell corresponding to the 5G network, where the cell corresponding to the 4G network sends the target SIB parameter of the cell corresponding to the 5G network to the 5G terminal through the 4G network, obtain a cell connection parameter corresponding to the 5G network from SIB1 information carried in the target SIB parameter, and obtain radio resource configuration information of the 5G terminal for performing 5G network connection from SIB2 information carried in the target SIB parameter;
an authentication module 530, configured to perform SIB authentication on a cell corresponding to the 5G network according to the cell connection parameter and the radio resource configuration information, generate a Service Request including PDU Sessions information of the 5G terminal when the SIB authentication passes, and send the Service Request to the cell corresponding to the 4G network through the 4G network, so that the cell corresponding to the 4G network forwards the Service Request to the cell corresponding to the 5G network;
the establishing module 540 is configured to receive SMF information corresponding to the 5G network sent by the 4G network for the Service Request, and establish data connection between the 5G terminal and the 5G network according to a target allocation IP address carried in the SMF information, where the SMF information is generated according to the PDU sequences information after receiving the Service Request by a cell corresponding to the 5G network.
In a preferred real-time manner, the cell corresponding to the 4G network and the cell corresponding to the 5G network belong to the same blockchain CA center jurisdiction, and the target SIB parameter is generated according to the following manner:
under the condition that the cell corresponding to the 4G network receives the SIB parameter request, according to the identification information of the cell corresponding to the 5G network carried in the SIB parameter request, a UE certificate of the 5G terminal carried in the SIB parameter request and a digital certificate issued by the blockchain CA center to the cell corresponding to the 4G network are sent to the cell corresponding to the 5G network;
and the cell corresponding to the 5G network verifies the cell corresponding to the 4G network according to the digital certificate to acquire the validity and the validity of the target SIB parameter of the cell corresponding to the 5G network, adds the UE certificate of the 5G terminal into the UE certificate list of the cell corresponding to the 5G network under the condition that the validity and the validity verification pass, and generates and transmits the target SIB parameter of the cell corresponding to the 5G network.
In a preferred real-time manner, the cell corresponding to the 5G network verifies the validity and effectiveness of the cell corresponding to the 4G network according to the digital certificate, including:
the cell corresponding to the 5G network verifies the validity of the digital certificate corresponding to the cell corresponding to the 4G network from a key certificate list broadcasted by the blockchain center;
under the condition that the validity verification is passed, the cell corresponding to the 5G network acquires a valid time interval corresponding to the digital certificate from the block chain CA center according to the digital certificate corresponding to the cell corresponding to the 4G network;
and under the condition that the current time is in the effective time interval, determining that the validity verification of the target SIB parameters of the cell corresponding to the 5G network is passed by the cell corresponding to the 4G network.
In a preferred real-time manner, the establishing module 540 is configured to:
according to the target distribution IP address carried in the SMF information, determining a network ID matched with the 5G terminal, and determining whether an operator ID represented by the target distribution IP address is consistent with the operator ID corresponding to the 5G terminal;
and acquiring an IP address according to the result that whether the operator ID represented by the target IP address is consistent with the operator ID corresponding to the 5G terminal, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the IP address.
In a preferred real-time manner, the IP address includes a dynamic IP address or a roaming IP address, and the establishing module 540 is configured to:
under the condition that the operator ID represented by the target allocation IP address is consistent with the operator ID corresponding to the 5G terminal, selecting the dynamic IP address as the dynamic IP address for accessing the 5G terminal from the target allocation IP address, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the dynamic IP address;
under the condition that the operator ID represented by the target allocation IP address is inconsistent with the operator ID corresponding to the 5G terminal, sending a roaming connection request for establishing data connection with the cell corresponding to the 5G network in a roaming mode to the cell corresponding to the 4G network according to the target allocation IP address;
and receiving a roaming IP address sent by a cell corresponding to the 4G network for the roaming connection request, and establishing data connection between the 5G terminal and the 5G network according to the network ID and the roaming IP address.
In a preferred real-time manner, the authentication module 530 is configured to:
determining whether a cell corresponding to the 5G network is a cell established by a pseudo base station or a cell established by a pseudo relay base station according to the cell connection parameters;
comparing the effective bit carried by the radio resource configuration information with the preset effective bit of the 5G terminal under the condition that the cell corresponding to the 5G network is not the cell established by the pseudo base station and the cell established by the pseudo relay base station, and determining whether the 5G terminal is effective in the cell corresponding to the 5G network;
and under the condition that the 5G terminal is determined to be effective in the cell corresponding to the 5G network, determining that the 5G terminal passes SIB authentication.
In a preferred real-time manner, the PDU Sessions information includes an active PDU Session, an assigned PDU Session, ciphering parameters and PDU Session status, a 5G-S-TMSI, a NAS message and Exempt Indication.
The embodiment of the disclosure provides a 5G terminal, which comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the method of any of the preceding embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.