WO2024124579A1 - Access anomaly handling method and apparatus - Google Patents

Access anomaly handling method and apparatus Download PDF

Info

Publication number
WO2024124579A1
WO2024124579A1 PCT/CN2022/139775 CN2022139775W WO2024124579A1 WO 2024124579 A1 WO2024124579 A1 WO 2024124579A1 CN 2022139775 W CN2022139775 W CN 2022139775W WO 2024124579 A1 WO2024124579 A1 WO 2024124579A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
registration
counter
registration request
current
Prior art date
Application number
PCT/CN2022/139775
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 北京小米移动软件有限公司
Priority to CN202280006286.7A priority Critical patent/CN116325982A/en
Priority to PCT/CN2022/139775 priority patent/WO2024124579A1/en
Publication of WO2024124579A1 publication Critical patent/WO2024124579A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/06De-registration or detaching

Definitions

  • the present application relates to the field of communication technology, and in particular to a method and device for handling access exceptions.
  • the terminal device (User Equipment, UE) needs to initiate the network access registration process to access the wireless network. Only after successful registration can various data services be carried out through the network.
  • a terminal device initiates a registration process for accessing a network (such as initial registration, registration update, or scheduled registration, etc.)
  • a registration process for accessing a network
  • the terminal device will continuously re-initiate a new registration request until the registration is successful.
  • this retry mechanism can easily cause a deadlock under certain abnormal circumstances, which in turn causes the terminal device to be unable to complete or terminate the registration process.
  • the present application proposes an access exception processing method and device, which can solve the technical problem that the retry mechanism in the above-mentioned prior art can easily cause deadlock under certain abnormal circumstances, thereby causing the terminal device to be unable to complete or terminate the registration process.
  • the first aspect of the present application provides an access exception handling method, which is applied to the terminal device side for execution.
  • the method includes: using a counter to count the number of times that an exception occurs during the current registration process of the terminal device accessing the network, resulting in the re-initiating of a registration request; based on the number of times, determining whether to terminate the current registration process of the terminal device.
  • the method further includes: when the terminal device meets a preset condition, setting the initial value of the counter to 0, wherein meeting the preset condition includes one of the following:
  • the terminal device is in a just-started state
  • the serving cell selected by the terminal device changes;
  • the tracking area (TA) where the terminal device is located changes;
  • the terminal device is registered successfully.
  • the counter is a shared counter; the shared counter is used to count the sum of the number of times the registration request is re-initiated due to different registration anomalies; when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated.
  • the counter is a counter corresponding to a predetermined registration abnormality; when the counter reaches a cumulative number corresponding to the predetermined registration abnormality equal to a preset number threshold corresponding to the predetermined registration abnormality, the current registration process of the terminal device corresponding to the predetermined registration abnormality is terminated.
  • the abnormal registration situation includes at least one of the following:
  • the Non-Access Stratum (NAS) layer of the terminal device receives an indication of a failure to send a registration request message from a lower layer;
  • NAS Non-Access Stratum
  • the NAS layer of the terminal device receives an indication of a Radio Resource Control (RRC) connection suspension from a lower layer;
  • RRC Radio Resource Control
  • the NAS layer of the terminal device receives an indication of a failure in the registration completion message
  • the NAS layer of the terminal device receives an indication that the registration completion message failed, and the current tracking area identifier (Tracking Area ID, TAI) of the terminal device changes.
  • TAI Track Area ID
  • terminating the current registration process of the terminal device includes: controlling the terminal device to no longer initiate a registration request to the network at a current access location, wherein the current access location includes one of the following:
  • the serving cell currently selected by the terminal device is the serving cell currently selected by the terminal device.
  • the TA where the terminal device is currently located is currently located.
  • the method further includes: setting a waiting time and starting timing; after the waiting time ends, controlling the terminal device to re-initiate a registration request and resetting the initial value of the counter to 0.
  • the method also includes: adding the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the cell identifier from the first prohibited list.
  • the method also includes: adding the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the TAI from the second prohibited list.
  • the method also includes: adding the radio access technology (Radio Access Technology, RAT) currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting the access network corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request; if the registration is successful, removing the RAT from the third prohibited list and resetting the initial value of the counter to 0.
  • Radio Access Technology RAT
  • the counter does not count registration anomalies of the emergency call service.
  • the second aspect of the present application provides an access exception processing device, which is applied to the terminal device side, and the device includes: a statistical module, which is configured to use a counter to count the number of times that an exception occurs during the current registration process of the terminal device accessing the network, resulting in the re-initiating of a registration request; a determination module, which is configured to determine whether to terminate the current registration process of the terminal device based on the number of times.
  • the third aspect embodiment of the present application provides a communication device, which includes: a transceiver; a memory; a processor, which is connected to the transceiver and the memory respectively, and is configured to control the wireless signal reception and transmission of the transceiver by executing computer-executable instructions on the memory, and can implement the method of the first aspect embodiment of the present application.
  • the fourth aspect embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores computer executable instructions; after the computer executable instructions are executed by the processor, the method of the first aspect embodiment of the present application can be implemented.
  • the embodiment of the present application provides an access exception processing method and device, which uses a counter to count the number of times a terminal device re-initiates a registration request due to an exception during the current registration process of accessing the network, and then determines whether to terminate the current registration process of the terminal device based on the cumulative number of times obtained by statistics, thereby avoiding deadlock when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
  • FIG1 is a timing diagram of an example of an access registration process according to an embodiment of the present application.
  • FIG2 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application
  • FIG3 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application
  • FIG4 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application
  • FIG5 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application
  • FIG6 is a timing diagram of an example of an access exception processing method according to an embodiment of the present application.
  • FIG7 is a block diagram of an access exception processing device according to an embodiment of the present application.
  • FIG8 is a schematic diagram of the structure of a communication device according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the structure of a chip provided in an embodiment of the present application.
  • first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "at the time of” or "when” or "in response to determination".
  • the terminal equipment needs to initiate the access registration process to access the network. Only after the registration is successful can various data services be carried out through the network. Taking the 5G terminal accessing the 5G core network (5G Core Network, 5GC) and initiating a registration request as an example to illustrate the registration process of network access, as shown in Figure 1.
  • the terminal equipment uses the following process for initial access registration and registration update.
  • Step 1 The terminal device sends a registration request message to the radio access network ((Radio) Access Network, (R)AN).
  • the radio access network ((Radio) Access Network, (R)AN).
  • the registration request message includes access node (AN) parameters, registration type, Subscription Concealed Identifier (SUCI) or 5G-Subscription Concealed Identifier (5G-GUTI) or Permanent Equipment Identifier (PEI), requested slice selection assistance information (NSSAI), last visited TAI (if available), etc.
  • AN access node
  • SUCI Subscription Concealed Identifier
  • 5G-GUTI 5G-Subscription Concealed Identifier
  • PEI Permanent Equipment Identifier
  • NSSAI Permanent Equipment Identifier
  • the registration type indicates whether the terminal device wants to perform initial registration, mobility registration update, periodic registration update or emergency registration, etc.
  • the last visited TAI can be included to help the Access and Mobility Management Function (AMF) network element generate a registration area for the terminal device.
  • AMF Access and Mobility Management Function
  • Step 2 (R)AN selects the AMF network element based on the RAT and the requested NSSAI.
  • the (R)AN If the (R)AN cannot select a suitable AMF network element, it forwards the Registration Request message to the AMF network element that has been configured in the (R)AN.
  • Step 3 (R)AN sends a registration request message for accessing network N2 to the new AMF network element.
  • the registration request message contains parameters of the access network N2, a registration request, etc.
  • the parameters of the access network N2 include the selected public land mobile network identifier (Public Land Mobile Network IDentity, PLMN ID), location information, and a cell identifier related to the service cell selected by the terminal device.
  • PLMN ID Public Land Mobile Network IDentity
  • location information location information
  • cell identifier related to the service cell selected by the terminal device.
  • Step 4 If the AMF network element has changed since the last registration process, the new AMF network element can query the stored Subscription Permanent Identifier (SUPI) and UE context of the terminal device from the old AMF network element.
  • SUPI Subscription Permanent Identifier
  • Step 5 If the terminal device does not provide SUCI and does not retrieve SUCI from the old AMF network element, the new AMF initiates an identity request procedure to the terminal device to request SUCI.
  • the new AMF network element may decide to initiate UE authentication by calling the Authentication Server Function (AUSF) network element.
  • AUSF Authentication Server Function
  • the AMF network element selects the AUSF network element based on the SUPI or SUCI.
  • Step 7 If the AMF network element has changed since the last registration process, or if the terminal device provides a SUPI that does not refer to a valid context in the AMF network element, the AMF network element based on the SUPI selects Unified Data Management (UDM) and registers with the UDM network element.
  • UDM Unified Data Management
  • the AMF network element retrieves the access and mobility subscription data, etc. from the UDM network element.
  • Step 8 The new AMF network element establishes/modifies the access management (AM) policy association with the Policy Control Function (PCF) network element.
  • AMF access management
  • PCF Policy Control Function
  • Step 9 If the list of Protocol Data Unit (PDU) sessions to be activated is included in the registration request in step 1, the AMF network element sends an Nsmf_PDUSSession_UpdateSMContext request to the Session Management Function (SMF) associated with the PDU sessions in order to activate the user plane connections of these PDU sessions.
  • SMF Session Management Function
  • Step 10 The new AMF network element sends a registration acceptance message to the terminal device, indicating that the registration request has been accepted.
  • the Registration Accept message contains the Registration Area, Mobility Restrictions, Allowed NSSAI, Strict Periodic Registration Timer Indication, etc. If the AMF network element allocates a new Registration Area (RA), it shall send the Registration Area to the terminal device. If the Registration Area is not included in the Registration Accept message, the terminal device shall consider the old Registration Area as valid. Mobility Restrictions are included if Mobility Restrictions apply to the UE and the Registration Type is not Emergency Registration.
  • RA Registration Area
  • Step 11 The new AMF network element executes the terminal device policy association establishment.
  • the new AMF network element sends a Npcf_UEPolicyControl create request to the PCF network element.
  • the PCF network element sends a Npcf_UEPolicyControl create response to the new AMF network element.
  • the PCF network element triggers the terminal device configuration update process to update the terminal device policy.
  • Step 12 When the terminal device successfully updates itself after receiving the NSSAI related information, the terminal device sends a registration completion message to the AMF network element.
  • Step 13 The remaining steps of the registration process can refer to 3GPP TS 23.502.
  • the registration process for mobility or periodic registration updates needs to be aborted and immediately re-initiated.
  • the terminal device needs to set the 5GS (5G System) update status to "5U2 NOT UPDATED" [In order to describe the detailed terminal device behavior, the 5GS update (5U) status related to a specific user is determined. 5U2 NOT UPDATED is used to indicate that the last registration or service request attempt failed, such as no response or rejection message was received from the AMF network element].
  • the Registration Complete message fails to be delivered, indicating that the current TAI has changed.
  • the registration process for mobility or periodic registration updates needs to be aborted and a new registration request needs to be initiated immediately.
  • the terminal device needs to set the 5GS update status to "5U2 NOT UPDATED".
  • the Registration Complete message fails to be delivered and indicates that the current TAI has not changed. How to rerun the ongoing process depends on the configuration of the terminal device.
  • the terminal device will continuously re-initiate new registration requests until the registration is successful.
  • this retry mechanism can easily cause deadlock, which in turn causes the terminal device to be unable to complete or terminate the registration process.
  • this embodiment proposes an access exception processing method and device, which can solve the technical problem that the retry mechanism in the prior art can easily cause deadlock under certain abnormal circumstances, thereby causing the terminal device to be unable to complete or terminate the registration process.
  • Fig. 2 shows a schematic flow chart of a method for handling access exceptions according to an embodiment of the present application. As shown in Fig. 2, the method is applied to the terminal device side and may include the following steps.
  • Step 201 Use a counter to count the number of times a registration request is re-initiated due to anomalies in the current registration process of the terminal device accessing the network.
  • the current registration process of accessing the network may be an initial registration process when the terminal device is just turned on, or a registration update process initiated due to a change in the current access location, or a registration process triggered regularly according to a preset period, etc.
  • This embodiment pre-sets a registration attempt counter (registrationattemptcounter), i.e., a counter, and sets a preset number threshold of the counter (for example, it can be set to 5 times, etc.).
  • registrationattemptcounter i.e., a counter
  • preset number threshold of the counter for example, it can be set to 5 times, etc.
  • Step 202 Determine whether to terminate the current registration process of the terminal device according to the cumulative number of times obtained by statistics.
  • the terminal device terminates the current registration process and no longer initiates a registration request to the network (RAN).
  • the access exception handling method provided in this embodiment can avoid deadlock when a registration exception occurs, and can effectively terminate the current registration process of the terminal device if a certain number of registration request retries is reached.
  • Fig. 3 shows a schematic flow diagram of a method for handling access exceptions according to an embodiment of the present application. Based on the embodiment shown in Fig. 2, as shown in Fig. 3, the method is applied to the terminal device side and may include the following steps.
  • Step 301 When the terminal device meets a preset condition, the initial value of the counter is set to 0.
  • satisfying the preset conditions includes one of the following:
  • the terminal device is in the state of just being powered on; the service cell selected by the terminal device changes; the TA where the terminal device is located changes; the terminal device is successfully registered.
  • the terminal device After the terminal device is turned on, if it needs to access the network, it will initiate the initial registration process. At this time, the initial value of the counter is first set to 0, and then the counter is used for statistics, such as the process shown in steps 302 to 303. Or after the terminal device successfully registers this time, the initial value of the counter is reset to 0 for use in the next scheduled registration process.
  • a registration update process is initiated, at which time the initial value of the counter is first set to 0, and then the counter is used for statistics, such as executing the process shown in steps 302 to 303.
  • the initial value of the counter may not be set to 0, and then the cumulative statistics are continued based on the number of times the counter has counted, that is, the process shown in steps 302 to 303 is executed.
  • Step 302 Use a counter to count the number of times a registration request is re-initiated due to anomalies in the current registration process of the terminal device accessing the network.
  • the counter does not count the registration exceptions for the emergency call service. For example, when the registration request initiated by the terminal device to the network is a registration request for the emergency call service, even if an exception occurs, the counter will not be used to count accordingly, that is, the counter will not count the exceptions for emergency registration, so as to improve the success rate of users obtaining emergency call services.
  • Step 303 Determine whether to terminate the current registration process of the terminal device according to the cumulative number of times obtained by statistics.
  • terminating the current registration process of the terminal device may specifically include: controlling the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
  • the service cell currently selected by the terminal device the TA where the terminal device is currently located.
  • the terminal device terminates the current registration process and no longer initiates a registration request to the network (RAN) in the currently selected service cell or the current TA.
  • a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
  • FIG4 shows a flow chart of an access exception handling method according to an embodiment of the present application.
  • the counter may be a shared counter, that is, a counter that uniformly counts different registration exception situations, and the shared counter is used to count the sum of the number of times the registration request is re-initiated due to different registration exception situations; when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated.
  • the method is applied to the terminal device side and may include the following steps.
  • Step 401 Use a shared counter to count the total number of times registration requests are re-initiated due to different registration anomalies.
  • the registration abnormality may include at least one of the following:
  • the NAS layer of the terminal device receives an indication of failure to send a registration request message from the lower layer (the layer below the protocol); 2.
  • the NAS layer of the terminal device receives an indication of RRC connection suspension from the lower layer (such as the AS layer indicating that the RRC connection is suspended due to a cell change); 3.
  • the NAS layer of the terminal device receives an indication of failure to send a registration completion message; 4.
  • the NAS layer of the terminal device receives an indication of failure to send a registration completion message, and the current TAI of the terminal device changes.
  • This embodiment can uniformly count the above-mentioned several abnormal registration situations and set corresponding preset number thresholds. Or it is not limited to these abnormal registration situations, and can also include other abnormal registration situations, and then uniformly count these abnormal registration situations and set corresponding preset number thresholds, such as for the abnormal processing of registration request and registration complete messages, the value of the shared counter needs to be increased by 1.
  • the shared counter in step 401 does not count the registration anomalies of the emergency call service. For example, when the registration request initiated by the terminal device to the network is a registration request for the emergency call service, even if any of the above registration anomalies occurs, the counter will not be used to count accordingly, so as to improve the success rate of the user obtaining the emergency call service.
  • Step 402 When the sum of the times counted by the shared counter is equal to the total preset times threshold, the current registration process of the terminal device is terminated.
  • terminating the current registration process of the terminal device may specifically include: controlling the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
  • the service cell currently selected by the terminal device the TA where the terminal device is currently located.
  • the method of this embodiment may also include: setting a waiting time and starting a timer; after the waiting time ends, controlling the terminal device to re-initiate a registration request and resetting the initial value of the counter to 0.
  • the terminal device when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated, the waiting time is set and the timing is started. After the waiting time is over, the terminal device is controlled to re-initiate the registration request and reset the initial value of the shared counter to 0.
  • the method of this embodiment may also include: adding the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the service cells corresponding to the cell identifiers in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the cell identifier from the first prohibited list.
  • the current registration process of the terminal device is terminated, and the terminal device adds the cell ID of the currently selected service cell to the cell forbidden list. If the cell forbidden list is set, when the service cell currently selected by the terminal device changes, the terminal device re-initiates the registration request, and the counter returns to the initial value 0. At the same time, the cell ID added to the cell forbidden list is removed from the forbidden list.
  • the method of this embodiment may also include: adding the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list, such as prohibiting the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the TAI from the second prohibited list.
  • the terminal device adds the TAI of the current TA to the TAI forbidden list (forbidden TAI list). If a TAI forbidden list is set, when the TA currently in which the terminal device is located changes, the terminal device re-initiates a registration request, and the counter returns to the initial value of 0. At the same time, the TAI added to the forbidden list will be removed from the forbidden list.
  • the method of this embodiment may also include: adding the RAT currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting the access network corresponding to the RAT in the third prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the access networks corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request; if the registration is successful, removing the RAT from the third prohibited list, and resetting the initial value of the counter to 0.
  • the current registration process of the terminal device is terminated, and the terminal device adds the currently selected RAT to the RAT prohibited list. If the RAT prohibited list is set, the terminal device re-executes the RAT selection and initiates a registration request. If the registration is successful, the RAT previously added to the RAT prohibited list is deleted, and the counter is restored to the initial value of 0.
  • a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
  • FIG5 shows a flow chart of an access exception handling method according to an embodiment of the present application.
  • each registration exception situation is provided with a corresponding counter and a preset number threshold, that is, for different registration exception situations, there are corresponding counters and preset number thresholds, such as a counter corresponding to a predetermined registration exception situation; when the counter reaches the cumulative number of times corresponding to the predetermined registration exception situation equal to the preset number threshold corresponding to the predetermined registration exception situation, the current registration process of the terminal device corresponding to the predetermined registration exception situation is terminated.
  • the method is applied to the terminal device side and may include the following steps.
  • Step 501 Utilize the counters corresponding to each registration abnormality to count the number of times the registration request is re-initiated due to each abnormality.
  • the registration abnormality may include at least one of the following:
  • the NAS layer of the terminal device receives an indication of failure to send a registration request message from the lower layer (the layer below the protocol); 2.
  • the NAS layer of the terminal device receives an indication of RRC connection suspension from the lower layer (such as the AS layer indicating that the RRC connection is suspended due to a cell change); 3.
  • the NAS layer of the terminal device receives an indication of failure to send a registration completion message; 4.
  • the NAS layer of the terminal device receives an indication of failure to send a registration completion message, and the current TAI of the terminal device changes.
  • This embodiment can count the above-mentioned several abnormal registration situations respectively and set the preset number thresholds for each of them. Or it is not limited to these abnormal registration situations, and can also include other abnormal registration situations, and then count these different abnormal registration situations respectively and set the preset number thresholds for each of them. For example, the abnormal processing of the registration request and registration complete message needs to be counted respectively, and the value of the counter corresponding to the abnormal registration situation is increased by 1.
  • Step 502 When the counter reaches a cumulative number corresponding to a predetermined registration abnormality equal to a preset number threshold corresponding to the predetermined registration abnormality, the current registration process of the terminal device corresponding to the predetermined registration abnormality is terminated.
  • the predetermined registration abnormality may be any one of the aforementioned registration abnormalities, or may not be limited to these registration abnormalities, but may be any one of the registration abnormalities including these registration abnormalities.
  • Aborting the current registration process of the terminal device corresponding to the predetermined registration abnormality includes: controlling the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
  • the service cell currently selected by the terminal device the TA where the terminal device is currently located.
  • the terminal device terminates the current registration process corresponding to the registration abnormality situation a, and no longer initiates a registration request to the network (RAN) in the currently selected service cell or the current TA.
  • the method of this embodiment may also include: setting a waiting time and starting a timer; after the waiting time ends, controlling the terminal device to re-initiate a registration request and resetting the initial value of the counter to 0.
  • the terminal device terminates the current registration process corresponding to the registration abnormality situation b, sets the waiting time and starts timing. After the waiting time ends, the terminal device is controlled to re-initiate the registration request and reset the initial value of the counter of registration abnormality situation b to 0.
  • the method of this embodiment may also include: adding the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the service cells corresponding to the cell identifiers in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the cell identifier from the first prohibited list.
  • the terminal device terminates the current registration process corresponding to the registration abnormality c, and the terminal device adds the cell ID of the currently selected service cell to the cell prohibited list. If the cell prohibited list is set, when the service cell currently selected by the terminal device changes, the terminal device re-initiates the registration request and restores the counter of the registration abnormality c to the initial value of 0. At the same time, the cell ID added to the cell prohibited list is removed from the prohibited list.
  • the method of this embodiment may also include: adding the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list, such as prohibiting the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the TAI from the second prohibited list.
  • the terminal device terminates the current registration process corresponding to the registration abnormality d, and the terminal device adds the TAI of the current TA to the TAI forbidden list (forbidden TAI list).
  • the TAI forbidden list is set, when the TA currently in which the terminal device is located changes, the terminal device re-initiates the registration request and restores the counter of the registration abnormality d to the initial value of 0. At the same time, the TAI added to the forbidden list is removed from the forbidden list.
  • the method of this embodiment may also include: adding the RAT currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting the access network corresponding to the RAT in the third prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the access networks corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request; if the registration is successful, removing the RAT from the third prohibited list, and resetting the initial value of the counter to 0.
  • the terminal device terminates the current registration process corresponding to the registration abnormality e, and the terminal device adds the currently selected RAT to the RAT prohibited list. If the RAT prohibited list is set, the terminal device re-executes the RAT selection and initiates a registration request. If the registration is successful, the RAT previously added to the RAT prohibited list is deleted, and the counter of the registration abnormality e is restored to the initial value of 0.
  • a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
  • FIG. 6 it is a timing diagram of a method for access processing exception provided in an embodiment of the present application.
  • the method comprises the following steps:
  • Step 601 when the terminal device (UE) is turned on or the service cell (cell) currently selected by the terminal device, or the TA in which the terminal device is currently located changes, the registration attempt counter (registrationattemptcounter) set for the registration request failure (Registration request failure) is initialized with an initial value of 0 and a threshold value of 5.
  • Step 602 The terminal device initiates a registration request to the (R)AN.
  • Step 603 (R)AN selects an AMF network element serving the terminal device according to the registration request of the terminal device.
  • Step 604 (R)AN forwards the registration request to the AMF network element.
  • Step 605 When the terminal device does not receive a registration acceptance or registration failure message within a preset time (given time), and the registration request is not a registration request for an emergency call service, the terminal device increases the value of the counter by 1.
  • Step 606 The terminal device re-initiates the registration request process.
  • Step 607 When the terminal device does not receive a registration acceptance or registration failure message within the preset time (given time), and the registration request is not a registration request for an emergency call service, the terminal device increases the value of the counter by 1. When the value of the counter is equal to 5, the terminal device terminates the registration request process. The terminal device will no longer initiate a registration request in the current access location (the cell currently selected by the terminal device or the TA currently located by the terminal device).
  • the terminal device can reinitialize the counter and re-initiate the access registration process.
  • a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
  • the method provided by the embodiment of the present application is introduced from the perspective of the terminal device.
  • the terminal device may include a hardware structure and 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.
  • a certain function of the above functions can be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.
  • the present application also provides an access exception handling device. Since the access exception handling device provided in the embodiment of the present application corresponds to the access exception handling methods provided in the above-mentioned embodiments, the implementation method of the access exception handling method is also applicable to the access exception handling device provided in this embodiment, and will not be described in detail in this embodiment.
  • FIG7 is a schematic diagram of the structure of an access exception processing device provided in an embodiment of the present application, and the access exception processing device can be used on the terminal device side.
  • the device may include: a statistical module 71, configured to use a counter to count the number of times a registration request is re-initiated due to anomalies occurring during the current registration process of the terminal device accessing the network; a determination module 72, configured to determine whether to terminate the current registration process of the terminal device based on the number of times.
  • a statistical module 71 configured to use a counter to count the number of times a registration request is re-initiated due to anomalies occurring during the current registration process of the terminal device accessing the network
  • a determination module 72 configured to determine whether to terminate the current registration process of the terminal device based on the number of times.
  • the statistics module 71 is further configured to set the initial value of the counter to 0 when the terminal device meets a preset condition, wherein meeting the preset condition includes one of the following:
  • the terminal device is in a just-started state
  • the serving cell selected by the terminal device changes;
  • the TA where the terminal device is located changes
  • the terminal device is registered successfully.
  • the counter is a shared counter; the shared counter is used to count the sum of the number of times registration requests are re-initiated due to different registration anomalies; when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated.
  • the counter is a counter corresponding to a predetermined registration abnormality; when the counter reaches a cumulative number corresponding to the predetermined registration abnormality equal to a preset number threshold corresponding to the predetermined registration abnormality, the current registration process of the terminal device corresponding to the predetermined registration abnormality is terminated.
  • the registration abnormality includes at least one of the following:
  • the NAS layer of the terminal device receives an indication from a lower layer that a registration request message fails to be sent;
  • the NAS layer of the terminal device receives an indication of RRC connection suspension from a lower layer
  • the NAS layer of the terminal device receives an indication of a failure in the registration completion message
  • the NAS layer of the terminal device receives an indication of a registration completion message failure, and the current TAI of the terminal device changes.
  • the determination module 72 is specifically configured to control the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
  • the serving cell currently selected by the terminal device is the serving cell currently selected by the terminal device.
  • the TA where the terminal device is currently located is currently located.
  • the determination module 72 is further configured to set a waiting time and start timing; after the waiting time is over, the terminal device is controlled to re-initiate a registration request and reset the initial value of the counter to 0.
  • the determination module 72 is also configured to add the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, the terminal device is controlled to re-initiate the registration request, the initial value of the counter is reset to 0, and the cell identifier is removed from the first prohibited list.
  • the determination module 72 is also configured to add the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, control the terminal device to re-initiate the registration request, reset the initial value of the counter to 0, and remove the TAI from the second prohibited list.
  • the determination module 72 is also configured to add the RAT currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting an access network corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, control the terminal device to re-initiate a registration request; if the registration is successful, remove the RAT from the third prohibited list and reset the initial value of the counter to 0.
  • the counter does not count registration exceptions for emergency call services.
  • a deadlock situation can be avoided when a registration is abnormal. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
  • FIG 8 is a schematic diagram of the structure of a communication device 1800 provided in this embodiment.
  • the communication device 1800 can be a network device, or a user device, or a chip, a chip system, or a processor that supports the network device to implement the above method, or a chip, a chip system, or a processor that supports the user device to implement the above method.
  • the device can be used to implement the method described in the above method embodiment, and the details can be referred to the description in the above method embodiment.
  • the communication device 1800 may include one or more processors 1801.
  • the processor 1801 may be a general-purpose processor or a dedicated processor, etc.
  • it may be a baseband processor or a central processing unit.
  • the baseband processor may be used to process the communication protocol and communication data
  • the central processing unit may be used to control the communication device (such as a base station, a baseband chip, a terminal device, a terminal device chip, a DU or a CU, etc.), execute a computer program, and process the data of the computer program.
  • the communication device 1800 may further include one or more memories 1802, on which a computer program 1804 may be stored, and the processor 1801 executes the computer program 1804 so that the communication device 1800 performs the method described in the above method embodiment.
  • data may also be stored in the memory 1802.
  • the communication device 1800 and the memory 1802 may be provided separately or integrated together.
  • the communication device 1800 may further include a transceiver 1805 and an antenna 1806.
  • the transceiver 1805 may be referred to as a transceiver unit, a transceiver, or a transceiver circuit, etc., and is used to implement a transceiver function.
  • the transceiver 1805 may include a receiver and a transmitter, the receiver may be referred to as a receiver or a receiving circuit, etc., and is used to implement a receiving function; the transmitter may be referred to as a transmitter or a transmitting circuit, etc., and is used to implement a transmitting function.
  • the communication device 1800 may further include one or more interface circuits 1807.
  • the interface circuit 1807 is used to receive code instructions and transmit them to the processor 1801.
  • the processor 1801 executes the code instructions to enable the communication device 1800 to execute the method described in the above method embodiment.
  • the processor 1801 may include a transceiver for implementing the receiving and sending functions.
  • the transceiver may be a transceiver circuit, an interface, or an interface circuit.
  • the transceiver circuit, interface, or interface circuit for implementing the receiving and sending functions may be separate or integrated.
  • the above-mentioned transceiver circuit, interface, or interface circuit may be used for reading and writing code/data, or the above-mentioned transceiver circuit, interface, or interface circuit may be used for transmitting or delivering signals.
  • the processor 1801 may store a computer program 1803, which runs on the processor 1801 and enables the communication device 1800 to perform the method described in the above method embodiment.
  • the computer program 1803 may be fixed in the processor 1801, in which case the processor 1801 may be implemented by hardware.
  • the communication device 1800 may include a circuit that can implement the functions of sending or receiving or communicating in the aforementioned method embodiment.
  • the processor and transceiver described in the present application can be implemented in an integrated circuit (IC), an analog IC, a radio frequency integrated circuit RFIC, a mixed signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc.
  • the processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (nMetal-oxide-semiconductor, NMOS), P-type metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (bipolar junction transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
  • CMOS complementary metal oxide semiconductor
  • N-type metal oxide semiconductor nMetal-oxide-semiconductor
  • PMOS bipolar junction transistor
  • BJT bipolar junction transistor
  • BiCMOS bipolar CMOS
  • SiGe silicon germanium
  • GaAs gallium arsenide
  • the communication device described in the above embodiments may be a network device or a user device, but the scope of the communication device described in the present application is not limited thereto, and the structure of the communication device may not be limited by FIG. 8.
  • the communication device may be an independent device or may be part of a larger device.
  • the communication device may be:
  • the IC set may also include a storage component for storing data and computer programs;
  • ASIC such as modem
  • the communication device can be a chip or a chip system
  • the communication device can be a chip or a chip system
  • the schematic diagram of the chip structure shown in Figure 9 includes a processor 1901 and an interface 1902.
  • the number of processors 1901 can be one or more, and the number of interfaces 1902 can be multiple.
  • the chip further includes a memory 1903, and the memory 1903 is used to store necessary computer programs and data.
  • the present application also provides a readable storage medium having instructions stored thereon, which implement the functions of any of the above method embodiments when executed by a computer.
  • the present application also provides a computer program product, which implements the functions of any of the above method embodiments when executed by a computer.
  • the computer program product includes one or more computer programs.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer program 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 program can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrated. Available media can be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks (SSD)), etc.
  • At least one in the present application can also be described as one or more, and a plurality can be two, three, four or more, which is not limited in the present application.
  • the technical features in the technical feature are distinguished by “first”, “second”, “third”, “A”, “B”, “C” and “D”, etc., and there is no order of precedence or size between the technical features described by the "first”, “second”, “third”, “A”, “B”, “C” and “D”.
  • machine-readable medium and “computer-readable medium” refer to any computer program product, apparatus, and/or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal.
  • machine-readable signal refers to any signal for providing machine instructions and/or data to a programmable processor.
  • the systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components.
  • the components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
  • a computer system may include clients and servers.
  • Clients and servers are generally remote from each other and usually interact through a communication network.
  • the relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Landscapes

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

