WO2024087986A1 - Network accessing method and related device thereof - Google Patents

Network accessing method and related device thereof Download PDF

Info

Publication number
WO2024087986A1
WO2024087986A1 PCT/CN2023/121400 CN2023121400W WO2024087986A1 WO 2024087986 A1 WO2024087986 A1 WO 2024087986A1 CN 2023121400 W CN2023121400 W CN 2023121400W WO 2024087986 A1 WO2024087986 A1 WO 2024087986A1
Authority
WO
WIPO (PCT)
Prior art keywords
base station
message
communication device
ncc value
target
Prior art date
Application number
PCT/CN2023/121400
Other languages
French (fr)
Chinese (zh)
Inventor
李彦良
戚杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024087986A1 publication Critical patent/WO2024087986A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular to a method for accessing a network and related devices thereof.
  • next hop chaining count (NCC) field is required for key derivation, and the key derivation includes two modes: horizontal derivation and vertical derivation.
  • the S1 switching process is triggered. Due to some reasons, the S1 switching preparation fails, and the NCC value maintained by the core network (such as the mobility management entity (MME)) is accumulated during the S1 switching preparation failure process. However, the UE side does not perceive the S1 switching failure, so the NCC value maintained by the UE side remains unchanged. However, when there are too many consecutive S1 switching failures, the NCC value maintained by the MME flips, that is, the NCC value has completed a cycle of update. In the subsequent switching process for successful switching, the base station side and the UE side derive keys according to the latest NCC for information exchange.
  • MME mobility management entity
  • the number of keys derived by the UE side is different from the number of keys derived by the MME, resulting in the UE's key being different from the MME's key, which in turn causes the packet data convergence protocol (PDCD) integrity check to fail when subsequent uplink packets are sent, so that the base station side discards the reconfiguration completion message sent by the UE, resulting in the switching execution failure triggering a call drop.
  • PDCD packet data convergence protocol
  • the present application provides a method for accessing a network and a related device thereof, which are applied to network communications in the Internet industry.
  • the present application solves the problem that when the UE side accesses the network, after the continuous S1 switching preparation fails for many times, the NCC value maintained by the core network side flips, that is, the NCC value completes a cycle of update, but the UE side cannot perceive the flipping of the NCC value, and ensures that the key derived by the core network side is the same as the key derived by the UE side, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
  • a method for accessing a network comprising:
  • the first base station receives a first message sent by the communication device, wherein the first message is used to instruct the communication device to access the second base station and the management device, wherein the second base station is a base station supporting access by the communication device.
  • the first base station sends a handover request message to the management device based on the first message, where the handover request message is used to instruct the first base station to initiate S1 handover.
  • the first base station receives a second message sent by the management device and carrying a target NCC value, wherein the target NCC value is obtained by the management device failing to perform S1 handover preparation for seven consecutive times.
  • the first base station sends the target NCC value to the communication device based on the second message, so that the communication device obtains the same key as the management device based on the target NCC value.
  • the first base station obtains a target NCC value, which is obtained by the management device based on seven consecutive failures of executing S1 handover preparation, and the first base station also sends the target NCC value to the communication device.
  • the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the handover process is successfully executed, and the communication is normal.
  • the second message is used to indicate a current S1 switching preparation failure
  • the first base station determines that the S1 switching preparation failure indicated by the second message is the seventh consecutive S1 switching preparation failure
  • the first base station sends a wireless resource control connection reconfiguration message to the communication device based on the target information
  • the wireless resource control connection reconfiguration message carries a target NCC value
  • the first base station determines that S1 handover preparation fails seven times in a row, and then sends a target NCC value to the communication device through a radio resource control connection reconfiguration message, providing a variety of application scenarios and reflecting the selectivity of the solution.
  • the target information belongs to a protocol field in protocol 33.401 or protocol 36.413.
  • the target information belongs to the protocol field in protocol 33.401 or protocol 36.413, which increases the complexity of the solution.
  • the first base station before the first base station receives a second message carrying a target NCC value sent by the management device, the first base station receives a third message carrying a second NCC value sent by the management device, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
  • the first base station receives the third message carrying the second NCC value sent by the management device, which enables the first base station to obtain the corresponding NCC value in real time, ensure real-time synchronization of the NCC value, and improve work accuracy.
  • the second message is sent by the management device after determining that the S1 switching preparation fails seven times consecutively.
  • the management device sends the target NCC value to the first base station only after determining that the S1 handover preparation fails seven times in a row, which can reduce information interaction and thus reduce resource occupation and improve work efficiency.
  • the first base station after the first base station sends the target NCC value to the communication device, the first base station receives a first NCC value sent by the management device, and its first NCC value corresponds to successful S1 switching preparation, and the first base station sends the first NCC value to the communication device, so that the communication device obtains the same key as the management device based on the first NCC value.
  • the communication device obtains the same key as the management device based on the first NCC value, which can ensure that the S1 handover or X2 handover is successfully executed, prevent call drops, and ensure normal communication.
  • a method for accessing a network including:
  • the management device receives a switching request message sent by the first base station based on the first message, and the switching request message is used to instruct the first base station to initiate S1 switching, wherein the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is the base station for accessing the communication device, and the second base station is the base station supporting access by the communication device.
  • the management device performs S1 handover preparation based on the handover request message.
  • the management device determines the target NCC value
  • the management device sends a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message.
  • the management device receives a switching request message sent by the first base station, and the management device performs S1 switching preparation based on the switching request message.
  • the management device determines the target NCC value and sends a second message carrying the target NCC value to the first base station, and the first base station sends the target NCC value to the communication device based on the second message.
  • the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
  • the second message is used to indicate that the current S1 switching preparation has failed.
  • the management device Before the management device determines the target NCC value, the management device sends a third message carrying the second NCC value to the first base station, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
  • the management device sends a third message carrying the second NCC value to the first base station, which enables the first base station to obtain the corresponding NCC value in real time, ensures real-time synchronization of the NCC value, and improves the accuracy of the work.
  • the management device after the management device sends a second message carrying the target NCC value to the first base station, the management device sends a first NCC value to the first base station, so that the first base station sends the first NCC value to the communication device, and the first NCC value corresponds to successful S1 switching preparation.
  • the management device sends a first NCC value to the first base station, and the first base station forwards the first NCC value to the communication device.
  • the communication device then obtains the same key as the management device based on the first NCC value, thereby ensuring that the S1 switching or X2 switching is successful, preventing dropped calls, and ensuring normal communication.
  • the present application provides a method for accessing a network, including:
  • the communication device sends a first message to the first base station, where the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is a base station for accessing the communication device, and the second base station is a base station supporting access by the communication device.
  • the communication device receives the target NCC value sent by the first base station, wherein the target NCC value is obtained by the management device failing to perform S1 handover preparation seven times in a row, wherein the S1 handover preparation is performed by the management device based on the handover request message sent by the first base station, and the handover request The message is sent by the first base station to the management device based on the first message.
  • the communication device acquires the same key as the management device based on the target NCC value.
  • the communication device sends a first message to the first base station for accessing the second base station and the management device, and then the first base station sends a switching request message to the management device based on the first message, and the management device performs S1 switching preparation based on the switching request.
  • the management device determines the target NCC value and sends a second message carrying the target NCC value to the first base station, and the first base station sends the target NCC value to the communication device based on the second message.
  • the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
  • the communication device receives a radio resource control connection reconfiguration message sent by the first base station, where the radio resource control connection reconfiguration message carries a target NCC.
  • the communication device receives a radio resource control connection reconfiguration message carrying a target NCC value sent by the first base station, which is implemented by performing intra-cell switching through the first base station, thereby improving the implementation method of the present solution.
  • the communication device after the communication device receives the target NCC value sent by the first base station, the communication device receives a first NCC value sent by the first base station, the first NCC value corresponds to successful S1 switching preparation, and the communication device obtains the same key as the management device based on the first NCC value.
  • the communication device receives a first NCC value sent by the first base station, and the first NCC value corresponds to successful S1 switching preparation.
  • the communication device then obtains the same key as the management device based on the first NCC value, thereby ensuring that the S1 switching or X2 switching is successfully executed, preventing dropped calls, and ensuring normal communication.
  • a base station which has the function of implementing the method of the first aspect or any possible implementation of the first aspect.
  • the function can be implemented by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the base station of the fourth aspect executes the method described in the first aspect of the present application or any possible implementation manner of the first aspect.
  • a management device which has the function of implementing the method of the second aspect or any possible implementation of the second aspect.
  • the function can be implemented by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the management device of the fifth aspect executes the method described in the second aspect of the present application or any possible implementation manner of the second aspect.
  • a communication device which has the function of implementing the method of the third aspect or any possible implementation of the third aspect.
  • the function can be implemented by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the communication device of the sixth aspect executes the method described in the third aspect of the present application or any possible implementation manner of the third aspect.
  • another communication device which may include a processor, which is coupled to a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions in the memory so that the communication device performs the method described in the first aspect of the present application or any possible implementation of the first aspect, or performs the method described in the second aspect of the present application or any possible implementation of the second aspect, or performs the method described in the third aspect of the present application or any possible implementation of the third aspect.
  • another communication device comprising a processor for executing a computer program (or computer executable instructions) stored in a memory.
  • a computer program or computer executable instructions stored in a memory.
  • the processor and the memory are integrated together;
  • the memory is located outside the communication device.
  • the communication device also includes a communication interface, which is used for the communication device to communicate with other devices, such as data and/or information.
  • the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces.
  • the ninth aspect provides a computer-readable storage medium, including computer-readable instructions.
  • the computer-readable instructions When the computer-readable instructions are run on a computer, the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect of this application is executed.
  • a computer program product comprising computer-readable instructions, which, when executed on a computer, enable the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect of the present application to be executed.
  • FIG1 is a schematic diagram of an application scenario in which S1 switching preparation fails
  • FIG2 is another schematic diagram of an application scenario in which S1 switching preparation fails
  • FIG3 is a schematic diagram of a method for accessing a network provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG5 is another schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG6 is a schematic diagram of a structure of a communication device provided in an embodiment of the present application.
  • FIG7 is a schematic diagram of a structure of a base station provided in an embodiment of the present application.
  • FIG8 is a schematic diagram of a structure of a management device provided in an embodiment of the present application.
  • FIG. 9 is another schematic diagram of the structure of the communication device provided in an embodiment of the present application.
  • the embodiment of the present application provides a method for accessing a network and a related device thereof, which are applied to network communications in the Internet industry.
  • the method solves the problem that when the UE side accesses the network, after the continuous S1 switching preparation fails for many times, the NCC value maintained by the core network side flips, that is, the NCC value completes a cycle of update, but the UE side cannot perceive the flipping of the NCC value, and ensures that the key derived by the core network side is the same as the key derived by the UE side, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
  • S1 handover is specifically S1 interface handover.
  • S1 interface is the interface between evolved node B (eNB) and MME.
  • eNB evolved node B
  • MME Mobility Management Entity
  • X2 handover is specifically X2 interface handover.
  • X2 interface is the interface between two eNBs.
  • X2 handover is mainly used for interactive handover related commands between base stations, and can directly transmit service data between base stations.
  • NCC field is required for key derivation.
  • the range of the NCC field defined in the protocol is 0 to 7.
  • the key is divided into horizontal derivation and vertical derivation.
  • S1 switching adopts vertical derivation, and a new key is derived from the initial key and the NCC value.
  • the final target key is derived from the initial key from the initial NCC value to the current NCC value in a loop.
  • X2 switching adopts horizontal derivation, and a new key is derived from the initial key plus the current cell frequency and the physical cell identifier (PCI). It should be noted that the combination of each cell frequency and PCI is different.
  • FIG. 1 is a schematic diagram of an application scenario in which S1 handover preparation fails.
  • This application scenario takes UE accessing a network access base station as an example.
  • the UE sends an access message to the source base station, i.e., source eNB, to access the base station and MME.
  • the source eNB initiates S1 handover by sending an S1 handover request message (e.g., the handover require message in FIG. 1 ) to the MME.
  • an S1 handover request message e.g., the handover require message in FIG. 1
  • the MME executes step 103 to accumulate the maintained NCC value, i.e., NCC+.
  • the current NCC value changes from 2 to 3, i.e., the NCC currently maintained by the MME is 3.
  • the S1 handover preparation performed by the target eNB1 fails, and the target eNB1 executes step 105 to reply the handover preparation failure message, i.e., the handover preparation fail message, to the MME, and the MME executes step 106 to forward the handover preparation fail message to the source eNB, so that the source eNB determines that the current S1 handover preparation fails.
  • the target eNB1 executes step 105 to reply the handover preparation failure message, i.e., the handover preparation fail message, to the MME, and the MME executes step 106 to forward the handover preparation fail message to the source eNB, so that the source eNB determines that the current S1 handover preparation fails.
  • the MME derives keys 10 times (specifically, the corresponding NCC in the derivation process is 3, 4, 5, 6, 7, 0, 1, 2, 3, 4). It can be understood that steps 107 to 111 are similar to those described in the aforementioned steps 102 to 106, and the details are not repeated here.
  • RRC radio resource control
  • the keys of the UE and MME are inconsistent, resulting in the failure of the PCDC integrity check and being discarded by the PCDC layer of the target eNB2, which in turn causes the handover failure to trigger a call drop.
  • FIG. 2 is another schematic diagram of an application scenario in which S1 handover preparation fails.
  • This application scenario takes UE accessing a network access base station as an example. Among them, the initial NCC values maintained by the UE and the MME are both 2.
  • the UE executes step 201 to send an access message to the source eNB to access the base station and the MME, and then the source eNB executes step 202 to send a handover require message to the MME to initiate S1 handover.
  • the target eNB1 fails to perform S1 handover preparation, so the target eNB1 executes step 205 to send a handover request message to the MME.
  • the MME derives the key 10 times (specifically, the corresponding NCCs in the derivation process are 3, 4, 5, 6, 7, 0, 1, 2, 3, 4). It can be understood that steps 207 to 211 are similar to those described in the aforementioned steps 202 to 206, and the details are not repeated here. During this period, the NCC value and the update of the NCC field definition range 0-7 exceed one cycle, that is, the NCC value has flipped.
  • the source eNB executes step 212 to directly send a handover request message to the target eNB2 to initiate S1 handover.
  • the target eNB2 After the target eNB2 successfully executes S1 handover preparation, it executes step 213 to reply a handover request acknowledge message to the source eNB to inform that the S1 handover preparation is successful.
  • the UE derives a key horizontally based on the current NCC value to obtain the same key as the target eNB2, and executes step 215 based on the key to send an RRC connection reconfiguration complete message to the target eNB2, and then the target eNB2 executes step 216 to send a path switch request, i.e., a path switch request message, to the MME to notify the MME that the UE has changed the cell.
  • a path switch request i.e., a path switch request message
  • a path switch request confirmation message i.e., a path switch request acknowledge message
  • UE executes step 222 to send an RRC connection reconfiguration complete message to target eNB3.
  • the key A is different from the key B, which results in the failure of the PCDC integrity check of the reconfiguration complete message.
  • the reconfiguration complete message is discarded by target eNB3, and the X2 handover failure triggers a call drop.
  • a first base station receives a first message sent by a communication device, and the first message is used to instruct the communication device to access a second base station and a management device, wherein the first base station is a base station for accessing the communication device, i.e., a source base station, and the second base station is a base station supporting access by the communication device, i.e., a target base station.
  • the first base station sends a switching request message to the management device based on the first message, and the switching request message is used to instruct the first base station to initiate an S1 switching.
  • the first base station receives a second message carrying a target NCC value sent by the management device, and then, the first base station sends the target NCC value to the communication device based on the second message, so that the communication device obtains the same key as the management device based on the target NCC value.
  • the problem that the UE side cannot perceive the NCC value maintained by the core network side after flipping after the continuous S1 switching preparation fails multiple times during the process of accessing the network on the UE side is solved, and the key derived from the core network side is ensured to be the same as the key derived from the UE side, so as to ensure that when the UE side sends an uplink packet, its PCDC integrity check is successful, and the switching process is successfully executed and the communication is normal.
  • FIG. 3 is a schematic diagram of a method for accessing a network provided by an embodiment of the present application. Specifically, it includes:
  • the communication device sends a first message to the first base station.
  • the communication device sends a first message to the first base station, and the first message at least indicates that the communication device accesses the second base station and the management device, wherein the first base station is the base station for accessing the communication device, and the second base station is the base station supporting access by the communication device, which mainly allocates access resources.
  • the first base station is the source base station, i.e., source eNB
  • the second base station is the target base station, i.e., target eNB
  • the communication device is UE
  • the management device is MME.
  • the first base station receives the first message sent by the communication device, that is, step 401 in FIG. 4:
  • the source eNB receives the first message sent by the UE.
  • the UE sends a first message to the source eNB, and accesses the target eNB and the MME through the source eNB, where the MME belongs to the core network.
  • the details are similar to those in step 201 of FIG. 2 , and will not be described in detail here.
  • the first base station sends a switching request message to the management device.
  • the first base station sends a handover request message to the management device based on the first message, where the handover request message is used to instruct the first base station to initiate S1 handover.
  • the management device executes the S1 handover preparation process based on the first message.
  • the execution of the S1 handover preparation process is described by taking FIG. 4 as an example, wherein the management device takes MME as an example, and the first message takes a handover require message as an example, specifically including:
  • the source eNB sends a handover require message to the MME.
  • the Source eNB initiates S1 handover and sends a handover require message to the MME to execute the S1 handover preparation process.
  • the details are similar to those in step 202 in FIG. 2 above and will not be described in detail here.
  • the MME accumulates the NCC value.
  • step 403 is similar to step 203 in FIG. 2 , and will not be described in detail here.
  • MME sends a handover request message to the target eNB.
  • step 405 which is as follows:
  • the target eNB sends a handover preparation fail message to the MME.
  • the target eNB sends a handover preparation fail message to the MME to inform that the current S1 handover preparation has failed.
  • the details are similar to those in step 205 in FIG. 2 , and will not be described in detail here.
  • the management device sends a third message carrying a second NCC value to the first base station, and the number of consecutive current S1 handover preparation failures corresponding to the second NCC value is less than seven times, and as described in step A3 of FIG. 3:
  • the management device sends a third message to the first base station.
  • the management device sends a third message to the first base station, the third message carrying the second NCC value. Specifically, whenever the S1 handover preparation fails, the management device sends a message to the first base station carrying the NCC value corresponding to the current S1 handover preparation failure.
  • the third message may be a handover preparation fail message, which is as follows:
  • step 406 in the aforementioned FIG. 4 is merely used as an example for understanding the embodiment of the present application. It is understandable that the third message may also be other notification messages or reports, which are not specifically limited here.
  • the management device sends a handover preparation fail message to the first base station.
  • the message does not carry an NCC value and is only used to inform the first base station that the current S1 handover preparation has failed.
  • Figure 5 is another schematic diagram of the application scenario provided by the embodiment of the present application. Among them, steps 501 to 505 are similar to those described in steps 401 to 404 in Figure 4 above, and the details are not repeated here. Please refer to the following step 506 for details:
  • Step 506 MME sends a handover preparation fail message to the source eNB.
  • the MME After receiving the handover preparation fail message sent by the target eNB, the MME forwards the message to the source eNB to inform the source eNB that the current S1 handover preparation has failed so that the source eNB can continue to initiate the S1 handover.
  • the management device sends a third message carrying the second NCC value to the first base station, which enables the first base station to obtain the corresponding NCC value in real time, ensures real-time synchronization of the NCC value, and improves the accuracy of the work.
  • the source eNB when S1 handover preparation fails, the source eNB will receive a handover failure message to determine that the current S1 handover preparation has failed. The source eNB will continue to initiate S1 handover until S1 handover preparation succeeds.
  • the first base station receives a second message carrying a target NCC value sent by the management device, and the target NCC value is obtained by the management device performing the S1 handover preparation failure seven times in a row.
  • step A4 in Figure 3 which is as follows:
  • the management device sends a second message to the first base station.
  • the management device sends a second message carrying a target NCC to the first base station.
  • the target NCC is obtained by the management device failing to perform S1 handover preparation for seven consecutive times.
  • the second message is used to indicate that the current S1 switching preparation fails.
  • the management device i.e., the MME
  • the MME executes the S1 handover preparation process multiple times, and the S1 handover preparation fails 7 times.
  • the S1 handover preparation fails 7 times.
  • it includes:
  • the source eNB sends a handover require message to the MME.
  • the S1 handover preparation has failed six times in a row (excluding the S1 handover success and the X2 handover success).
  • the NCC values are 3, 4, 5, 6, 7 and 0 respectively, and then the source eNB continues to initiate S1 handover, that is, sending a handover require message to the MME.
  • the MME performs accumulation of NCC values.
  • MME sends a handover request message to the target eNB.
  • the target eNB sends a handover preparation fail message to the MME.
  • the target eNB After the target eNB fails to execute S1 handover preparation, it sends a handover preparation fail message to the MME.
  • Steps 407 to 410 are similar to the aforementioned steps 402 to 405 and will not be described in detail here.
  • step 411 After receiving the handover preparation fail message, the MME executes step 411, which is as follows:
  • NCC 1
  • the target NCC is 1, and the second message is the handover preparation fail message.
  • FIG4 only uses the handover preparation fail message as an example of the second message to illustrate the embodiment of the present application. It is understandable that the second message may also be other notification messages or reports, which are not specifically limited here.
  • the second message indicates that the current S1 switching preparation has failed.
  • the management device sends the second message to the first base station in real time according to the S1 switching preparation failure, so that the first base station obtains the corresponding NCC value in real time, ensures real-time synchronization of the NCC value, and improves the accuracy of the work.
  • the second message is sent by the management device after determining that the S1 handover preparation fails seven times in succession.
  • FIG. 5 is used as an example for illustration, wherein steps 507 to 510 are similar to steps 407 to 410 in FIG. 4 above, and are not described in detail here.
  • step 510 i.e., the MME receives the handover preparation fail message
  • step 511 the MME executes the following step 511:
  • MME sends a handover preparation fail message to source eNB.
  • MME forwards the received handover preparation fail message to source eNB, so that source eNB perceives that the current S1 handover preparation has failed.
  • step 511 when the MME determines that the number of consecutive S1 handover failures reaches seven, the MME sends a second message to the source eNB, and the second message includes the target NCC value.
  • Step 512 The MME determines that the number of consecutive S1 handover preparation failures reaches seven.
  • the MME accumulates the number of consecutive S1 handover preparation failures and determines in real time whether the number of consecutive S1 handover preparation failures reaches seven.
  • NCC the number of consecutive S1 handover preparation fails
  • the initial NCC value of the MME is 2, and there is no S1 handover or X2 handover success in the middle, then the MME determines that the number of consecutive handover preparation failures reaches seven.
  • the MME determines that the number of consecutive S1 handover preparation failures reaches seven, the MME performs the following step 513:
  • MME sends an NCC update indication message to the source eNB.
  • the NCC update indication is mainly used to send the target NCC value to the source eNB, so that the source eNB obtains the NCC value to be flipped, so that the subsequent communication device can obtain the same key as the MME.
  • the second message i.e., the NCC update indication message
  • the second message may be a message or a field, which carries the target NCC value. It is understandable that the second message may also be in other forms, which are not specifically limited here.
  • the management device sends the target NCC value to the first base station only after determining that the S1 handover preparation fails seven times in a row, which can reduce information interaction and thus reduce resource occupation and improve work efficiency.
  • the first base station receives the second message carrying the target NCC, and then the first base station sends the target NCC value to the communication device based on the second message, as shown in step A5 in FIG3 :
  • the first base station sends a target NCC value to the communication device.
  • the first base station triggers the intra-cell handover process based on the second message, thereby sending the target NCC value obtained by the first base station to the communication device.
  • the second message is used to indicate a current S1 switching preparation failure
  • the first base station determines that the S1 switching preparation failure indicated by the second message is the seventh consecutive S1 switching preparation failure.
  • the first base station sends a radio resource control connection reconfiguration (RRC connection reconfiguration) message to the communication device based on the target information, and the RRC connection reconfiguration message carries a target NCC value.
  • RRC connection reconfiguration radio resource control connection reconfiguration
  • FIG. 4 As an example, specifically including:
  • Step 412 The source eNB determines that the number of consecutive S1 handover preparation failures reaches seven.
  • the first base station namely the source eNB, accumulates consecutive S1 handover preparation failures, and when an S1 handover success or an X2 handover success occurs during the accumulation process, it accumulates again.
  • the source eNB receives the message sent in step 411, the total number of consecutive S1 handover failures is seven, that is, the S1 handover preparation failure indicated by the second message is the seventh consecutive S1 handover preparation failure.
  • the source eNB may record at least the NCC value corresponding to the first S1 handover preparation failure (it should be noted that the NCC value is recorded again when the S1 handover is successful or the X2 handover is successful), and determine that the S1 handover preparation failure indicated by the second message is the seventh consecutive S1 handover preparation failure based on the first S1 and target NCC values.
  • the first base station i.e., source eNB
  • the first base station triggers intra-cell handover based on the target information to refresh the NCC value of the communication device, i.e., UE.
  • the first base station i.e., source eNB
  • the source eNB sends an RRC connection reconfiguration message to the UE.
  • the source eNB determines that the S1 handover preparation has failed seven times in a row, the source eNB is triggered to perform an intra-cell handover.
  • the source eNB sends an RRC connection reconfiguration message to the UE, which carries a handover indication.
  • the subsequent S1 handover or X2 handover can be executed normally, thereby preventing call drops and ensuring normal communication.
  • the target information belongs to the protocol field in protocol 33.401 or protocol 36.413.
  • the target information may be "Re-freshing the KeNB is done using intra cell handover as described in clause "KeNB refresh" of the present specification when S1-based handover preparation fails reach seven consecutive times".
  • the target information may also belong to other protocols, and the specific content of the target information may be determined according to the actual application scenario, which is not limited here.
  • the target information belongs to the protocol field in protocol 33.401 or protocol 36.413, which increases the diversity and flexibility of the solution.
  • step 414 the UE executes step 414 to determine that the keys of both parties are the same, as follows:
  • Step 414 UE sends an RRC connection reconfiguration complete message to source eNB.
  • the UE sends an RRC connection reconfiguration complete message to source eNB.
  • the key derived by UE based on the target NCC value is the same as the key derived by source eNB based on the target NCC value.
  • the message passes the PCDC integrity check successfully.
  • Source eNB receives the reconfiguration completion message normally, ensuring the success of subsequent switching.
  • the first base station determines that S1 handover preparation fails seven times in a row, and then sends a target NCC value to the communication device through a radio resource control connection reconfiguration message, providing a variety of application scenarios and reflecting the selectivity of the solution.
  • the second message in step 513 namely the NCC update indication message
  • the source eNB can trigger the intra-cell handover based on the second message to update the NCC value of the UE. That is, as shown in the following step 514:
  • the source eNB sends an RRC connection reconfiguration message to the UE.
  • the source eNB triggers intra-cell switching based on the second message and sends an RRC connection reconfiguration message to the UE.
  • the message carries the target NCC value, which is similar to that described in step 413 in FIG. 4 above and will not be described in detail here.
  • the UE updates the key based on the target NCC value and executes step 515 as follows:
  • UE sends an RRC connection reconfiguration complete message to source eNB.
  • step 515 is similar to step 414 in FIG. 4 , and will not be described in detail here.
  • the communication device obtains the target NCC value, which can ensure that the communication device perceives the flipping of the NCC value, ensures that the number of times the communication device derives keys is the same as the number of times the management device derives keys, and further ensures that the keys derived by the communication device are the same as the keys derived by the management device.
  • the first base station after the first base station sends the target NCC value to the communication device, the first base station receives a first NCC value sent by the management device, which corresponds to successful S1 switching preparation. Then the first base station sends the first NCC value to the communication device, so that the communication device obtains the same key as the management device based on the first NCC value.
  • step A6, step A7 and step A8 in FIG. 3 which are specifically as follows:
  • the management device sends the first NCC value to the first base station.
  • the management device After the first base station sends the target NCC value to the communication device, the management device sends a first NCC value to the first base station, where the first NCC value corresponds to successful S1 handover preparation.
  • the management device after the management device receives the message indicating that the S1 switching is ready successfully, the management device sends a handover command message carrying the first NCC value to the first base station, which is similar to that described in FIG. 1 or FIG. 2 above and will not be described in detail here.
  • step A7 the first base station performs step A7:
  • the first base station sends a first NCC value to the communication device.
  • the first base station sends an RRC connection reconfiguration message carrying a first NCC value to the communication device, which is similar to that described in the aforementioned Figures 4 and 5 and will not be described in detail here.
  • step A8 the communication device executes step A8:
  • the communication device determines a key based on the first NCC value.
  • the number of times the communication device derives the key based on the first NCC value is the same as the number of times the management device derives the key based on the first NCC value, that is, the keys derived by the communication device and the management device based on the first NCC value are the same.
  • the communication device obtains the same key as the management device based on the first NCC value, which can ensure that the S1 handover or X2 handover is successfully executed, prevent call drops, and ensure normal communication.
  • the communication device sends a first message to the first base station for accessing the second base station and the management device, and then the first base station sends a switching request message to the management device based on the first message, and the management device performs S1 switching preparation based on the switching request.
  • the management device determines the target NCC value and sends a second message carrying the target NCC value to the first base station, and the first base station sends the target NCC value to the communication device based on the second message.
  • the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
  • the aforementioned communication device may be a vehicle-mounted computer device, industrial equipment, a personal computer, a terminal, a tablet computer, a watch or other network device or computer device that accesses a base station, and is not specifically limited here.
  • the communication device, the first base station and/or the management device may include a hardware structure and/or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • FIG. 6 is a structural schematic diagram of a communication device provided in an embodiment of the present application.
  • the communication device may include a module or unit that corresponds to the method/operation/step/action of Figure 3 in the above method embodiment.
  • the unit may be a hardware circuit, or software, or a hardware circuit combined with software.
  • the communication device 600 may include: a receiving unit 601, a processing unit 602, and a sending unit 603.
  • the sending unit 603 can be used to execute the step of sending a first message to the first base station in the above method embodiment
  • the receiving unit 601 can be used to execute the step of receiving the target NCC value in the above method embodiment
  • the processing unit 602 can be used to execute the step of obtaining the same key as the management device based on the target NCC in the above method embodiment.
  • a sending unit 603 sends a first message to a first base station for accessing a second base station and a management device
  • a receiving unit 601 receives a target NCC value sent by the first base station, the target NCC value being obtained by the management device after seven failed attempts to perform S1 handover preparation, the S1 handover preparation being performed by the management device based on a handover request message sent by the first base station, the handover request message being sent by the first base station based on the first message.
  • the processing unit 602 obtains the same key as the management device based on the target NCC value.
  • the above-mentioned receiving unit 601, processing unit 602 and sending unit 603 can execute the methods/operations/steps/actions in various possible implementation methods of the communication device in the above-mentioned method embodiment one by one.
  • the above-mentioned receiving unit 601 is specifically used to receive a wireless resource control connection reconfiguration message sent by the first base station, and the wireless resource control connection reconfiguration message carries a target NCC.
  • the receiving unit 601 is further used to receive a first NCC value sent by the first base station, wherein the first NCC value corresponds to successful S1 switching preparation, and the processing unit 602 is further used to obtain the same key as the management device based on the first NCC value.
  • FIG 7 is a structural diagram of a base station provided in an embodiment of the present application.
  • the base station may include a module or unit that corresponds to the method/operation/step/action of Figure 3 in the above method embodiment.
  • the unit may be a hardware circuit, or software, or a hardware circuit combined with software.
  • the base station 700 may include: a receiving unit 701, a processing unit 702, and a sending unit 703.
  • the receiving unit 701 can be used to perform the steps of receiving a first message and receiving a second message in the above method embodiment
  • the sending unit 703 can be used to perform the steps of sending a switching request message to a management device and sending a target NCC in the above method embodiment.
  • the base station 700 further includes a processing unit, wherein the second message is used to indicate a current S1 switching preparation failure, the processing unit 702 is used to determine that the S1 switching preparation failure indicated by the second message is the seventh consecutive S1 switching preparation failure, and the sending unit 703 is specifically used to send a wireless resource control connection reconfiguration message to the communication device based on the target information, and the wireless resource control connection reconfiguration message carries a target NCC value.
  • a receiving unit 701 receives a first message sent by a communication device, and the first message is used to instruct the communication device to access a second base station and a management device, and the second device is a base station that supports access by the communication device. Then, a sending unit 703 sends a switching request message to the management device based on the first message, and the switching request message is used to instruct the base station to initiate an S1 switch. Next, the receiving unit 701 receives a second message carrying a target NCC value sent by the management device, and the target NCC value is obtained by the management device failing to perform S1 switching preparation seven times in a row.
  • Its sending unit 703 sends the target NCC value to the communication device, so that the communication device obtains the same key as the management device based on the target NCC value. This can solve the problem that the UE side cannot perceive the NCC value flip, and ensure that the keys on the UE side and the core network side are the same in real time, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and communication is normal.
  • the above-mentioned receiving unit 701, processing unit 702 and sending unit 703 can execute the methods/operations/steps/actions in various possible implementation methods of the first base station in the above-mentioned method embodiment one by one.
  • the above target information belongs to the protocol field in protocol 33.401 or protocol 36.413.
  • the above-mentioned receiving unit 701 before receiving the second message carrying the target NCC value sent by the management device, is also used to receive a third message carrying a second NCC value sent by the management device, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
  • the second message is sent by the management device after determining that S1 switching preparation has failed seven times in a row.
  • the receiving unit 701 receives a first NCC value sent by a management device, and the first NCC value corresponds to successful S1 switching preparation.
  • the sending unit 703 is further configured to send the first NCC value to the communication device, so that the communication device obtains the same key as the management device based on the first NCC value.
  • an embodiment of the present application also provides a management device, which is applied to the Internet industry. Please refer to Figure 8 for details.
  • Figure 8 is a structural diagram of the management device provided by the embodiment of the present application.
  • the management device may include a module or unit that corresponds to the method/operation/step/action of Figure 3 in the above method embodiment.
  • the unit may be a hardware circuit, or software, or a hardware circuit combined with software.
  • the management device 800 may include: a receiving unit 801, a processing unit 802, and a sending unit 803.
  • the receiving unit 801 can be used to perform the step of receiving a switching request message in the above method embodiment
  • the processing unit 802 can be used to perform the step of executing the S1 switching preparation process based on the switching request message and the step of determining the target NCC value
  • the sending unit 803 can be used to perform the step of sending a second message carrying the target NCC value to the first base station in the above method embodiment.
  • a receiving unit 801 receives a handover request message sent by a first base station based on a first message, wherein the handover request message is used to instruct the first base station to initiate an S1 handover, and the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is a base station for accessing the communication device, and the second base station is a base station that supports access by the communication device.
  • the processing unit 802 performs S1 handover preparation based on the handover request message, and determines the target NCC value when the S1 handover preparation fails seven times in a row.
  • the sending unit 803 sends a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message.
  • the first base station can obtain the target NCC value that is about to flip, and the first base station sends the target NCC value to the communication device, which can solve the problem that the UE side cannot perceive the flip of the NCC value, and ensures that the keys on the UE side and the core network side are the same in real time, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the handover process is successfully executed and the communication is normal.
  • the above-mentioned receiving unit 801, processing unit 802 and sending unit 803 can execute the methods/operations/steps/actions in various possible implementation methods of the management device in the above-mentioned method embodiment one by one.
  • the above-mentioned sending unit 803, when the second message is used to indicate the current S1 switching preparation failure and before the management device determines the target NCC value, is also used to send a third message carrying a second NCC value to the first base station, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
  • the sending unit 803 is further used to send a first NCC value to the first base station, so that the first base station sends a first NCC value to the communication device, and the first NCC value corresponds to successful S1 switching preparation.
  • each functional module or unit in each embodiment of the present application may be integrated into one processor, or may exist physically separately, or two or more modules or units may be integrated into one module or unit.
  • the above-mentioned integrated modules or units may be implemented in the form of hardware or in the form of software functional modules.
  • FIG. 9 is a communication device provided in an embodiment of the present application.
  • the communication device 900 may be a communication device, a base station, or a management device of the corresponding embodiment in FIG. 6 , FIG. 7 , or FIG. 8 , and is used to implement the functions of the communication device, base station, or management device in FIG. 6 , FIG. 7 , or FIG. 8 .
  • the communication device 900 is implemented by one or more servers, and the communication device 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 922 (for example, one or more central processing units) and a memory 932, and one or more storage media 930 (for example, one or more storage devices).
  • the memory 932 and the storage medium 930 may be temporary storage or permanent storage.
  • the program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the communication device 900.
  • the central processing unit 922 may be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the communication device 900.
  • the communication device 900 may also include one or more power supplies 926 , one or more wired or wireless network interfaces 950 , and/or one or more input/output interfaces 958 .
  • the central processor 922 is used to execute the method executed by the communication device in the embodiment corresponding to Figure 3.
  • the central processor 922 can be used to: send a first message to the first base station, wherein the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is a base station accessing the communication device, and the second base station is a base station supporting the communication device to access, and receive the target NCC value sent by the first base station, the target NCC value is obtained by the management device after seven consecutive failures in performing S1 switching preparation, and the S1 switching preparation is performed by the management device based on the switching request message sent by the first base station, the switching request message is sent by the first base station based on the first message, and then the same key as the management device is obtained based on the target NCC value.
  • the problem that the UE side cannot perceive the NCC value flip can be solved, and the keys on the UE side and the core network side are the same in real time, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
  • the central processor 922 is used to execute the method executed by the first base station in the embodiment corresponding to Figure 3.
  • the central processor 922 can be used to: receive a first message sent by a communication device, wherein the first message is used to instruct the communication device to access the second base station and the management device, and then send a switching request message to the management device based on the first message, wherein the switching request message is used to instruct the first base station to initiate S1 switching, and receive a second message sent by the management device carrying a target NCC value, wherein the target NCC value is obtained by the management device failing to perform S1 switching preparation seven times in a row, and send the target NCC value to the communication device based on the second message, so that the communication device obtains the same key as the management device based on the target NCC value.
  • the problem that the UE side cannot perceive the NCC value flip can be solved, and the keys on the UE side and the core network side can be ensured to be the same in real time, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
  • the central processor 922 is used to execute the method executed by the management device in the embodiment corresponding to Figure 3.
  • the central processor 922 can be used to: receive a switching request message sent by the first base station based on the first message, and perform S1 switching preparation based on the switching request message, and determine the target NCC value when the S1 switching preparation fails seven times in a row, and send a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message.
  • the problem that the UE side cannot perceive the flipping of the NCC value can be solved, and the keys of the UE side and the core network side are the same in real time, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
  • Another communication device includes a processor, which is coupled to a memory, the memory stores instructions, and the processor is used to execute the instructions so that the communication device executes any one of the implementation methods shown in the aforementioned method embodiments.
  • An embodiment of the present application also provides a computer-readable storage medium, including computer-readable instructions.
  • the computer-readable instructions When the computer-readable instructions are executed on a computer, the computer executes any one of the implementation methods shown in the aforementioned method embodiments.
  • the embodiments of the present application also provide a computer program product, which includes a computer program or instructions.
  • a computer program product which includes a computer program or instructions.
  • the computer program or instructions When the computer program or instructions are executed on a computer, the computer executes any one of the implementation methods shown in the aforementioned method embodiments.
  • the present application also provides a chip or chip system, which may include a processor.
  • the chip may also include a memory (or storage module) and/or a transceiver (or communication module), or the chip is coupled to a memory (or storage module) and/or a transceiver (or communication module), wherein the transceiver (or communication module) can be used to support the chip for wired and/or wireless communication, and the memory (or storage module) can be used to store a program or a set of instructions, and the processor calls the program or the set of instructions to implement the above method embodiment, the operation performed by the terminal or the communication device in any possible implementation of the method embodiment.
  • the chip system may include the above chip, and may also include the above chip and other separate devices, such as a memory (or storage module) and/or a transceiver (or communication module).
  • the above-described device embodiments are merely illustrative, and the units described as separate components may be Or they may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
  • the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
  • the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a training device, or a communication device, etc.) to execute the methods of each embodiment of the present application.
  • a computer device which can be a personal computer, a training device, or a communication device, etc.
  • all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof.
  • all or part of the embodiments may be implemented in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from a website site, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device or data center.
  • wired e.g., coaxial cable, optical fiber, digital subscriber line
  • wireless e.g., infrared, wireless, microwave, etc.
  • the computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integration.
  • the available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state drive, SSD)), etc.