Abstract

The present application relates to the technical field of communications. Provided are an access anomaly handling method and apparatus. The method comprises: using a counter to count the number of times a terminal device re-initiates a registration request due to an anomaly during the current registration process of accessing a network; and according to said number of times, determining whether to suspend the current registration process of the terminal device. By means of using the technical solution of the present application, the situation of deadlock can be avoided in the case of abnormal registration, and if a certain number of registration request re-tries is reached, the current registration process of a terminal device can be effectively suspended.

Description

一种接入异常处理方法及装置A method and device for handling access exceptions 技术领域Technical Field
本申请涉及通信技术领域,特别涉及一种接入异常处理方法及装置。The present application relates to the field of communication technology, and in particular to a method and device for handling access exceptions.
背景技术Background technique
终端设备(User Equipment,UE)接入无线网络需要发起网络接入的注册流程,只有在注册成功之后,才能通过网络开展各种数据业务。The terminal device (User Equipment, UE) needs to initiate the network access registration process to access the wireless network. Only after successful registration can various data services be carried out through the network.
目前,在终端设备发起接入网络的注册过程(如初始注册、或注册更新、或定时注册等)中,如果出现异常,终端设备会不断地重新发起新的注册请求,直至注册成功。然而,这种重试机制在某些异常情况下很容易引发死锁,进而导致终端设备无法完成或中止注册过程。At present, when a terminal device initiates a registration process for accessing a network (such as initial registration, registration update, or scheduled registration, etc.), if an exception occurs, the terminal device will continuously re-initiate a new registration request until the registration is successful. However, this retry mechanism can easily cause a deadlock under certain abnormal circumstances, which in turn causes the terminal device to be unable to complete or terminate the registration process.
发明内容Summary of the invention
本申请提出了一种接入异常处理方法及装置,可解决上述现有技术中的这种重试机制在某些异常情况下很容易引发死锁,进而导致终端设备无法完成或中止注册过程的技术问题。The present application proposes an access exception processing method and device, which can solve the technical problem that the retry mechanism in the above-mentioned prior art can easily cause deadlock under certain abnormal circumstances, thereby causing the terminal device to be unable to complete or terminate the registration process.
本申请的第一方面实施例提供了一种接入异常处理方法,应用于终端设备侧执行,所述方法包括:利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数;根据所述次数,确定是否中止所述终端设备的所述当前注册过程。The first aspect of the present application provides an access exception handling method, which is applied to the terminal device side for execution. The method includes: using a counter to count the number of times that an exception occurs during the current registration process of the terminal device accessing the network, resulting in the re-initiating of a registration request; based on the number of times, determining whether to terminate the current registration process of the terminal device.
在本申请的一些实施例中,所述方法还包括:当所述终端设备满足预设条件时,将所述计数器的初始值设置为0,其中,满足所述预设条件包括以下其中一种:In some embodiments of the present application, the method further includes: when the terminal device meets a preset condition, setting the initial value of the counter to 0, wherein meeting the preset condition includes one of the following:
所述终端设备处于刚开机状态;The terminal device is in a just-started state;
所述终端设备选择的服务小区发生变化;The serving cell selected by the terminal device changes;
所述终端设备所处的跟踪区(Tracking Area,TA)发生变化;The tracking area (TA) where the terminal device is located changes;
所述终端设备注册成功。The terminal device is registered successfully.
在本申请的一些实施例中,所述计数器为共享计数器;所述共享计数器用于统计不同注册异常情况导致重新发起注册请求的次数之和;以在所述共享计数器统计的所述次数之和等于总预设次数阈值时,中止所述终端设备的所述当前注册过程。In some embodiments of the present application, the counter is a shared counter; the shared counter is used to count the sum of the number of times the registration request is re-initiated due to different registration anomalies; when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated.
在本申请的一些实施例中,所述计数器为对应于预定注册异常情况的计数器;以在所述计数器达到该预定注册异常情况对应的累计次数等于与所述预定注册异常情况对应的预设次数阈值时,中止所述终端设备的与所述预定注册异常情况对应的所述当前注册过程。In some embodiments of the present application, the counter is a counter corresponding to a predetermined registration abnormality; when the counter reaches a cumulative number corresponding to the predetermined registration abnormality equal to a preset number threshold corresponding to the predetermined registration abnormality, the current registration process of the terminal device corresponding to the predetermined registration abnormality is terminated.
在本申请的一些实施例中,所述注册异常情况至少包括以下之一:In some embodiments of the present application, the abnormal registration situation includes at least one of the following:
所述终端设备的非接入层(Non-Access Stratum,NAS)层从下层接收到注册请求消息发送失败的指示;The Non-Access Stratum (NAS) layer of the terminal device receives an indication of a failure to send a registration request message from a lower layer;
所述终端设备的NAS层从下层接收到无线资源控制(Radio Resource Control,RRC)连接挂起的指示;The NAS layer of the terminal device receives an indication of a Radio Resource Control (RRC) connection suspension from a lower layer;
所述终端设备的NAS层接收到注册完成消息失败的指示;The NAS layer of the terminal device receives an indication of a failure in the registration completion message;
所述终端设备的NAS层接收到注册完成消息失败的指示,并且所述终端设备的当前跟踪区标识(Tracking Area ID,TAI)发生变化。The NAS layer of the terminal device receives an indication that the registration completion message failed, and the current tracking area identifier (Tracking Area ID, TAI) of the terminal device changes.
在本申请的一些实施例中,所述中止所述终端设备的所述当前注册过程,包括:控制所述终端设备在当前接入位置不再向网络发起注册请求,其中,所述当前接入位置包括以下其中一种:In some embodiments of the present application, terminating the current registration process of the terminal device includes: controlling the terminal device to no longer initiate a registration request to the network at a current access location, wherein the current access location includes one of the following:
所述终端设备当前选择的服务小区;The serving cell currently selected by the terminal device;
所述终端设备当前所处的TA。The TA where the terminal device is currently located.
在本申请的一些实施例中,所述方法还包括:设置等待时长,并开始计时;在所述等待时长结束后,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0。In some embodiments of the present application, the method further includes: setting a waiting time and starting timing; after the waiting time ends, controlling the terminal device to re-initiate a registration request and resetting the initial value of the counter to 0.
在本申请的一些实施例中,所述方法还包括:将所述终端设备当前选择的服务小区的小区标识,添加到第一禁止列表中,以禁止所述终端设备选择与所述第一禁止列表中的小区标识所对应的服务小区发起注册请求;当所述终端设备当前选择的服务小区发生变化时,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0,以及将所述小区标识从所述第一禁止列表中移除。In some embodiments of the present application, the method also includes: adding the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the cell identifier from the first prohibited list.
在本申请的一些实施例中,所述方法还包括:将所述终端设备当前所处的TA的TAI,添加到第二禁止列表中,以禁止所述终端设备在处于与所述第二禁止列表中的TAI所对应的TA时发起注册请求;当所述终端设备当前所处的TA发生变化时,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0,以及将所述TAI从所述第二禁止列表中移除。In some embodiments of the present application, the method also includes: adding the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the TAI from the second prohibited list.
在本申请的一些实施例中,所述方法还包括:将所述终端设备当前选择的无线接入技术(Radio Access Technology,RAT)添加到第三禁止列表中,以禁止所述终端设备选择与所述第三禁止列表中的RAT所对应的接入网络发起注册请求;当所述终端设备当前选择的RAT发生变化时,控制所述终端设备重新发起注册请求;若注册成功,则将所述RAT从所述第三禁止列表中移除,并将所述计数器的初始值重置为0。In some embodiments of the present application, the method also includes: adding the radio access technology (Radio Access Technology, RAT) currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting the access network corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request; if the registration is successful, removing the RAT from the third prohibited list and resetting the initial value of the counter to 0.
在本申请的一些实施例中,所述计数器不会针对紧急呼叫业务的注册异常进行计数。In some embodiments of the present application, the counter does not count registration anomalies of the emergency call service.
本申请的第二方面实施例提供了一种接入异常处理装置,应用于终端设备侧,所述装置包括:统计模块,被配置为利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数;确定模块,被配置为根据所述次数,确定是否中止所述终端设备的所述当前注册过程。The second aspect of the present application provides an access exception processing device, which is applied to the terminal device side, and the device includes: a statistical module, which is configured to use a counter to count the number of times that an exception occurs during the current registration process of the terminal device accessing the network, resulting in the re-initiating of a registration request; a determination module, which is configured to determine whether to terminate the current registration process of the terminal device based on the number of times.
本申请的第三方面实施例提供了一种通信设备,该通信设备包括:收发器;存储器;处理器,分别与收发器及存储器连接,配置为通过执行存储器上的计算机可执行指令,控制收发器的无线信号收发,并能够实现如本申请第一方面实施例的方法。The third aspect embodiment of the present application provides a communication device, which includes: a transceiver; a memory; a processor, which is connected to the transceiver and the memory respectively, and is configured to control the wireless signal reception and transmission of the transceiver by executing computer-executable instructions on the memory, and can implement the method of the first aspect embodiment of the present application.
本申请的第四方面实施例提供了一种计算机存储介质,其中,计算机存储介质存储有计算机可执行指令;计算机可执行指令被处理器执行后,能够实现如本申请第一方面实施例的方法。The fourth aspect embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores computer executable instructions; after the computer executable instructions are executed by the processor, the method of the first aspect embodiment of the present application can be implemented.
本申请实施例提供了一种接入异常处理方法及装置,利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数,然后根据统计得到的累计次数,确定是否中止终端设备的当前注册过程,进而可在注册异常时避免出现死锁的情况,若达到一定注册请求重试次数,能够有效中止终端设备的当前注册过程。The embodiment of the present application provides an access exception processing method and device, which uses a counter to count the number of times a terminal device re-initiates a registration request due to an exception during the current registration process of accessing the network, and then determines whether to terminate the current registration process of the terminal device based on the cumulative number of times obtained by statistics, thereby avoiding deadlock when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为根据本申请实施例的一种接入注册流程示例的时序图;FIG1 is a timing diagram of an example of an access registration process according to an embodiment of the present application;
图2为根据本申请实施例的一种接入异常处理方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application;
图3为根据本申请实施例的一种接入异常处理方法的流程示意图;FIG3 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application;
图4为根据本申请实施例的一种接入异常处理方法的流程示意图;FIG4 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application;
图5为根据本申请实施例的一种接入异常处理方法的流程示意图;FIG5 is a schematic diagram of a flow chart of a method for handling access exceptions according to an embodiment of the present application;
图6为根据本申请实施例的一种接入异常处理方法示例的时序图;FIG6 is a timing diagram of an example of an access exception processing method according to an embodiment of the present application;
图7为根据本申请实施例的一种接入异常处理装置的框图;FIG7 is a block diagram of an access exception processing device according to an embodiment of the present application;
图8为根据本申请实施例的一种通信装置的结构示意图;FIG8 is a schematic diagram of the structure of a communication device according to an embodiment of the present application;
图9为本申请实施例提供的一种芯片的结构示意图。FIG. 9 is a schematic diagram of the structure of a chip provided in an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limitations on the present application. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments may be combined with each other.
在本申请实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请实施例。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本申请实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the embodiments of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
终端设备(UE)接入网络需要发起接入注册流程,只有在注册成功之后,才能通过网络开展各种数据业务。以5G终端接入5G核心网络(5G Core Network,5GC),发起注册请求为例说明网络接入的注册流程,如图1所示。终端设备使用如下流程进行初始接入注册和注册更新。The terminal equipment (UE) needs to initiate the access registration process to access the network. Only after the registration is successful can various data services be carried out through the network. Taking the 5G terminal accessing the 5G core network (5G Core Network, 5GC) and initiating a registration request as an example to illustrate the registration process of network access, as shown in Figure 1. The terminal equipment uses the following process for initial access registration and registration update.
步骤1、终端设备向无线接入网络((Radio)Access Network,(R)AN)发送注册请求消息。Step 1. The terminal device sends a registration request message to the radio access network ((Radio) Access Network, (R)AN).
注册请求消息包括接入节点(AN)参数、注册类型、用户签约隐藏标识(Subscription Concealed Identifier,SUCI)或5G-全球唯一临时用户标识(5G-Subscription Concealed Identifier,5G-GUTI)或永久设备标识(Permanent Equipment Identifier,PEI)、请求的切片选择辅助信息(Network Slice Selection Assistance Information,NSSAI)、上次访问的TAI(如果可用)等。注册类型指示终端设备是否希望 执行初始注册、移动性注册更新、定期注册更新或紧急注册等。可以包括最后访问的TAI,以帮助接入和移动性管理功能(Access and Mobility Management Function,AMF)网元为终端设备生成注册区域。The registration request message includes access node (AN) parameters, registration type, Subscription Concealed Identifier (SUCI) or 5G-Subscription Concealed Identifier (5G-GUTI) or Permanent Equipment Identifier (PEI), requested slice selection assistance information (NSSAI), last visited TAI (if available), etc. The registration type indicates whether the terminal device wants to perform initial registration, mobility registration update, periodic registration update or emergency registration, etc. The last visited TAI can be included to help the Access and Mobility Management Function (AMF) network element generate a registration area for the terminal device.
步骤2、(R)AN基于RAT和请求的NSSAI选择AMF网元。Step 2: (R)AN selects the AMF network element based on the RAT and the requested NSSAI.
如果(R)AN无法选择合适的AMF网元,则它将注册请求消息转发给已在(R)AN中配置的AMF网元。If the (R)AN cannot select a suitable AMF network element, it forwards the Registration Request message to the AMF network element that has been configured in the (R)AN.
步骤3、(R)AN向新AMF(New AMF)网元发送接入网络N2的注册请求消息。Step 3. (R)AN sends a registration request message for accessing network N2 to the new AMF network element.
注册请求消息包含接入网络N2的参数、注册请求等。接入网络N2的参数包括所选公共陆地移动网络标识(Public Land Mobile Network IDentity,PLMN ID)、位置信息和与终端设备选择的服务小区相关的小区标识。The registration request message contains parameters of the access network N2, a registration request, etc. The parameters of the access network N2 include the selected public land mobile network identifier (Public Land Mobile Network IDentity, PLMN ID), location information, and a cell identifier related to the service cell selected by the terminal device.
步骤4、如果自上次注册过程以来AMF网元已经改变,则新AMF网元可以从旧AMF(Old AMF)网元查询存储的终端设备的用户签约永久标识(Subscription Permanent Identifier,SUPI)和UE上下文。Step 4. If the AMF network element has changed since the last registration process, the new AMF network element can query the stored Subscription Permanent Identifier (SUPI) and UE context of the terminal device from the old AMF network element.
步骤5、如果终端设备未提供SUCI,也未从旧AMF网元检索到SUCI,则新AMF向终端设备发起身份请求过程以请求SUCI。Step 5: If the terminal device does not provide SUCI and does not retrieve SUCI from the old AMF network element, the new AMF initiates an identity request procedure to the terminal device to request SUCI.
步骤6、新AMF网元可以决定通过调用认证服务器功能(Authentication Server Function,AUSF)网元来发起UE认证。Step 6. The new AMF network element may decide to initiate UE authentication by calling the Authentication Server Function (AUSF) network element.
AMF网元根据SUPI或SUCI,选择AUSF网元。The AMF network element selects the AUSF network element based on the SUPI or SUCI.
步骤7、如果自上次注册过程以来AMF网元已经改变,或者如果终端设备提供了不参考AMF网元中有效上下文的SUPI,则基于SUPI的AMF网元选择统一数据管理(Unified Data Management,UDM)并向UDM网元注册。Step 7. If the AMF network element has changed since the last registration process, or if the terminal device provides a SUPI that does not refer to a valid context in the AMF network element, the AMF network element based on the SUPI selects Unified Data Management (UDM) and registers with the UDM network element.
如果AMF网元没有终端设备的订阅数据,则AMF网元从UDM网元检索接入和移动性订阅数据等。If the AMF network element does not have the subscription data of the terminal device, the AMF network element retrieves the access and mobility subscription data, etc. from the UDM network element.
步骤8、新AMF网元对策略控制功能(Policy Control Function,PCF)网元执行接入管理(AM)策略关联建立/修改。Step 8. The new AMF network element establishes/modifies the access management (AM) policy association with the Policy Control Function (PCF) network element.
步骤9、如果要激活的协议数据单元(Protocol Data Unit,PDU)会话的列表包含在步骤1中的注册请求中,则AMF网元向与PDU会话相关联的会话管理功能(Session Management Function,SMF)发送Nsmf_PDUSSession_UpdateSMContext request,以便激活这些PDU会话的用户平面连接。Step 9. If the list of Protocol Data Unit (PDU) sessions to be activated is included in the registration request in step 1, the AMF network element sends an Nsmf_PDUSSession_UpdateSMContext request to the Session Management Function (SMF) associated with the PDU sessions in order to activate the user plane connections of these PDU sessions.
步骤10、新AMF网元向终端设备发送注册接受消息,指示注册请求已被接受。Step 10: The new AMF network element sends a registration acceptance message to the terminal device, indicating that the registration request has been accepted.
注册接受消息包含注册区域、移动性限制、允许的NSSAI、严格定期的注册定时器指示等。如果AMF网元分配了新的注册区域(Registration Area,RA),则它应将注册区域发送给终端设备。如果注册接受消息中不包括注册区域,则终端设备应将旧注册区域视为有效。如果移动性限制适用于UE并且注册类型不是紧急注册,则包括移动性限制。The Registration Accept message contains the Registration Area, Mobility Restrictions, Allowed NSSAI, Strict Periodic Registration Timer Indication, etc. If the AMF network element allocates a new Registration Area (RA), it shall send the Registration Area to the terminal device. If the Registration Area is not included in the Registration Accept message, the terminal device shall consider the old Registration Area as valid. Mobility Restrictions are included if Mobility Restrictions apply to the UE and the Registration Type is not Emergency Registration.
步骤11、新AMF网元执行终端设备策略关联建立。Step 11: The new AMF network element executes the terminal device policy association establishment.
对于紧急呼叫业务的注册,将跳过此步骤。新AMF网元向PCF网元发送Npcf_UEPolicyControl创建请求。PCF网元向新AMF网元发送Npcf_UEPolicyControl创建响应。PCF网元触发终端设备配置更新过程以更新终端设备策略。For registration of emergency call service, this step will be skipped. The new AMF network element sends a Npcf_UEPolicyControl create request to the PCF network element. The PCF network element sends a Npcf_UEPolicyControl create response to the new AMF network element. The PCF network element triggers the terminal device configuration update process to update the terminal device policy.
步骤12、当终端设备在接收到NSSAI相关信息后成功更新自身时,终端设备向AMF网元发送注册完成消息。Step 12: When the terminal device successfully updates itself after receiving the NSSAI related information, the terminal device sends a registration completion message to the AMF network element.
步骤13、注册过程的其余步骤可以参考3GPP TS 23.502。Step 13. The remaining steps of the registration process can refer to 3GPP TS 23.502.
针对上述如图1所示的网络接入的注册过程中遇到的异常及处理如下:The exceptions and solutions encountered during the registration process of the network access shown in Figure 1 are as follows:
A、如果从接入层(Access Stratum,AS)向NAS层发送注册请求(Registration Request)消息失败,或者AS层指示由于服务小区变化,导致RRC连接挂起。A. If the Registration Request message sent from the Access Stratum (AS) to the NAS layer fails, or the AS layer indicates that the RRC connection is suspended due to a change in the serving cell.
针对移动性或者定期注册更新的注册流程需要中止并立即重新发起。终端设备需要将5GS(5G System)更新状态设置为“5U2 NOT UPDATED”[为了描述详细的终端设备行为,确定了与特定用户相关的5GS更新(5U)状态,5U2 NOT UPDATED用于说明上次注册或服务请求尝试处理失败,例如没有从AMF网元收到响应或拒绝消息]。The registration process for mobility or periodic registration updates needs to be aborted and immediately re-initiated. The terminal device needs to set the 5GS (5G System) update status to "5U2 NOT UPDATED" [In order to describe the detailed terminal device behavior, the 5GS update (5U) status related to a specific user is determined. 5U2 NOT UPDATED is used to indicate that the last registration or service request attempt failed, such as no response or rejection message was received from the AMF network element].
B、注册完成(Registration Complete)消息传递失败,并指示当前的TAI(current TAI)发生变化。B. The Registration Complete message fails to be delivered, indicating that the current TAI has changed.
如果current TAI发生变化,且变化后的current TAI不包含在终端设备的TAI列表(list)中,针对移动性或定期注册更新的注册流程需要中止,且立即重新发起新的注册请求。终端设备需要将5GS更新状态设置为“5U2 NOT UPDATED”。If the current TAI changes and the changed current TAI is not included in the TAI list of the terminal device, the registration process for mobility or periodic registration updates needs to be aborted and a new registration request needs to be initiated immediately. The terminal device needs to set the 5GS update status to "5U2 NOT UPDATED".
如果current TAI发生变化,且变化后的current TAI仍然包含在终端设备的TAI list中,如何重新运行正在进行的流程取决于终端设备的配置。If the current TAI changes and the changed current TAI is still included in the TAI list of the terminal device, how to rerun the ongoing process depends on the configuration of the terminal device.
C、Registration Complete消息传递失败,并指示current TAI没有发生变化,如何重新运行正在进行的流程取决于终端设备的配置。C. The Registration Complete message fails to be delivered and indicates that the current TAI has not changed. How to rerun the ongoing process depends on the configuration of the terminal device.
在上述针对注册过程(如初始注册、或注册更新、或定时注册等)的异常处理过程(如上述A、B、C三种注册异常情况等)中,终端设备会不断地重新发起新的注册请求,直至注册成功。然而,这种重试机制很容易引发死锁,进而导致终端设备无法完成或中止注册过程。In the above exception handling process (such as the above three registration exceptions A, B, and C) for the registration process (such as initial registration, registration update, or scheduled registration, etc.), the terminal device will continuously re-initiate new registration requests until the registration is successful. However, this retry mechanism can easily cause deadlock, which in turn causes the terminal device to be unable to complete or terminate the registration process.
为此,本实施例提出了一种接入异常处理方法及装置,可解决现有技术中的这种重试机制在某些异常情况下很容易引发死锁,进而导致终端设备无法完成或中止注册过程的技术问题。To this end, this embodiment proposes an access exception processing method and device, which can solve the technical problem that the retry mechanism in the prior art can easily cause deadlock under certain abnormal circumstances, thereby causing the terminal device to be unable to complete or terminate the registration process.
下面结合附图对本申请所提供的接入异常处理方法及装置进行详细地介绍。The access exception processing method and device provided by the present application are described in detail below with reference to the accompanying drawings.
图2示出了根据本申请实施例的一种接入异常处理方法的流程示意图。如图2所示,该方法应用于终端设备侧执行,可以包括以下步骤。Fig. 2 shows a schematic flow chart of a method for handling access exceptions according to an embodiment of the present application. As shown in Fig. 2, the method is applied to the terminal device side and may include the following steps.
步骤201、利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数。Step 201: Use a counter to count the number of times a registration request is re-initiated due to anomalies in the current registration process of the terminal device accessing the network.
接入网络的当前注册过程可为终端设备刚开机时的初始注册过程、或者是由于当前接入位置发生变化而发起的注册更新过程、或者是按照预设周期定时触发的注册过程等。The current registration process of accessing the network may be an initial registration process when the terminal device is just turned on, or a registration update process initiated due to a change in the current access location, or a registration process triggered regularly according to a preset period, etc.
本实施例预先设置注册尝试的计数器(registrationattemptcounter),即计数器,并设置该计数器的预设次数阈值(例如,可设置为5次等)。终端设备在接入网络的当前注册过程中,如果出现异常导致重新发起一次注册请求,计数器会相应累计加1。This embodiment pre-sets a registration attempt counter (registrationattemptcounter), i.e., a counter, and sets a preset number threshold of the counter (for example, it can be set to 5 times, etc.). During the current registration process of the terminal device accessing the network, if an abnormality occurs and causes a registration request to be re-initiated, the counter will be accumulated by 1 accordingly.
步骤202、根据统计得到的累计次数,确定是否中止终端设备的当前注册过程。Step 202: Determine whether to terminate the current registration process of the terminal device according to the cumulative number of times obtained by statistics.
例如,当统计得到的累计次数等于预设次数阈值时,终端设备中止当前注册过程,不再向网络(RAN)发起注册请求。For example, when the cumulative number of times obtained by statistics is equal to a preset number threshold, the terminal device terminates the current registration process and no longer initiates a registration request to the network (RAN).
由上可见,本实施例提供的接入异常处理方法,可在注册异常时避免出现死锁的情况,若达到一定注册请求重试次数,能够有效中止终端设备的当前注册过程。As can be seen from the above, the access exception handling method provided in this embodiment can avoid deadlock when a registration exception occurs, and can effectively terminate the current registration process of the terminal device if a certain number of registration request retries is reached.
图3示出了根据本申请实施例的一种接入异常处理方法的流程示意图。基于图2所示实施例,如图3所示,该方法应用于终端设备侧执行,可以包括以下步骤。Fig. 3 shows a schematic flow diagram of a method for handling access exceptions according to an embodiment of the present application. Based on the embodiment shown in Fig. 2, as shown in Fig. 3, the method is applied to the terminal device side and may include the following steps.
步骤301、当终端设备满足预设条件时,将计数器的初始值设置为0。Step 301: When the terminal device meets a preset condition, the initial value of the counter is set to 0.
其中,满足预设条件包括以下其中一种:Among them, satisfying the preset conditions includes one of the following:
终端设备处于刚开机状态;终端设备选择的服务小区发生变化;终端设备所处的TA发生变化;终端设备注册成功。The terminal device is in the state of just being powered on; the service cell selected by the terminal device changes; the TA where the terminal device is located changes; the terminal device is successfully registered.
例如,在终端设备刚开机后,如果需要接入网络,会发起初始注册过程,此时首先将计数器的初始值设置为0,然后利用该计数器进行统计,如执行步骤302至303所示的过程。或者在终端设备本次注册成功后,将计数器的初始值重置为0,以便下一次定时注册过程中使用。For example, after the terminal device is turned on, if it needs to access the network, it will initiate the initial registration process. At this time, the initial value of the counter is first set to 0, and then the counter is used for statistics, such as the process shown in steps 302 to 303. Or after the terminal device successfully registers this time, the initial value of the counter is reset to 0 for use in the next scheduled registration process.
再例如,在终端设备选择的服务小区发生变化或者终端设备所处的TA发生变化时,会发起注册更新过程,此时首先将计数器的初始值设置为0,然后利用该计数器进行统计,如执行步骤302至303所示的过程。需要说明的是,根据实际需求,在终端设备选择的服务小区发生变化或者终端设备所处的TA发生变化时,也可不将计数器的初始值设置为0,然后在计数器已统计的次数的基础上继续累计统计,即执行步骤302至303所示的过程。For another example, when the service cell selected by the terminal device changes or the TA in which the terminal device is located changes, a registration update process is initiated, at which time the initial value of the counter is first set to 0, and then the counter is used for statistics, such as executing the process shown in steps 302 to 303. It should be noted that, according to actual needs, when the service cell selected by the terminal device changes or the TA in which the terminal device is located changes, the initial value of the counter may not be set to 0, and then the cumulative statistics are continued based on the number of times the counter has counted, that is, the process shown in steps 302 to 303 is executed.
步骤302、利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数。Step 302: Use a counter to count the number of times a registration request is re-initiated due to anomalies in the current registration process of the terminal device accessing the network.
在一些示例中,计数器不会针对紧急呼叫业务的注册异常进行计数。例如,终端设备向网络发起的注册请求是针对紧急呼叫业务的注册请求时,即便出现异常,也不会利用计数器进行相应计数,即计数器不会针对emergency registration的异常进行计数,以提高用户获取紧急呼叫业务的成功率。In some examples, the counter does not count the registration exceptions for the emergency call service. For example, when the registration request initiated by the terminal device to the network is a registration request for the emergency call service, even if an exception occurs, the counter will not be used to count accordingly, that is, the counter will not count the exceptions for emergency registration, so as to improve the success rate of users obtaining emergency call services.
步骤303、根据统计得到的累计次数,确定是否中止终端设备的当前注册过程。Step 303: Determine whether to terminate the current registration process of the terminal device according to the cumulative number of times obtained by statistics.
在一些示例中,中止终端设备的当前注册过程,具体可包括:控制终端设备在当前接入位置不再向网络发起注册请求,其中,当前接入位置包括以下其中一种:In some examples, terminating the current registration process of the terminal device may specifically include: controlling the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
终端设备当前选择的服务小区;终端设备当前所处的TA。The service cell currently selected by the terminal device; the TA where the terminal device is currently located.
例如,当统计得到的累计次数等于预设次数阈值时,终端设备中止当前注册过程,在当前选择的服务小区或当前所处的TA不再向网络(RAN)发起注册请求。For example, when the cumulative number of times obtained by statistics is equal to a preset number threshold, the terminal device terminates the current registration process and no longer initiates a registration request to the network (RAN) in the currently selected service cell or the current TA.
通过应用本实施例提供的接入异常处理方法,可在注册异常时避免出现死锁的情况,若达到一定注册请求重试次数,能够有效中止终端设备的当前注册过程。By applying the access exception processing method provided in this embodiment, a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
图4示出了根据本申请实施例的一种接入异常处理方法的流程示意图。基于图2所示实施例,作为一种可选方式,计数器可为共享计数器,即针对不同的注册异常情况统一计数的计数器,该共享计数器用于统计不同注册异常情况导致重新发起注册请求的次数之和;以在共享计数器统计的次数之和等于总预设次数阈值时,中止终端设备的当前注册过程,具体示例可如图4所示,该方法应用于终端设备侧执行,可以包括以下步骤。FIG4 shows a flow chart of an access exception handling method according to an embodiment of the present application. Based on the embodiment shown in FIG2, as an optional method, the counter may be a shared counter, that is, a counter that uniformly counts different registration exception situations, and the shared counter is used to count the sum of the number of times the registration request is re-initiated due to different registration exception situations; when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated. A specific example can be shown in FIG4. The method is applied to the terminal device side and may include the following steps.
步骤401、利用共享计数器,统计不同注册异常情况导致重新发起注册请求的次数之和。Step 401: Use a shared counter to count the total number of times registration requests are re-initiated due to different registration anomalies.
在一些示例中,注册异常情况可至少包括以下之一:In some examples, the registration abnormality may include at least one of the following:
1、终端设备的NAS层从下层(协议下一层)接收到注册请求消息发送失败的指示;2、终端设备的NAS层从下层接收到RRC连接挂起的指示(如AS层指示由于小区变化,导致RRC连接挂起);3、终端设备的NAS层接收到注册完成消息失败的指示;4、终端设备的NAS层接收到注册完成消息失败的指示,并且终端设备的当前TAI发生变化。1. The NAS layer of the terminal device receives an indication of failure to send a registration request message from the lower layer (the layer below the protocol); 2. The NAS layer of the terminal device receives an indication of RRC connection suspension from the lower layer (such as the AS layer indicating that the RRC connection is suspended due to a cell change); 3. The NAS layer of the terminal device receives an indication of failure to send a registration completion message; 4. The NAS layer of the terminal device receives an indication of failure to send a registration completion message, and the current TAI of the terminal device changes.
本实施例可针对上述几种注册异常情况进行统一计数,并设置相应的预设次数阈值。或者不局限于这几种注册异常情况,还可包括其他注册异常情况,然后针对这些注册异常情况进行统一计数,并设置相应的预设次数阈值,如对于注册请求(registration request),注册完成(registration complete)消息的处理异常都需要对共享计数器的值进行增1。This embodiment can uniformly count the above-mentioned several abnormal registration situations and set corresponding preset number thresholds. Or it is not limited to these abnormal registration situations, and can also include other abnormal registration situations, and then uniformly count these abnormal registration situations and set corresponding preset number thresholds, such as for the abnormal processing of registration request and registration complete messages, the value of the shared counter needs to be increased by 1.
在一些示例中,步骤401中的共享计数器不会针对紧急呼叫业务的注册异常进行计数。例如,终端设备向网络发起的注册请求是针对紧急呼叫业务的注册请求时,即便出现上述任一种注册异常情况,也不会利用计数器进行相应计数,以提高用户获取紧急呼叫业务的成功率。In some examples, the shared counter in step 401 does not count the registration anomalies of the emergency call service. For example, when the registration request initiated by the terminal device to the network is a registration request for the emergency call service, even if any of the above registration anomalies occurs, the counter will not be used to count accordingly, so as to improve the success rate of the user obtaining the emergency call service.
步骤402、在共享计数器统计得到的次数之和等于总预设次数阈值时,中止终端设备的所述当前注册过程。Step 402: When the sum of the times counted by the shared counter is equal to the total preset times threshold, the current registration process of the terminal device is terminated.
在一些示例中,中止终端设备的当前注册过程,具体可包括:控制终端设备在当前接入位置不再向网络发起注册请求,其中,当前接入位置包括以下其中一种:In some examples, terminating the current registration process of the terminal device may specifically include: controlling the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
终端设备当前选择的服务小区;终端设备当前所处的TA。The service cell currently selected by the terminal device; the TA where the terminal device is currently located.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:设置等待时长,并开始计时;在等待时长结束后,控制终端设备重新发起注册请求,并将计数器的初始值重置为0。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: setting a waiting time and starting a timer; after the waiting time ends, controlling the terminal device to re-initiate a registration request and resetting the initial value of the counter to 0.
例如,当共享计数器统计得到的次数之和等于总预设次数阈值时,中止终端设备的当前注册过程,并设置等待时长并开始计时,在等待时长结束后,控制终端设备重新发起注册请求,并将共享计数器的初始值重置为0。For example, when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated, the waiting time is set and the timing is started. After the waiting time is over, the terminal device is controlled to re-initiate the registration request and reset the initial value of the shared counter to 0.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:将终端设备当前选择的服务小区的小区标识,添加到第一禁止列表中,以禁止终端设备选择与第一禁止列表中的小区标识所对应的服务小区发起注册请求,如针对第一禁止列表中的小区标识所对应的服务小区,禁止终端设备选择这些服务小区发起注册请求;当终端设备当前选择的服务小区发生变化时,控制终端设备重新发起注册请求,并将计数器的初始值重置为0,以及将小区标识从第一禁止列表中移除。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: adding the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the service cells corresponding to the cell identifiers in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the cell identifier from the first prohibited list.
例如,当共享计数器统计得到的次数之和等于总预设次数阈值时,中止终端设备的当前注册过程,并且终端设备将当前选择的服务小区的小区标识(cell ID)加入cell禁止列表。如果设置了cell禁止列表,当终端设备当前选择的服务小区发生变化时,终端设备重新发起注册请求,计数器恢复初始值0。同时将加入cell禁止列表的cellID,从该禁止列表中移除。For example, when the sum of the times counted by the shared counter is equal to the total preset times threshold, the current registration process of the terminal device is terminated, and the terminal device adds the cell ID of the currently selected service cell to the cell forbidden list. If the cell forbidden list is set, when the service cell currently selected by the terminal device changes, the terminal device re-initiates the registration request, and the counter returns to the initial value 0. At the same time, the cell ID added to the cell forbidden list is removed from the forbidden list.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:将终端设备当前所处的TA的TAI,添加到第二禁止列表中,以禁止终端设备在处于与第二禁止列表中的TAI所对应的TA时发起注册请求,如针对第二禁止列表中的TAI所对应的TA,禁止终端设备在处于这些TA时发起注册请求;当终端设备当前所处的TA发生变化时,控制终端设备重新发起注册请求,并将计数器的初始值重置为0,以及将TAI从第二禁止列表中移除。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: adding the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list, such as prohibiting the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the TAI from the second prohibited list.
例如,当共享计数器统计得到的次数之和等于总预设次数阈值时,中止终端设备的当前注册过程,并且终端设备将当前所处的TA的TAI加入TAI禁止列表(forbidden TAI list)。如果设置了TAI禁止 列表,当终端设备当前所处的TA发生变化时,终端设备重新发起注册请求,计数器恢复初始值0。同时将加入禁止列表的TAI,从该禁止列表中移除。For example, when the sum of the times counted by the shared counter is equal to the total preset times threshold, the current registration process of the terminal device is terminated, and the terminal device adds the TAI of the current TA to the TAI forbidden list (forbidden TAI list). If a TAI forbidden list is set, when the TA currently in which the terminal device is located changes, the terminal device re-initiates a registration request, and the counter returns to the initial value of 0. At the same time, the TAI added to the forbidden list will be removed from the forbidden list.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:将终端设备当前选择的RAT,添加到第三禁止列表中,以禁止终端设备选择与第三禁止列表中RAT所对应的接入网络发起注册请求,如针对第三禁止列表中RAT所对应的接入网络,禁止终端设备选择这些接入网络发起注册请求;当终端设备当前选择的RAT发生变化时,控制终端设备重新发起注册请求;若注册成功,则将RAT从第三禁止列表中移除,并将计数器的初始值重置为0。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: adding the RAT currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting the access network corresponding to the RAT in the third prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the access networks corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request; if the registration is successful, removing the RAT from the third prohibited list, and resetting the initial value of the counter to 0.
例如,当共享计数器统计得到的次数之和等于总预设次数阈值时,中止终端设备的当前注册过程,并且终端设备将当前选择的RAT加入RAT禁止列表,如果设置了RAT禁止列表,终端设备重新执行RAT选择,发起注册请求,如果注册成功,将RAT禁止列表中之前添加的RAT删除,计数器恢复初始值0。For example, when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated, and the terminal device adds the currently selected RAT to the RAT prohibited list. If the RAT prohibited list is set, the terminal device re-executes the RAT selection and initiates a registration request. If the registration is successful, the RAT previously added to the RAT prohibited list is deleted, and the counter is restored to the initial value of 0.
通过应用本实施例提供的接入异常处理方法,可在注册异常时避免出现死锁的情况,若达到一定注册请求重试次数,能够有效中止终端设备的当前注册过程。By applying the access exception processing method provided in this embodiment, a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
图5示出了根据本申请实施例的一种接入异常处理方法的流程示意图。基于图2所示实施例,作为一种可选方式,每种注册异常情况设置有各自对应的计数器和预设次数阈值,即针对不同的注册异常情况,分别有各自对应的计数器和预设次数阈值,如计数器为对应于预定注册异常情况的计数器;以在计数器达到该预定注册异常情况对应的累计次数等于与该预定注册异常情况对应的预设次数阈值时,中止终端设备的与该预定注册异常情况对应的当前注册过程,具体如图5所示,该方法应用于终端设备侧执行,可以包括以下步骤。FIG5 shows a flow chart of an access exception handling method according to an embodiment of the present application. Based on the embodiment shown in FIG2, as an optional method, each registration exception situation is provided with a corresponding counter and a preset number threshold, that is, for different registration exception situations, there are corresponding counters and preset number thresholds, such as a counter corresponding to a predetermined registration exception situation; when the counter reaches the cumulative number of times corresponding to the predetermined registration exception situation equal to the preset number threshold corresponding to the predetermined registration exception situation, the current registration process of the terminal device corresponding to the predetermined registration exception situation is terminated. Specifically, as shown in FIG5, the method is applied to the terminal device side and may include the following steps.
步骤501、利用每种注册异常情况各自对应的计数器,分别统计每种异常情况导致重新发起注册请求的次数。Step 501: Utilize the counters corresponding to each registration abnormality to count the number of times the registration request is re-initiated due to each abnormality.
在一些示例中,注册异常情况可至少包括以下之一:In some examples, the registration abnormality may include at least one of the following:
1、终端设备的NAS层从下层(协议下一层)接收到注册请求消息发送失败的指示;2、终端设备的NAS层从下层接收到RRC连接挂起的指示(如AS层指示由于小区变化,导致RRC连接挂起);3、终端设备的NAS层接收到注册完成消息失败的指示;4、终端设备的NAS层接收到注册完成消息失败的指示,并且终端设备的当前TAI发生变化。1. The NAS layer of the terminal device receives an indication of failure to send a registration request message from the lower layer (the layer below the protocol); 2. The NAS layer of the terminal device receives an indication of RRC connection suspension from the lower layer (such as the AS layer indicating that the RRC connection is suspended due to a cell change); 3. The NAS layer of the terminal device receives an indication of failure to send a registration completion message; 4. The NAS layer of the terminal device receives an indication of failure to send a registration completion message, and the current TAI of the terminal device changes.
本实施例可针对上述几种注册异常情况分别进行计数,并设置各自相应的预设次数阈值。或者不局限于这几种注册异常情况,还可包括其他注册异常情况,然后针对这些不同的注册异常情况分别进行计数,并设置各自相应的预设次数阈值,如对于注册请求(registration request),注册完成(registration complete)消息的处理异常都需要分别进行计数,对出现注册异常情况相对应的计数器的值进行增1。This embodiment can count the above-mentioned several abnormal registration situations respectively and set the preset number thresholds for each of them. Or it is not limited to these abnormal registration situations, and can also include other abnormal registration situations, and then count these different abnormal registration situations respectively and set the preset number thresholds for each of them. For example, the abnormal processing of the registration request and registration complete message needs to be counted respectively, and the value of the counter corresponding to the abnormal registration situation is increased by 1.
步骤502、在计数器达到预定注册异常情况对应的累计次数等于与该预定注册异常情况对应的预设次数阈值时,中止终端设备的与该预定注册异常情况对应的当前注册过程。Step 502: When the counter reaches a cumulative number corresponding to a predetermined registration abnormality equal to a preset number threshold corresponding to the predetermined registration abnormality, the current registration process of the terminal device corresponding to the predetermined registration abnormality is terminated.
预定注册异常情况可为上述几种注册异常情况中的任一种情况,或者不局限于这几种注册异常情况,在包括这几种注册异常情况在内的注册异常情况中的任一种情况。The predetermined registration abnormality may be any one of the aforementioned registration abnormalities, or may not be limited to these registration abnormalities, but may be any one of the registration abnormalities including these registration abnormalities.
中止终端设备的与该预定注册异常情况对应的当前注册过程,包括:控制终端设备在当前接入位置不再向网络发起注册请求,其中,该当前接入位置包括以下其中一种:Aborting the current registration process of the terminal device corresponding to the predetermined registration abnormality includes: controlling the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
终端设备当前选择的服务小区;终端设备当前所处的TA。The service cell currently selected by the terminal device; the TA where the terminal device is currently located.
例如,当针对注册异常情况a统计得到的累计次数等于与该注册异常情况a对应的预设次数阈值时,终端设备中止与注册异常情况a对应的当前注册过程,在当前选择的服务小区或当前所处的TA不再向网络(RAN)发起注册请求。For example, when the cumulative number of times counted for registration abnormality situation a is equal to the preset number threshold corresponding to the registration abnormality situation a, the terminal device terminates the current registration process corresponding to the registration abnormality situation a, and no longer initiates a registration request to the network (RAN) in the currently selected service cell or the current TA.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:设置等待时长,并开始计时;在等待时长结束后,控制终端设备重新发起注册请求,并将计数器的初始值重置为0。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: setting a waiting time and starting a timer; after the waiting time ends, controlling the terminal device to re-initiate a registration request and resetting the initial value of the counter to 0.
例如,当针对注册异常情况b统计得到的累计次数等于与该注册异常情况b对应的预设次数阈值时,终端设备中止与注册异常情况b对应的当前注册过程,并设置等待时长并开始计时,在等待时长结束后,控制终端设备重新发起注册请求,并将注册异常情况b的计数器的初始值重置为0。For example, when the cumulative number of times counted for registration abnormality situation b is equal to the preset number threshold corresponding to the registration abnormality situation b, the terminal device terminates the current registration process corresponding to the registration abnormality situation b, sets the waiting time and starts timing. After the waiting time ends, the terminal device is controlled to re-initiate the registration request and reset the initial value of the counter of registration abnormality situation b to 0.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:将终端设备当前选择的服务小区的小区标识,添加到第一禁止列表中,以禁止终端设备选择与第一禁止列表中的小区标识所对应的服务小区发起注册请求,如针对第一禁止列表中的小区标识所对应的服务小区,禁止终端设备选择这些服务小区发起注册请求;当终端设备当前选择的服务小区发生变化时,控制终端设备重新发起注册请求,并将计数器的初始值重置为0,以及将小区标识从第一禁止列表中移除。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: adding the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the service cells corresponding to the cell identifiers in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the cell identifier from the first prohibited list.
例如,当针对注册异常情况c统计得到的累计次数等于与该注册异常情况c对应的预设次数阈值时,终端设备中止与注册异常情况c对应的当前注册过程,并且终端设备将当前选择的服务小区的小区标识(cell ID)加入cell禁止列表。如果设置了cell禁止列表,当终端设备当前选择的服务小区发生变化时,终端设备重新发起注册请求,并将注册异常情况c的计数器恢复初始值0。同时将加入cell禁止列表的cellID,从该禁止列表中移除。For example, when the cumulative number of times counted for registration abnormality c is equal to the preset number threshold corresponding to the registration abnormality c, the terminal device terminates the current registration process corresponding to the registration abnormality c, and the terminal device adds the cell ID of the currently selected service cell to the cell prohibited list. If the cell prohibited list is set, when the service cell currently selected by the terminal device changes, the terminal device re-initiates the registration request and restores the counter of the registration abnormality c to the initial value of 0. At the same time, the cell ID added to the cell prohibited list is removed from the prohibited list.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:将终端设备当前所处的TA的TAI,添加到第二禁止列表中,以禁止终端设备在处于与第二禁止列表中的TAI所对应的TA时发起注册请求,如针对第二禁止列表中的TAI所对应的TA,禁止终端设备在处于这些TA时发起注册请求;当终端设备当前所处的TA发生变化时,控制终端设备重新发起注册请求,并将计数器的初始值重置为0,以及将TAI从第二禁止列表中移除。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: adding the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list, such as prohibiting the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, controlling the terminal device to re-initiate the registration request, resetting the initial value of the counter to 0, and removing the TAI from the second prohibited list.
例如,当针对注册异常情况d统计得到的累计次数等于与该注册异常情况d对应的预设次数阈值时,终端设备中止与注册异常情况d对应的当前注册过程,并且终端设备将当前所处的TA的TAI加入TAI禁止列表(forbidden TAI list)。如果设置了TAI禁止列表,当终端设备当前所处的TA发生变化时,终端设备重新发起注册请求,并将注册异常情况d的计数器恢复初始值0。同时将加入禁止列表的TAI,从该禁止列表中移除。For example, when the cumulative number of times counted for registration abnormality d is equal to the preset number threshold corresponding to the registration abnormality d, the terminal device terminates the current registration process corresponding to the registration abnormality d, and the terminal device adds the TAI of the current TA to the TAI forbidden list (forbidden TAI list). If the TAI forbidden list is set, when the TA currently in which the terminal device is located changes, the terminal device re-initiates the registration request and restores the counter of the registration abnormality d to the initial value of 0. At the same time, the TAI added to the forbidden list is removed from the forbidden list.
在一些示例中,在中止终端设备的当前注册过程之后,本实施例方法还可包括:将终端设备当前选择的RAT添加到第三禁止列表中,以禁止终端设备选择与第三禁止列表中RAT所对应的接入网络发起注册请求,如针对第三禁止列表中RAT所对应的接入网络,禁止终端设备选择这些接入网络发起注册请求;当终端设备当前选择的RAT发生变化时,控制终端设备重新发起注册请求;若注册成功,则将RAT从第三禁止列表中移除,并将计数器的初始值重置为0。In some examples, after terminating the current registration process of the terminal device, the method of this embodiment may also include: adding the RAT currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting the access network corresponding to the RAT in the third prohibited list to initiate a registration request, such as prohibiting the terminal device from selecting the access networks corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, controlling the terminal device to re-initiate the registration request; if the registration is successful, removing the RAT from the third prohibited list, and resetting the initial value of the counter to 0.
例如,当针对注册异常情况e统计得到的累计次数等于与该注册异常情况e对应的预设次数阈值时,终端设备中止与注册异常情况e对应的当前注册过程,并且终端设备将当前选择的RAT加入RAT禁止 列表,如果设置了RAT禁止列表,终端设备重新执行RAT选择,发起注册请求,如果注册成功,将RAT禁止列表中之前添加的RAT删除,将该注册异常情况e的计数器恢复初始值0。For example, when the cumulative number of times counted for registration abnormality e is equal to the preset number threshold corresponding to the registration abnormality e, the terminal device terminates the current registration process corresponding to the registration abnormality e, and the terminal device adds the currently selected RAT to the RAT prohibited list. If the RAT prohibited list is set, the terminal device re-executes the RAT selection and initiates a registration request. If the registration is successful, the RAT previously added to the RAT prohibited list is deleted, and the counter of the registration abnormality e is restored to the initial value of 0.
通过应用本实施例提供的接入异常处理方法,可在注册异常时避免出现死锁的情况,若达到一定注册请求重试次数,能够有效中止终端设备的当前注册过程。By applying the access exception processing method provided in this embodiment, a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
如图6所示,为本申请实施例提供的一种接入处理异常方法的时序示意图。该方法包括如下步骤:As shown in Figure 6, it is a timing diagram of a method for access processing exception provided in an embodiment of the present application. The method comprises the following steps:
步骤601、终端设备(UE)开机时或者终端设备当前选择的服务小区(cell),或者终端设备当前所处的TA发生变化时,针对注册请求失败(Registration request failure)设置的注册尝试的计数器(registrationattemptcounter)进行初始化,初始值为0,并设置阈值为5。Step 601, when the terminal device (UE) is turned on or the service cell (cell) currently selected by the terminal device, or the TA in which the terminal device is currently located changes, the registration attempt counter (registrationattemptcounter) set for the registration request failure (Registration request failure) is initialized with an initial value of 0 and a threshold value of 5.
步骤602、终端设备向(R)AN发起注册请求。Step 602: The terminal device initiates a registration request to the (R)AN.
步骤603、(R)AN根据终端设备的注册请求,选择为终端设备服务的AMF网元。Step 603: (R)AN selects an AMF network element serving the terminal device according to the registration request of the terminal device.
步骤604、(R)AN向AMF网元转发该注册请求。Step 604: (R)AN forwards the registration request to the AMF network element.
步骤605、当终端设备在预设时间(给定时间)内未收到注册接受或注册失败消息,且该注册请求不是针对紧急呼叫业务的注册请求时,终端设备将该计数器的值增加1。Step 605: When the terminal device does not receive a registration acceptance or registration failure message within a preset time (given time), and the registration request is not a registration request for an emergency call service, the terminal device increases the value of the counter by 1.
步骤606、终端设备重新发起注册请求过程。Step 606: The terminal device re-initiates the registration request process.
步骤607、当终端设备在预设时间(给定时间)内未收到注册接受或注册失败消息,且注册请求不是针对紧急呼叫业务的注册请求时,终端设备将计数器的值再增加1。当计数器的值等于5时,终端设备中止注册请求过程。终端设备将在当前接入位置(终端设备当前选择的cell或者终端设备当前所处的TA内)不再发起注册请求。Step 607: When the terminal device does not receive a registration acceptance or registration failure message within the preset time (given time), and the registration request is not a registration request for an emergency call service, the terminal device increases the value of the counter by 1. When the value of the counter is equal to 5, the terminal device terminates the registration request process. The terminal device will no longer initiate a registration request in the current access location (the cell currently selected by the terminal device or the TA currently located by the terminal device).
当终端设备当前选择的cell发生改变,或者终端设备当前的TAI发生变化时,终端设备可对计数器进行重新初始化。终端设备可以重新发起接入注册过程。When the cell currently selected by the terminal device changes, or the current TAI of the terminal device changes, the terminal device can reinitialize the counter and re-initiate the access registration process.
通过应用本实施例提供的接入异常处理方法,可在注册异常时避免出现死锁的情况,若达到一定注册请求重试次数,能够有效中止终端设备的当前注册过程。By applying the access exception processing method provided in this embodiment, a deadlock situation can be avoided when a registration exception occurs. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
上述本申请提供的实施例中,从终端设备的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,终端设备可以包括硬件结构、软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能可以以硬件结构、软件模块、或者硬件结构加软件模块的方式来执行。In the above embodiments provided by the present application, the method provided by the embodiment of the present application is introduced from the perspective of the terminal device. In order to implement the various functions in the method provided by the above embodiments of the present application, the terminal device may include a hardware structure and 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. A certain function of the above functions can be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.
与上述几种实施例提供的接入异常处理方法相对应,本申请还提供一种接入异常处理装置,由于本申请实施例提供的接入异常处理装置与上述几种实施例提供的接入异常处理方法相对应,因此接入异常处理方法的实施方式也适用于本实施例提供的接入异常处理装置,在本实施例中不再详细描述。Corresponding to the access exception handling methods provided in the above-mentioned embodiments, the present application also provides an access exception handling device. Since the access exception handling device provided in the embodiment of the present application corresponds to the access exception handling methods provided in the above-mentioned embodiments, the implementation method of the access exception handling method is also applicable to the access exception handling device provided in this embodiment, and will not be described in detail in this embodiment.
图7为本申请实施例提供的一种接入异常处理装置的结构示意图,该接入异常处理装置可用于终端设备侧。FIG7 is a schematic diagram of the structure of an access exception processing device provided in an embodiment of the present application, and the access exception processing device can be used on the terminal device side.
如图7所示,该装置可以包括:统计模块71,被配置为利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数;确定模块72,被配置为根据所述次数,确定是否中止所述终端设备的所述当前注册过程。As shown in Figure 7, the device may include: a statistical module 71, configured to use a counter to count the number of times a registration request is re-initiated due to anomalies occurring during the current registration process of the terminal device accessing the network; a determination module 72, configured to determine whether to terminate the current registration process of the terminal device based on the number of times.
在一些实施例中,统计模块71,还被配置为当所述终端设备满足预设条件时,将所述计数器的初始值设置为0,其中,满足所述预设条件包括以下其中一种:In some embodiments, the statistics module 71 is further configured to set the initial value of the counter to 0 when the terminal device meets a preset condition, wherein meeting the preset condition includes one of the following:
所述终端设备处于刚开机状态;The terminal device is in a just-started state;
所述终端设备选择的服务小区发生变化;The serving cell selected by the terminal device changes;
所述终端设备所处的TA发生变化;The TA where the terminal device is located changes;
所述终端设备注册成功。The terminal device is registered successfully.
在一些实施例中,所述计数器为共享计数器;所述共享计数器用于统计不同注册异常情况导致重新发起注册请求的次数之和;以在所述共享计数器统计的所述次数之和等于总预设次数阈值时,中止所述终端设备的所述当前注册过程。In some embodiments, the counter is a shared counter; the shared counter is used to count the sum of the number of times registration requests are re-initiated due to different registration anomalies; when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated.
在一些实施例中,所述计数器为对应于预定注册异常情况的计数器;以在所述计数器达到该预定注册异常情况对应的累计次数等于与所述预定注册异常情况对应的预设次数阈值时,中止所述终端设备的与所述预定注册异常情况对应的所述当前注册过程。In some embodiments, the counter is a counter corresponding to a predetermined registration abnormality; when the counter reaches a cumulative number corresponding to the predetermined registration abnormality equal to a preset number threshold corresponding to the predetermined registration abnormality, the current registration process of the terminal device corresponding to the predetermined registration abnormality is terminated.
在一些实施例中,所述注册异常情况至少包括以下之一:In some embodiments, the registration abnormality includes at least one of the following:
所述终端设备的NAS层从下层接收到注册请求消息发送失败的指示;The NAS layer of the terminal device receives an indication from a lower layer that a registration request message fails to be sent;
所述终端设备的NAS层从下层接收到RRC连接挂起的指示;The NAS layer of the terminal device receives an indication of RRC connection suspension from a lower layer;
所述终端设备的NAS层接收到注册完成消息失败的指示;The NAS layer of the terminal device receives an indication of a failure in the registration completion message;
所述终端设备的NAS层接收到注册完成消息失败的指示,并且所述终端设备的当前TAI发生变化。The NAS layer of the terminal device receives an indication of a registration completion message failure, and the current TAI of the terminal device changes.
在一些实施例中,确定模块72,具体被配置为控制所述终端设备在当前接入位置不再向网络发起注册请求,其中,所述当前接入位置包括以下其中一种:In some embodiments, the determination module 72 is specifically configured to control the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
所述终端设备当前选择的服务小区;The serving cell currently selected by the terminal device;
所述终端设备当前所处的TA。The TA where the terminal device is currently located.
在一些实施例中,确定模块72,还被配置为设置等待时长,并开始计时;在所述等待时长结束后,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0。In some embodiments, the determination module 72 is further configured to set a waiting time and start timing; after the waiting time is over, the terminal device is controlled to re-initiate a registration request and reset the initial value of the counter to 0.
在一些实施例中,确定模块72,还被配置为将所述终端设备当前选择的服务小区的小区标识,添加到第一禁止列表中,以禁止所述终端设备选择与所述第一禁止列表中的小区标识所对应的服务小区发起注册请求;当所述终端设备当前选择的服务小区发生变化时,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0,以及将所述小区标识从所述第一禁止列表中移除。In some embodiments, the determination module 72 is also configured to add the cell identifier of the service cell currently selected by the terminal device to a first prohibited list to prohibit the terminal device from selecting the service cell corresponding to the cell identifier in the first prohibited list to initiate a registration request; when the service cell currently selected by the terminal device changes, the terminal device is controlled to re-initiate the registration request, the initial value of the counter is reset to 0, and the cell identifier is removed from the first prohibited list.
在一些实施例中,确定模块72,还被配置为将所述终端设备当前所处的TA的TAI,添加到第二禁止列表中,以禁止所述终端设备在处于与所述第二禁止列表中的TAI所对应的TA时发起注册请求;当所述终端设备当前所处的TA发生变化时,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0,以及将所述TAI从所述第二禁止列表中移除。In some embodiments, the determination module 72 is also configured to add the TAI of the TA in which the terminal device is currently located to a second prohibited list to prohibit the terminal device from initiating a registration request when it is in the TA corresponding to the TAI in the second prohibited list; when the TA in which the terminal device is currently located changes, control the terminal device to re-initiate the registration request, reset the initial value of the counter to 0, and remove the TAI from the second prohibited list.
在一些实施例中,确定模块72,还被配置为将所述终端设备当前选择的RAT添加到第三禁止列表中,以禁止所述终端设备选择与所述第三禁止列表中RAT所对应的接入网络发起注册请求;当所述终端设备当前选择的RAT发生变化时,控制所述终端设备重新发起注册请求;若注册成功,则将所述RAT从所述第三禁止列表中移除,并将所述计数器的初始值重置为0。In some embodiments, the determination module 72 is also configured to add the RAT currently selected by the terminal device to a third prohibited list to prohibit the terminal device from selecting an access network corresponding to the RAT in the third prohibited list to initiate a registration request; when the RAT currently selected by the terminal device changes, control the terminal device to re-initiate a registration request; if the registration is successful, remove the RAT from the third prohibited list and reset the initial value of the counter to 0.
在一些实施例中,所述计数器不会针对紧急呼叫业务的注册异常进行计数。In some embodiments, the counter does not count registration exceptions for emergency call services.
通过应用本实施例的技术方案,可在注册异常时避免出现死锁的情况,若达到一定注册请求重试次数,能够有效中止终端设备的当前注册过程。By applying the technical solution of this embodiment, a deadlock situation can be avoided when a registration is abnormal. If a certain number of registration request retries is reached, the current registration process of the terminal device can be effectively terminated.
请参见图8,图8是本实施例提供的一种通信装置1800的结构示意图。通信装置1800可以是网络设备,也可以是用户设备,也可以是支持网络设备实现上述方法的芯片、芯片系统、或处理器等,还可以是支持用户设备实现上述方法的芯片、芯片系统、或处理器等。该装置可用于实现上述方法实施例中描述的方法,具体可以参见上述方法实施例中的说明。Please refer to Figure 8, which is a schematic diagram of the structure of a communication device 1800 provided in this embodiment. The communication device 1800 can be a network device, or a user device, or a chip, a chip system, or a processor that supports the network device to implement the above method, or a chip, a chip system, or a processor that supports the user device to implement the above method. The device can be used to implement the method described in the above method embodiment, and the details can be referred to the description in the above method embodiment.
通信装置1800可以包括一个或多个处理器1801。处理器1801可以是通用处理器或者专用处理器等。例如可以是基带处理器或中央处理器。基带处理器可以用于对通信协议以及通信数据进行处理,中央处理器可以用于对通信装置(如,基站、基带芯片,终端设备、终端设备芯片,DU或CU等)进行控制,执行计算机程序,处理计算机程序的数据。The communication device 1800 may include one or more processors 1801. The processor 1801 may be a general-purpose processor or a dedicated processor, etc. For example, it may be a baseband processor or a central processing unit. The baseband processor may be used to process the communication protocol and communication data, and the central processing unit may be used to control the communication device (such as a base station, a baseband chip, a terminal device, a terminal device chip, a DU or a CU, etc.), execute a computer program, and process the data of the computer program.
可选的,通信装置1800中还可以包括一个或多个存储器1802,其上可以存有计算机程序1804,处理器1801执行计算机程序1804,以使得通信装置1800执行上述方法实施例中描述的方法。可选的,存储器1802中还可以存储有数据。通信装置1800和存储器1802可以单独设置,也可以集成在一起。Optionally, the communication device 1800 may further include one or more memories 1802, on which a computer program 1804 may be stored, and the processor 1801 executes the computer program 1804 so that the communication device 1800 performs the method described in the above method embodiment. Optionally, data may also be stored in the memory 1802. The communication device 1800 and the memory 1802 may be provided separately or integrated together.
可选的,通信装置1800还可以包括收发器1805、天线1806。收发器1805可以称为收发单元、收发机、或收发电路等,用于实现收发功能。收发器1805可以包括接收器和发送器,接收器可以称为接收机或接收电路等,用于实现接收功能;发送器可以称为发送机或发送电路等,用于实现发送功能。Optionally, the communication device 1800 may further include a transceiver 1805 and an antenna 1806. The transceiver 1805 may be referred to as a transceiver unit, a transceiver, or a transceiver circuit, etc., and is used to implement a transceiver function. The transceiver 1805 may include a receiver and a transmitter, the receiver may be referred to as a receiver or a receiving circuit, etc., and is used to implement a receiving function; the transmitter may be referred to as a transmitter or a transmitting circuit, etc., and is used to implement a transmitting function.
可选的,通信装置1800中还可以包括一个或多个接口电路1807。接口电路1807用于接收代码指令并传输至处理器1801。处理器1801运行代码指令以使通信装置1800执行上述方法实施例中描述的方法。Optionally, the communication device 1800 may further include one or more interface circuits 1807. The interface circuit 1807 is used to receive code instructions and transmit them to the processor 1801. The processor 1801 executes the code instructions to enable the communication device 1800 to execute the method described in the above method embodiment.
在一种实现方式中,处理器1801中可以包括用于实现接收和发送功能的收发器。例如该收发器可以是收发电路,或者是接口,或者是接口电路。用于实现接收和发送功能的收发电路、接口或接口电路可以是分开的,也可以集成在一起。上述收发电路、接口或接口电路可以用于代码/数据的读写,或者,上述收发电路、接口或接口电路可以用于信号的传输或传递。In one implementation, the processor 1801 may include a transceiver for implementing the receiving and sending functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing the receiving and sending functions may be separate or integrated. The above-mentioned transceiver circuit, interface, or interface circuit may be used for reading and writing code/data, or the above-mentioned transceiver circuit, interface, or interface circuit may be used for transmitting or delivering signals.
在一种实现方式中,处理器1801可以存有计算机程序1803,计算机程序1803在处理器1801上运行,可使得通信装置1800执行上述方法实施例中描述的方法。计算机程序1803可能固化在处理器1801中,该种情况下,处理器1801可能由硬件实现。In one implementation, the processor 1801 may store a computer program 1803, which runs on the processor 1801 and enables the communication device 1800 to perform the method described in the above method embodiment. The computer program 1803 may be fixed in the processor 1801, in which case the processor 1801 may be implemented by hardware.
在一种实现方式中,通信装置1800可以包括电路,该电路可以实现前述方法实施例中发送或接收或者通信的功能。本申请中描述的处理器和收发器可实现在集成电路(integrated circuit,IC)、模拟IC、射频集成电路RFIC、混合信号IC、专用集成电路(application specific integrated circuit,ASIC)、印刷电路板(printed circuit board,PCB)、电子设备等上。该处理器和收发器也可以用各种IC工艺技术来制造,例如互补金属氧化物半导体(complementary metal oxide semiconductor,CMOS)、N型金属氧化物半导体(nMetal-oxide-semiconductor,NMOS)、P型金属氧化物半导体(positive channel metal oxide semiconductor,PMOS)、双极结型晶体管(bipolar junction transistor,BJT)、双极CMOS(BiCMOS)、硅锗(SiGe)、砷化镓(GaAs)等。In one implementation, the communication device 1800 may include a circuit that can implement the functions of sending or receiving or communicating in the aforementioned method embodiment. The processor and transceiver described in the present application can be implemented in an integrated circuit (IC), an analog IC, a radio frequency integrated circuit RFIC, a mixed signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (nMetal-oxide-semiconductor, NMOS), P-type metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (bipolar junction transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
以上实施例描述中的通信装置可以是网络设备或者用户设备,但本申请中描述的通信装置的范围并不限于此,而且通信装置的结构可以不受图8的限制。通信装置可以是独立的设备或者可以是较大设备的一部分。例如该通信装置可以是:The communication device described in the above embodiments may be a network device or a user device, but the scope of the communication device described in the present application is not limited thereto, and the structure of the communication device may not be limited by FIG. 8. The communication device may be an independent device or may be part of a larger device. For example, the communication device may be:
(1)独立的集成电路IC,或芯片,或,芯片系统或子系统;(1) Independent integrated circuit IC, or chip, or chip system or subsystem;
(2)具有一个或多个IC的集合,可选的,该IC集合也可以包括用于存储数据,计算机程序的存储部件;(2) having a set of one or more ICs, and optionally, the IC set may also include a storage component for storing data and computer programs;
(3)ASIC,例如调制解调器(Modem);(3) ASIC, such as modem;
(4)可嵌入在其他设备内的模块;(4) Modules that can be embedded in other devices;
(5)接收机、终端设备、智能终端设备、蜂窝电话、无线设备、手持机、移动单元、车载设备、网络设备、云设备、人工智能设备等等;(5) Receivers, terminal devices, intelligent terminal devices, cellular phones, wireless devices, handheld devices, mobile units, vehicle-mounted devices, network devices, cloud devices, artificial intelligence devices, etc.;
(6)其他等等。(6)Others
对于通信装置可以是芯片或芯片系统的情况,可参见图9所示的芯片的结构示意图。图9所示的芯片包括处理器1901和接口1902。其中,处理器1901的数量可以是一个或多个,接口1902的数量可以是多个。For the case where the communication device can be a chip or a chip system, please refer to the schematic diagram of the chip structure shown in Figure 9. The chip shown in Figure 9 includes a processor 1901 and an interface 1902. The number of processors 1901 can be one or more, and the number of interfaces 1902 can be multiple.
可选的,芯片还包括存储器1903,存储器1903用于存储必要的计算机程序和数据。Optionally, the chip further includes a memory 1903, and the memory 1903 is used to store necessary computer programs and data.
本领域技术人员还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.
本申请还提供一种可读存储介质,其上存储有指令,该指令被计算机执行时实现上述任一方法实施例的功能。The present application also provides a readable storage medium having instructions stored thereon, which implement the functions of any of the above method embodiments when executed by a computer.
本申请还提供一种计算机程序产品,该计算机程序产品被计算机执行时实现上述任一方法实施例的功能。The present application also provides a computer program product, which implements the functions of any of the above method embodiments when executed by a computer.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机程序。在计算机上加载和执行计算机程序时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机程序可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机程序可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. When the computer program is loaded and executed on a 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 device. The computer program 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 program can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrated. Available media can be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks (SSD)), etc.
本领域普通技术人员可以理解:本申请中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围,也表示先后顺序。A person skilled in the art may understand that the various numerical numbers such as first and second involved in the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application, but also indicate the order of precedence.
本申请中的至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。在本申请实施例中,对于一种技术特征,通过“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”等区分该种技术特征中的技术特征,该“第一”、“第二”、“第三”、“A”、“B”、“C”和“D”描述的技术特征间无先后顺序或者大小顺序。At least one in the present application can also be described as one or more, and a plurality can be two, three, four or more, which is not limited in the present application. In the embodiments of the present application, for a technical feature, the technical features in the technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D", etc., and there is no order of precedence or size between the technical features described by the "first", "second", "third", "A", "B", "C" and "D".
如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and/or data to a programmable processor.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请申请的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
此外,应该理解,本申请所述的各种实施例可以单独实施,也可以在方案允许的情况下与其他实施例组合实施。In addition, it should be understood that the various embodiments described in the present application may be implemented individually or in combination with other embodiments when the solution permits.
本领域普通技术人员可以意识到,结合本文中所申请的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments applied for herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (14)

  1. 一种接入异常处理方法,其特征在于,应用于终端设备侧执行,所述方法包括:A method for handling access exceptions, characterized in that it is applied to a terminal device side for execution, and the method comprises:
    利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数;A counter is used to count the number of times a registration request is re-initiated due to anomalies in the current registration process of the terminal device accessing the network;
    根据所述次数,确定是否中止所述终端设备的所述当前注册过程。According to the number of times, it is determined whether to terminate the current registration process of the terminal device.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises:
    当所述终端设备满足预设条件时,将所述计数器的初始值设置为0,其中,满足所述预设条件包括以下其中一种:When the terminal device meets a preset condition, the initial value of the counter is set to 0, wherein meeting the preset condition includes one of the following:
    所述终端设备处于刚开机状态;The terminal device is in a just-started state;
    所述终端设备选择的服务小区发生变化;The serving cell selected by the terminal device changes;
    所述终端设备所处的跟踪区TA发生变化;The tracking area TA where the terminal device is located changes;
    所述终端设备注册成功。The terminal device is registered successfully.
  3. 根据权利要求1或2所述的方法,其特征在于,所述计数器为共享计数器;所述共享计数器用于统计不同注册异常情况导致重新发起注册请求的次数之和;以在所述共享计数器统计的所述次数之和等于总预设次数阈值时,中止所述终端设备的所述当前注册过程。The method according to claim 1 or 2 is characterized in that the counter is a shared counter; the shared counter is used to count the sum of the number of times the registration request is re-initiated due to different registration anomalies; when the sum of the times counted by the shared counter is equal to the total preset number threshold, the current registration process of the terminal device is terminated.
  4. 根据权利要求1或2所述的方法,其特征在于,所述计数器为对应于预定注册异常情况的计数器;以在所述计数器达到该预定注册异常情况对应的累计次数等于与所述预定注册异常情况对应的预设次数阈值时,中止所述终端设备的与所述预定注册异常情况对应的所述当前注册过程。The method according to claim 1 or 2 is characterized in that the counter is a counter corresponding to a predetermined registration abnormality; when the counter reaches a cumulative number of times corresponding to the predetermined registration abnormality equal to a preset number threshold corresponding to the predetermined registration abnormality, the current registration process of the terminal device corresponding to the predetermined registration abnormality is terminated.
  5. 根据权利要求3或4所述的方法,所述注册异常情况至少包括以下之一:According to the method of claim 3 or 4, the abnormal registration situation includes at least one of the following:
    所述终端设备的非接入层NAS层从下层接收到注册请求消息发送失败的指示;The non-access stratum NAS layer of the terminal device receives an indication of a failure to send a registration request message from a lower layer;
    所述终端设备的NAS层从下层接收到无线资源控制RRC连接挂起的指示;The NAS layer of the terminal device receives an indication of radio resource control RRC connection suspension from a lower layer;
    所述终端设备的NAS层接收到注册完成消息失败的指示;The NAS layer of the terminal device receives an indication of a failure in the registration completion message;
    所述终端设备的NAS层接收到注册完成消息失败的指示,并且所述终端设备的当前跟踪区标识TAI发生变化。The NAS layer of the terminal device receives an indication of a registration completion message failure, and the current tracking area identifier TAI of the terminal device changes.
  6. 根据权利要求5所述的方法,其特征在于,所述中止所述终端设备的所述当前注册过程,包括:The method according to claim 5, characterized in that terminating the current registration process of the terminal device comprises:
    控制所述终端设备在当前接入位置不再向网络发起注册请求,其中,所述当前接入位置包括以下其中一种:Control the terminal device to no longer initiate a registration request to the network at the current access location, wherein the current access location includes one of the following:
    所述终端设备当前选择的服务小区;The serving cell currently selected by the terminal device;
    所述终端设备当前所处的TA。The TA where the terminal device is currently located.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, characterized in that the method further comprises:
    设置等待时长,并开始计时;Set the waiting time and start timing;
    在所述等待时长结束后,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0。After the waiting period ends, the terminal device is controlled to re-initiate a registration request and the initial value of the counter is reset to 0.
  8. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, characterized in that the method further comprises:
    将所述终端设备当前选择的服务小区的小区标识,添加到第一禁止列表中,以禁止所述终端设备选择与所述第一禁止列表中的小区标识所对应的服务小区发起注册请求;Adding the cell identifier of the serving cell currently selected by the terminal device to the first prohibited list, so as to prohibit the terminal device from selecting the serving cell corresponding to the cell identifier in the first prohibited list to initiate a registration request;
    当所述终端设备当前选择的服务小区发生变化时,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0,以及将所述小区标识从所述第一禁止列表中移除。When the serving cell currently selected by the terminal device changes, the terminal device is controlled to re-initiate a registration request, the initial value of the counter is reset to 0, and the cell identifier is removed from the first prohibited list.
  9. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, characterized in that the method further comprises:
    将所述终端设备当前所处的TA的TAI,添加到第二禁止列表中,以禁止所述终端设备在处于与所述第二禁止列表中的TAI所对应的TA时发起注册请求;Adding the TAI of the TA in which the terminal device is currently located to a second prohibited list, so as to prohibit the terminal device from initiating a registration request when it is in a TA corresponding to the TAI in the second prohibited list;
    当所述终端设备当前所处的TA发生变化时,控制所述终端设备重新发起注册请求,并将所述计数器的初始值重置为0,以及将所述TAI从所述第二禁止列表中移除。When the TA currently located by the terminal device changes, the terminal device is controlled to re-initiate a registration request, the initial value of the counter is reset to 0, and the TAI is removed from the second prohibited list.
  10. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, characterized in that the method further comprises:
    将所述终端设备当前选择的无线接入技术RAT添加到第三禁止列表中,以禁止所述终端设备选择与所述第三禁止列表中的RAT所对应的接入网络发起注册请求;Adding the radio access technology RAT currently selected by the terminal device to a third prohibited list, so as to prohibit the terminal device from selecting an access network corresponding to the RAT in the third prohibited list to initiate a registration request;
    当所述终端设备当前选择的RAT发生变化时,控制所述终端设备重新发起注册请求;When the RAT currently selected by the terminal device changes, controlling the terminal device to re-initiate a registration request;
    若注册成功,则将所述RAT从所述第三禁止列表中移除,并将所述计数器的初始值重置为0。If the registration is successful, the RAT is removed from the third prohibited list, and the initial value of the counter is reset to 0.
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述计数器不会针对紧急呼叫业务的注册异常进行计数。The method according to any one of claims 1 to 10 is characterized in that the counter does not count registration anomalies of the emergency call service.
  12. 一种接入异常处理装置,其特征在于,应用于终端设备侧,所述装置包括:An access exception processing device, characterized in that it is applied to a terminal device side, and the device comprises:
    统计模块,被配置为利用计数器统计终端设备在接入网络的当前注册过程中,出现异常导致重新发起注册请求的次数;A statistics module is configured to use a counter to count the number of times a registration request is re-initiated due to an abnormality in a current registration process of the terminal device accessing the network;
    确定模块,被配置为根据所述次数,确定是否中止所述终端设备的所述当前注册过程。The determination module is configured to determine whether to terminate the current registration process of the terminal device according to the number of times.
  13. 一种通信设备,其中,包括:收发器;存储器;处理器,分别与所述收发器及所述存储器连接,配置为通过执行所述存储器上的计算机可执行指令,控制所述收发器的无线信号收发,并能够实现权利要求1至11中任一项所述的方法。A communication device, comprising: a transceiver; a memory; a processor, connected to the transceiver and the memory respectively, configured to control the wireless signal reception and transmission of the transceiver by executing computer executable instructions on the memory, and capable of implementing the method described in any one of claims 1 to 11.
  14. 一种计算机存储介质,其中,所述计算机存储介质存储有计算机可执行指令;所述计算机可执行指令被处理器执行后,能够实现权利要求1至11中任一项所述的方法。A computer storage medium, wherein the computer storage medium stores computer executable instructions; after the computer executable instructions are executed by a processor, the method according to any one of claims 1 to 11 can be implemented.
PCT/CN2022/139775 2022-12-16 2022-12-16 Access anomaly handling method and apparatus WO2024124579A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280006286.7A CN116325982A (en) 2022-12-16 2022-12-16 Access exception handling method and device
PCT/CN2022/139775 WO2024124579A1 (en) 2022-12-16 2022-12-16 Access anomaly handling method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/139775 WO2024124579A1 (en) 2022-12-16 2022-12-16 Access anomaly handling method and apparatus

Publications (1)

Publication Number Publication Date
WO2024124579A1 true WO2024124579A1 (en) 2024-06-20

Family

ID=86824391

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/139775 WO2024124579A1 (en) 2022-12-16 2022-12-16 Access anomaly handling method and apparatus

Country Status (2)

Country Link
CN (1) CN116325982A (en)
WO (1) WO2024124579A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709764A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Communication method and device
CN113810937A (en) * 2020-10-22 2021-12-17 荣耀终端有限公司 Method, device, storage medium and chip for processing network registration exception
JP2022173614A (en) * 2021-05-10 2022-11-22 シャープ株式会社 UE (User Equipment)
CN115426701A (en) * 2017-03-17 2022-12-02 夏普株式会社 Terminal device, core network device, and communication control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426701A (en) * 2017-03-17 2022-12-02 夏普株式会社 Terminal device, core network device, and communication control method
CN113709764A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Communication method and device
CN113810937A (en) * 2020-10-22 2021-12-17 荣耀终端有限公司 Method, device, storage medium and chip for processing network registration exception
JP2022173614A (en) * 2021-05-10 2022-11-22 シャープ株式会社 UE (User Equipment)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"3rd Generation Partnership Project; Technical Specification Group Core Network and Terminals; Non-Access-Stratum (NAS) protocol for 5G System (5GS); Stage 3; (Release 18)", 3GPP STANDARD; TECHNICAL SPECIFICATION; 3GPP TS 24.501, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. CT WG1, no. V18.0.1, 26 September 2022 (2022-09-26), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France, pages 1 - 1007, XP052211191 *
NOKIA, NOKIA SHANGHAI BELL: "Correction to incrementing the registration attempt counter during abnormal cases for Mobility and periodic registration update for initiating an emergency PDU session", 3GPP DRAFT; C1-207126, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. CT WG1, no. Electronic meeting; 20201113 - 20201120, 5 November 2020 (2020-11-05), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051951559 *