Landscapes

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

Abstract

A network accessing method and a related device thereof, applied to Internet industry network communications. The method comprises: a first base station receives a first message sent by a communication device, the first message being used for instructing the communication device to access a second base station and a management device, wherein the second base station is a base station supporting access of the communication device; then, the first base station sends a handover request message to the management device on the basis of the first message, the handover request message being used for instructing the first base station to initiate S1 handover; next, the first base station receives a second message carrying a target NCC value sent by the management device, the target NCC value being obtained after the management device failing to prepare for S1 handover seven times in a row; and the first base station sends the target NCC value to the communication device on the basis of the second message, so that the communication device obtains the same key as the management device on the basis of the target NCC value. Therefore, it is ensured that a UE side can sense turnover of the NCC value, thereby ensuring that a key derived from a core network side is the same as a key derived from the UE side, and guaranteeing that a handover process is successfully executed.

Description

一种接入网络的方法及其相关装置A method for accessing a network and a related device thereof
本申请要求于2022年10月28日提交中国专利局、申请号为CN202211337501.X、申请名称为“一种接入网络的方法及其相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the China Patent Office on October 28, 2022, with application number CN202211337501.X and application name “A method for accessing a network and related devices thereof”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请实施例涉及通信领域,尤其涉及一种接入网络的方法及其相关装置。The embodiments of the present application relate to the field of communications, and in particular to a method for accessing a network and related devices thereof.
背景技术Background technique
在当前的互联网通信中的安全加密流程中,需要使用下一跳链计算(next hop chaining count,NCC)字段进行密钥派生,其密钥派生包括横向派生和纵向派生两种模式。In the current security encryption process of Internet communications, the next hop chaining count (NCC) field is required for key derivation, and the key derivation includes two modes: horizontal derivation and vertical derivation.
当前,用户设备(user equipment,UE)接入源基站完成后,触发S1切换流程,而由于某些原因会导致S1切换准备失败,且在S1切换准备失败流程中核心网(例如移动性管理单元(mobility management entity,MME))维护的NCC值会进行累加,但是UE侧不感知切换S1切换失败,所以UE侧维护的NCC值保持不变。但是当连续的S1切换失败次数过多,MME维护的NCC值出现翻转即NCC值已经完成一个循环的更新,在此后续切换准备成功的切换流程中,基站侧和UE侧按照最新的NCC进行密钥派生进行信息交互,但是由于MME维护的NCC值出现了翻转,而UE侧不感知NCC值的翻转,则UE侧派生的密钥次数与MME派生密钥的次数不一样,从而导致UE的密钥与MME的密钥不同,进而导致后续上行包发送时,分组数据汇聚层协议(packet data convergence protocol,PDCD)完整性校验失败,从而基站侧丢弃UE发送的重配完成消息,导致切换执行失败触发掉话。Currently, after the user equipment (UE) completes access to the source base station, the S1 switching process is triggered. Due to some reasons, the S1 switching preparation fails, and the NCC value maintained by the core network (such as the mobility management entity (MME)) is accumulated during the S1 switching preparation failure process. However, the UE side does not perceive the S1 switching failure, so the NCC value maintained by the UE side remains unchanged. However, when there are too many consecutive S1 switching failures, the NCC value maintained by the MME flips, that is, the NCC value has completed a cycle of update. In the subsequent switching process for successful switching, the base station side and the UE side derive keys according to the latest NCC for information exchange. However, since the NCC value maintained by the MME flips, and the UE side does not perceive the flip of the NCC value, the number of keys derived by the UE side is different from the number of keys derived by the MME, resulting in the UE's key being different from the MME's key, which in turn causes the packet data convergence protocol (PDCD) integrity check to fail when subsequent uplink packets are sent, so that the base station side discards the reconfiguration completion message sent by the UE, resulting in the switching execution failure triggering a call drop.
发明内容Summary of the invention
本申请提供了一种接入网络的方法及其相关装置,应用于互联网行业网络通信中。解决了UE侧接入网络的过程中,当连续S1切换准备失败多次后,核心网侧维护的NCC值翻转即NCC值完成一个循环的更新,而UE侧却无法感知NCC值的翻转的问题,确保核心网侧派生的密钥与UE侧派生的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。The present application provides a method for accessing a network and a related device thereof, which are applied to network communications in the Internet industry. The present application solves the problem that when the UE side accesses the network, after the continuous S1 switching preparation fails for many times, the NCC value maintained by the core network side flips, that is, the NCC value completes a cycle of update, but the UE side cannot perceive the flipping of the NCC value, and ensures that the key derived by the core network side is the same as the key derived by the UE side, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
第一方面,提供了一种接入网络的方法,包括:In a first aspect, a method for accessing a network is provided, comprising:
第一基站接收通信装置发送的第一消息,其第一消息用于指示通信装置接入第二基站以及管理装置,其中,第二基站为支持通信装置访问的基站。The first base station receives a first message sent by the communication device, wherein the first message is used to instruct the communication device to access the second base station and the management device, wherein the second base station is a base station supporting access by the communication device.
然后,第一基站基于第一消息向管理装置发送切换请求消息,该切换请求消息用于指示第一基站发起S1切换。Then, the first base station sends a handover request message to the management device based on the first message, where the handover request message is used to instruct the first base station to initiate S1 handover.
接着,第一基站接收由管理装置发送的携带目标NCC值的第二消息,其目标NCC值由管理装置连续七次执行S1切换准备失败得到。Next, the first base station receives a second message sent by the management device and carrying a target NCC value, wherein the target NCC value is obtained by the management device failing to perform S1 handover preparation for seven consecutive times.
且第一基站基于第二消息向通信装置发送目标NCC值,使得通信装置基于目标NCC值得到与管理装置相同的密钥。And the first base station sends the target NCC value to the communication device based on the second message, so that the communication device obtains the same key as the management device based on the target NCC value.
在本申请的实施方式中,第一基站得到目标NCC值,该目标NCC值由管理装置基于连续七次执行S1切换准备失败得到,且第一基站还将目标NCC值发送给通信装置。由此可以使得通信装置基于目标NCC值派生密钥的次数与管理装置基于目标NCC值派生密钥的次数相同,即通信装置与管理装置具备相同的密钥,从而确保通信装置即UE侧感知NCC值的翻转,确保核心网侧派生的密钥与UE侧派生的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In the implementation manner of the present application, the first base station obtains a target NCC value, which is obtained by the management device based on seven consecutive failures of executing S1 handover preparation, and the first base station also sends the target NCC value to the communication device. As a result, the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the handover process is successfully executed, and the communication is normal.
在第一方面的一种可能的实现方式中,第二消息用于指示当前S1切换准备失败,第一基站确定第二消息指示的S1切换准备失败为连续第七次的S1切换准备失败,且第一基站基于目标信息向通信装置发送无线资源控制连接重配置消息,该无线资源控制连接重配置消息携带目标NCC值。In a possible implementation of the first aspect, the second message is used to indicate a current S1 switching preparation failure, the first base station determines that the S1 switching preparation failure indicated by the second message is the seventh consecutive S1 switching preparation failure, and the first base station sends a wireless resource control connection reconfiguration message to the communication device based on the target information, and the wireless resource control connection reconfiguration message carries a target NCC value.
在本申请的实施方式中,第一基站判定S1切换准备失败连续七次,进而通过无线资源控制连接重配置消息向通信装置发送目标NCC值,提供了多样的应用场景,体现了方案的可选择性。In an implementation manner of the present application, the first base station determines that S1 handover preparation fails seven times in a row, and then sends a target NCC value to the communication device through a radio resource control connection reconfiguration message, providing a variety of application scenarios and reflecting the selectivity of the solution.
在第一方面的一种可能的实现方式中,目标信息属于协议33.401或协议36.413中的协议字段。In a possible implementation manner of the first aspect, the target information belongs to a protocol field in protocol 33.401 or protocol 36.413.
在本申请的实施方式中,目标信息属于协议33.401或协议36.413中的协议字段,增加了方案的多 In the implementation of the present application, the target information belongs to the protocol field in protocol 33.401 or protocol 36.413, which increases the complexity of the solution.
样性以及灵活性。Diversity and flexibility.
在第一方面的一种可能的实现方式中,在第一基站接收由管理装置发送的携带目标NCC值的第二消息之前,第一基站接收由管理装置发送的携带第二NCC值的第三消息,该第二NCC值对应的S1切换准备失败的连续次数小于七次。In a possible implementation of the first aspect, before the first base station receives a second message carrying a target NCC value sent by the management device, the first base station receives a third message carrying a second NCC value sent by the management device, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
在本申请的实施方式中,第一基站接收由管理装置发送的携带第二NCC值的第三消息,能使得第一基站实时获取对应的NCC值,保证实时同步NCC值,提高工作的准确性。In an implementation manner of the present application, the first base station receives the third message carrying the second NCC value sent by the management device, which enables the first base station to obtain the corresponding NCC value in real time, ensure real-time synchronization of the NCC value, and improve work accuracy.
在第一方面的一种可能的实现方式中,第二消息由管理装置确定S1切换准备失败连续七次后发送。In a possible implementation manner of the first aspect, the second message is sent by the management device after determining that the S1 switching preparation fails seven times consecutively.
在本申请的实施方式中,由管理装置确定S1切换准备失败连续七次,才向第一基站发送目标NCC值,可以减少信息交互进而减少对资源的占用,提高工作效率。In the implementation manner of the present application, the management device sends the target NCC value to the first base station only after determining that the S1 handover preparation fails seven times in a row, which can reduce information interaction and thus reduce resource occupation and improve work efficiency.
在第一方面的一种可能的实现方式中,在第一基站向通信装置发送目标NCC值之后,第一基站接收由管理装置发送的第一NCC值,其第一NCC值对应S1切换准备成功,且第一基站向通信装置发送第一NCC值,使得通信装置基于第一NCC值获取与管理装置相同的密钥。In a possible implementation of the first aspect, after the first base station sends the target NCC value to the communication device, the first base station receives a first NCC value sent by the management device, and its first NCC value corresponds to successful S1 switching preparation, and the first base station sends the first NCC value to the communication device, so that the communication device obtains the same key as the management device based on the first NCC value.
在本申请的实施方式中,通信装置基于第一NCC值得到与管理装置相同的密钥,能确保执行的S1切换或X2切换成功,防止掉话,保证正常通信。In the implementation manner of the present application, the communication device obtains the same key as the management device based on the first NCC value, which can ensure that the S1 handover or X2 handover is successfully executed, prevent call drops, and ensure normal communication.
第二方面,提供一种接入网络的方法,包括:In a second aspect, a method for accessing a network is provided, including:
管理装置接收第一基站基于第一消息发送的切换请求消息,该切换请求消息用于指示第一基站发起S1切换,其中,第一消息用于指示通信装置接入第二基站以及管理装置,其第一基站为接入通信装置的基站,第二基站为支持通信装置访问的基站。The management device receives a switching request message sent by the first base station based on the first message, and the switching request message is used to instruct the first base station to initiate S1 switching, wherein the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is the base station for accessing the communication device, and the second base station is the base station supporting access by the communication device.
然后,管理装置基于切换请求消息执行S1切换准备。Then, the management device performs S1 handover preparation based on the handover request message.
且在S1切换准备失败连续七次的情况下,管理装置确定目标NCC值;And in case the S1 switching preparation fails seven times in a row, the management device determines the target NCC value;
并且,管理装置向第一基站发送携带目标NCC值的第二消息,使得第一基站基于第二消息向通信装置发送目标NCC值。Furthermore, the management device sends a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message.
在本申请实施方式中,管理装置接收第一基站发送的切换请求消息,并且管理装置基于切换请求消息执行S1切换准备,在S1切换准备失败连续七次的情况下,管理装置确定目标NCC值,并向第一基站发送携带目标NCC值的第二消息,且第一基站基于第二消息向通信装置发送目标NCC值。由此可以使得通信装置基于目标NCC值派生密钥的次数与管理装置基于目标NCC值派生密钥的次数相同,即通信装置与管理装置具备相同的密钥,从而确保通信装置即UE侧感知NCC值的翻转,确保核心网侧派生的密钥与UE侧派生的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In the implementation mode of the present application, the management device receives a switching request message sent by the first base station, and the management device performs S1 switching preparation based on the switching request message. When the S1 switching preparation fails for seven consecutive times, the management device determines the target NCC value and sends a second message carrying the target NCC value to the first base station, and the first base station sends the target NCC value to the communication device based on the second message. In this way, the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
在第二方面的一种可能的实现方式中,第二消息用于指示当前S1切换准备失败,在管理装置确定目标NCC值之前,管理装置向第一基站发送携带第二NCC值的第三消息,其第二NCC值对应的S1切换准备失败的连续次数小于七次。In a possible implementation of the second aspect, the second message is used to indicate that the current S1 switching preparation has failed. Before the management device determines the target NCC value, the management device sends a third message carrying the second NCC value to the first base station, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
在本申请的实施方式中,管理装置向第一基站发送携带第二NCC值的第三消息,能使得第一基站实时获取对应的NCC值,保证实时同步NCC值,提高工作的准确性。In an implementation manner of the present application, the management device sends a third message carrying the second NCC value to the first base station, which enables the first base station to obtain the corresponding NCC value in real time, ensures real-time synchronization of the NCC value, and improves the accuracy of the work.
在第二方面的一种可能的实现方式中,在管理装置向第一基站发送携带目标NCC值的第二消息之后,管理装置向第一基站发送第一NCC值,使得第一基站向通信装置发送第一NCC值,第一NCC值对应S1切换准备成功。In a possible implementation of the second aspect, after the management device sends a second message carrying the target NCC value to the first base station, the management device sends a first NCC value to the first base station, so that the first base station sends the first NCC value to the communication device, and the first NCC value corresponds to successful S1 switching preparation.
在本申请的实施方式中,管理装置向第一基站发送第一NCC值,则第一基站向通信装置转发该第一NCC值,则通信装置基于第一NCC值得到与管理装置相同的密钥,能确保执行的S1切换或X2切换成功,防止掉话,保证正常通信。In an implementation manner of the present application, the management device sends a first NCC value to the first base station, and the first base station forwards the first NCC value to the communication device. The communication device then obtains the same key as the management device based on the first NCC value, thereby ensuring that the S1 switching or X2 switching is successful, preventing dropped calls, and ensuring normal communication.
第三方面,本申请提供一种接入网络的方法,包括:In a third aspect, the present application provides a method for accessing a network, including:
通信装置向第一基站发送第一消息,该第一消息用于指示通信装置接入第二基站以及管理装置,其中第一基站为接入通信装置的基站,第二基站为支持通信装置访问的基站。The communication device sends a first message to the first base station, where the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is a base station for accessing the communication device, and the second base station is a base station supporting access by the communication device.
然后,通信装置接收由第一基站发送的目标NCC值,其目标NCC值由管理装置连续七次执行S1切换准备失败得到,其中,S1切换准备由管理装置基于第一基站发送的切换请求消息执行,而该切换请求 消息是由第一基站基于第一消息向管理装置发送。Then, the communication device receives the target NCC value sent by the first base station, wherein the target NCC value is obtained by the management device failing to perform S1 handover preparation seven times in a row, wherein the S1 handover preparation is performed by the management device based on the handover request message sent by the first base station, and the handover request The message is sent by the first base station to the management device based on the first message.
通信装置基于目标NCC值获取与管理装置相同的密钥。The communication device acquires the same key as the management device based on the target NCC value.
在本申请实施例中,通信装置向第一基站发送第一消息用于接入第二基站以及管理装置,然后第一基站基于第一消息向管理装置发送切换请求消息,则管理装置基于切换请求执行S1切换准备,在S1切换准备失败连续七次的情况下,管理装置确定目标NCC值,并向第一基站发送携带目标NCC值的第二消息,且第一基站基于第二消息向通信装置发送目标NCC值。由此可以使得通信装置基于目标NCC值派生密钥的次数与管理装置基于目标NCC值派生密钥的次数相同,即通信装置与管理装置具备相同的密钥,从而确保通信装置即UE侧感知NCC值的翻转,确保核心网侧派生的密钥与UE侧派生的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In an embodiment of the present application, the communication device sends a first message to the first base station for accessing the second base station and the management device, and then the first base station sends a switching request message to the management device based on the first message, and the management device performs S1 switching preparation based on the switching request. When the S1 switching preparation fails for seven consecutive times, the management device determines the target NCC value and sends a second message carrying the target NCC value to the first base station, and the first base station sends the target NCC value to the communication device based on the second message. In this way, the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
在第三方面的一种可能的实现方式中,通信装置接收由第一基站发送的无线资源控制连接重配置消息,其无线资源控制连接重配置消息携带目标NCC。In a possible implementation manner of the third aspect, the communication device receives a radio resource control connection reconfiguration message sent by the first base station, where the radio resource control connection reconfiguration message carries a target NCC.
在本申请的实施方式中,通信装置接收由第一基站发送的携带目标NCC值的无线资源控制连接重配置消息,其通过第一基站执行小区内切换实现,提升了本方案的实现方式。In an implementation manner of the present application, the communication device receives a radio resource control connection reconfiguration message carrying a target NCC value sent by the first base station, which is implemented by performing intra-cell switching through the first base station, thereby improving the implementation method of the present solution.
在第三方面的一种可能的实现方式中,在通信装置接收由第一基站发送的目标NCC值之后,通信装置接收由第一基站发送的第一NCC值,该第一NCC值对应S1切换准备成功,并且通信装置基于第一NCC值获取与管理装置相同的密钥。In a possible implementation of the third aspect, after the communication device receives the target NCC value sent by the first base station, the communication device receives a first NCC value sent by the first base station, the first NCC value corresponds to successful S1 switching preparation, and the communication device obtains the same key as the management device based on the first NCC value.
在本申请的实施方式中,通信装置接收由第一基站发送第一NCC值,该第一NCC值对应S1切换准备成功,则通信装置基于第一NCC值得到与管理装置相同的密钥,能确保执行的S1切换或X2切换成功,防止掉话,保证正常通信。In an implementation manner of the present application, the communication device receives a first NCC value sent by the first base station, and the first NCC value corresponds to successful S1 switching preparation. The communication device then obtains the same key as the management device based on the first NCC value, thereby ensuring that the S1 switching or X2 switching is successfully executed, preventing dropped calls, and ensuring normal communication.
第四方面,提供了一种基站,该基站具有实现上述第一方面或第一方面任意一种可能实现方式的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, a base station is provided, which has the function of implementing the method of the first aspect or any possible implementation of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
在本申请的实施方式中第四方面的基站执行本申请第一方面或第一方面任意一种可能实现方式所描述的方法。In the implementation manner of the present application, the base station of the fourth aspect executes the method described in the first aspect of the present application or any possible implementation manner of the first aspect.
第五方面,提供了一种管理装置,该管理装置具有实现上述第二方面或第二方面任意一种可能实现方式的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fifth aspect, a management device is provided, which has the function of implementing the method of the second aspect or any possible implementation of the second aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
在本申请的实施方式中第五方面的管理装置执行本申请第二方面或第二方面任意一种可能实现方式所描述的方法。In the implementation manner of the present application, the management device of the fifth aspect executes the method described in the second aspect of the present application or any possible implementation manner of the second aspect.
第六方面,提供了一种通信装置,该通信装置具有实现上述第三方面或第三方面任意一种可能实现方式的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, a communication device is provided, which has the function of implementing the method of the third aspect or any possible implementation of the third aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
在本申请的实施方式中第六方面的通信装置执行本申请第三方面或第三方面任意一种可能实现方式所描述的方法。In the implementation manner of the present application, the communication device of the sixth aspect executes the method described in the third aspect of the present application or any possible implementation manner of the third aspect.
第七方面,提供另一种通信装置,可以包括处理器,该处理器与存储器耦合,其中存储器用于存储指令,处理器用于执行存储器中的指令使得该通信设备执行本申请第一方面或第一方面任意一种可能实现方式所描述的方法,或执行本申请第二方面或第二方面任意一种可能实现方式所描述的方法,或执行本申请第三方面或第三方面任意一种可能实现方式所描述的方法。In the seventh aspect, another communication device is provided, which may include a processor, which is coupled to a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions in the memory so that the communication device performs the method described in the first aspect of the present application or any possible implementation of the first aspect, or performs the method described in the second aspect of the present application or any possible implementation of the second aspect, or performs the method described in the third aspect of the present application or any possible implementation of the third aspect.
第八方面,提供另一种通信装置,包括处理器,用于执行存储器中存储的计算机程序(或计算机可执行指令),当计算机程序(或计算机可执行指令)被执行时,使得执行如第一方面及第一方面各个可能的实现方式中的方法,或执行本申请第二方面或第二方面任意一种可能实现方式所描述的方法,或执行本申请第三方面或第三方面任意一种可能实现方式所描述的方法。In an eighth aspect, another communication device is provided, comprising a processor for executing a computer program (or computer executable instructions) stored in a memory. When the computer program (or computer executable instructions) is executed, the method described in the first aspect and each possible implementation of the first aspect is executed, or the method described in the second aspect of the present application or any possible implementation of the second aspect is executed, or the method described in the third aspect of the present application or any possible implementation of the third aspect is executed.
在一种可能的实现中,处理器和存储器集成在一起;In one possible implementation, the processor and the memory are integrated together;
在另一种可能的实现中,上述存储器位于该通信装置之外。In another possible implementation, the memory is located outside the communication device.
该通信装置还包括通信接口,该通信接口用于该通信装置与其他设备进行通信,例如数据和/或信 号的发送或接收。示例性的,通信接口可以是收发器、电路、总线、模块或其它类型的通信接口。The communication device also includes a communication interface, which is used for the communication device to communicate with other devices, such as data and/or information. For example, the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces.
第九方面提供一种计算机可读存储介质,包括计算机可读指令,当计算机可读指令在计算机上运行时,使得本申请第一方面、第一方面任一种可能实现方式、第二方面、第二方面任意一种可能实现方式、第三方面或第三方面任意一种可能实现方式所描述的方法被执行。The ninth aspect provides a computer-readable storage medium, including computer-readable instructions. When the computer-readable instructions are run on a computer, the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect of this application is executed.
第十方面,提供一种计算机程序产品,包括计算机可读指令,当计算机可读指令在计算机上运行时,使得本申请第一方面、第一方面任一种可能实现方式、第二方面、第二方面任意一种可能实现方式、第三方面或第三方面任意一种可能实现方式所描述的方法被执行。In the tenth aspect, a computer program product is provided, comprising computer-readable instructions, which, when executed on a computer, enable the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, or any possible implementation of the third aspect of the present application to be executed.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为S1切换准备失败的应用场景的一个示意图;FIG1 is a schematic diagram of an application scenario in which S1 switching preparation fails;
图2为S1切换准备失败的应用场景的另一个示意图;FIG2 is another schematic diagram of an application scenario in which S1 switching preparation fails;
图3为本申请实施例提供的一种接入网络的方法的一个示意图;FIG3 is a schematic diagram of a method for accessing a network provided in an embodiment of the present application;
图4为本申请实施例提供的应用场景的一个示意图;FIG4 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图5为本申请实施例提供的应用场景的另一个示意图;FIG5 is another schematic diagram of an application scenario provided by an embodiment of the present application;
图6为本申请实施例提供的通信装置的一个结构示意图;FIG6 is a schematic diagram of a structure of a communication device provided in an embodiment of the present application;
图7为本申请实施例提供的基站的一个结构示意图;FIG7 is a schematic diagram of a structure of a base station provided in an embodiment of the present application;
图8为本申请实施例提供的管理装置的一个结构示意图;FIG8 is a schematic diagram of a structure of a management device provided in an embodiment of the present application;
图9为本申请实施例提供的通信装置的另一个结构示意图。FIG. 9 is another schematic diagram of the structure of the communication device provided in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种接入网络的方法及其相关装置,应用于互联网行业网络通信中。解决了UE侧接入网络的过程中,当连续S1切换准备失败多次后,核心网侧维护的NCC值翻转即NCC值完成一个循环的更新,而UE侧却无法感知NCC值的翻转的问题,确保核心网侧派生的密钥与UE侧派生的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。The embodiment of the present application provides a method for accessing a network and a related device thereof, which are applied to network communications in the Internet industry. The method solves the problem that when the UE side accesses the network, after the continuous S1 switching preparation fails for many times, the NCC value maintained by the core network side flips, that is, the NCC value completes a cycle of update, but the UE side cannot perceive the flipping of the NCC value, and ensures that the key derived by the core network side is the same as the key derived by the UE side, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
为便于理解本申请实施例,下面首先对S1切换以及X2切换的相关知识点以及密钥派生进行简单说明。To facilitate understanding of the embodiments of the present application, the following first briefly describes the relevant knowledge points of S1 switching and X2 switching and key derivation.
S1切换具体是S1接口切换。其中,S1接口演进型基站(evolved node B,eNB)与MME之间的接口。其S1切换主要用于跨MME交互基站间的切换相关命令。S1 handover is specifically S1 interface handover. S1 interface is the interface between evolved node B (eNB) and MME. S1 handover is mainly used for handover-related commands between base stations across MME.
X2切换具体是X2接口切换。其中,X2接口是两个eNB之间的接口。其X2切换主要用于基站之间交互切换相关命令,可以直接在基站之间进行业务数据传输。X2 handover is specifically X2 interface handover. X2 interface is the interface between two eNBs. X2 handover is mainly used for interactive handover related commands between base stations, and can directly transmit service data between base stations.
密钥派生:当前在安全加密流程中,需要使用NCC字段进行密钥派生,协议中NCC字段定义的范围是0-7。其中,密钥分为横向派生和纵向派生。Key derivation: Currently, in the security encryption process, the NCC field is required for key derivation. The range of the NCC field defined in the protocol is 0 to 7. Among them, the key is divided into horizontal derivation and vertical derivation.
其中,S1切换采用纵向派生,由初始密钥与NCC值派生新密钥,具体的,最终的目标密钥由初始密钥从初始NCC值一直循环派生到当前NCC值。例如初始NCC=2,当前NCC=4,初始密钥与NCC=3派生得到新密钥,然后在根据新密钥与NCC=4派生得到目标密钥,可以理解的是,该示例仅仅用于说明理解本申请实施例,具体此处不做限定。Among them, S1 switching adopts vertical derivation, and a new key is derived from the initial key and the NCC value. Specifically, the final target key is derived from the initial key from the initial NCC value to the current NCC value in a loop. For example, the initial NCC=2, the current NCC=4, the initial key and NCC=3 are used to derive a new key, and then the target key is derived based on the new key and NCC=4. It can be understood that this example is only used to illustrate the understanding of the embodiment of the present application, and is not specifically limited here.
其中,X2切换采用横向派生,由初始密钥加上当前小区频点与物理小区标识(physical cell identifier,PCI)派生新密钥,需要说明的是,每个小区频点与PCI的组合不同。Among them, X2 switching adopts horizontal derivation, and a new key is derived from the initial key plus the current cell frequency and the physical cell identifier (PCI). It should be noted that the combination of each cell frequency and PCI is different.
在介绍本申请实施例之前,下面对S1切换准备失败的相关应用场景进行简单介绍,以便于后续理解本申请实施例。Before introducing the embodiments of the present application, the following briefly introduces the relevant application scenarios of S1 switching preparation failure to facilitate subsequent understanding of the embodiments of the present application.
首先对连续S1切换准备失败多次导致S1切换失败的应用场景为例进行说明,具体请参阅图1,图 1为S1切换准备失败的应用场景的一个示意图。该应用场景以UE访问网络接入基站为例,首先步骤101中,UE向源基站即source eNB发送访问消息以便接入基站以及MME。然后,在步骤102中,source eNB通过向MME发送S1切换请求消息(例如图1中的handover require消息)发起S1切换,此时UE和MME维护的NCC值都是2即NNC=2。然后MME在接收到handover require消息后,执行步骤103累加维护的NCC值即NCC+,当前NCC值从2变为3,即当前MME维护的NCC=3,且MME执行步骤104向目标基站1即target eNB1发送携带NCC=3的handover request消息,使得target eNB1获取当前NCC值。此时target eNB1执行的S1切换准备失败,则target eNB1执行步骤105向MME回复切换准备失败消息即handover preparation fail消息,且MME执行步骤106将handover preparation fail消息转发给source eNB,使得source eNB确定当前S1切换准备失败。当如图1中所示,从步骤102至步骤111,连续共计10次S1切换准备失败,当前MME维护的NCC=4,此时MME派生10次密钥(具体的,派生过程中对应的NCC=3,4,5,6,7,0,1,2,3,4),可以理解的是,步骤107至步骤111与前述步骤102至步骤106所述的类似,具体此处不再赘述。First, the application scenario where the continuous S1 switching preparation failures leading to the S1 switching failure is described as an example. For details, please refer to FIG. 1. FIG. 1 is a schematic diagram of an application scenario in which S1 handover preparation fails. This application scenario takes UE accessing a network access base station as an example. First, in step 101, the UE sends an access message to the source base station, i.e., source eNB, to access the base station and MME. Then, in step 102, the source eNB initiates S1 handover by sending an S1 handover request message (e.g., the handover require message in FIG. 1 ) to the MME. At this time, the NCC values maintained by the UE and the MME are both 2, i.e., NNC=2. Then, after receiving the handover require message, the MME executes step 103 to accumulate the maintained NCC value, i.e., NCC+. The current NCC value changes from 2 to 3, i.e., the NCC currently maintained by the MME is 3. The MME executes step 104 to send a handover request message carrying NCC=3 to the target base station 1, i.e., target eNB1, so that the target eNB1 obtains the current NCC value. At this time, the S1 handover preparation performed by the target eNB1 fails, and the target eNB1 executes step 105 to reply the handover preparation failure message, i.e., the handover preparation fail message, to the MME, and the MME executes step 106 to forward the handover preparation fail message to the source eNB, so that the source eNB determines that the current S1 handover preparation fails. As shown in FIG1 , from step 102 to step 111, there are 10 consecutive S1 handover preparation failures, and the current MME maintains NCC=4. At this time, the MME derives keys 10 times (specifically, the corresponding NCC in the derivation process is 3, 4, 5, 6, 7, 0, 1, 2, 3, 4). It can be understood that steps 107 to 111 are similar to those described in the aforementioned steps 102 to 106, and the details are not repeated here.
从而可知,NCC值已经按照NCC字段的定义范围0-7更新超过一个循环,NCC值已经发生翻转。因此当MME继续执行步骤112以及步骤113得到当前NCC=5之后,MME执行步骤114向目标基站2即targe eNB2发送携带NCC=5的handover request消息,此时target eNB2执行步骤115,向MME发送切换准备成功消息即handover request acknowledge消息。然后MME执行步骤116向source eNB发送携带NCC=5的切换命令消息即handover command消息,触发source eNB执行步骤117向UE发送无线资源控制(radio resource control,RRC)连接重新配置消息即RRC connection reconfiguration消息,且该消息携带了S1切换准备成功对应的NCC=5,由此UE执行步骤118基于NCC=5派生的密钥发送RRC连接重新配置完成消息即RRC connection reconfiguration complete消息。It can be seen that the NCC value has been updated for more than one cycle according to the definition range 0-7 of the NCC field, and the NCC value has flipped. Therefore, when the MME continues to execute steps 112 and 113 to obtain the current NCC=5, the MME executes step 114 to send a handover request message carrying NCC=5 to the target base station 2, namely target eNB2. At this time, the target eNB2 executes step 115 to send a handover preparation success message, namely a handover request acknowledgment message, to the MME. Then the MME executes step 116 to send a handover command message carrying NCC=5 to the source eNB, namely a handover command message, triggering the source eNB to execute step 117 to send a radio resource control (RRC) connection reconfiguration message, namely an RRC connection reconfiguration message, to the UE, and the message carries the NCC=5 corresponding to the successful S1 handover preparation. Therefore, the UE executes step 118 to send an RRC connection reconfiguration completion message, namely an RRC connection reconfiguration complete message based on the key derived from NCC=5.
但是,由于UE初始的NCC=2,而得到的对应S1切换准备成功的NCC值为5,因此UE派生3次密钥(其分别NCC=3,4,5),而MME派生11次密钥,因此UE与MME的密钥不一致,导致PCDC完整性校验失败被target eNB2的PCDC层丢弃,进而造成切换失败触发掉话的现象。However, since the initial NCC of the UE is 2, and the corresponding NCC value for successful S1 handover preparation is 5, the UE derives keys 3 times (with NCC=3, 4, 5 respectively), while the MME derives keys 11 times. As a result, the keys of the UE and MME are inconsistent, resulting in the failure of the PCDC integrity check and being discarded by the PCDC layer of the target eNB2, which in turn causes the handover failure to trigger a call drop.
下面还提供一种由于S1连续切换准备失败导致X2切换失败的应用场景作为示例进行说明,具体请参阅图2,图2为S1切换准备失败的应用场景的另一个示意图。该应用场景以UE访问网络接入基站为例。其中,UE与MME维护的初始NCC值均为2,其UE执行步骤201向source eNB发送访问消息接入基站和MME,然后source eNB执行步骤202向MME发送handover require消息发起S1切换,MME执行步骤203累加NCC的值得到NCC=3,并执行步骤204向target eNB1发送携带NCC=3的handover request消息,但target eNB1执行S1切换准备失败,因此target eNB1执行步骤205向MME发送handover preparation fail消息以告知MME当前S1切换准备失败,且MME执行步骤206将该消息转发给source eNB,直至步骤11,期间连续共计10次S1切换准备失败,且步骤207至步骤211对应MME维护的NCC=4,此时MME派生10次密钥(具体的,派生过程中分别对应的NCC=3,4,5,6,7,0,1,2,3,4),可以理解的是,步骤207至步骤211与前述步骤202至步骤206所述的类似,具体此处不再赘述。在此期间,NCC值以及按照NCC字段定义范围0-7更新超过一个循环,即NCC值已经发生翻转。The following also provides an application scenario in which X2 handover failure due to continuous S1 handover preparation failure is explained as an example. For details, please refer to Figure 2, which is another schematic diagram of an application scenario in which S1 handover preparation fails. This application scenario takes UE accessing a network access base station as an example. Among them, the initial NCC values maintained by the UE and the MME are both 2. The UE executes step 201 to send an access message to the source eNB to access the base station and the MME, and then the source eNB executes step 202 to send a handover require message to the MME to initiate S1 handover. The MME executes step 203 to accumulate the NCC value to obtain NCC=3, and executes step 204 to send a handover request message carrying NCC=3 to the target eNB1. However, the target eNB1 fails to perform S1 handover preparation, so the target eNB1 executes step 205 to send a handover request message to the MME. The ME sends a handover preparation fail message to inform the MME that the current S1 handover preparation has failed, and the MME executes step 206 to forward the message to the source eNB until step 11. During this period, there are a total of 10 consecutive S1 handover preparation failures, and steps 207 to 211 correspond to the NCC=4 maintained by the MME. At this time, the MME derives the key 10 times (specifically, the corresponding NCCs in the derivation process are 3, 4, 5, 6, 7, 0, 1, 2, 3, 4). It can be understood that steps 207 to 211 are similar to those described in the aforementioned steps 202 to 206, and the details are not repeated here. During this period, the NCC value and the update of the NCC field definition range 0-7 exceed one cycle, that is, the NCC value has flipped.
在步骤211之后,source eNB执行步骤212直接向target eNB2发送handover request消息发起S1切换,该handover request消息是根据source eNB的NCC=2对应的初始密钥横向派生密钥,然后target eNB2执行S1切换准备成功后,执行步骤213向source eNB回复handover request acknowledge消息告知S1切换准备成功,进而source eNB执行步骤214向UE发送携带NCC=2的RRC connection reconfiguration消息,使得UE获得S1切换准备成功对应的NCC值。然后UE基于当前NCC值横向派生密钥得到与target eNB2相同的密钥,并基于该密钥执行步骤215向target eNB2发送RRC connection reconfiguration complete消息,然后target eNB2执行步骤216向MME发送路径切换请求即path switch request消息通知MME其UE已经改变小区,MME收到消息后,执行步骤217累加NCC即当前NCC=5,且MME继续执行步骤218向target eNB2发送路径切换请求确认消息即path switch request acknowledge消息,且该path switch request acknowledge消息还携带NCC=5以及MME从NCC=2派生11次得到的密钥A,而target eNB2基于接收到NCC=5以及对应的密钥A向targe eNB3发送handover request消 息,然后target eNB3也基于NCC=5以及对应的密钥A执行步骤219向target eNB2发送handover request acknowledge消息,然后target eNB2执行步骤220向UE发送携带NCC=5的RRC connection reconfiguration消息,然后UE执行步骤221基于NCC=5从NCC=2派生3次得到对应的密钥B,接着UE执行步骤222向target eNB3发送RRC connection reconfiguration complete消息。但是由于UE的密钥B是从NCC=2派生3次得到,而target eNB3的密钥A是从NCC=2派生11次得到,所以密钥A与密钥B不一样,进而导致对于重配完成消息的PCDC完整性校验失败被,该重配完成消息被target eNB3丢弃,进而X2切换失败触发掉话。After step 211, the source eNB executes step 212 to directly send a handover request message to the target eNB2 to initiate S1 handover. The handover request message is a key derived horizontally based on the initial key corresponding to NCC=2 of the source eNB. After the target eNB2 successfully executes S1 handover preparation, it executes step 213 to reply a handover request acknowledge message to the source eNB to inform that the S1 handover preparation is successful. Then, the source eNB executes step 214 to send an RRC connection reconfiguration message carrying NCC=2 to the UE, so that the UE obtains the NCC value corresponding to the successful S1 handover preparation. Then the UE derives a key horizontally based on the current NCC value to obtain the same key as the target eNB2, and executes step 215 based on the key to send an RRC connection reconfiguration complete message to the target eNB2, and then the target eNB2 executes step 216 to send a path switch request, i.e., a path switch request message, to the MME to notify the MME that the UE has changed the cell. After receiving the message, the MME executes step 217 to accumulate the NCC, i.e., the current NCC=5, and the MME continues to execute step 218 to send a path switch request confirmation message, i.e., a path switch request acknowledge message, to the target eNB2, and the path switch request acknowledge message also carries NCC=5 and the key A derived 11 times by the MME from NCC=2, and the target eNB2 sends a handover request message to the target eNB3 based on the received NCC=5 and the corresponding key A. Then, target eNB3 also executes step 219 based on NCC=5 and the corresponding key A to send a handover request acknowledge message to target eNB2. Then, target eNB2 executes step 220 to send an RRC connection reconfiguration message carrying NCC=5 to UE. Then, UE executes step 221 to derive the corresponding key B from NCC=2 three times based on NCC=5. Then, UE executes step 222 to send an RRC connection reconfiguration complete message to target eNB3. However, since the UE's key B is derived from NCC=2 three times, and the target eNB3's key A is derived from NCC=2 11 times, the key A is different from the key B, which results in the failure of the PCDC integrity check of the reconfiguration complete message. The reconfiguration complete message is discarded by target eNB3, and the X2 handover failure triggers a call drop.
由以上的两个示例可知,当连续S1切换准备失败的次数至少7次,则NCC值至少更新一个循环发生翻转,因此当后续S1切换准备成功时,UE无法根据S1切换准备成功对应的NCC值感知NCC值发生翻转,因此基于相同的NCC值UE派生密钥的次数与MME派生密钥的次数不一样,从而双方得到的密钥也不一样,导致UE向目标基站发送的重配完成消息由于PCDC校验失败被目标基站丢弃,进而导致S1切换或X2切换执行失败触发掉话。From the above two examples, it can be seen that when the number of consecutive S1 switching preparation failures is at least 7 times, the NCC value is updated for at least one cycle and flipped. Therefore, when the subsequent S1 switching preparation is successful, the UE cannot perceive the NCC value flipping according to the NCC value corresponding to the successful S1 switching preparation. Therefore, based on the same NCC value, the number of times the UE derives the key is different from the number of times the MME derives the key, and the keys obtained by both parties are also different, resulting in the reconfiguration completion message sent by the UE to the target base station being discarded by the target base station due to the failure of the PCDC verification, which in turn causes the S1 switching or X2 switching execution failure to trigger a call drop.
为解决上述所述问题,本申请实施例首先提供了一种接入网络的方法及其相关装置,应用于互联网行业中。其中,第一基站接收通信装置发送的第一消息,该第一消息用于指示通信装置接入第二基站以及管理装置,其第一基站为接入通信装置的基站即源基站,第二基站为支持通信装置访问的基站即目标基站。然后第一基站基于第一消息向管理装置发送切换请求消息,该切换请求消息用于指示第一基站发起S1切换,之后,第一基站接收由管理装置发送的携带目标NCC值的第二消息,接着,第一基站基于第二消息向通信装置发送目标NCC值,使得通信装置基于目标NCC值得到与管理装置相同的密钥。解决了UE侧接入网络的过程中,当连续S1切换准备失败多次后,核心网侧维护的NCC值翻转后UE侧无法感知的问题,确保核心网侧派生的密钥与UE侧派生的密钥相同,从而保证UE侧发送上行包时,对其PCDC完整性校验成功,保证切换流程执行成功,通信正常。To solve the above-mentioned problems, the embodiment of the present application first provides a method for accessing a network and a related device thereof, which are applied in the Internet industry. Among them, a first base station receives a first message sent by a communication device, and the first message is used to instruct the communication device to access a second base station and a management device, wherein the first base station is a base station for accessing the communication device, i.e., a source base station, and the second base station is a base station supporting access by the communication device, i.e., a target base station. Then, the first base station sends a switching request message to the management device based on the first message, and the switching request message is used to instruct the first base station to initiate an S1 switching. After that, the first base station receives a second message carrying a target NCC value sent by the management device, and then, the first base station sends the target NCC value to the communication device based on the second message, so that the communication device obtains the same key as the management device based on the target NCC value. The problem that the UE side cannot perceive the NCC value maintained by the core network side after flipping after the continuous S1 switching preparation fails multiple times during the process of accessing the network on the UE side is solved, and the key derived from the core network side is ensured to be the same as the key derived from the UE side, so as to ensure that when the UE side sends an uplink packet, its PCDC integrity check is successful, and the switching process is successfully executed and the communication is normal.
为了更好的理解本申请的实施例,下面结合附图,首先对本申请的实施例提供的一种接入网络的方法进行详细描述。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In order to better understand the embodiments of the present application, a method for accessing a network provided by the embodiments of the present application is first described in detail below in conjunction with the accompanying drawings. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
为便于理解,下面仍然以应用场景示例为S1切换的基础上介绍本申请实施例提供的一种接入网络的方法,具体请参阅图3,图3为本申请实施例提供的一种接入网络的方法的一个示意图。具体包括:For ease of understanding, the following still introduces a method for accessing a network provided by an embodiment of the present application based on the application scenario example of S1 switching. For details, please refer to FIG. 3, which is a schematic diagram of a method for accessing a network provided by an embodiment of the present application. Specifically, it includes:
A1、通信装置向第一基站发送第一消息。A1. The communication device sends a first message to the first base station.
通信装置向第一基站发送第一消息,该第一消息至少通信装置接入第二基站以及管理装置,其中,第一基站为接入该通信装置的基站,第二基站为支持通信装置访问的基站其主要是分配访问资源。The communication device sends a first message to the first base station, and the first message at least indicates that the communication device accesses the second base station and the management device, wherein the first base station is the base station for accessing the communication device, and the second base station is the base station supporting access by the communication device, which mainly allocates access resources.
示例性的,为便于理解本申请实施例的具体实现方式,下面根据提供的应用场景示例进行说明。具体请参阅图4,图4为本申请实施例提供的应用场景的一个示意图。示例性的,第一基站为其中的源基站即source eNB,第二基站为其中的目标基站即target eNB,其通信装置为UE,管理装置为其中的MME。For example, in order to facilitate understanding of the specific implementation of the embodiment of the present application, the following is explained based on the provided application scenario example. Please refer to Figure 4 for details, which is a schematic diagram of the application scenario provided by the embodiment of the present application. For example, the first base station is the source base station, i.e., source eNB, the second base station is the target base station, i.e., target eNB, the communication device is UE, and the management device is MME.
第一基站接收到通信装置发送的第一消息,即如图4中步骤401:The first base station receives the first message sent by the communication device, that is, step 401 in FIG. 4:
401、source eNB接收UE发送的第一消息。401. The source eNB receives the first message sent by the UE.
UE向source eNB发送第一消息,通过source eNB接入target eNB以及MME,该MME属于核心网。具体如前述图2的步骤201所述的类似,具体此处不再赘述。The UE sends a first message to the source eNB, and accesses the target eNB and the MME through the source eNB, where the MME belongs to the core network. The details are similar to those in step 201 of FIG. 2 , and will not be described in detail here.
A2、第一基站向管理装置发送切换请求消息。A2. The first base station sends a switching request message to the management device.
第一基站基于第一消息向管理装置发送切换请求消息,该切换请求消息用于指示第一基站发起S1切换。The first base station sends a handover request message to the management device based on the first message, where the handover request message is used to instruct the first base station to initiate S1 handover.
然后,管理装置基于第一消息执行S1切换准备流程,示例性的,以如图4作为示例对执行S1切换准备流程进行说明,其中管理装置以MME为例,第一消息以handover require消息为例,具体包括:Then, the management device executes the S1 handover preparation process based on the first message. For example, the execution of the S1 handover preparation process is described by taking FIG. 4 as an example, wherein the management device takes MME as an example, and the first message takes a handover require message as an example, specifically including:
402、source eNB向MME发送handover require消息。402. The source eNB sends a handover require message to the MME.
Source eNB发起S1切换,向MME发送handover require消息用于执行S1切换准备流程。具体如前述图2中步骤202所述的类似,具体此处不再赘述。The Source eNB initiates S1 handover and sends a handover require message to the MME to execute the S1 handover preparation process. The details are similar to those in step 202 in FIG. 2 above and will not be described in detail here.
403、MME累加NCC值。 403. The MME accumulates the NCC value.
MME接收到handover require消息后,累加NCC值即执行NCC+,MME维护的初始NCC值为2,累加后NCC=3。需要说明的是,步骤403具体如前述图2中步骤203所述的类似,具体此处不再赘述。After receiving the handover require message, the MME accumulates the NCC value, that is, executes NCC+. The initial NCC value maintained by the MME is 2, and the accumulated NCC=3. It should be noted that step 403 is similar to step 203 in FIG. 2 , and will not be described in detail here.
404、MME向target eNB发送handover request消息。404. MME sends a handover request message to the target eNB.
在得到NCC=3后,MME向target eNB发送handover request消息,且该消息携带NCC=3,然而target eNB执行切换准备失败,且执行步骤405,具体如下:After obtaining NCC=3, the MME sends a handover request message to the target eNB, and the message carries NCC=3. However, the target eNB fails to perform handover preparation and executes step 405, which is as follows:
405、target eNB向MME发送handover preparation fail消息。405. The target eNB sends a handover preparation fail message to the MME.
target eNB向MME发送handover preparation fail消息用于告知当前S1切换准备失败。具体如前述图2中的步骤205所述的类似,具体此处不再赘述。The target eNB sends a handover preparation fail message to the MME to inform that the current S1 handover preparation has failed. The details are similar to those in step 205 in FIG. 2 , and will not be described in detail here.
基于前述当前S1切换准备失败,一种可能的实现方式中,管理装置向第一基站发送携带第二NCC值的第三消息,该第二NCC值对应的当前S1切换准备失败的连续次数小于七次,且该如图3步骤A3所述:Based on the above-mentioned current S1 handover preparation failure, in a possible implementation, the management device sends a third message carrying a second NCC value to the first base station, and the number of consecutive current S1 handover preparation failures corresponding to the second NCC value is less than seven times, and as described in step A3 of FIG. 3:
A3、管理装置向第一基站发送第三消息。A3. The management device sends a third message to the first base station.
管理装置向第一基站发送第三消息,该第三消息携带第二NCC值。具体的,每当S1切换准备失败,管理装置向第一基站发送携带当前S1切换准备失败对应的NCC值。The management device sends a third message to the first base station, the third message carrying the second NCC value. Specifically, whenever the S1 handover preparation fails, the management device sends a message to the first base station carrying the NCC value corresponding to the current S1 handover preparation failure.
示例性的,下面仍然对应图4的示例进行说明,第三消息可以是handover preparation fail消息,具体如下:Exemplarily, the following still corresponds to the example of FIG. 4 , and the third message may be a handover preparation fail message, which is as follows:
步骤406、MME向source eNB发送携带NCC=3的handover preparation fail消息。Step 406: MME sends a handover preparation fail message carrying NCC=3 to the source eNB.
MME接收到handover preparation fail消息后确定当前S1切换准备失败,将当前MME维护的NCC=3发送给source eNB,示例性的,可以由向source eNB转发的handover preparation fail消息携带NCC=3进行发送。After receiving the handover preparation fail message, the MME determines that the current S1 handover preparation has failed, and sends the NCC=3 currently maintained by the MME to the source eNB. For example, the handover preparation fail message forwarded to the source eNB may carry NCC=3 and be sent.
需要说明的是,前述图4中步骤406仅仅作为示例用于理解本申请实施例,可以理解的是,第三消息还可以是其他的通告消息或报告,具体此处不做限定。It should be noted that step 406 in the aforementioned FIG. 4 is merely used as an example for understanding the embodiment of the present application. It is understandable that the third message may also be other notification messages or reports, which are not specifically limited here.
基于前述当前S1切换准备失败,一种可能的实现方式中,管理装置向第一基站发送handover preparation fail消息,该消息不携带NCC值,仅仅用于告知第一基站当前S1切换准备失败。为便于理解,下面请参与图5的应用场景作为示例进行说明,图5为本申请实施例提供的应用场景的另一个示意图。其中,步骤501至步骤505与前述图4中步骤401至步骤404所述的类似,具体此处不再赘述。具体请参阅如下步骤506:Based on the above-mentioned current S1 handover preparation failure, in a possible implementation method, the management device sends a handover preparation fail message to the first base station. The message does not carry an NCC value and is only used to inform the first base station that the current S1 handover preparation has failed. For ease of understanding, please refer to the application scenario of Figure 5 as an example for explanation. Figure 5 is another schematic diagram of the application scenario provided by the embodiment of the present application. Among them, steps 501 to 505 are similar to those described in steps 401 to 404 in Figure 4 above, and the details are not repeated here. Please refer to the following step 506 for details:
步骤506、MME向source eNB发送handover preparation fail消息。Step 506: MME sends a handover preparation fail message to the source eNB.
MME在接收到target eNB发送的handover preparation fail消息后,将该消息转发给source eNB,以告知source eNB当前S1切换准备失败,以便于继续发起S1切换。After receiving the handover preparation fail message sent by the target eNB, the MME forwards the message to the source eNB to inform the source eNB that the current S1 handover preparation has failed so that the source eNB can continue to initiate the S1 handover.
在本申请的实施方式中,管理装置向第一基站发送携带第二NCC值的第三消息,能使得第一基站实时获取对应的NCC值,保证实时同步NCC值,提高工作的准确性。In an implementation manner of the present application, the management device sends a third message carrying the second NCC value to the first base station, which enables the first base station to obtain the corresponding NCC value in real time, ensures real-time synchronization of the NCC value, and improves the accuracy of the work.
在前述图4以及图5的示例中,当S1切换准备失败,source eNB会接收到切换失败的消息用于确定当前S1切换准备失败。而source eNB还会继续发起S1切换,直至S1切换准备成功。In the examples of Figures 4 and 5 above, when S1 handover preparation fails, the source eNB will receive a handover failure message to determine that the current S1 handover preparation has failed. The source eNB will continue to initiate S1 handover until S1 handover preparation succeeds.
其中,直至连续七次S1切换准备失败,一种可能的实现方式中,第一基站接收管理装置发送的携带目标NCC值的第二消息,该目标NCC值由管理装置连续七次执行S1切换准备失败得到。具体的,请参与图3中步骤A4,具体如下:Among them, until the S1 handover preparation fails seven times in a row, in a possible implementation, the first base station receives a second message carrying a target NCC value sent by the management device, and the target NCC value is obtained by the management device performing the S1 handover preparation failure seven times in a row. Specifically, please refer to step A4 in Figure 3, which is as follows:
A4、管理装置向第一基站发送第二消息。A4. The management device sends a second message to the first base station.
管理装置向第一基站发送携带目标NCC的第二消息,该目标NCC由管理装置连续七次执行S1切换准备失败得到。The management device sends a second message carrying a target NCC to the first base station. The target NCC is obtained by the management device failing to perform S1 handover preparation for seven consecutive times.
一种可能的实现方式中,第二消息用于指示当前S1切换准备失败。In a possible implementation manner, the second message is used to indicate that the current S1 switching preparation fails.
示例性的,下面仍然以图4作为示例进行说明,其中,在管理装置即MME向第一基站即source eNB发送第二消息之前,MME多次执行S1切换准备流程,且S1切换准备失败7次。具体包括:Exemplarily, the following is still described using FIG. 4 as an example, wherein before the management device, i.e., the MME, sends the second message to the first base station, i.e., the source eNB, the MME executes the S1 handover preparation process multiple times, and the S1 handover preparation fails 7 times. Specifically, it includes:
407、source eNB向MME发送handover require消息。407. The source eNB sends a handover require message to the MME.
在步骤407之前,已经连续S1切换准备失败六次(期间不包括S1切换成功以及X2切换成功),对 应NCC值分别为3,4,5,6,7以及0,然后source eNB继续发起S1切换,即向MME发送handover require消息。Before step 407, the S1 handover preparation has failed six times in a row (excluding the S1 handover success and the X2 handover success). The NCC values are 3, 4, 5, 6, 7 and 0 respectively, and then the source eNB continues to initiate S1 handover, that is, sending a handover require message to the MME.
408、MME执行累加NCC值。408. The MME performs accumulation of NCC values.
MME执行累加NCC值,得到NCC=1。The MME accumulates the NCC value and obtains NCC=1.
409、MME向target eNB发送handover request消息。409. MME sends a handover request message to the target eNB.
MME向target eNB发送handover request消息,且该消息携带NCC=1。MME sends a handover request message to the target eNB, and the message carries NCC=1.
410、target eNB向MME发送handover preparation fail消息。410. The target eNB sends a handover preparation fail message to the MME.
target eNB执行S1切换准备失败后,向MME发送handover preparation fail消息。After the target eNB fails to execute S1 handover preparation, it sends a handover preparation fail message to the MME.
其中步骤407至步骤410与前述步骤402至步骤405所述的类似,具体此处不再赘述。Steps 407 to 410 are similar to the aforementioned steps 402 to 405 and will not be described in detail here.
MME接收到handover preparation fail消息之后,执行步骤411,具体如下:After receiving the handover preparation fail message, the MME executes step 411, which is as follows:
411、MME向source eNB发送携带NCC=1的handover preparation fail消息。411. MME sends a handover preparation fail message with NCC=1 to the source eNB.
MME向source eNB发送携带NCC=1的handover preparation fail消息。其中,步骤402至步骤410,已经累计连续七次S1切换准备失败,即目标NCC为1,第二消息即handover preparation fail消息。MME sends a handover preparation fail message carrying NCC = 1 to the source eNB. In step 402 to step 410, there have been seven consecutive S1 handover preparation failures, that is, the target NCC is 1, and the second message is the handover preparation fail message.
需要说明的是,图4仅仅以handover preparation fail消息作为第二消息的示例用于说明本申请实施例。可以理解的是,第二消息还可以是其他通告消息或者报告,具体此处不做限定。It should be noted that FIG4 only uses the handover preparation fail message as an example of the second message to illustrate the embodiment of the present application. It is understandable that the second message may also be other notification messages or reports, which are not specifically limited here.
在本申请的实施方式中,第二消息指示当前S1切换准备失败,管理装置实时根据S1切换准备失败向第一基站发送第二消息,使得第一基站实时获取对应的NCC值,保证实时同步NCC值,提高工作的准确性。In an implementation manner of the present application, the second message indicates that the current S1 switching preparation has failed. The management device sends the second message to the first base station in real time according to the S1 switching preparation failure, so that the first base station obtains the corresponding NCC value in real time, ensures real-time synchronization of the NCC value, and improves the accuracy of the work.
一种可能的实现方式中,第二消息由管理装置确定S1切换准备失败连续七次后发送。示例性的,此处以图5作为示例进行说明,其中,步骤507至步骤510与前述图4中步骤407至步骤410所述类似,具体此处不再赘述。In a possible implementation, the second message is sent by the management device after determining that the S1 handover preparation fails seven times in succession. Exemplarily, FIG. 5 is used as an example for illustration, wherein steps 507 to 510 are similar to steps 407 to 410 in FIG. 4 above, and are not described in detail here.
而步骤510即MME接收handover preparation fail消息之后,MME执行如下步骤511:After step 510, i.e., the MME receives the handover preparation fail message, the MME executes the following step 511:
511、MME向source eNB发送handover preparation fail消息。511. MME sends a handover preparation fail message to source eNB.
MME将接收到的handover preparation fail消息转发给source eNB,使得source eNB感知当前S1切换准备失败。MME forwards the received handover preparation fail message to source eNB, so that source eNB perceives that the current S1 handover preparation has failed.
MME执行步骤511之后,当MME确定连续S1切换失败的次数达到七次,则MME向source eNB发送第二消息,该第二消息包括目标NCC值。具体如下步骤所示:After the MME executes step 511, when the MME determines that the number of consecutive S1 handover failures reaches seven, the MME sends a second message to the source eNB, and the second message includes the target NCC value. The specific steps are as follows:
步骤512、MME确定连续S1切换准备失败次数达到七次。Step 512: The MME determines that the number of consecutive S1 handover preparation failures reaches seven.
示例性的,一种可能的实现方式中,MME对连续S1切换准备失败的次数进行累计,并实时判断连续S1切换准备失败的次数是否达到七次。可选的,当NCC=1时,对应的S1切换准备失败,而MME初始的NCC值为2,且中间无S1切换或X2切换成功,则MME确定连续切换准备失败的次数达到七次。Exemplarily, in a possible implementation, the MME accumulates the number of consecutive S1 handover preparation failures and determines in real time whether the number of consecutive S1 handover preparation failures reaches seven. Optionally, when NCC=1, the corresponding S1 handover preparation fails, and the initial NCC value of the MME is 2, and there is no S1 handover or X2 handover success in the middle, then the MME determines that the number of consecutive handover preparation failures reaches seven.
当MME确定连续S1切换准备失败的次数达到七次,则MME执行如下步骤513:When the MME determines that the number of consecutive S1 handover preparation failures reaches seven, the MME performs the following step 513:
513、MME向source eNB发送NCC update indication消息。513. MME sends an NCC update indication message to the source eNB.
MME向source eNB发送携带NCC=1的NCC更新指示(NCC update indication)消息,即在图5的示例中,第二消息为NCC update indication消息。其中,NCC update indication主要用于向source eNB发送目标NCC值,使得source eNB得到即将翻转的NCC值,以便于后续通信装置获取与MME相同的密钥。The MME sends an NCC update indication message carrying NCC=1 to the source eNB, that is, in the example of FIG5 , the second message is the NCC update indication message. The NCC update indication is mainly used to send the target NCC value to the source eNB, so that the source eNB obtains the NCC value to be flipped, so that the subsequent communication device can obtain the same key as the MME.
可选的,该第二消息即NCC update indication消息可以是一个报文,也可以是一个字段,其中携带了目标NCC值,可以理解的是,第二消息还可以是其他的形式,具体此处不做限定。Optionally, the second message, i.e., the NCC update indication message, may be a message or a field, which carries the target NCC value. It is understandable that the second message may also be in other forms, which are not specifically limited here.
在本申请的实施方式中,由管理装置确定S1切换准备失败连续七次,才向第一基站发送目标NCC值,可以减少信息交互进而减少对资源的占用,提高工作效率。In the implementation manner of the present application, the management device sends the target NCC value to the first base station only after determining that the S1 handover preparation fails seven times in a row, which can reduce information interaction and thus reduce resource occupation and improve work efficiency.
如上述所述,第一基站接收到携带目标NCC的第二消息,之后第一基站基于第二消息向通信装置发送目标NCC值,如图3中步骤A5所示:As described above, the first base station receives the second message carrying the target NCC, and then the first base station sends the target NCC value to the communication device based on the second message, as shown in step A5 in FIG3 :
A5、第一基站向通信装置发送目标NCC值。 A5. The first base station sends a target NCC value to the communication device.
第一基站基于第二消息,触发小区内切换流程,从而将第一基站得到的目标NCC值发送给通信装置。The first base station triggers the intra-cell handover process based on the second message, thereby sending the target NCC value obtained by the first base station to the communication device.
一种可能的实现方式中,第二消息用于指示当前S1切换准备失败,其第一基站确定第二消息指示的S1切换准备失败为连续第七次的S1切换准备失败,第一基站基于目标信息向通信装置发送无线资源控制连接重配置(RRC connection reconfiguration)消息,该RRC connection reconfiguration消息携带目标NCC值。In one possible implementation, the second message is used to indicate a current S1 switching preparation failure, and the first base station determines that the S1 switching preparation failure indicated by the second message is the seventh consecutive S1 switching preparation failure. The first base station sends a radio resource control connection reconfiguration (RRC connection reconfiguration) message to the communication device based on the target information, and the RRC connection reconfiguration message carries a target NCC value.
示例性的,下面仍然以图4作为示例进行说明,具体包括:For example, the following is still described using FIG. 4 as an example, specifically including:
步骤412、source eNB确定连续S1切换准备失败次数达到七次。Step 412: The source eNB determines that the number of consecutive S1 handover preparation failures reaches seven.
其中,第一基站即source eNB对连续S1切换准备失败进行累计,而当累计过程中出现S1切换成功或X2切换成功,则重新累计,当source eNB接收到步骤411发送的消息后,共计连续S1切换失败七次,即第二消息指示的S1切换准备失败为连续第七次的S1切换准备失败。Among them, the first base station, namely the source eNB, accumulates consecutive S1 handover preparation failures, and when an S1 handover success or an X2 handover success occurs during the accumulation process, it accumulates again. When the source eNB receives the message sent in step 411, the total number of consecutive S1 handover failures is seven, that is, the S1 handover preparation failure indicated by the second message is the seventh consecutive S1 handover preparation failure.
可选的,source eNB可以至少记录第一次S1切换准备失败对应的NCC值(需要说明的是,当出现S1切换成功或X2切换成功后,重新记录),基于第一次S1与目标NCC值确定第二消息指示的S1切换准备失败为连续第七次的S1切换准备失败。Optionally, the source eNB may record at least the NCC value corresponding to the first S1 handover preparation failure (it should be noted that the NCC value is recorded again when the S1 handover is successful or the X2 handover is successful), and determine that the S1 handover preparation failure indicated by the second message is the seventh consecutive S1 handover preparation failure based on the first S1 and target NCC values.
之后,第一基站即source eNB基于目标信息触发小区内切换以此刷新通信装置即UE的NCC值。具体如图4中步骤413所示:Afterwards, the first base station, i.e., source eNB, triggers intra-cell handover based on the target information to refresh the NCC value of the communication device, i.e., UE. Specifically, as shown in step 413 in FIG. 4:
413、source eNB向UE发送RRC connection reconfiguration消息。413. The source eNB sends an RRC connection reconfiguration message to the UE.
基于目标信息,当source eNB确定S1切换准备失败连续七次时,触发source eNB执行小区内切换,source eNB向UE发送RRC connection reconfiguration消息,该消息携带切换指示,切换的目标小区为UE接入source eNB的小区,同时携带目标NCC值即NCC=1,用于密钥更新,即UE得到目标NCC值并更新密钥,确保NCC值翻转后,通信装置派生密钥的次数与管理装置派生密钥的次数相同,得到相同的密钥,后续的S1切换或X2切换能正常执行,进而防止掉话保证正常通信。Based on the target information, when the source eNB determines that the S1 handover preparation has failed seven times in a row, the source eNB is triggered to perform an intra-cell handover. The source eNB sends an RRC connection reconfiguration message to the UE, which carries a handover indication. The target cell for handover is the cell where the UE accesses the source eNB. It also carries a target NCC value, i.e., NCC=1, which is used for key update. That is, the UE obtains the target NCC value and updates the key to ensure that after the NCC value is flipped, the number of times the communication device derives the key is the same as the number of times the management device derives the key, and the same key is obtained. The subsequent S1 handover or X2 handover can be executed normally, thereby preventing call drops and ensuring normal communication.
需要说明的是,目标信息属于协议33.401或协议36.413中的协议字段。示例性的,目标信息可以是“当基于S1切换准备失败连续七次失败时,使用本条款“KeNB刷新”中描述的小区内切换刷新KeNB(即Re-freshing the KeNB is done using intra cell handover as described in clause“KeNB refresh”of the present specification when S1-based handover preparation fails reach seven consecutive times)”。可以理解的是,目标信息还可以属于其他协议,且目标信息的具体内容可根据实际应用场景进行确定,具体此处不做限定。It should be noted that the target information belongs to the protocol field in protocol 33.401 or protocol 36.413. Exemplarily, the target information may be "Re-freshing the KeNB is done using intra cell handover as described in clause "KeNB refresh" of the present specification when S1-based handover preparation fails reach seven consecutive times". It can be understood that the target information may also belong to other protocols, and the specific content of the target information may be determined according to the actual application scenario, which is not limited here.
在本申请的实施方式中,目标信息属于协议33.401或协议36.413中的协议字段,增加了方案的多样性以及灵活性。In the implementation manner of the present application, the target information belongs to the protocol field in protocol 33.401 or protocol 36.413, which increases the diversity and flexibility of the solution.
之后,UE执行步骤414,确定双方密钥相同,具体如下:Afterwards, the UE executes step 414 to determine that the keys of both parties are the same, as follows:
步骤414、UE向source eNB发送RRC connection reconfiguration complete消息。Step 414: UE sends an RRC connection reconfiguration complete message to source eNB.
UE向source eNB发送RRC connection reconfiguration complete消息,此时UE基于目标NCC值派生的密钥与source eNB基于目标NCC值派生的密钥相同,该消息通过PCDC完整性校验成功,source eNB正常接收该重配完成消息,保证后续切换执行成功。UE sends an RRC connection reconfiguration complete message to source eNB. At this time, the key derived by UE based on the target NCC value is the same as the key derived by source eNB based on the target NCC value. The message passes the PCDC integrity check successfully. Source eNB receives the reconfiguration completion message normally, ensuring the success of subsequent switching.
在本申请的实施方式中,第一基站判定S1切换准备失败连续七次,进而通过无线资源控制连接重配置消息向通信装置发送目标NCC值,提供了多样的应用场景,体现了方案的可选择性。In an implementation manner of the present application, the first base station determines that S1 handover preparation fails seven times in a row, and then sends a target NCC value to the communication device through a radio resource control connection reconfiguration message, providing a variety of application scenarios and reflecting the selectivity of the solution.
另外,在图5的示例中,步骤513中的第二消息即NCC update indication消息可用于指示S1切换准备失败连续七次,因此source eNB可以基于第二消息触发小区内切换用于更新UE的NCC值。即如下步骤514所示:In addition, in the example of FIG. 5 , the second message in step 513, namely the NCC update indication message, can be used to indicate that the S1 handover preparation fails seven times in a row, so the source eNB can trigger the intra-cell handover based on the second message to update the NCC value of the UE. That is, as shown in the following step 514:
514、source eNB向UE发送RRC connection reconfiguration消息。514. The source eNB sends an RRC connection reconfiguration message to the UE.
source eNB基于第二消息触发小区内切换,向UE发送RRC connection reconfiguration消息,该消息携带目标NCC值,具体如前述图4中步骤413所述的类似,具体此处不再赘述。The source eNB triggers intra-cell switching based on the second message and sends an RRC connection reconfiguration message to the UE. The message carries the target NCC value, which is similar to that described in step 413 in FIG. 4 above and will not be described in detail here.
然后,UE基于该目标NCC值更新密钥,并如下执行步骤515:Then, the UE updates the key based on the target NCC value and executes step 515 as follows:
515、UE向source eNB发送RRC connection reconfiguration complete消息。515. UE sends an RRC connection reconfiguration complete message to source eNB.
需要说明的是,步骤515与前述图4中步骤414所述的类似,具体此处不再赘述。 It should be noted that step 515 is similar to step 414 in FIG. 4 , and will not be described in detail here.
需要说明的是,前述目标NCC值为S1切换准备失败连续七次对应的NCC值,该连续七次的判断是基于UE维护的NCC值的基础上,可以理解的是,当UE的初始NCC值更新为目标NCC值后,示例性的,如前述的示例4或示例5中,UE的NCC=2更新为NCC=1,即下一个连续七次S1切换准备失败对应的目标NCC值从NCC=1开始累计。It should be noted that the aforementioned target NCC value is the NCC value corresponding to seven consecutive S1 switching preparation failures. The judgment of the seven consecutive times is based on the NCC value maintained by the UE. It can be understood that when the UE's initial NCC value is updated to the target NCC value, exemplarily, as in the aforementioned Example 4 or Example 5, the UE's NCC=2 is updated to NCC=1, that is, the target NCC value corresponding to the next seven consecutive S1 switching preparation failures starts to accumulate from NCC=1.
在本申请的实施方式中,通信装置得到目标NCC值,可以确保通信装置感知NCC值的翻转,确保通信装置派生密钥的次数与管理装置派生密钥的次数相同,进而确保通信装置派生的密钥与管理装置派生的密钥相同。In an implementation manner of the present application, the communication device obtains the target NCC value, which can ensure that the communication device perceives the flipping of the NCC value, ensures that the number of times the communication device derives keys is the same as the number of times the management device derives keys, and further ensures that the keys derived by the communication device are the same as the keys derived by the management device.
一种可能的实现方式中,在第一基站向通信装置发送目标NCC值后,第一基站接收由管理装置发送的第一NCC值,该第一NCC值对应S1切换准备成功,然后第一基站向通信装置发送第一NCC值,使得通信装置基于第一NCC值获取与管理装置相同的密钥。In one possible implementation, after the first base station sends the target NCC value to the communication device, the first base station receives a first NCC value sent by the management device, which corresponds to successful S1 switching preparation. Then the first base station sends the first NCC value to the communication device, so that the communication device obtains the same key as the management device based on the first NCC value.
示例性的,请参阅图3中的步骤A6、步骤A7以及步骤A8,具体如下:For example, please refer to step A6, step A7 and step A8 in FIG. 3 , which are specifically as follows:
A6、管理装置向第一基站发送第一NCC值。A6. The management device sends the first NCC value to the first base station.
在第一基站向通信装置发送目标NCC值之后,管理装置向第一基站发送第一NCC值,该第一NCC值对应S1切换准备成功。After the first base station sends the target NCC value to the communication device, the management device sends a first NCC value to the first base station, where the first NCC value corresponds to successful S1 handover preparation.
示例性的,当管理装置接收到S1切换准备成功的消息后,管理装置向第一基站发送携带第一NCC值的handover command消息,具体如前述图1或图2中所述的类似,具体此处不再赘述。Exemplarily, after the management device receives the message indicating that the S1 switching is ready successfully, the management device sends a handover command message carrying the first NCC value to the first base station, which is similar to that described in FIG. 1 or FIG. 2 above and will not be described in detail here.
之后,第一基站执行步骤A7:Afterwards, the first base station performs step A7:
A7、第一基站向通信装置发送第一NCC值。A7. The first base station sends a first NCC value to the communication device.
示例性的,第一基站向通信装置发送携带第一NCC值的RRC connection reconfiguration消息,具体与前述图4和图5中所述的类似,具体此处不再赘述。Exemplarily, the first base station sends an RRC connection reconfiguration message carrying a first NCC value to the communication device, which is similar to that described in the aforementioned Figures 4 and 5 and will not be described in detail here.
然后,通信装置执行步骤A8:Then, the communication device executes step A8:
A8、通信装置基于第一NCC值确定密钥。A8. The communication device determines a key based on the first NCC value.
通信装置基于第一NCC值派生密钥的次数,与管理装置基于第一NCC值派生密钥的次数相同,即通信装置与管理装置基于第一NCC值派生得到的密钥相同。The number of times the communication device derives the key based on the first NCC value is the same as the number of times the management device derives the key based on the first NCC value, that is, the keys derived by the communication device and the management device based on the first NCC value are the same.
在本申请的实施方式中,通信装置基于第一NCC值得到与管理装置相同的密钥,能确保执行的S1切换或X2切换成功,防止掉话,保证正常通信。In the implementation manner of the present application, the communication device obtains the same key as the management device based on the first NCC value, which can ensure that the S1 handover or X2 handover is successfully executed, prevent call drops, and ensure normal communication.
在本申请实施例中,通信装置向第一基站发送第一消息用于接入第二基站以及管理装置,然后第一基站基于第一消息向管理装置发送切换请求消息,则管理装置基于切换请求执行S1切换准备,在S1切换准备失败连续七次的情况下,管理装置确定目标NCC值,并向第一基站发送携带目标NCC值的第二消息,且第一基站基于第二消息向通信装置发送目标NCC值。由此可以使得通信装置基于目标NCC值派生密钥的次数与管理装置基于目标NCC值派生密钥的次数相同,即通信装置与管理装置具备相同的密钥,从而确保通信装置即UE侧感知NCC值的翻转,确保核心网侧派生的密钥与UE侧派生的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In an embodiment of the present application, the communication device sends a first message to the first base station for accessing the second base station and the management device, and then the first base station sends a switching request message to the management device based on the first message, and the management device performs S1 switching preparation based on the switching request. When the S1 switching preparation fails for seven consecutive times, the management device determines the target NCC value and sends a second message carrying the target NCC value to the first base station, and the first base station sends the target NCC value to the communication device based on the second message. In this way, the number of times the communication device derives a key based on the target NCC value is the same as the number of times the management device derives a key based on the target NCC value, that is, the communication device and the management device have the same key, thereby ensuring that the communication device, i.e., the UE side, perceives the flipping of the NCC value, and ensures that the key derived on the core network side is the same as the key derived on the UE side, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
需要说明的是,前述图4以及图5仅仅作为示例用于理解本申请实施例,不对本申请产生实质性的限定,可以理解的是,实际的应用场景还可以是其他的形式,具体此处不做限定。It should be noted that the aforementioned Figures 4 and 5 are merely used as examples for understanding the embodiments of the present application and do not impose substantial limitations on the present application. It is understandable that the actual application scenarios may also be in other forms, which are not specifically limited here.
以上对本申请实施例所提供的一种接入网络到的方法进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to a method for accessing a network provided by an embodiment of the present application. The principles and implementation methods of the present application are described in detail using specific examples herein. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.
需要说明的是,前述通信装置可以是车载计算机设备、工业设备、个人电脑、终端、平板电脑、手表或其他访问基站的网络设备或计算机设备,具体此处不做限定。It should be noted that the aforementioned communication device may be a vehicle-mounted computer device, industrial equipment, a personal computer, a terminal, a tablet computer, a watch or other network device or computer device that accesses a base station, and is not specifically limited here.
为了实现上述本申请实施例提供的方法中的各功能,通信装置、第一基站和/或管理装置可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。 In order to implement the functions of the method provided in the above embodiment of the present application, the communication device, the first base station and/or the management device may include a hardware structure and/or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
如图6所示,本申请实施例还提供了一种通信装置,该通信装置应用于互联网行业。具体请参阅图6,图6为本申请实施例提供的通信装置的一个结构示意图。一种可能的实现中,该通信装置可以包括执行上述方法实施例中图3的方法/操作/步骤/动作所一一对应的模块或单元,该单元可以是硬件电路,也可是软件,也可以是硬件电路结合软件实现。一种可能的实现中,该通信装置600可以包括:接收单元601、处理单元602以及发送单元603。发送单元603可以用于执行如上述方法实施例中向第一基站发送第一消息的步骤,接收单元601可以用于执行如上述方法实施例中接收目标NCC值的步骤,处理单元602可以用于执行如上述方法实施例中基于目标NCC获取与管理装置相同的密钥。As shown in Figure 6, an embodiment of the present application also provides a communication device, which is applied to the Internet industry. Please refer to Figure 6 for details. Figure 6 is a structural schematic diagram of a communication device provided in an embodiment of the present application. In one possible implementation, the communication device may include a module or unit that corresponds to the method/operation/step/action of Figure 3 in the above method embodiment. The unit may be a hardware circuit, or software, or a hardware circuit combined with software. In one possible implementation, the communication device 600 may include: a receiving unit 601, a processing unit 602, and a sending unit 603. The sending unit 603 can be used to execute the step of sending a first message to the first base station in the above method embodiment, the receiving unit 601 can be used to execute the step of receiving the target NCC value in the above method embodiment, and the processing unit 602 can be used to execute the step of obtaining the same key as the management device based on the target NCC in the above method embodiment.
在本申请实施例中,发送单元603向第一基站发送第一消息用于接入第二基站以及管理装置,接收单元601接收由第一基站发送的目标NCC值,该目标NCC值由管理装置联系七次执行S1切换准备失败得到,该S1切换准备由管理装置基于第一基站发送的切换请求消息执行,该切换请求消息由第一基站基于第一消息发送。处理单元602基于目标NCC值获取与管理装置相同的密钥。由此可以解决UE侧无法感知NCC值翻转的问题,实时确保UE侧与核心网侧的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In an embodiment of the present application, a sending unit 603 sends a first message to a first base station for accessing a second base station and a management device, and a receiving unit 601 receives a target NCC value sent by the first base station, the target NCC value being obtained by the management device after seven failed attempts to perform S1 handover preparation, the S1 handover preparation being performed by the management device based on a handover request message sent by the first base station, the handover request message being sent by the first base station based on the first message. The processing unit 602 obtains the same key as the management device based on the target NCC value. This can solve the problem that the UE side cannot perceive the flipping of the NCC value, and ensure in real time that the keys on the UE side and the core network side are the same, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the handover process is successfully executed, and that communication is normal.
在其他可能的设计中,上述接收单元601、处理单元602以及发送单元603可以一一对应的执行上述方法实施例中通信装置各种可能的实现方式中的方法/操作/步骤/动作。In other possible designs, the above-mentioned receiving unit 601, processing unit 602 and sending unit 603 can execute the methods/operations/steps/actions in various possible implementation methods of the communication device in the above-mentioned method embodiment one by one.
在一种可能的设计中,上述接收单元601,具体用于接收由第一基站发送的无线资源控制连接重配置消息,该无线资源控制连接重配置消息携带目标NCC。In a possible design, the above-mentioned receiving unit 601 is specifically used to receive a wireless resource control connection reconfiguration message sent by the first base station, and the wireless resource control connection reconfiguration message carries a target NCC.
在一种可能的设计中,上述接收单元601,还用于接收由第一基站发送的第一NCC值,其第一NCC值对应S1切换准备成功,处理单元602,还用于基于第一NCC值获取与管理装置相同的密钥。In a possible design, the receiving unit 601 is further used to receive a first NCC value sent by the first base station, wherein the first NCC value corresponds to successful S1 switching preparation, and the processing unit 602 is further used to obtain the same key as the management device based on the first NCC value.
本申请上述的各种设计的通信装置的有益效果请参考上述图3、图4以及图5中方法实施例中一一对应的各种实现方式的有益效果,具体此处不再赘述。For the beneficial effects of the various designed communication devices mentioned above in the present application, please refer to the beneficial effects of the various corresponding implementation methods in the method embodiments in the above Figures 3, 4 and 5, and the details will not be repeated here.
需要说明的是,图6对应实施例的通信装置中各模块/单元之间的信息交互、执行过程等内容,与本申请中图3对应的方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the modules/units in the communication device of the embodiment corresponding to Figure 6 are based on the same concept as the method embodiment corresponding to Figure 3 in the present application. For specific contents, please refer to the description in the method embodiment shown in the previous part of the present application, and will not be repeated here.
如图7所示,本申请实施例还提供了一种基站,该基站应用于互联网行业。具体请参阅图7,图7为本申请实施例提供的基站的一个结构示意图。一种可能的实现中,该基站可以包括执行上述方法实施例中图3的方法/操作/步骤/动作所一一对应的模块或单元,该单元可以是硬件电路,也可是软件,也可以是硬件电路结合软件实现。一种可能的实现中,该基站700可以包括:接收单元701、处理单元702以及发送单元703。接收单元701可以用于执行如上述方法实施例中接收第一消息的步骤以及接收第二消息的步骤,发送单元703可以用于执行如上述方法实施例中向管理装置发送切换请求消息的步骤以及发送目标NCC的步骤。As shown in Figure 7, an embodiment of the present application also provides a base station, which is applied to the Internet industry. Please refer to Figure 7 for details. Figure 7 is a structural diagram of a base station provided in an embodiment of the present application. In one possible implementation, the base station may include a module or unit that corresponds to the method/operation/step/action of Figure 3 in the above method embodiment. The unit may be a hardware circuit, or software, or a hardware circuit combined with software. In one possible implementation, the base station 700 may include: a receiving unit 701, a processing unit 702, and a sending unit 703. The receiving unit 701 can be used to perform the steps of receiving a first message and receiving a second message in the above method embodiment, and the sending unit 703 can be used to perform the steps of sending a switching request message to a management device and sending a target NCC in the above method embodiment.
在另一种可能的设计中,上述基站700还包括处理单元,其第二消息用于指示当前S1切换准备失败,处理单元702,用于确定第二消息指示的S1切换准备失败为连续第七次的S1切换准备失败,且发送单元703,具体用于基于目标信息向通信装置发送无线资源控制连接重配置消息,该无线资源控制连接重配置消息携带目标NCC值。In another possible design, the base station 700 further includes a processing unit, wherein the second message is used to indicate a current S1 switching preparation failure, the processing unit 702 is used to determine that the S1 switching preparation failure indicated by the second message is the seventh consecutive S1 switching preparation failure, and the sending unit 703 is specifically used to send a wireless resource control connection reconfiguration message to the communication device based on the target information, and the wireless resource control connection reconfiguration message carries a target NCC value.
在本申请实施例中,接收单元701接收通信装置发送的第一消息,该第一消息用于指示通信装置接入第二基站以及管理装置,该第二装置为支持通信装置访问的基站。然后发送单元703基于第一消息向管理装置发送切换请求消息,该切换请求消息用于指示基站发起S1切换。接着,接收单元701接收管理装置发送的携带目标NCC值的第二消息,该目标NCC值由管理装置连续七次执行S1切换准备失败得到,其发送单元703向通信装置发送目标NCC值,使得通信装置基于目标NCC值得到与管理装置相同的密钥。由此可以解决UE侧无法感知NCC值翻转的问题,实时确保UE侧与核心网侧的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In an embodiment of the present application, a receiving unit 701 receives a first message sent by a communication device, and the first message is used to instruct the communication device to access a second base station and a management device, and the second device is a base station that supports access by the communication device. Then, a sending unit 703 sends a switching request message to the management device based on the first message, and the switching request message is used to instruct the base station to initiate an S1 switch. Next, the receiving unit 701 receives a second message carrying a target NCC value sent by the management device, and the target NCC value is obtained by the management device failing to perform S1 switching preparation seven times in a row. Its sending unit 703 sends the target NCC value to the communication device, so that the communication device obtains the same key as the management device based on the target NCC value. This can solve the problem that the UE side cannot perceive the NCC value flip, and ensure that the keys on the UE side and the core network side are the same in real time, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and communication is normal.
在其他可能的设计中,上述接收单元701、处理单元702以及发送单元703可以一一对应的执行上述方法实施例中第一基站各种可能的实现方式中的方法/操作/步骤/动作。In other possible designs, the above-mentioned receiving unit 701, processing unit 702 and sending unit 703 can execute the methods/operations/steps/actions in various possible implementation methods of the first base station in the above-mentioned method embodiment one by one.
在一种可能的设计中,上述目标信息属于协议33.401或协议36.413中的协议字段。 In one possible design, the above target information belongs to the protocol field in protocol 33.401 or protocol 36.413.
在一种可能的设计中,上述接收单元701,在接收由管理装置发送的携带目标NCC值的第二消息之前,还用于接收由所述管理装置发送的携带第二NCC值的第三消息,其第二NCC值对应的S1切换准备失败连续次数小于七次。In one possible design, the above-mentioned receiving unit 701, before receiving the second message carrying the target NCC value sent by the management device, is also used to receive a third message carrying a second NCC value sent by the management device, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
在一种可能的设计中,上述第二消息由管理装置确定S1切换准备失败连续七次后发送。In a possible design, the second message is sent by the management device after determining that S1 switching preparation has failed seven times in a row.
在一种可能的设计中,上述接收单元701,接收由管理装置发送的第一NCC值,第一NCC值对应S1切换准备成功。In a possible design, the receiving unit 701 receives a first NCC value sent by a management device, and the first NCC value corresponds to successful S1 switching preparation.
上述发送单元703,还用于向通信装置发送第一NCC值,使得通信装置基于第一NCC值获取与管理装置相同的密钥。The sending unit 703 is further configured to send the first NCC value to the communication device, so that the communication device obtains the same key as the management device based on the first NCC value.
本申请上述的各种设计的基站的有益效果请参考上述图3、图4以及图5中方法实施例中一一对应的各种实现方式的有益效果,具体此处不再赘述。For the beneficial effects of the various designs of base stations mentioned above in the present application, please refer to the beneficial effects of the various corresponding implementation methods in the method embodiments in Figures 3, 4 and 5 above, and the details will not be repeated here.
需要说明的是,图7对应实施例的基站中各模块/单元之间的信息交互、执行过程等内容,与本申请中图3对应的方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the modules/units in the base station of the embodiment corresponding to Figure 7 are based on the same concept as the method embodiment corresponding to Figure 3 in the present application. For specific contents, please refer to the description in the method embodiment shown in the previous part of the present application, and will not be repeated here.
如图8所示,本申请实施例还提供了一种管理装置,该管理装置应用于互联网行业。具体请参阅图8,图8为本申请实施例提供的管理装置的一个结构示意图。一种可能的实现中,该管理装置可以包括执行上述方法实施例中图3的方法/操作/步骤/动作所一一对应的模块或单元,该单元可以是硬件电路,也可是软件,也可以是硬件电路结合软件实现。一种可能的实现中,该管理装置800可以包括:接收单元801、处理单元802以及发送单元803。接收单元801可以用于执行如上述方法实施例中接收切换请求消息的步骤,处理单元802可以用于基于切换请求消息执行S1切换准备流程的步骤以及确定目标NCC值的步骤,发送单元803可以用于执行如上述方法实施例中向第一基站发送携带目标NCC值的第二消息的步骤。As shown in Figure 8, an embodiment of the present application also provides a management device, which is applied to the Internet industry. Please refer to Figure 8 for details. Figure 8 is a structural diagram of the management device provided by the embodiment of the present application. In one possible implementation, the management device may include a module or unit that corresponds to the method/operation/step/action of Figure 3 in the above method embodiment. The unit may be a hardware circuit, or software, or a hardware circuit combined with software. In one possible implementation, the management device 800 may include: a receiving unit 801, a processing unit 802, and a sending unit 803. The receiving unit 801 can be used to perform the step of receiving a switching request message in the above method embodiment, the processing unit 802 can be used to perform the step of executing the S1 switching preparation process based on the switching request message and the step of determining the target NCC value, and the sending unit 803 can be used to perform the step of sending a second message carrying the target NCC value to the first base station in the above method embodiment.
在本申请实施例中,接收单元801接收第一基站基于第一消息发送的切换请求消息,该切换请求消息用于指示第一基站发起S1切换,其第一消息用于指示通信装置接入第二基站以及管理装置,其中,第一基站为接入通信装置的基站,第二基站为支持通信装置访问的基站。然后处理单元802基于切换请求消息执行S1切换准备,并在S1切换准备失败连续七次的情况下,确定目标NCC值。接着,发送单元803向第一基站发送携带目标NCC值的第二消息,使得第一基站基于第二消息向通信装置发送目标NCC值。由此可以使得第一基站得到即将翻转的目标NCC值,由第一基站向通信装置发送该目标NCC值可以解决UE侧无法感知NCC值翻转的问题,实时确保UE侧与核心网侧的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In an embodiment of the present application, a receiving unit 801 receives a handover request message sent by a first base station based on a first message, wherein the handover request message is used to instruct the first base station to initiate an S1 handover, and the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is a base station for accessing the communication device, and the second base station is a base station that supports access by the communication device. Then, the processing unit 802 performs S1 handover preparation based on the handover request message, and determines the target NCC value when the S1 handover preparation fails seven times in a row. Next, the sending unit 803 sends a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message. In this way, the first base station can obtain the target NCC value that is about to flip, and the first base station sends the target NCC value to the communication device, which can solve the problem that the UE side cannot perceive the flip of the NCC value, and ensures that the keys on the UE side and the core network side are the same in real time, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the handover process is successfully executed and the communication is normal.
在其他可能的设计中,上述接收单元801、处理单元802以及发送单元803可以一一对应的执行上述方法实施例中管理装置各种可能的实现方式中的方法/操作/步骤/动作。In other possible designs, the above-mentioned receiving unit 801, processing unit 802 and sending unit 803 can execute the methods/operations/steps/actions in various possible implementation methods of the management device in the above-mentioned method embodiment one by one.
在一种可能的设计中,上述发送单元803,在第二消息用于指示当前S1切换准备失败的情况下,且在管理装置确定目标NCC值之前,还用于向第一基站发送携带第二NCC值的第三消息,其第二NCC值对应的S1切换准备失败的连续次数小于七次。In one possible design, the above-mentioned sending unit 803, when the second message is used to indicate the current S1 switching preparation failure and before the management device determines the target NCC value, is also used to send a third message carrying a second NCC value to the first base station, and the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven times.
在一种可能的设计中,上述发送单元803,还用于向第一基站发送第一NCC值,使得第一基站向通信装置发送第一NCC值,其第一NCC值对应S1切换准备成功。In a possible design, the sending unit 803 is further used to send a first NCC value to the first base station, so that the first base station sends a first NCC value to the communication device, and the first NCC value corresponds to successful S1 switching preparation.
本申请上述的各种设计的管理装置的有益效果请参考上述图3、图4以及图5中方法实施例中一一对应的各种实现方式的有益效果,具体此处不再赘述。For the beneficial effects of the various designs of the management devices described above in the present application, please refer to the beneficial effects of the various corresponding implementation methods in the method embodiments in Figures 3, 4 and 5 above, and the details will not be repeated here.
需要说明的是,图8对应实施例的管理装置中各模块/单元之间的信息交互、执行过程等内容,与本申请中图3对应的方法实施例基于同一构思,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the modules/units in the management device of the embodiment corresponding to Figure 8 are based on the same concept as the method embodiment corresponding to Figure 3 in the present application. For specific contents, please refer to the description in the method embodiment shown in the previous part of the present application, and will not be repeated here.
另外,在本申请各个实施例中的各功能模块或单元可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块或单元集成在一个模块或单元中。上述集成的模块或单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module or unit in each embodiment of the present application may be integrated into one processor, or may exist physically separately, or two or more modules or units may be integrated into one module or unit. The above-mentioned integrated modules or units may be implemented in the form of hardware or in the form of software functional modules.
接下来介绍本申请实施例提供的另一种通信装置,请参阅图9,图9为本申请实施例提供的通信装 置的另一个结构示意图,通信装置900上可以为图6或图7或图8中对应实施例的通信装置或基站或管理装置,用于实现图6或图7或图8中通信装置或基站或管理装置的功能,具体的,通信装置900由一个或多个服务器实现,通信装置900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)922(例如,一个或一个以上中央处理器)和存储器932,一个或一个以上的存储介质930(例如一个或一个以上存储设备)。其中,存储器932和存储介质930可以是短暂存储或持久存储。存储在存储介质930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对通信装置900中的一系列指令操作。更进一步地,中央处理器922可以设置为与存储介质930通信,在通信装置900上执行存储介质930中的一系列指令操作。Next, another communication device provided in an embodiment of the present application is introduced. Please refer to FIG. 9. FIG. 9 is a communication device provided in an embodiment of the present application. Another structural schematic diagram of the device is shown in FIG. 6 , FIG. 7 , or FIG. 8 , where the communication device 900 may be a communication device, a base station, or a management device of the corresponding embodiment in FIG. 6 , FIG. 7 , or FIG. 8 , and is used to implement the functions of the communication device, base station, or management device in FIG. 6 , FIG. 7 , or FIG. 8 . Specifically, the communication device 900 is implemented by one or more servers, and the communication device 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 922 (for example, one or more central processing units) and a memory 932, and one or more storage media 930 (for example, one or more storage devices). Among them, the memory 932 and the storage medium 930 may be temporary storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the communication device 900. Furthermore, the central processing unit 922 may be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the communication device 900.
通信装置900还可以包括一个或一个以上电源926,一个或一个以上有线或无线网络接口950,和/或,一个或一个以上输入输出接口958。The communication device 900 may also include one or more power supplies 926 , one or more wired or wireless network interfaces 950 , and/or one or more input/output interfaces 958 .
本申请实施例中,中央处理器922,用于执行图3对应实施例中通信装置执行的方法。例如,中央处理器922可以用于:向第一基站发送第一消息,其第一消息用于指示通信装置接入第二基站以及管理装置,其中第一基站为接入所述通信装置的基站,第二基站为支持所述通信装置访问的基站,并接收由第一基站发送的目标NCC值,该目标NCC值由管理装置连续七次执行S1切换准备失败得到,其S1切换准备由管理装置基于第一基站发送的切换请求消息执行,该换请求消息由第一基站基于第一消息发送,再基于目标NCC值获取与管理装置相同的密钥。进由此可以解决UE侧无法感知NCC值翻转的问题,实时确保UE侧与核心网侧的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。In the embodiment of the present application, the central processor 922 is used to execute the method executed by the communication device in the embodiment corresponding to Figure 3. For example, the central processor 922 can be used to: send a first message to the first base station, wherein the first message is used to instruct the communication device to access the second base station and the management device, wherein the first base station is a base station accessing the communication device, and the second base station is a base station supporting the communication device to access, and receive the target NCC value sent by the first base station, the target NCC value is obtained by the management device after seven consecutive failures in performing S1 switching preparation, and the S1 switching preparation is performed by the management device based on the switching request message sent by the first base station, the switching request message is sent by the first base station based on the first message, and then the same key as the management device is obtained based on the target NCC value. In this way, the problem that the UE side cannot perceive the NCC value flip can be solved, and the keys on the UE side and the core network side are the same in real time, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
或者,本申请实施例中,中央处理器922,用于执行图3对应实施例中第一基站执行的方法。例如,中央处理器922可以用于:接收通信装置发送的第一消息,其第一消息用于指示通信装置接入第二基站以及管理装置,然后基于第一消息向管理装置发送切换请求消息,该切换请求消息用于指示第一基站发起S1切换,并接收由管理装置发送的携带目标NCC值的第二消息,该目标NCC值由管理装置连续七次执行S1切换准备失败得到,并且基于第二消息向通信装置发送目标NCC值,使得通信装置基于目标NCC值得到与管理装置相同的密钥。进由此可以解决UE侧无法感知NCC值翻转的问题,实时确保UE侧与核心网侧的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。Alternatively, in an embodiment of the present application, the central processor 922 is used to execute the method executed by the first base station in the embodiment corresponding to Figure 3. For example, the central processor 922 can be used to: receive a first message sent by a communication device, wherein the first message is used to instruct the communication device to access the second base station and the management device, and then send a switching request message to the management device based on the first message, wherein the switching request message is used to instruct the first base station to initiate S1 switching, and receive a second message sent by the management device carrying a target NCC value, wherein the target NCC value is obtained by the management device failing to perform S1 switching preparation seven times in a row, and send the target NCC value to the communication device based on the second message, so that the communication device obtains the same key as the management device based on the target NCC value. In this way, the problem that the UE side cannot perceive the NCC value flip can be solved, and the keys on the UE side and the core network side can be ensured to be the same in real time, thereby ensuring that when the UE side sends an uplink packet, the PDCD integrity check is successful, ensuring that the switching process is successfully executed, and the communication is normal.
或者,本申请实施例中,中央处理器922,用于执行图3对应实施例中管理装置执行的方法。例如,中央处理器922可以用于:接收第一基站基于第一消息发送的切换请求消息,并基于切换请求消息执行S1切换准备,在S1切换准备失败连续七次的情况下,确定目标NCC值,并向第一基站发送携带目标NCC值的第二消息,使得第一基站基于第二消息向通信装置发送目标NCC值。进由此可以解决UE侧无法感知NCC值翻转的问题,实时确保UE侧与核心网侧的密钥相同,从而保证UE侧发送上行包时,PDCD完整性校验成功,保证切换流程执行成功,通信正常。Alternatively, in an embodiment of the present application, the central processor 922 is used to execute the method executed by the management device in the embodiment corresponding to Figure 3. For example, the central processor 922 can be used to: receive a switching request message sent by the first base station based on the first message, and perform S1 switching preparation based on the switching request message, and determine the target NCC value when the S1 switching preparation fails seven times in a row, and send a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message. In this way, the problem that the UE side cannot perceive the flipping of the NCC value can be solved, and the keys of the UE side and the core network side are the same in real time, so as to ensure that when the UE side sends an uplink packet, the PDCD integrity check is successful, and the switching process is successfully executed and the communication is normal.
本申请实施例还提供的另一种通信装置,包括处理器,该处理器与存储器耦合,存储器存储指令,处理器用于执行指令,使得通信设备执行如前述方法实施例所示任一项实现方式。Another communication device provided in an embodiment of the present application includes a processor, which is coupled to a memory, the memory stores instructions, and the processor is used to execute the instructions so that the communication device executes any one of the implementation methods shown in the aforementioned method embodiments.
本申请实施例还提供一种计算机可读存储介质,包括计算机可读指令,当计算机可读指令在计算机上运行时,使得计算机执行如前述方法实施例所示任一项实现方式。An embodiment of the present application also provides a computer-readable storage medium, including computer-readable instructions. When the computer-readable instructions are executed on a computer, the computer executes any one of the implementation methods shown in the aforementioned method embodiments.
本申请实施例还提供的一种计算机程序产品,计算机程序产品包括计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行如前述方法实施例所示任一项实现方式。The embodiments of the present application also provide a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed on a computer, the computer executes any one of the implementation methods shown in the aforementioned method embodiments.
本申请还提供一种芯片或芯片系统,该芯片可包括处理器。该芯片还可包括存储器(或存储模块)和/或收发器(或通信模块),或者,该芯片与存储器(或存储模块)和/或收发器(或通信模块)耦合,其中,收发器(或通信模块)可用于支持该芯片进行有线和/或无线通信,存储器(或存储模块)可用于存储程序或一组指令,该处理器调用该程序或该组指令可用于实现上述方法实施例、方法实施例的任意一种可能的实现方式中由终端或者通信装置执行的操作。该芯片系统可包括以上芯片,也可以包含上述芯片和其他分离器件,如存储器(或存储模块)和/或收发器(或通信模块)。The present application also provides a chip or chip system, which may include a processor. The chip may also include a memory (or storage module) and/or a transceiver (or communication module), or the chip is coupled to a memory (or storage module) and/or a transceiver (or communication module), wherein the transceiver (or communication module) can be used to support the chip for wired and/or wireless communication, and the memory (or storage module) can be used to store a program or a set of instructions, and the processor calls the program or the set of instructions to implement the above method embodiment, the operation performed by the terminal or the communication device in any possible implementation of the method embodiment. The chip system may include the above chip, and may also include the above chip and other separate devices, such as a memory (or storage module) and/or a transceiver (or communication module).
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是 或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。It should be noted that the above-described device embodiments are merely illustrative, and the units described as separate components may be Or they may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,训练设备,或者通信装置等)执行本申请各个实施例的方法。Through the description of the above implementation methods, the technicians in the relevant field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation method in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a training device, or a communication device, etc.) to execute the methods of each embodiment of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、训练设备或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、训练设备或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的训练设备、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state drive,SSD))等。 The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state drive, SSD)), etc.