Also Published As

Publication number Publication date
CN116325982A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US11832206B2 (en) Method and apparatus for supporting access control and mobility management
US10863390B2 (en) Method and apparatus for non-access stratum transport
WO2018157439A1 (en) Service processing method and device
WO2022206268A1 (en) Reporting control method and apparatus, and device, medium and computer program product
CN113841429B (en) Communication network component and method for initiating slice specific authentication and authorization
US20200252897A1 (en) Service Activation and Deactivation Method, Device and Computer Storage Medium
CN109947081B (en) Internet vehicle control method and device
JPWO2020251302A5 (en)
CN112291752B (en) Network registration method and device
WO2024124579A1 (en) Access anomaly handling method and apparatus
WO2024108434A1 (en) Satellite coverage information acquisition method and device
WO2024164280A1 (en) Method for acquiring satellite coverage information, apparatus, device, and storage medium
WO2023004605A1 (en) Method and apparatus for selecting network slice admission control function
WO2024092662A1 (en) Time information reporting method and apparatus, communication device, and storage medium
WO2024164358A1 (en) Method and apparatus for controlling communication of user equipment (ue)
WO2024183017A1 (en) Model configuration method and apparatus
WO2024124434A1 (en) Carrier measurement method and apparatus, and communication device
WO2024164282A1 (en) Satellite coverage information acquisition method and apparatus, device and storage medium
WO2024016244A1 (en) Configuration method and apparatus for supporting reception of inactive multicast service
WO2023245387A1 (en) Authentication and key management for applications (akma) application key request method and apparatus under user equipment (ue) roaming condition
WO2024164354A1 (en) Negotiation method and apparatus therefor
WO2024145875A1 (en) Authorization method and apparatus, and device and storage medium
WO2024087073A1 (en) Ai-network-function-based processing method, and apparatus
WO2024164277A1 (en) Security processing method and device for relay communication
WO2023197272A1 (en) Authentication method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22968283

Country of ref document: EP

Kind code of ref document: A1