Claims (27)

  1. 一种接入网络的方法,其特征在于,由基站执行,所述方法包括:A method for accessing a network, characterized in that it is performed by a base station, and the method comprises:
    第一基站接收通信装置发送的第一消息,所述第一消息用于指示所述通信装置接入第二基站以及管理装置,所述第二基站为支持所述通信装置访问的基站;The first base station receives a first message sent by a communication device, where the first message is used to instruct the communication device to access a second base station and a management device, where the second base station is a base station that supports access by the communication device;
    所述第一基站基于所述第一消息向所述管理装置发送切换请求消息,所述切换请求消息用于指示所述第一基站发起S1切换;The first base station sends a handover request message to the management device based on the first message, where the handover request message is used to instruct the first base station to initiate an S1 handover;
    所述第一基站接收由所述管理装置发送的携带目标下一跳链计算NCC值的第二消息,所述目标NCC值由所述管理装置连续七次执行所述S1切换准备失败得到;The first base station receives a second message sent by the management device and carrying a target next hop chain calculation NCC value, where the target NCC value is obtained by the management device executing the S1 handover preparation failure seven times in a row;
    所述第一基站基于所述第二消息向所述通信装置发送所述目标NCC值,使得所述通信装置基于所述目标NCC值得到与所述管理装置相同的密钥。The first base station sends the target NCC value to the communication device based on the second message, so that the communication device obtains the same key as the management device based on the target NCC value.
  2. 根据权利要求1所述的方法,其特征在于,所述第二消息用于指示当前所述S1切换准备失败,所述第一基站向所述通信装置发送所述目标NCC值包括:The method according to claim 1, wherein the second message is used to indicate that the current S1 handover preparation fails, and the first base station sends the target NCC value to the communication device, comprising:
    所述第一基站确定所述第二消息指示的S1切换准备失败为连续第七次的S1切换准备失败;The first base station determines that the S1 handover preparation failure indicated by the second message is the seventh consecutive S1 handover preparation failure;
    所述第一基站基于目标信息向所述通信装置发送无线资源控制连接重配置消息,所述无线资源控制连接重配置消息携带所述目标NCC值。The first base station sends a radio resource control connection reconfiguration message to the communication device based on the target information, and the radio resource control connection reconfiguration message carries the target NCC value.
  3. 根据权利要求2所述的方法,其特征在于,所述目标信息属于协议33.401或协议36.413中的协议字段。The method according to claim 2 is characterized in that the target information belongs to a protocol field in protocol 33.401 or protocol 36.413.
  4. 根据权利要求2或3所述的方法,其特征在于,在所述第一基站接收由所述管理装置发送的携带目标NCC值的第二消息之前,所述方法还包括:The method according to claim 2 or 3 is characterized in that before the first base station receives the second message carrying the target NCC value sent by the management device, the method further comprises:
    所述第一基站接收由所述管理装置发送的携带第二NCC值的第三消息,所述第二NCC值对应的所述S1切换准备失败的连续次数小于七次。The first base station receives a third message carrying a second NCC value sent by the management device, and the second NCC value corresponds to a number of consecutive failures of the S1 handover preparation that is less than seven times.
  5. 根据权利要求1所述的方法,其特征在于,所述第二消息由所述管理装置确定所述S1切换准备失败连续七次后发送。The method according to claim 1 is characterized in that the second message is sent by the management device after determining that the S1 switching preparation has failed seven times in a row.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,在所述第一基站向所述通信装置发送所述目标NCC值之后,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that after the first base station sends the target NCC value to the communication device, the method further comprises:
    所述第一基站接收由所述管理装置发送的第一NCC值,所述第一NCC值对应所述S1切换准备成功;The first base station receives a first NCC value sent by the management device, the first NCC value corresponding to the successful S1 handover preparation;
    所述第一基站向所述通信装置发送所述第一NCC值,使得所述通信装置基于所述第一NCC值获取与所述管理装置相同的密钥。The first base station sends the first NCC value to the communication device, so that the communication device acquires the same key as the management device based on the first NCC value.
  7. 一种接入网络的方法,其特征在于,由管理装置执行,所述方法包括:A method for accessing a network, characterized in that it is performed by a management device, and the method comprises:
    管理装置接收第一基站基于第一消息发送的切换请求消息,所述切换请求消息用于指示所述第一基站发起S1切换,所述第一消息用于指示通信装置接入第二基站以及所述管理装置,所述第一基站为接入所述通信装置的基站,所述第二基站为支持所述通信装置访问的基站;The management device receives a handover request message sent by the first base station based on a first message, wherein the handover request message is used to instruct the first base station to initiate an S1 handover, the first message is used to instruct the communication device to access the second base station and the management device, the first base station is a base station to access the communication device, and the second base station is a base station supporting access by the communication device;
    所述管理装置基于所述切换请求消息执行S1切换准备;The management device performs S1 handover preparation based on the handover request message;
    在所述S1切换准备失败连续七次的情况下,所述管理装置确定目标NCC值;In the case where the S1 handover preparation fails seven times in succession, the management device determines a target NCC value;
    所述管理装置向所述第一基站发送携带所述目标NCC值的第二消息,使得所述第一基站基于所述第二消息向所述通信装置发送所述目标NCC值。The management device sends a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message.
  8. 根据权利要求7所述的方法,其特征在于,所述第二消息用于指示当前所述S1切换准备失败,在所述管理装置确定目标NCC值之前,所述方法还包括:The method according to claim 7, wherein the second message is used to indicate that the current S1 handover preparation fails, and before the management device determines the target NCC value, the method further comprises:
    所述管理装置向所述第一基站发送携带第二NCC值的第三消息,所述第二NCC值对应的所述S1切换准备失败的连续次数小于七次。The management device sends a third message carrying a second NCC value to the first base station, and the second NCC value corresponds to a number of consecutive failures of the S1 handover preparation that is less than seven times.
  9. 根据权利要求7或8所述的方法,其特征在于,在所述管理装置向所述第一基站发送携带所述目标NCC值的第二消息之后,所述方法还包括:The method according to claim 7 or 8, characterized in that after the management device sends a second message carrying the target NCC value to the first base station, the method further comprises:
    所述管理装置向所述第一基站发送所述第一NCC值,使得所述第一基站向所述通信装置发送所述第一NCC值,所述第一NCC值对应所述S1切换准备成功。The management device sends the first NCC value to the first base station, so that the first base station sends the first NCC value to the communication device, and the first NCC value corresponds to the success of the S1 handover preparation.
  10. 一种接入网络的方法,其特征在于,由通信装置执行,所述方法包括: A method for accessing a network, characterized in that it is performed by a communication device, and the method comprises:
    通信装置向第一基站发送第一消息,所述第一消息用于指示所述通信装置接入第二基站以及管理装置,所述第一基站为接入所述通信装置的基站,所述第二基站为支持所述通信装置访问的基站;The communication device sends a first message to the first base station, where the first message is used to instruct the communication device to access the second base station and the management device, where the first base station is a base station accessed by the communication device, and the second base station is a base station supporting access by the communication device;
    所述通信装置接收由所述第一基站发送的目标NCC值,所述目标NCC值由所述管理装置连续七次执行所述S1切换准备失败得到,所述S1切换准备由所述管理装置基于所述第一基站发送的切换请求消息执行,所述切换请求消息由所述第一基站基于所述第一消息发送;The communication device receives a target NCC value sent by the first base station, the target NCC value being obtained by the management device failing to perform the S1 handover preparation seven times in a row, the S1 handover preparation being performed by the management device based on a handover request message sent by the first base station, the handover request message being sent by the first base station based on the first message;
    所述通信装置基于所述目标NCC值获取与所述管理装置相同的密钥。The communication device acquires the same key as that of the management device based on the target NCC value.
  11. 根据权利要求10所述的方法,其特征在于,所述通信装置接收由所述第一基站发送的目标NCC值包括:The method according to claim 10, wherein the communication device receives the target NCC value sent by the first base station comprises:
    所述通信装置接收由所述第一基站发送的无线资源控制连接重配置消息,所述无线资源控制连接重配置消息携带所述目标NCC。The communication device receives a radio resource control connection reconfiguration message sent by the first base station, where the radio resource control connection reconfiguration message carries the target NCC.
  12. 根据权利要求10或11所述的方法,其特征在于,在所述通信装置接收由所述第一基站发送的目标NCC值之后,所述方法还包括:The method according to claim 10 or 11, characterized in that after the communication device receives the target NCC value sent by the first base station, the method further comprises:
    所述通信装置接收由所述第一基站发送的第一NCC值,所述第一NCC值对应所述S1切换准备成功;The communication device receives a first NCC value sent by the first base station, the first NCC value corresponding to the successful S1 handover preparation;
    所述通信装置基于所述第一NCC值获取与所述管理装置相同的密钥。The communication device acquires the same key as that of the management device based on the first NCC value.
  13. 一种基站,其特征在于,包括:A base station, characterized by comprising:
    接收单元,用于接收通信装置发送的第一消息,所述第一消息用于指示所述通信装置接入第二基站与管理装置,所述第二基站为支持所述通信装置访问的基站;A receiving unit, configured to receive a first message sent by a communication device, wherein the first message is used to instruct the communication device to access a second base station and a management device, wherein the second base station is a base station that supports access by the communication device;
    发送单元,用于基于所述第一消息向所述管理装置发送切换请求消息,所述切换请求消息用于指示所述基站发起S1切换;a sending unit, configured to send a handover request message to the management device based on the first message, wherein the handover request message is used to instruct the base station to initiate an S1 handover;
    所述接收单元,还用于接收所述管理装置发送的携带目标NCC值的第二消息,所述目标NCC值由所述管理装置连续七次执行所述S1切换准备失败得到;The receiving unit is further configured to receive a second message carrying a target NCC value sent by the management device, where the target NCC value is obtained by the management device failing to execute the S1 handover preparation for seven consecutive times;
    所述发送单元,还用于向所述通信装置发送所述目标NCC值,使得所述通信装置基于所述目标NCC值得到与所述管理装置相同的密钥。The sending unit is further configured to send the target NCC value to the communication device, so that the communication device obtains the same key as the management device based on the target NCC value.
  14. 根据权利要求13所述的基站,其特征在于,所述第二消息用于指示当前所述S1切换准备失败,所述基站还包括处理单元:The base station according to claim 13, characterized in that the second message is used to indicate that the current S1 handover preparation fails, and the base station further comprises a processing unit:
    所述处理单元,用于确定所述第二消息指示的S1切换准备失败为连续第七次的S1切换准备失败;The processing unit is configured to determine that the S1 handover preparation failure indicated by the second message is the seventh consecutive S1 handover preparation failure;
    所述发送单元,具体用于基于目标信息向所述通信装置发送无线资源控制连接重配置消息,所述无线资源控制连接重配置消息携带所述目标NCC值。The sending unit is specifically configured to send a radio resource control connection reconfiguration message to the communication device based on the target information, wherein the radio resource control connection reconfiguration message carries the target NCC value.
  15. 根据权利要求14所述的基站,其特征在于,所述目标信息属于协议33.401或协议36.413中的协议字段。The base station according to claim 14 is characterized in that the target information belongs to a protocol field in protocol 33.401 or protocol 36.413.
  16. 根据权利要求14或15所述的基站,其特征在于,在所述接收由所述管理装置发送的携带目标NCC值的第二消息之前,The base station according to claim 14 or 15, characterized in that before receiving the second message carrying the target NCC value sent by the management device,
    所述接收单元,还用于接收由所述管理装置发送的携带第二NCC值的第三消息,所述第二NCC值对应的所述S1切换准备失败连续次数小于七次。The receiving unit is further configured to receive a third message carrying a second NCC value sent by the management device, wherein the number of consecutive S1 switching preparation failures corresponding to the second NCC value is less than seven.
  17. 根据权利要求13所述的基站,其特征在于,所述第二消息由所述管理装置确定所述S1切换准备失败连续七次后发送。The base station according to claim 13 is characterized in that the second message is sent by the management device after determining that the S1 switching preparation has failed seven times in a row.
  18. 根据权利要求13-17中任一项所述的基站,其特征在于,所述接收单元,还用于接收由所述管理装置发送的第一NCC值,所述第一NCC值对应所述S1切换准备成功;The base station according to any one of claims 13 to 17, characterized in that the receiving unit is further used to receive a first NCC value sent by the management device, the first NCC value corresponding to the S1 handover preparation being successful;
    所述发送单元,还用于向所述通信装置发送所述第一NCC值,使得所述通信装置基于所述第一NCC值获取与所述管理装置相同的密钥。The sending unit is further configured to send the first NCC value to the communication device, so that the communication device obtains the same key as the management device based on the first NCC value.
  19. 一种管理装置,其特征在于,所述管理装置包括:A management device, characterized in that the management device comprises:
    接收单元,用于接收第一基站基于第一消息发送的切换请求消息,所述切换请求消息用于指示所述第一基站发起S1切换,所述第一消息用于指示通信装置接入第二基站以及所述管理装置,所述第一基站为接入所述通信装置的基站,所述第二基站为支持所述通信装置访问的基站;a receiving unit, configured to receive a handover request message sent by a first base station based on a first message, wherein the handover request message is used to instruct the first base station to initiate an S1 handover, wherein the first message is used to instruct a communication device to access a second base station and the management device, wherein the first base station is a base station for accessing the communication device, and the second base station is a base station supporting access by the communication device;
    处理单元,用于基于所述切换请求消息执行S1切换准备; a processing unit, configured to perform S1 handover preparation based on the handover request message;
    所述处理单元,在所述S1切换准备失败连续七次的情况下,还用于确定目标NCC值;The processing unit is further used to determine a target NCC value when the S1 handover preparation fails seven times in a row;
    发送单元,用于向所述第一基站发送携带所述目标NCC值的第二消息,使得所述第一基站基于所述第二消息向所述通信装置发送所述目标NCC值。A sending unit is used to send a second message carrying the target NCC value to the first base station, so that the first base station sends the target NCC value to the communication device based on the second message.
  20. 根据权利要求19所述的管理装置,其特征在于,所述第二消息用于指示当前所述S1切换准备失败,在所述管理装置确定目标NCC值之前,The management device according to claim 19, wherein the second message is used to indicate that the current S1 handover preparation fails, before the management device determines the target NCC value.
    所述发送单元,还用于向所述第一基站发送携带第二NCC值的第三消息,所述第二NCC值对应的所述S1切换准备失败的连续次数小于七次。The sending unit is further configured to send a third message carrying a second NCC value to the first base station, wherein the number of consecutive S1 handover preparation failures corresponding to the second NCC value is less than seven.
  21. 根据权利要求19或20所述的管理装置,其特征在于,所述发送单元,还用于向所述第一基站发送所述第一NCC值,使得所述第一基站向所述通信装置发送所述第一NCC值,所述第一NCC值对应所述S1切换准备成功。The management device according to claim 19 or 20 is characterized in that the sending unit is further used to send the first NCC value to the first base station, so that the first base station sends the first NCC value to the communication device, and the first NCC value corresponds to the successful S1 switching preparation.
  22. 一种通信装置,其特征在于,所述通信装置包括:A communication device, characterized in that the communication device comprises:
    发送单元,用于向第一基站发送第一消息,所述第一消息用于指示所述通信装置接入第二基站以及管理装置,所述第一基站为接入所述通信装置的基站,所述第二基站为支持所述通信装置访问的基站;A sending unit, configured to send a first message to a first base station, wherein the first message is used to instruct the communication device to access a second base station and a management device, the first base station is a base station accessed by the communication device, and the second base station is a base station supporting access by the communication device;
    接收单元,用于接收由所述第一基站发送的目标NCC值,所述目标NCC值由所述管理装置连续七次执行所述S1切换准备失败得到,所述S1切换准备由所述管理装置基于所述第一基站发送的切换请求消息执行,所述切换请求消息由所述第一基站基于所述第一消息发送;a receiving unit, configured to receive a target NCC value sent by the first base station, the target NCC value being obtained by the management device failing to execute the S1 handover preparation seven times in a row, the S1 handover preparation being executed by the management device based on a handover request message sent by the first base station, the handover request message being sent by the first base station based on the first message;
    处理单元,用于基于所述目标NCC值获取与所述管理装置相同的密钥。A processing unit is used to obtain the same key as the management device based on the target NCC value.
  23. 根据权利要求22所述的通信装置,其特征在于,所述接收单元,具体用于接收由所述第一基站发送的无线资源控制连接重配置消息,所述无线资源控制连接重配置消息携带所述目标NCC。The communication device according to claim 22 is characterized in that the receiving unit is specifically used to receive a wireless resource control connection reconfiguration message sent by the first base station, and the wireless resource control connection reconfiguration message carries the target NCC.
  24. 根据权利要求22或23所述的通信装置,其特征在于,所述接收单元,还用于接收由所述第一基站发送的第一NCC值,所述第一NCC值对应所述S1切换准备成功;The communication device according to claim 22 or 23, characterized in that the receiving unit is further used to receive a first NCC value sent by the first base station, the first NCC value corresponding to the success of the S1 handover preparation;
    所述处理单元,还用于基于所述第一NCC值获取与所述管理装置相同的密钥。The processing unit is further configured to obtain a key identical to that of the management device based on the first NCC value.
  25. 一种通信装置,其特征在于,处理器,所述处理器与存储器耦合,所述存储器存储指令,所述处理器用于执行所述指令,使得所述通信装置执行权利要求1-12中任意一项所述的方法。A communication device, characterized by a processor, wherein the processor is coupled to a memory, the memory stores instructions, and the processor is used to execute the instructions, so that the communication device executes the method described in any one of claims 1 to 12.
  26. 一种计算机可读存储介质,包括计算机可读指令,其特征在于,当所述计算机可读指令在计算机上运行时,使得如权利要求1-12中任一项所述的方法被执行。A computer-readable storage medium comprises computer-readable instructions, wherein when the computer-readable instructions are executed on a computer, the method according to any one of claims 1 to 12 is executed.
  27. 一种计算机程序产品,包括计算机可读指令,其特征在于,当所述计算机可读指令在计算机上运行时,使得如权利要求1-12中任一项所述的方法被执行。 A computer program product comprises computer-readable instructions, wherein when the computer-readable instructions are run on a computer, the method according to any one of claims 1 to 12 is executed.
PCT/CN2023/121400 2022-10-28 2023-09-26 Network accessing method and related device thereof WO2024087986A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211337501.X 2022-10-28
CN202211337501.XA CN117956533A (en) 2022-10-28 2022-10-28 Method for accessing network and related device thereof

Publications (1)

Publication Number Publication Date
WO2024087986A1 true WO2024087986A1 (en) 2024-05-02

Family

ID=90798978

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/121400 WO2024087986A1 (en) 2022-10-28 2023-09-26 Network accessing method and related device thereof

Country Status (2)

Country Link
CN (1) CN117956533A (en)
WO (1) WO2024087986A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913438A (en) * 2018-09-15 2020-03-24 华为技术有限公司 Wireless communication method and device
WO2022001330A1 (en) * 2020-06-29 2022-01-06 中兴通讯股份有限公司 Handover method, network device, user equipment and communication system
WO2022153372A1 (en) * 2021-01-12 2022-07-21 株式会社Nttドコモ Wireless base station and terminal
CN116939735A (en) * 2022-04-01 2023-10-24 华为技术有限公司 Communication method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913438A (en) * 2018-09-15 2020-03-24 华为技术有限公司 Wireless communication method and device
WO2022001330A1 (en) * 2020-06-29 2022-01-06 中兴通讯股份有限公司 Handover method, network device, user equipment and communication system
WO2022153372A1 (en) * 2021-01-12 2022-07-21 株式会社Nttドコモ Wireless base station and terminal
CN116939735A (en) * 2022-04-01 2023-10-24 华为技术有限公司 Communication method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NTTDOCOMO, INC.: "Discussion on ciphering key discrepancy issue for legacy S1-handover", 3GPP TSG-RAN WG2#113-E R2-2100778, 15 January 2021 (2021-01-15), XP051973885 *

Also Published As

Publication number Publication date
CN117956533A (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US20200120552A1 (en) Management method, device, equipment and storage medium for mobile handover
RU2679417C1 (en) Method for distributing the context of a security key, a mobility management object and a basic station
US20200396656A1 (en) Method and apparatus for handover
RU2763519C2 (en) Service transfer method, terminal device and network device
CN110999523A (en) Method and user equipment for reconnecting a radio resource control connection with a radio access network node
WO2022017400A1 (en) Mobility information reporting method and ue
WO2019095840A1 (en) Layer 2 processing method, cu, and du
WO2023124749A1 (en) Cell handover method and apparatus, and network device and storage medium
CN112105092A (en) Method and device for processing data in dual-connection reestablishment
WO2024087986A1 (en) Network accessing method and related device thereof
WO2022089531A1 (en) Communication method and communication apparatus
US10827403B2 (en) Data transmission method, user equipment, base station, and system
WO2021088642A1 (en) Secondary node changing method, master node, second node, and terminal
US20200351721A1 (en) Handover method and apparatus, and computer storage medium
CN114765791A (en) Method, device and system for processing connection failure information
CN112788794A (en) Processing method, base station, device and medium for starting equipment
CN102355652B (en) Method and device for making request of obtaining system information
JP7423818B2 (en) Wireless link failure information reporting method, wireless link failure information acquisition method, terminal and network side equipment
WO2023011612A1 (en) Mobility management method and communication apparatus
WO2023024384A1 (en) Cell handover method and apparatus, configuration method and apparatus, computer-readable storage medium, user equipment, and network device
WO2024061165A1 (en) Communication method and communication apparatus
WO2022252133A1 (en) Method and apparatus for recovery after security activation failure
CN113316200B (en) Condition synchronous reconfiguration method and device
WO2022067578A1 (en) State conversion method and communication apparatus
WO2023217078A1 (en) Communication method and apparatus