[go: up one dir, main page]

TW202520766A - A communication method and apparatus - Google Patents

A communication method and apparatus Download PDF

Info

Publication number
TW202520766A
TW202520766A TW113141831A TW113141831A TW202520766A TW 202520766 A TW202520766 A TW 202520766A TW 113141831 A TW113141831 A TW 113141831A TW 113141831 A TW113141831 A TW 113141831A TW 202520766 A TW202520766 A TW 202520766A
Authority
TW
Taiwan
Prior art keywords
registration
event
received
value
message
Prior art date
Application number
TW113141831A
Other languages
Chinese (zh)
Inventor
徐玲
強鸝
常俊仁
Original Assignee
大陸商華為技術有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大陸商華為技術有限公司 filed Critical 大陸商華為技術有限公司
Publication of TW202520766A publication Critical patent/TW202520766A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration

Landscapes

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

Abstract

Embodiments of this application provide a communication method and an apparatus. sending, by a terminal device, a registration request message, wherein the registration request message is used to provide unreachable time information of a first event for a network; if no reply message is received or a registration rejection message is received, repeatedly sending the registration request message until a start point of the unreachable time or first preset duration is reached; or; executing the first event when a start point of the unreachable time or first preset duration is reached. The terminal device sets a time for stopping registration attempts or sets duration for registration attempts, so as to avoid delaying execution of the first event due to continuous registration attempts.

Description

一種通信方法及其裝置A communication method and device thereof

本申請涉及通信技術領域,尤其涉及一種通信方法及其裝置。The present application relates to the field of communication technology, and more particularly to a communication method and device thereof.

為避免終端設備在數據機modem靜默重置或作業系統(operating system,OS)更新時,終端設備的註冊流程中斷,提供了一種上下文無縫切換的儲存方式,具體的,在進行modem靜默重置或OS更新時,終端設備將緩存中的移動管理(mobility management,MM)上下文和會話管理(session management,SM)上下文儲存到非易失性記憶體(non-volatile memory,NV)或全球使用者識別卡(universal subscriber identity module,USIM)中。當終端設備從modem靜默重置或OS更新恢復後,讀取NV或USIM中的MM上下文和SM上下文,發起註冊。另外,還需要終端設備向網路設備上報不可達時間(unavailability period),網路設備基於不可達時間,在該段時間內保留終端設備的MM上下文和SM上下文,不執行隱式去註冊。這樣,可以實現終端設備在進行modem靜默重置或OS更新時保持在註冊態。In order to avoid interruption of the terminal device's registration process when the modem is silently reset or the operating system (OS) is updated, a storage method for seamless context switching is provided. Specifically, when the modem is silently reset or the OS is updated, the terminal device stores the cached mobility management (MM) context and session management (SM) context in non-volatile memory (NV) or universal subscriber identity module (USIM). When the terminal device recovers from the modem silent reset or OS update, it reads the MM context and SM context in the NV or USIM and initiates registration. In addition, the terminal device needs to report the unavailability period to the network device. Based on the unavailability period, the network device retains the MM context and SM context of the terminal device during this period and does not perform implicit deregistration. In this way, the terminal device can remain registered when performing a silent modem reset or OS update.

終端設備向網路設備上報不可達時間時,可能會出現上報失敗的情況。比如,網路鏈路品質不佳導致多次註冊嘗試都未能收到網路的回復無法確定是否上報成功;或者被網路以特定原因值如該跟蹤區域不允許漫遊(Roaming not allowed in this tracking area)、跟蹤區域沒有合適的小區(No suitable cells in tracking area)、擁塞(Congestion)等拒絕而導致上報失敗。如果終端設備不斷嘗試註冊,會影響modem靜默重置或OS更新。When the terminal device reports the unreachable time to the network device, the report may fail. For example, the network link quality is poor, resulting in multiple registration attempts without receiving a response from the network and being unable to determine whether the report is successful; or the network rejects the report with specific reasons such as Roaming not allowed in this tracking area, No suitable cells in the tracking area, congestion, etc. If the terminal device keeps trying to register, it will affect the modem silent reset or OS update.

終端設備在註冊失敗後,接下來怎麼做是需要考慮的。After the terminal device fails to register, you need to consider what to do next.

本申請實施例提供了一種通信方法及其裝置,用於提出了終端設備在註冊失敗後的操作。The embodiment of the present application provides a communication method and apparatus thereof, which are used to propose an operation of a terminal device after registration fails.

第一方面,本申請提供了一種通信方法,該方法可由第一通信裝置執行,或由包括第一通信裝置功能的其他設備執行,或由晶片系統(或,晶片)或其他功能模組執行,該晶片系統或功能模組能夠實現第一通信裝置的功能,該晶片系統或功能模組例如設置在第一通信裝置中。以該方法由第一通信裝置,第一通信裝置為終端設備執行為例進行介紹:發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路;如果未接收到回復消息或接收到註冊拒絕消息,則重複發送所述註冊請求消息,直至達到預設時間;其中,所述預設時間為所述不可達時間的起始點;當達到所述預設時間時,執行所述第一事件。In a first aspect, the present application provides a communication method, which can be executed by a first communication device, or by other equipment including the functions of the first communication device, or by a chip system (or, chip) or other functional module, which can implement the functions of the first communication device, and the chip system or functional module is, for example, set in the first communication device. The method is introduced by taking the first communication device, which is a terminal device, as an example: sending a registration request message, wherein the registration request message is used to provide the network with the unreachable time information of the first event; if no reply message is received or a registration rejection message is received, repeatedly sending the registration request message until a preset time is reached; wherein the preset time is the starting point of the unreachable time; when the preset time is reached, executing the first event.

在該實施例中,在達到預設時間之前,終端設備一直嘗試註冊,在達到預設時間時,終端設備停止嘗試註冊。終端設備設置停止嘗試註冊的時間,以避免一直嘗試註冊而耽誤執行第一事件。In this embodiment, the terminal device keeps trying to register before the preset time is reached, and stops trying to register when the preset time is reached. The terminal device sets the time to stop trying to register to avoid delaying the execution of the first event due to continuous attempts to register.

第二方面,本申請提供了一種通信方法,該方法可由第一通信裝置執行,或由包括第一通信裝置功能的其他設備執行,或由晶片系統(或,晶片)或其他功能模組執行,該晶片系統或功能模組能夠實現第一通信裝置的功能,該晶片系統或功能模組例如設置在第一通信裝置中。以該方法由第一通信裝置,第一通信裝置為終端設備執行為例進行介紹:發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路;如果未接收到回復消息或接收到註冊拒絕消息,則重複發送所述註冊請求消息,直至達到第一預設時長;當達到所述第一預設時長時,執行所述第一事件。In a second aspect, the present application provides a communication method, which can be executed by a first communication device, or by other devices including the functions of the first communication device, or by a chip system (or, chip) or other functional module, which can realize the functions of the first communication device, and the chip system or functional module is, for example, set in the first communication device. Take the method executed by the first communication device, which is a terminal device, as an example for introduction: sending a registration request message, the registration request message is used to provide the unreachable time information of the first event to the network; if no reply message is received or a registration rejection message is received, the registration request message is repeatedly sent until the first preset time is reached; when the first preset time is reached, the first event is executed.

在該實施例中,在達到第一預設時長之前,終端設備一直嘗試註冊,在達到第一預設時長時,終端設備停止嘗試註冊。終端設備設置嘗試註冊的時長,以避免一直嘗試註冊而耽誤執行第一事件。In this embodiment, the terminal device keeps trying to register before the first preset time is reached, and stops trying to register when the first preset time is reached. The terminal device sets the time for trying to register to avoid delaying the execution of the first event due to continuous attempts to register.

在一種可能的實現方式中,所述第一預設時長的開始時間:與第一次發送所述註冊請求消息的時間有關,或者,與第一次發送所述註冊請求消息確定未接收到回復消息或接收到註冊拒絕消息的時間有關。In a possible implementation, the start time of the first preset duration is related to the time when the registration request message is sent for the first time, or to the time when the registration request message is sent for the first time and it is determined that no reply message is received or a registration rejection message is received.

在一種可能的實現方式中,所述第一預設時長為嘗試註冊的時長。In a possible implementation, the first preset duration is the duration of the registration attempt.

以下多種可能的實現方式可以適用於上述的第一方面和第二方面。The following multiple possible implementations may be applicable to the above-mentioned first aspect and second aspect.

在一種可能的實現方式中,當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,在執行所述第一事件之前,還包括:保持在註冊態,並將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。In one possible implementation, when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, before executing the first event, it also includes: maintaining a registered state and storing first context information in a first storage space; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost.

在該實現方式中,終端設備在第一次發送註冊請求消息之前,在註冊態,網路設備中維護有終端設備的上下文資訊。終端設備在第一次、或後續多次發送註冊請求消息後,如果網路鏈路不佳,網路設備未收到註冊請求消息,網路設備仍然會維護終端設備的上下文資訊。如果網路設備接收到註冊請求消息,拒絕註冊,但是拒絕的原因值使得終端設備仍然在註冊態,而沒有進入去註冊態,網路設備也仍然會維護終端設備的上下文資訊。網路設備維護上下文的時間較長,一般能夠持續到執行第一事件結束。所以,在第一事件執行之前,終端設備將第一上下文資訊儲存於第一儲存空間中,在第一事件執行時不會被刪除,以便第一事件執行完成後可以複用之前協商好的上下文,不用與網路重新協商,可以節省信令開銷,加快業務流程,也不會使會話或業務中斷。In this implementation, before the terminal device sends a registration request message for the first time, in the registration state, the network device maintains the context information of the terminal device. After the terminal device sends a registration request message for the first time or for multiple subsequent times, if the network link is not good and the network device does not receive the registration request message, the network device will still maintain the context information of the terminal device. If the network device receives the registration request message and refuses to register, but the reason value for the refusal makes the terminal device still in the registration state and does not enter the deregistration state, the network device will still maintain the context information of the terminal device. The network device maintains the context for a long time, generally until the execution of the first event is completed. Therefore, before the first event is executed, the terminal device stores the first context information in the first storage space, which will not be deleted when the first event is executed, so that after the first event is executed, the previously negotiated context can be reused without re-negotiating with the network, which can save signaling overhead, speed up business processes, and will not interrupt sessions or businesses.

在一種可能的實現方式中,當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,在執行所述第一事件之前,還包括:保持在註冊態,並基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中;其中,所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長;所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。In one possible implementation, when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, before executing the first event, it also includes: maintaining a registered state, and determining whether to store the first context information in the first storage space based on a first value and a second value; wherein the first value is used to indicate the remaining duration of the deregistration timer, and the second value is the duration of the first event; the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost.

在一種可能的實現方式中,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中,包括:如果所述第一值大於或等於所述第二值,將第一上下文資訊儲存於第一儲存空間中;如果所述第一值小於所述第二值,不將第一上下文資訊儲存於第一儲存空間中;或者,如果所述第一值大於所述第二值,將第一上下文資訊儲存於第一儲存空間中;如果所述第一值小於或等於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。In one possible implementation, determining whether to store first context information in a first storage space is based on a first value and a second value, including: if the first value is greater than or equal to the second value, storing the first context information in the first storage space; if the first value is less than the second value, not storing the first context information in the first storage space; or, if the first value is greater than the second value, storing the first context information in the first storage space; if the first value is less than or equal to the second value, not storing the first context information in the first storage space.

在該實現方式中,如果去註冊計時器的剩餘時長大於第一事件的持續時長,則在第一事件執行完成時,網路設備還維護終端設備的上下文。終端設備可以在第一事件執行完成時,向網路設備發送註冊請求消息,網路設備接收到終端設備的註冊請求消息則不對終端設備執行隱式去註冊,網路設備繼續維護終端設備的上下文資訊,所以終端設備將第一上下文資訊儲存於第一儲存空間中,在第一事件執行完成後可以複用之前協商好的上下文,不用與網路重新協商,可以節省信令開銷,加快業務流程,也不會使會話或業務中斷。如果去註冊計時器的剩餘時長小於第一事件的持續時長,則在第一事件執行完成時,網路設備已經執行去註冊,不維護終端設備的上下文,終端設備也無需將第一上下文資訊儲存於第一儲存空間中,可以節省終端設備的儲存空間。In this implementation, if the remaining time of the deregistration timer is greater than the duration of the first event, the network device also maintains the context of the terminal device when the first event is completed. The terminal device can send a registration request message to the network device when the first event is completed. When the network device receives the registration request message from the terminal device, it does not perform implicit deregistration on the terminal device. The network device continues to maintain the context information of the terminal device, so the terminal device stores the first context information in the first storage space. After the first event is completed, the previously negotiated context can be reused without renegotiating with the network, which can save signaling overhead, speed up the business process, and will not interrupt the session or business. If the remaining time of the deregistration timer is less than the duration of the first event, when the first event is completed, the network device has already executed the deregistration, and the context of the terminal device is not maintained. The terminal device does not need to store the first context information in the first storage space, which can save the storage space of the terminal device.

在一種可能的實現方式中,當達到所述預設時間或當達到所述第一預設時長時:如果針對最後一次發送的註冊請求消息接收到註冊拒絕消息,所述第一值為去註冊計時器的最大值;如果針對最後一次發送的註冊請求消息未接收到回復消息,所述第一值基於去註冊計時器的最大值、所述第一事件開始執行的時間和最後一次收到回復消息的時間確定;其中,所述最後一次收到回復消息為第一次發送所述註冊請求消息之前接收到的註冊接受消息,或第一次發送所述註冊請求消息之後接收到的註冊拒絕消息。In one possible implementation, when the preset time is reached or when the first preset duration is reached: if a registration rejection message is received for the last registration request message sent, the first value is the maximum value of the registration timer; if no reply message is received for the last registration request message sent, the first value is determined based on the maximum value of the registration timer, the time when the first event starts to execute, and the time when the last reply message is received; wherein, the last time the reply message is received is a registration acceptance message received before the registration request message is sent for the first time, or a registration rejection message received after the registration request message is sent for the first time.

在該實現方式中,網路設備向終端設備發送註冊拒絕消息,並啟動去註冊計時器。忽略傳輸時延,終端設備在接收到註冊拒絕消息時,去註冊計時器的剩餘時長為最大值Tmax,即第一值為Tmax。如果經過一段時長之後,終端設備開始執行第一事件,這時去註冊計時器的剩餘時長為:去註冊計時器的最大值-(第一事件開始執行的時間t2-最後一次收到回復消息的時間t3),即第一值為Tmax-(t2-t3)。In this implementation, the network device sends a registration rejection message to the terminal device and starts the deregistration timer. Ignoring the transmission delay, when the terminal device receives the registration rejection message, the remaining time of the deregistration timer is the maximum value Tmax, that is, the first value is Tmax. If after a period of time, the terminal device starts to execute the first event, then the remaining time of the deregistration timer is: the maximum value of the deregistration timer - (the time t2 when the first event starts to execute - the time t3 when the last reply message is received), that is, the first value is Tmax-(t2-t3).

在一種可能的實現方式中,當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,在執行所述第一事件之前,還包括:保持在註冊態,並將第一上下文資訊中第一部分資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理,所述第一部分資訊用於安全校驗;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。In one possible implementation, when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, before executing the first event, it also includes: maintaining the registered state and storing the first part of the information in the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management, and the first part of the information is used for security verification; when shutting down or executing the first event, the data in the first storage space will not be lost.

在該實現方式中,第一部分資訊中包括用於安全校驗的第一部分資訊,還包括除用於安全校驗之外的第二部分資訊,終端設備不會將第二部分資訊儲存於第一儲存空間中,這樣可以避免儲存資源浪費。第一部分資訊包括但不限於現有定義的全球唯一臨時UE標識(Globally Unique Temporary UE Identity,GUTI)和安全上下文等MM上下文,用於第一事件完成後複用之前協商的安全上下文,加快註冊的流程。In this implementation, the first part of information includes the first part of information used for security verification, and also includes the second part of information other than the second part of information used for security verification. The terminal device will not store the second part of information in the first storage space, so as to avoid wasting storage resources. The first part of information includes but is not limited to the currently defined MM contexts such as the Globally Unique Temporary UE Identity (GUTI) and the security context, which is used to reuse the previously negotiated security context after the first event is completed, so as to speed up the registration process.

在一種可能的實現方式中,在執行所述第一事件時,還包括:進入去註冊態。In a possible implementation, when executing the first event, it also includes: entering a deregistered state.

在一種可能的實現方式中,所述第一事件包括:作業系統更新和/或數據機重置。In one possible implementation, the first event includes: operating system update and/or modem reset.

在一種可能的實現方式中,在執行所述第一事件之前,還包括:如果接收到註冊接受消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。In a possible implementation, before executing the first event, it also includes: if a registration acceptance message is received, remain in the registered state, and store the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost.

第三方面,本申請提供了一種通信方法,該方法可由第一通信裝置執行,或由包括第一通信裝置功能的其他設備執行,或由晶片系統(或,晶片)或其他功能模組執行,該晶片系統或功能模組能夠實現第一通信裝置的功能,該晶片系統或功能模組例如設置在第一通信裝置中。以該方法由第一通信裝置,第一通信裝置為終端設備執行為例進行介紹:發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失;執行所述第一事件。On the third aspect, the present application provides a communication method, which can be executed by a first communication device, or by other equipment including the functions of the first communication device, or by a chip system (or, chip) or other functional module, which can implement the functions of the first communication device, and the chip system or functional module is, for example, arranged in the first communication device. The method is introduced by taking the first communication device, which is a terminal device, as an example: sending a registration request message, wherein the registration request message is used to provide the network with the unreachable time information of the first event; if no reply message is received or a registration rejection message is received, remaining in the registered state, storing the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost; and executing the first event.

在一種可能的實現方式中,所述第一儲存空間中的所述第一上下文資訊中的註冊嘗試計數器被重置為0。In one possible implementation, the registration attempt counter in the first context information in the first storage space is reset to 0.

第四方面,本申請提供了一種通信方法,該方法可由第一通信裝置執行,或由包括第一通信裝置功能的其他設備執行,或由晶片系統(或,晶片)或其他功能模組執行,該晶片系統或功能模組能夠實現第一通信裝置的功能,該晶片系統或功能模組例如設置在第一通信裝置中。以該方法由第一通信裝置,第一通信裝置為終端設備執行為例進行介紹:發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中;其中,所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長;所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失;執行所述第一事件。In a fourth aspect, the present application provides a communication method, which can be executed by a first communication device, or by other equipment including the functions of the first communication device, or by a chip system (or, chip) or other functional module, which can implement the functions of the first communication device, and the chip system or functional module is, for example, arranged in the first communication device. The method is introduced by taking the first communication device, which is a terminal device, as an example: sending a registration request message, wherein the registration request message is used to provide the network with the unreachable time information of the first event; if no reply message is received or a registration rejection message is received, remaining in the registered state, and determining whether to store the first context information in the first storage space based on the first value and the second value; wherein the first value is used to indicate the remaining time of the deregistration timer, and the second value is the duration of the first event; the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost; and executing the first event.

在一種可能的實現方式中,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中,包括:In a possible implementation, determining whether to store the first context information in the first storage space based on the first value and the second value includes:

如果所述第一值大於或等於所述第二值,將第一上下文資訊儲存於第一儲存空間中;If the first value is greater than or equal to the second value, storing the first context information in a first storage space;

如果所述第一值小於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。If the first value is less than the second value, the first context information is not stored in the first storage space.

在一種可能的實現方式中,如果接收到註冊拒絕消息,所述第一值為去註冊計時器的最大值;如果未接收到回復消息,所述第一值基於去註冊計時器的最大值、所述第一事件開始執行的時間和在發送所述註冊請求消息之前最後一次收到回復消息的時間確定。In one possible implementation, if a registration rejection message is received, the first value is the maximum value of the deregistration timer; if no reply message is received, the first value is determined based on the maximum value of the deregistration timer, the time when the first event starts to execute, and the time when the last reply message was received before the registration request message was sent.

第五方面,本申請提供了一種通信方法,該方法可由第一通信裝置執行,或由包括第一通信裝置功能的其他設備執行,或由晶片系統(或,晶片)或其他功能模組執行,該晶片系統或功能模組能夠實現第一通信裝置的功能,該晶片系統或功能模組例如設置在第一通信裝置中。以該方法由第一通信裝置,第一通信裝置為終端設備執行為例進行介紹:發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,將第一上下文資訊中第一部分資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理,所述第一部分資訊用於安全校驗;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失;執行所述第一事件。In a fifth aspect, the present application provides a communication method, which can be executed by a first communication device, or by other equipment including the functions of the first communication device, or by a chip system (or, chip) or other functional module, which can implement the functions of the first communication device, and the chip system or functional module is, for example, arranged in the first communication device. The method is introduced by taking the first communication device, which is a terminal device, as an example: sending a registration request message, wherein the registration request message is used to provide the network with the unreachable time information of the first event; if no reply message is received or a registration rejection message is received, remaining in the registered state, storing the first part of the information in the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management, and the first part of the information is used for security verification; when shutting down or executing the first event, the data in the first storage space will not be lost; and executing the first event.

在一種可能的實現方式中,在執行所述第一事件時,還包括:進入去註冊態。In a possible implementation, when executing the first event, it also includes: entering a deregistered state.

以下多種可能的實現方式可以適用於上述的第三方面至第五方面。The following multiple possible implementations may be applicable to the third to fifth aspects described above.

在一種可能的實現方式中,如果接收到註冊接受消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。In one possible implementation, if a registration acceptance message is received, the device remains in a registered state and stores first context information in a first storage space; wherein the first context information is used for mobile management and/or session management; and when the device is shut down or the first event is executed, the data in the first storage space will not be lost.

在一種可能的實現方式中,所述第一事件包括:作業系統更新和/或數據機重置。In one possible implementation, the first event includes: operating system update and/or modem reset.

第三方面至第五方面的有益效果可以參考第一方面中的多種可能的實現方式的介紹,不再重複贅述。The beneficial effects of the third to fifth aspects can be referred to the introduction of various possible implementation methods in the first aspect, and will not be repeated here.

第六方面,提供一種通信裝置,所述通信裝置可以為上述各個方面所述的終端設備。所述通信裝置具備上述終端設備的功能。所述通信裝置例如為終端設備,或為包括終端設備的較大設備,或為終端設備中的功能模組,例如基帶裝置或晶片系統等。一種可選的實現方式中,所述通信裝置包括基帶裝置和射頻裝置。另一種可選的實現方式中,所述通信裝置包括處理單元(有時也稱為處理模組)和收發單元(有時也稱為收發模組)。收發單元能夠實現發送功能和接收功能,在收發單元實現發送功能時,可稱為發送單元(有時也稱為發送模組),在收發單元實現接收功能時,可稱為接收單元(有時也稱為接收模組)。發送單元和接收單元可以是同一個功能模組,該功能模組稱為收發單元,該功能模組能實現發送功能和接收功能;或者,發送單元和接收單元可以是不同的功能模組,收發單元是對這些功能模組的統稱。In a sixth aspect, a communication device is provided, which may be the terminal device described in the above aspects. The communication device has the functions of the above terminal devices. The communication device is, for example, a terminal device, or a larger device including a terminal device, or a functional module in a terminal device, such as a baseband device or a chip system. In an optional implementation, the communication device includes a baseband device and a radio frequency device. In another optional implementation, the communication device includes a processing unit (sometimes also referred to as a processing module) and a transceiver unit (sometimes also referred to as a transceiver module). The transceiver unit can realize the sending function and the receiving function. When the transceiver unit realizes the sending function, it can be called a sending unit (sometimes also called a sending module). When the transceiver unit realizes the receiving function, it can be called a receiving unit (sometimes also called a receiving module). The sending unit and the receiving unit can be the same functional module, which is called a transceiver unit, and the functional module can realize the sending function and the receiving function; or, the sending unit and the receiving unit can be different functional modules, and the transceiver unit is a general term for these functional modules.

在一種可能的實現方式中,所述通信裝置還包括儲存單元(有時也稱為儲存模組),所述處理單元用於與所述儲存單元耦合,並執行所述儲存單元中的程式或指令,使能所述通信裝置執行上述各個方面所述的終端設備的功能。In one possible implementation, the communication device further includes a storage unit (sometimes also referred to as a storage module), and the processing unit is used to couple with the storage unit and execute the program or instructions in the storage unit to enable the communication device to execute the functions of the terminal device described in the above aspects.

在一種可能的實現方式中,所述收發單元,用於發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路。In a possible implementation, the transceiver unit is used to send a registration request message, and the registration request message is used to provide unreachable time information of the first event to the network.

在一種可能的實現方式中,所述處理單元,用於確定是否達到預設時間,當達到所述預設時間時,執行所述第一事件;其中,所述預設時間為所述不可達時間的起始點。In a possible implementation, the processing unit is used to determine whether a preset time is reached, and when the preset time is reached, execute the first event; wherein the preset time is the starting point of the unreachable time.

在一種可能的實現方式中,所述處理單元,用於確定是否達到第一預設時長,當達到所述第一預設時長時,執行所述第一事件。In a possible implementation, the processing unit is used to determine whether a first preset time duration is reached, and when the first preset time duration is reached, execute the first event.

在一種可能的實現方式中,所述處理單元,用於當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,並將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。In one possible implementation, the processing unit is used to remain in the registered state and store the first context information in the first storage space when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost.

在一種可能的實現方式中,所述處理單元,用於將所述第一上下文資訊中的註冊嘗試計數器重置為0。In a possible implementation, the processing unit is configured to reset a registration attempt counter in the first context information to 0.

在一種可能的實現方式中,所述處理單元,用於當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,並基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中;其中,所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長。In one possible implementation, the processing unit is used to, when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, remain in the registered state and determine whether to store the first context information in the first storage space based on a first value and a second value; wherein the first value is used to indicate the remaining duration of the deregistration timer, and the second value is the duration of the first event.

在一種可能的實現方式中,所述處理單元,具體用於如果所述第一值大於或等於所述第二值,將第一上下文資訊儲存於第一儲存空間中;如果所述第一值小於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。In one possible implementation, the processing unit is specifically configured to store the first context information in a first storage space if the first value is greater than or equal to the second value; and not store the first context information in the first storage space if the first value is less than the second value.

在一種可能的實現方式中,所述處理單元,用於當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,並將第一上下文資訊中第一部分資訊儲存於第一儲存空間中;其中,所述第一部分資訊用於安全校驗。In one possible implementation, the processing unit is used to remain in the registered state and store the first part of the information in the first context information in the first storage space when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received; wherein the first part of the information is used for security verification.

在一種可能的實現方式中,所述處理單元,用於如果接收到註冊接受消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中。In a possible implementation, the processing unit is configured to, if receiving a registration acceptance message, remain in a registered state and store the first context information in a first storage space.

第七方面,提供一種通信裝置,該通信裝置可以為終端設備,或者為用於終端設備中的晶片或晶片系統。該通信裝置包括通信介面以及處理器,可選的,還包括記憶體。其中,該記憶體用於儲存電腦程式,處理器與記憶體、通信介面耦合,當處理器讀取所述電腦程式或指令時,使通信裝置執行上述各方面中由終端設備所執行的方法。In a seventh aspect, a communication device is provided, which may be a terminal device, or a chip or chip system used in a terminal device. The communication device includes a communication interface and a processor, and optionally, a memory. The memory is used to store a computer program, and the processor is coupled to the memory and the communication interface. When the processor reads the computer program or instruction, the communication device executes the method executed by the terminal device in the above aspects.

第八方面,提供了一種通信裝置,包括處理器,可選的,還包括記憶體;所述處理器和所述記憶體耦合;所述記憶體,用於儲存電腦程式或指令;所述處理器,用於執行所述記憶體中的部分或者全部電腦程式或指令,當所述部分或者全部電腦程式或指令被執行時,用於實現上述各個方面及各個方面任一可能的實現的方法中終端設備的功能。In an eighth aspect, a communication device is provided, comprising a processor, and optionally, a memory; the processor and the memory are coupled; the memory is used to store computer programs or instructions; the processor is used to execute part or all of the computer programs or instructions in the memory, and when the part or all of the computer programs or instructions are executed, it is used to implement the functions of the terminal device in the above aspects and any possible implementation method of each aspect.

在一種可能的實現中,所述裝置還可以包括收發器,所述收發器,用於發送所述處理器處理後的信號,或者接收輸入給所述處理器的信號。所述收發器可以執行上述各個方面及各個方面任一可能的實現中終端設備執行的發送動作或接收動作。In one possible implementation, the apparatus may further include a transceiver, the transceiver being used to send a signal processed by the processor or to receive a signal input to the processor. The transceiver may perform the sending action or receiving action performed by the terminal device in the above aspects and any possible implementation of the aspects.

在一種可能的實現中,所述第六方面中的處理單元可以通過所述處理器實現,所述第六方面中的儲存單元可以通過所述記憶體實現,所述第六方面中的收發單元可以通過所述收發器實現。In one possible implementation, the processing unit in the sixth aspect may be implemented by the processor, the storage unit in the sixth aspect may be implemented by the memory, and the transceiver unit in the sixth aspect may be implemented by the transceiver.

第九方面,提供一種通信系統,包括網路設備和終端設備,其中,終端設備用於執行上述各方面所述的由終端設備執行的方法,網路設備用於與終端設備進行交互。例如,終端設備可以通過第六方面所述的通信裝置實現。In a ninth aspect, a communication system is provided, comprising a network device and a terminal device, wherein the terminal device is used to execute the method executed by the terminal device as described in the above aspects, and the network device is used to interact with the terminal device. For example, the terminal device can be implemented by the communication apparatus described in the sixth aspect.

第十方面,提供一種電腦可讀儲存介質,所述電腦可讀儲存介質用於儲存電腦程式或指令,當其被運行時,使得上述各個方面中所述的方法被實現。In a tenth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store computer programs or instructions, and when the computer-readable storage medium is executed, the methods described in the above aspects are implemented.

第十一方面,提供一種包含指令的電腦程式產品,當其在電腦上運行時,使得上述各個方面所述的方法被實現。In an eleventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the methods described in the above aspects to be implemented.

第十二方面,提供一種晶片系統,包括處理器和介面,所述處理器用於從所述介面調用並運行指令,以使所述晶片系統實現上述各個方面的方法。In a twelfth aspect, a chip system is provided, comprising a processor and an interface, wherein the processor is used to call and execute instructions from the interface so that the chip system implements the methods of the above aspects.

本申請技術方案可以應用於各種無線通訊系統,可以但不限於應用於第四代移動通信技術(the 4th generation,4G)系統(又稱為即長期演進(long term evolution,LTE)系統),5G系統(又稱為新空口(new radio,NR)系統),或者還可以應用於下一代移動通信系統或其他類似的通信系統(例如第六代移動通信技術(the 6th generation,6G)系統)等,具體的不做限制。另外本申請實施例提供的技術方案可以應用於設備到設備(device-to-device,D2D)場景,例如NR-D2D場景等,或者可以應用於V2X場景,例如NR-V2X場景等。例如可用於智慧駕駛、輔助駕駛、或智慧網聯車等領域。又例如,本申請實施例提供的技術方案還可應用於工廠製造場景等。The technical solution of this application can be applied to various wireless communication systems, including but not limited to the 4th generation (4G) system (also known as the long term evolution (LTE) system), the 5G system (also known as the new radio (NR) system), or the next generation mobile communication system or other similar communication systems (such as the 6th generation (6G) system), etc., without specific limitations. In addition, the technical solution provided by the embodiment of this application can be applied to device-to-device (D2D) scenarios, such as NR-D2D scenarios, etc., or can be applied to V2X scenarios, such as NR-V2X scenarios, etc. For example, it can be used in the fields of smart driving, assisted driving, or smart connected vehicles. For another example, the technical solution provided by the embodiment of the present application can also be applied to factory manufacturing scenarios, etc.

例如,圖1a為本申請可以適用的一種5G的通信系統架構示意圖。具體的,圖1a為基於服務化架構的5G網路架構示意圖。For example, Figure 1a is a schematic diagram of a 5G communication system architecture to which this application can be applied. Specifically, Figure 1a is a schematic diagram of a 5G network architecture based on a service-oriented architecture.

例如,圖1b為本申請可以適用的另一種5G的通信系統架構示意圖。具體的,圖1b為基於點對點的5G架構示意圖。圖1a與圖1b的主要區別在於,圖1a中的各個網元之間的介面是服務化的介面,圖1b的各個網元之間的介面是點對點的介面。For example, FIG1b is a schematic diagram of another 5G communication system architecture to which the present application can be applied. Specifically, FIG1b is a schematic diagram of a 5G architecture based on point-to-point communication. The main difference between FIG1a and FIG1b is that the interface between the network elements in FIG1a is a service-oriented interface, while the interface between the network elements in FIG1b is a point-to-point interface.

圖1a和圖1b所示的5G網路架構中可包括終端設備部分、接入網部分,核心網部分。可選的,還包括資料網路(data network,DN)和應用功能(application function,AF)網元部分。終端通過接入網接入核心網,核心網與DN或AF進行通信。下面對其中的部分網元的功能進行簡單介紹說明。The 5G network architecture shown in Figures 1a and 1b may include terminal equipment, access network, and core network. Optionally, it also includes data network (DN) and application function (AF) network element parts. The terminal accesses the core network through the access network, and the core network communicates with the DN or AF. The functions of some of these network elements are briefly introduced below.

終端設備(terminal device),也可以稱為使用者設備(user equipment,UE),是一種具有無線收發功能的設備,可以部署在陸地上,包括室內或室外、手持或車載;也可以部署在水面上(如輪船等);還可以部署在空中(例如飛機、氣球和衛星上等)。所述終端設備可以是手機(mobile phone)、平板電腦(pad)、帶無線收發功能的電腦、虛擬實境(virtual reality,VR)終端、增強現實(augmented reality,AR)終端、工業控制(industrial control)中的無線終端、無人駕駛(self driving)中的無線終端、遠端醫療(remote medical)中的無線終端、智慧電網(smart grid)中的無線終端、運輸安全(transportation safety)中的無線終端、智慧城市(smart city)中的無線終端、智慧家庭(smart home)中的無線終端等。Terminal device, also known as user equipment (UE), is a device with wireless transceiver capabilities. It can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water (such as ships); it can also be deployed in the air (such as airplanes, balloons and satellites). The terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc.

本申請中的(R)AN設備,是一種為終端設備提供無線通訊功能的設備,(R)AN設備也稱為接入網設備。本申請中的RAN設備包括但不限於:5G中的下一代基地台(g nodeB,gNB)、演進型節點B(evolved node B,eNB)、無線網路控制器(radio network controller,RNC)、節點B(node B,NB)、基地台控制器(base station controller,BSC)、基地台收發台(base transceiver station,BTS)、家庭基地台(例如,home evolved nodeB,或home node B,HNB)、基帶單元(baseBand unit,BBU)、傳輸點(transmitting and receiving point,TRP)、發射點(transmitting point,TP)、移動交換中心等。在採用不同的無線接入技術的系統中,具備基地台功能的設備的名稱可能會有所不同,例如,在第五代(5th generation,5G)系統中,稱為RAN或者gNB(5G NodeB);在LTE系統中,稱為演進的節點B(evolved NodeB,eNB或者eNodeB);在第三代(3rd generation,3G)系統中,稱為節點B(Node B)等。The (R)AN equipment in this application is a device that provides wireless communication functions for terminal equipment. The (R)AN equipment is also called access network equipment. The RAN equipment in this application includes but is not limited to: the next generation base station (g nodeB, gNB) in 5G, evolved node B (evolved node B, eNB), radio network controller (radio network controller, RNC), node B (node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand unit, BBU), transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc. In systems using different radio access technologies, the names of devices with base station functions may be different. For example, in the fifth generation (5G) system, it is called RAN or gNB (5G NodeB); in the LTE system, it is called evolved NodeB (eNB or eNodeB); in the third generation (3G) system, it is called Node B, etc.

資料網路DN,可部署多種業務,可為終端設備提供資料和/或語音等服務。例如,DN是某智慧工廠的私有網路,智慧工廠安裝在車間的感測器可為終端設備,DN中部署了感測器和控制伺服器,控制伺服器可為感測器提供服務。感測器可與控制伺服器通信,獲取控制伺服器的指令,根據指令將採集的感測器資料傳送給控制伺服器等。又例如,DN是某公司的內部辦公網路,該公司員工的手機或者電腦可為終端設備,員工的手機或者電腦可以訪問公司內部辦公網路上的資訊、資料資源等。Data network DN can deploy a variety of services and provide data and/or voice services to terminal devices. For example, DN is the private network of a smart factory. The sensors installed in the workshop of the smart factory can be terminal devices. Sensors and control servers are deployed in DN, and the control server can provide services for the sensors. The sensors can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, DN is the internal office network of a company. The mobile phones or computers of the company's employees can be terminal devices. The employees' mobile phones or computers can access information and data resources on the company's internal office network.

應用網元,主要支援與第三代合作夥伴計畫(3rd generation partnership project,3GPP)核心網交互來提供服務,例如影響資料路由決策,策略控制功能或者向網路側提供第三方的一些服務。在5G通信系統中,該應用網元可以是應用功能(application function,AF)網元。在未來通信系統中,應用網元仍可以是AF網元,或者,還可以有其它的名稱,本申請不做限定。Application network elements mainly support interaction with the 3rd generation partnership project (3GPP) core network to provide services, such as influencing data routing decisions, policy control functions, or providing some third-party services to the network side. In the 5G communication system, the application network element can be an application function (AF) network element. In future communication systems, the application network element can still be an AF network element, or it can have other names, which are not limited in this application.

核心網部分可包括以下網元中的一個或多個:The core network may include one or more of the following network elements:

接入管理網元(也可以稱為移動性管理網元),是由運營商網路提供的控制面網元,負責終端設備接入運營商網路的接入控制和移動性管理,例如包括移動狀態管理,分配使用者臨時身份標識,認證和使用者等功能。在5G通信系統中,該接入管理網元可以是接入與移動性管理功能(access and mobility management function,AMF)網元。在未來通信系統中,接入管理網元仍可以是AMF網元,或者,還可以有其它的名稱,本申請不做限定。The access management network element (also called the mobility management network element) is a control plane network element provided by the operator network, responsible for the access control and mobility management of the terminal equipment accessing the operator network, such as mobility status management, allocation of temporary user identity, authentication and user functions. In the 5G communication system, the access management network element can be an access and mobility management function (AMF) network element. In future communication systems, the access management network element can still be an AMF network element, or it can have other names, which are not limited in this application.

會話管理網元,主要負責移動網路中的會話管理,如會話建立、修改、釋放。具體功能如為使用者分配IP地址、選擇提供報文轉發功能的使用者面網元等。在5G通信系統中,該會話管理網元可以是會話管理功能(session management function,SMF)網元。在未來通信系統中,會話管理網元仍可以是SMF網元,或者,還可以有其它的名稱,本申請不做限定。The session management network element is mainly responsible for session management in the mobile network, such as session establishment, modification, and release. Specific functions include allocating IP addresses to users, selecting user-side network elements that provide message forwarding functions, etc. In the 5G communication system, the session management network element can be a session management function (SMF) network element. In future communication systems, the session management network element can still be an SMF network element, or it can have other names, which are not limited in this application.

使用者面網元,負責終端設備中使用者資料的轉發和接收。可以從資料網路接收使用者資料,通過接入網設備傳輸給終端設備;使用者面網元還可以通過接入網設備從終端設備接收使用者資料,轉發到資料網路。使用者面網元中為終端設備提供服務的傳輸資源和調度功能由SMF網元管理控制的。在5G通信系統中,該使用者面網元可以是使用者面功能 (user plane function,UPF)網元。在未來通信系統中,使用者面網元仍可以是UPF網元,或者,還可以有其它的名稱,本申請不做限定。The user plane network element is responsible for forwarding and receiving user data in the terminal device. It can receive user data from the data network and transmit it to the terminal device through the access network equipment; the user plane network element can also receive user data from the terminal device through the access network equipment and forward it to the data network. The transmission resources and scheduling functions in the user plane network element that provide services to the terminal equipment are managed and controlled by the SMF network element. In the 5G communication system, the user plane network element can be a user plane function (UPF) network element. In future communication systems, the user plane network element can still be a UPF network element, or it can have other names, which are not limited in this application.

資料管理網元,用於生成認證信任狀,使用者標識處理(如儲存和管理使用者永久身份等),接入控制和簽約資料管理等。在5G通信系統中,該資料管理網元可以是統一資料管理(unified data management,UDM)網元。在未來通信系統中,統一資料管理仍可以是UDM網元,或者,還可以有其它的名稱,本申請不做限定。Data management network element, used to generate authentication credentials, user identification processing (such as storing and managing user permanent identities, etc.), access control and contract data management, etc. In the 5G communication system, the data management network element can be a unified data management (UDM) network element. In future communication systems, the unified data management can still be a UDM network element, or it can have other names, which are not limited in this application.

策略控制網元,主要支援提供統一的策略框架來控制網路行為,提供策略規則給控制層網路功能,同時負責獲取與策略決策相關的使用者簽約資訊。在4G通信系統中,該策略控制網元可以是策略和計費規則功能(policy and charging rules function,PCRF)網元。在5G通信系統中,該策略控制網元可以是策略控制功能(policy control function,PCF)網元。在未來通信系統中,策略控制網元仍可以是PCF網元,或者,還可以有其它的名稱,本申請不做限定。The policy control network element mainly supports providing a unified policy framework to control network behavior, provides policy rules to the control layer network functions, and is responsible for obtaining user contract information related to policy decisions. In a 4G communication system, the policy control network element can be a policy and charging rules function (PCRF) network element. In a 5G communication system, the policy control network element can be a policy control function (PCF) network element. In future communication systems, the policy control network element can still be a PCF network element, or it can have other names, which are not limited in this application.

網路儲存網元,可用於提供網元發現功能,基於其他網元的請求,提供網元類型對應的網元資訊。NRF還提供網元管理服務,如網元註冊、更新、去註冊以及網元狀態訂閱和推送等。在5G通信系統中,該網路儲存網元可以是網路註冊功能(network repository function,NRF)網元。在未來通信系統中,網路儲存網元仍可以是NRF網元,或者,還可以有其它的名稱,本申請不做限定。The network storage network element can be used to provide network element discovery functions and provide network element information corresponding to the network element type based on requests from other network elements. NRF also provides network element management services, such as network element registration, update, deregistration, and network element status subscription and push. In the 5G communication system, the network storage network element can be a network repository function (NRF) network element. In future communication systems, the network storage network element can still be an NRF network element, or it can have other names, which are not limited in this application.

網路開放功能網元,可用於提供用於安全地向外部開放由3GPP網路功能設備提供的業務和能力等。在5G通信系統中,網路開放功能網元可以是網路開放功能(network exposure function,NEF)網元。在未來通信系統中,網路開放功能網元仍可以是NEF網元,或者,還可以有其它的名稱,本申請不做限定。The network exposure function network element can be used to provide services and capabilities provided by 3GPP network function equipment to be opened to the outside in a secure manner. In a 5G communication system, the network exposure function network element can be a network exposure function (NEF) network element. In future communication systems, the network exposure function network element can still be a NEF network element, or it can have other names, which are not limited in this application.

網路切片選擇網元,可用於為終端的業務選擇合適的網路切片。在5G通信系統中,網路切片選擇網元可以是網路切片選擇功能(network slice selection function,NSSF)網元。在未來通信系統中,網路開放功能網元仍可以是NSSF網元,或者,還可以有其它的名稱,本申請不做限定。The network slice selection network element can be used to select a suitable network slice for the terminal service. In the 5G communication system, the network slice selection network element can be a network slice selection function (NSSF) network element. In future communication systems, the network open function network element can still be an NSSF network element, or it can have other names, which are not limited in this application.

網路資料分析網元,可以從各個網路功能(network function,NF),例如策略控制網元、會話管理網元、使用者面網元、接入管理網元、應用功能網元(通過網路能力開放功能網元)收集資料,並進行分析和預測。在5G通信系統中,網路資料分析網元可以是網路資料分析功能(network data analytics function,NWDAF)。在未來通信系統中,網路開放功能網元仍可以是NWDAF網元,或者,還可以有其它的名稱,本申請不做限定。The network data analysis network element can collect data from various network functions (NFs), such as policy control network elements, session management network elements, user plane network elements, access management network elements, and application function network elements (through network capability open function network elements), and perform analysis and prediction. In a 5G communication system, the network data analysis network element can be a network data analysis function (NWDAF). In future communication systems, the network open function network element can still be an NWDAF network element, or it can have other names, which are not limited in this application.

資料儲存網元,負責儲存結構化的資料資訊,其中包括簽約資訊,策略資訊,以及有標準格式定義的網路資料或業務資料。在5G通信系統中,資料儲存網元可以是統一資料儲存(unified data repository,UDR)。在未來通信系統中,網路開放功能網元仍可以是UDR網元,或者,還可以有其它的名稱,本申請不做限定。The data storage network element is responsible for storing structured data information, including contract information, policy information, and network data or business data defined in a standard format. In a 5G communication system, the data storage network element can be a unified data repository (UDR). In future communication systems, the network open function network element can still be a UDR network element, or it can have other names, which are not limited in this application.

可以理解的是,上述網元或者功能既可以是硬體設備中的網路元件,也可以是在專用硬體上運行軟體功能,或者是平臺(例如,雲平臺)上產生實體的虛擬化功能。一種可能的實現方式,上述網元或者功能可以由一個設備實現,也可以由多個設備共同實現,還可以是一個設備內的一個功能模組,本申請實施例對此不作具體限定。It is understandable that the above network element or function can be a network element in a hardware device, a software function running on dedicated hardware, or a virtualized function that generates an entity on a platform (e.g., a cloud platform). In a possible implementation, the above network element or function can be implemented by one device, or by multiple devices together, or can be a functional module in one device, and the present application embodiment does not specifically limit this.

目前的協議中允許終端設備在進行modem靜默重置或OS更新之前,將緩存中的移動管理MM上下文和會話管理SM上下文儲存到非易失性記憶體NV或全球使用者識別卡USIM中。當終端設備從modem靜默重置或OS更新恢復後,讀取NV或USIM中的MM上下文和SM上下文,發起移動註冊。另外,還允許終端設備在進行modem靜默重置或OS更新之前,可以通過註冊請求消息向網路設備上報不可達時間(unavailability period),網路設備基於不可達時間,在該段時間內保留終端設備的MM上下文和SM上下文,不執行隱式去註冊。這樣,終端設備在進行modem靜默重置或OS更新時保持在註冊態。The current protocol allows the terminal device to store the mobile management MM context and session management SM context in the cache to the non-volatile memory NV or the global user identity card USIM before performing a modem silent reset or OS update. When the terminal device recovers from a modem silent reset or OS update, it reads the MM context and SM context in the NV or USIM and initiates mobile registration. In addition, the terminal device is allowed to report the unavailability period to the network device through a registration request message before performing a modem silent reset or OS update. Based on the unavailability period, the network device retains the MM context and SM context of the terminal device during that period and does not perform implicit deregistration. This way, the end device remains registered during a silent modem reset or OS update.

終端設備通過註冊請求消息向網路設備上報不可達時間,可能會出現註冊成功的情況,也可能會出現註冊失敗的情況。比如,網路鏈路品質不佳導致多次註冊嘗試都未能收到網路的回復,或者被一些原因值拒絕。例如,原因值為:不允許在此跟蹤區域內漫遊(Roaming not allowed in this tracking area)、或跟蹤區域中沒有合適的小區(No suitable cells in tracking area)、擁塞(Congestion)等等。The terminal device reports the unreachable time to the network device through the registration request message. The registration may be successful or failed. For example, the network link quality is poor, resulting in multiple registration attempts without receiving a response from the network, or being rejected by some reason values. For example, the reason value is: Roaming not allowed in this tracking area, or there are no suitable cells in the tracking area, congestion, etc.

一方面,針對不同的情況,終端設備如何儲存MM和SM上下文,合理利用儲存資源,是需要考慮的。另一方面,終端設備在被某一原因值拒絕後,可能會進入去註冊狀態,也可能會保持在註冊態,註冊態可以是嘗試註冊更新態或公共陸地移動網路(public land mobile network,PLMN )查找(search)狀態等。如果終端設備沒有進入去註冊狀態,就會一直嘗試註冊。嘗試註冊的一種可能的實現方式為:終端設備中設置有多個不同的時間間隔,例如30s,2分鐘,5分鐘等,還設置有註冊嘗試計數器(registration attempt counter)。終端設備先選擇較短的時間間隔進行註冊嘗試,在嘗試次數達到註冊嘗試計數器設置的數值後,再選擇較大的時間間隔進行註冊嘗試,在達到註冊嘗試計數器後,再選擇更大的時間間隔進行註冊嘗試。終端設備不斷進行註冊嘗試,會耽誤modem靜默重置或OS更新流程。On the one hand, for different situations, it is necessary to consider how the terminal device stores MM and SM contexts and reasonably utilizes storage resources. On the other hand, after being rejected by a certain reason value, the terminal device may enter the deregistration state or remain in the registration state. The registration state can be the registration update attempt state or the public land mobile network (PLMN) search state. If the terminal device does not enter the deregistration state, it will keep trying to register. One possible implementation method of attempting to register is to set multiple different time intervals in the terminal device, such as 30s, 2 minutes, 5 minutes, etc., and also set a registration attempt counter. The terminal device first selects a shorter time interval to register, and after the number of attempts reaches the value set by the registration attempt counter, it selects a longer time interval to register, and after reaching the registration attempt counter, it selects a larger time interval to register. If the terminal device continuously attempts to register, it will delay the modem silent reset or OS update process.

基於此,本申請提出了多種通信方法:介紹了在註冊成功或註冊失敗的情況下,終端設備對於儲存MM和SM上下文的操作,以及註冊嘗試的操作。Based on this, this application proposes multiple communication methods: introducing the operation of the terminal device for storing MM and SM contexts in the case of successful registration or registration failure, as well as the operation of registration attempt.

為了更好地介紹本申請實施例,下面結合附圖介紹本申請實施例所提供的方法。後文中如無特殊說明,則本申請的各個實施例對應的附圖中,虛線表示的步驟均為可選的步驟。In order to better introduce the embodiments of this application, the method provided by the embodiments of this application is introduced below in conjunction with the attached drawings. Unless otherwise specified in the following text, the steps indicated by dotted lines in the attached drawings corresponding to each embodiment of this application are all optional steps.

以下,對本申請實施例中的部分用語或概念進行解釋說明,以便於本領域技術人員理解。Below, some terms or concepts in the embodiments of this application are explained to facilitate understanding by technical personnel in this field.

1)、本申請實施例中的“當**時”可以替換為:如果**,在**的情況下,在**時。例如,“如果註冊失敗”可以替換為:當註冊失敗時,或者,在註冊失敗的情況下。1) In the present application example, "when" can be replaced by: if, in the case of, at. For example, "if registration fails" can be replaced by: when registration fails, or, in the case of registration failure.

2)、本申請實施例中的方式a1、方式b1、方式c1、方式d1、方式a2、方式b2、方式c2和方式d2等,對方式進行編號僅是為了方便描述,沒有先後順序的限制,沒有優先級的限制。2) In the embodiments of this application, the methods a1, b1, c1, d1, a2, b2, c2 and d2 are numbered only for the convenience of description. There is no restriction on the order of precedence and no restriction on priority.

3)、未接收到回復消息,可以替換為:在規定的時長內未接收到針對註冊請求消息的回復消息。3) Failure to receive a reply message can be replaced by: Failure to receive a reply message to the registration request message within the specified time.

接收到註冊接受消息,可以替換為:在規定的時長內接收到註冊請求消息的接受消息。Receiving a registration acceptance message can be replaced by receiving an acceptance message of a registration request message within a specified period of time.

接收到註冊拒絕消息,可以替換為在規定的時長內接收到註冊請求消息的拒絕消息。Receiving a registration rejection message can be replaced by receiving a rejection message of a registration request message within a specified period of time.

4)、第一事件,包括但不限於以下的至少一項:作業系統更新、modem重置如靜默重置等。4) The first event includes but is not limited to at least one of the following: operating system update, modem reset such as silent reset, etc.

5)、不可達時間(unavailability period),可以理解為一段時長,用於網路設備在該段時長內保留終端設備的上下文資訊,不對終端設備執行隱式去註冊。終端設備基於第一事件的觸發上報不可達時間,不可達時間對應的時長可以理解為第一事件的持續時長,即從開始執行第一事件至第一事件執行完成所經歷的時長。終端設備向網路設備上報不可達時間資訊時,可以上報一個時長值,或上報一個時長值和一個開始時間。如果終端設備僅上報一個時長值,則網路設備接收到不可達時間後,立即開始計時,在對應的時長值內保留終端設備的上下文資訊。如果終端設備上報一個時長值和一個開始時間,則網路設備在所述開始時間開始計時,在對應的時長值內保留終端設備的上下文資訊。5) Unavailability period can be understood as a period of time during which the network device retains the context information of the terminal device and does not perform implicit deregistration on the terminal device. The terminal device reports the unavailability period based on the triggering of the first event. The duration corresponding to the unavailability period can be understood as the duration of the first event, that is, the duration from the start of the execution of the first event to the completion of the execution of the first event. When the terminal device reports the unavailability period information to the network device, it can report a duration value, or a duration value and a start time. If the terminal device only reports a duration value, the network device will start counting immediately after receiving the unavailability period and retain the context information of the terminal device within the corresponding duration value. If the terminal device reports a duration value and a start time, the network device starts timing at the start time and retains the context information of the terminal device within the corresponding duration value.

6)、本申請實施例中的網路設備可以是接入管理網元或移動性管理網元,例如,AMF網元。6) The network device in the embodiment of the present application may be an access management network element or a mobility management network element, for example, an AMF network element.

圖2為本申請實施例提供的一種通信方法的流程示意圖。FIG2 is a flow chart of a communication method provided in an embodiment of the present application.

步驟201: 終端設備發送註冊請求消息,相應的,網路設備接收註冊請求消息。Step 201: The terminal device sends a registration request message, and correspondingly, the network device receives the registration request message.

所述註冊請求消息用於提供第一事件的不可達時間資訊給網路。The registration request message is used to provide the network with the unreachable time information of the first event.

步驟202:判斷各種情況。例如,是否接收到註冊接受消息,是否接收到註冊拒絕消息,是否達到預設時間或第一預設時長。Step 202: Determine various situations, such as whether a registration acceptance message is received, whether a registration rejection message is received, and whether a preset time or a first preset time has been reached.

如果未接收到回復消息或接收到註冊拒絕消息,轉到步驟201。If no reply message is received or a registration rejection message is received, go to step 201.

如果接收到註冊接受消息,轉到步驟203。或者,在接收到註冊接受消息後,等待達到預設時間或第一預設時長再轉到步驟203。If a registration acceptance message is received, go to step 203. Alternatively, after receiving the registration acceptance message, wait until a preset time or a first preset time length is reached and then go to step 203.

如果達到預設時間或第一預設時長,轉到步驟203。If the preset time or the first preset time is reached, go to step 203.

步驟203:執行所述第一事件。Step 203: Execute the first event.

終端設備在未接收到回復消息後,重新發送註冊請求消息,這個過程可以理解為重傳註冊請求消息,重新發送的註冊請求消息可以理解為註冊請求消息的重傳消息。After not receiving the reply message, the terminal device resends the registration request message. This process can be understood as retransmitting the registration request message, and the resent registration request message can be understood as a retransmission message of the registration request message.

註冊拒絕消息中包括註冊拒絕的原因值,該原因值可以使得終端設備進入註冊態,註冊態包括嘗試註冊更新態或註冊PLMN查找態。終端設備在接收到註冊拒絕消息後,可以根據原因值,選擇PLMN或小區,再重新發送註冊請求消息, 重新發送的註冊請求消息可以理解為註冊請求消息的重傳消息。The registration rejection message includes the reason value of the registration rejection, which can make the terminal device enter the registration state, which includes the registration update state or the registration PLMN search state. After receiving the registration rejection message, the terminal device can select the PLMN or cell according to the reason value and resend the registration request message. The resent registration request message can be understood as a retransmission message of the registration request message.

一種可選的示例中,註冊請求消息中包括非接入層 (non-access stratum,NAS)計數器的值。終端設備每發送一條註冊請求消息,該NAS計數器的值就加1,也就是終端設備相鄰兩次發送的註冊請求消息中,後一次發送的註冊請求消息中的計數器的值比前一次發送的註冊請求消息中的計數器的值大1。當達到NAS計數器的最大值時,該NAS計數器再從0或1開始計數。NAS計數器的最大值與該NAS計數器的值在註冊請求消息中佔用的比特bit位的數量有關,例如,NAS計數器的值在註冊請求消息中佔用3bit時,NAS計數器的最大值為7,因為二進位的111轉換為十進位數字是7。In an optional example, the registration request message includes the value of the non-access stratum (NAS) counter. Each time the terminal device sends a registration request message, the value of the NAS counter is increased by 1, that is, in two adjacent registration request messages sent by the terminal device, the value of the counter in the latter registration request message is 1 greater than the value of the counter in the previous registration request message. When the maximum value of the NAS counter is reached, the NAS counter starts counting from 0 or 1 again. The maximum value of the NAS counter is related to the number of bits occupied by the NAS counter value in the registration request message. For example, when the NAS counter value occupies 3 bits in the registration request message, the maximum value of the NAS counter is 7, because the binary number 111 is converted to a decimal number of 7.

所述預設時間為所述不可達時間的起始點(start of unavailability period)。The preset time is the start of the unavailability period.

如果註冊請求消息中攜帶的不可達時間資訊中包括時長值,不包括開始時間,則start of unavailability period為第一次發送註冊請求消息的時間;如果不可達時間資訊中包括時長值和開始時間,則start of unavailability period為不可達時間資訊中的開始時間。If the unavailability period information carried in the registration request message includes a duration value but does not include a start time, the start of unavailability period is the time when the registration request message is first sent; if the unavailability period information includes a duration value and a start time, the start of unavailability period is the start time in the unavailability period information.

第一預設時長為嘗試註冊的時長。例如,第一預設時長為20分鐘、30分鐘、1個小時等。第一預設時長可以是在第一次發送註冊請求消息時設置的,或者在確定存在第一事件需要執行時設置的。The first preset duration is the duration of the registration attempt. For example, the first preset duration is 20 minutes, 30 minutes, 1 hour, etc. The first preset duration may be set when the registration request message is sent for the first time, or when it is determined that there is a first event that needs to be executed.

一種示例中,所述第一預設時長的開始時間與第一次發送所述註冊請求消息的時間有關。例如,第一預設時長的開始時間為第一次發送所述註冊請求消息的第一時間。In one example, the start time of the first preset duration is related to the time when the registration request message is sent for the first time. For example, the start time of the first preset duration is the first time when the registration request message is sent for the first time.

另一示例中,所述第一預設時長的開始時間與第一次發送所述註冊請求消息確定未接收到回復消息或接收到註冊拒絕消息的時間有關。例如,第一預設時長的開始時間為針對第一次發送所述註冊請求消息確定註冊失敗的第二時間。或者,所述第一預設時長的開始時間為第一時間與第二時間之間的任一時間。In another example, the start time of the first preset time period is related to the time when the registration request message is sent for the first time and it is determined that no reply message is received or a registration rejection message is received. For example, the start time of the first preset time period is the second time when the registration request message is sent for the first time and it is determined that the registration fails. Alternatively, the start time of the first preset time period is any time between the first time and the second time.

終端設備重複發送所述註冊請求消息的過程可以理解為嘗試註冊的過程。也就是達到預設時間或第一預設時長之前,終端設備一直嘗試註冊,在達到預設時間或第一預設時長或接收到註冊接受消息時,終端設備停止嘗試註冊。終端設備設置停止嘗試註冊的時間或設置嘗試註冊的時長,以避免一直嘗試註冊而耽誤執行第一事件。The process of the terminal device repeatedly sending the registration request message can be understood as the process of attempting registration. That is, before the preset time or the first preset duration is reached, the terminal device keeps trying to register, and when the preset time or the first preset duration is reached or the registration acceptance message is received, the terminal device stops trying to register. The terminal device sets the time to stop trying to register or sets the duration of trying to register to avoid delaying the execution of the first event by constantly trying to register.

進一步可選的,在步驟203之後,即第一事件執行完成後,終端設備可以向網路設備發送註冊請求消息。可選的,註冊請求消息中包括註冊的類型,註冊的類型為初始註冊類型或移動註冊類型。如果在第一事件執行完成後,終端設備中保存有第一上下文資訊,終端設備可以忽略之前保存的第一上下文資訊,執行初始註冊流程,與網路設備重新協商上下文資訊;終端設備也可以執行移動註冊流程,複用之前保存的第一上下文資訊。如果在第一事件執行完成後,終端設備中未保存第一上下文資訊,終端設備執行初始註冊流程,與網路設備協商上下文資訊。Further optionally, after step 203, that is, after the first event is executed, the terminal device may send a registration request message to the network device. Optionally, the registration request message includes a registration type, and the registration type is an initial registration type or a mobile registration type. If the first context information is saved in the terminal device after the first event is executed, the terminal device may ignore the first context information saved previously, execute the initial registration process, and renegotiate the context information with the network device; the terminal device may also execute the mobile registration process and reuse the first context information saved previously. If the first context information is not saved in the terminal device after the first event is executed, the terminal device executes an initial registration process to negotiate the context information with the network device.

可選的,在圖2的示例中,終端設備在整個過程中一直在註冊態。例如,在第一次發送註冊請求消息之前,終端設備在註冊態;在第二次、第三次等發送註冊請求消息時,終端設備也在註冊態;當達到所述預設時間或第一預設時長,終端設備還在註冊態。Optionally, in the example of FIG2 , the terminal device is in the registration state throughout the entire process. For example, before sending the registration request message for the first time, the terminal device is in the registration state; when sending the registration request message for the second time, the third time, etc., the terminal device is also in the registration state; when the preset time or the first preset time duration is reached, the terminal device is still in the registration state.

以下介紹終端設備儲存第一上下文資訊的多種可能的實現方式:The following introduces multiple possible implementations of the terminal device storing the first context information:

首先需要說明的是:第一儲存空間的功能為:在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。示例性的,第一儲存空間為非易失性記憶體NV或全球使用者識別卡USIM的儲存空間。第一上下文資訊用於移動管理和/或會話管理。示例性的,第一上下文資訊包括MM上下文資訊和/或SM上下文資訊。註冊態可以是嘗試註冊更新態或註冊PLMN查找態。一種可選的示例中,5GMM上下文中包括註冊嘗試計數器的值,每發送一次註冊請求消息未收到回復消息,該計數器的值加1。接收到註冊拒絕消息或註冊接受消息,該計數器清0,再重新開始計數。當計數器的值達到最大值後,計數器清0,再重新開始計數。First of all, it should be explained that the function of the first storage space is that when the power is turned off or the first event is executed, the data in the first storage space will not be lost. Exemplarily, the first storage space is a non-volatile memory NV or a storage space of a universal user identity card USIM. The first context information is used for mobile management and/or session management. Exemplarily, the first context information includes MM context information and/or SM context information. The registration state may be an attempted registration update state or a registered PLMN search state. In an optional example, the 5GMM context includes the value of a registration attempt counter, and the value of the counter is increased by 1 each time a registration request message is sent and no reply message is received. When a registration rejection message or a registration acceptance message is received, the counter is cleared to 0 and restarts counting. When the counter value reaches the maximum value, the counter is cleared to 0 and restarts counting.

一種可能的實現方式a1:A possible implementation a1:

當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的所述註冊請求消息未接收到回復消息或接收到註冊拒絕消息,終端設備保持在註冊態,可以將第一上下文資訊儲存於第一儲存空間中。When the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, the terminal device remains in the registered state and the first context information can be stored in the first storage space.

終端設備在第一次發送註冊請求消息之前,在註冊態,網路設備中維護有終端設備的上下文資訊。終端設備在第一次、或後續多次發送註冊請求消息後,如果網路鏈路不佳,網路設備未收到註冊請求消息,網路設備仍然會維護終端設備的上下文資訊。如果網路設備接收到註冊請求消息,拒絕註冊,但是拒絕的原因值使得終端設備仍然在註冊態,而沒有進入去註冊態,網路設備也仍然會維護終端設備的上下文資訊。網路設備維護上下文的時間較長,一般能夠持續到執行第一事件結束。所以,在第一事件執行之前,終端設備將第一上下文資訊儲存於第一儲存空間中,在第一事件執行時不會被刪除,以便第一事件執行完成後可以複用之前協商好的上下文,不用與網路重新協商,可以節省信令開銷,加快業務流程,也不會使會話或業務中斷。Before the terminal device sends the registration request message for the first time, in the registration state, the network device maintains the context information of the terminal device. After the terminal device sends the registration request message for the first time or multiple times thereafter, if the network link is poor and the network device does not receive the registration request message, the network device will still maintain the context information of the terminal device. If the network device receives the registration request message and refuses to register, but the reason value for the refusal causes the terminal device to remain in the registration state instead of entering the deregistration state, the network device will still maintain the context information of the terminal device. The network device maintains the context for a long time, generally until the execution of the first event is completed. Therefore, before the first event is executed, the terminal device stores the first context information in the first storage space, and the first context information will not be deleted when the first event is executed, so that after the first event is executed, the previously negotiated context can be reused without renegotiating with the network, which can save signaling overhead, speed up business processes, and will not interrupt sessions or businesses.

進一步可選的,所述第一儲存空間中的所述第一上下文資訊中的註冊嘗試計數器(registration attempt counter)被重置為0。終端設備將registration attempt counter重置為0,可以為嘗試註冊提供更多的機會。例如,嘗試註冊的一種可能的實現方式為:終端設備中設置有多個不同的時間間隔,例如30s,2分鐘,5分鐘等,registration attempt counter的上限為5。如果當前registration attempt counter為4,則針對每個時間間隔只剩下一次嘗試註冊的機會,即終端設備採用時間間隔30s進行嘗試註冊一次後,如果註冊失敗,則等2分鐘後再進行下一次嘗試註冊,如果仍然註冊失敗,則再等5分鐘後再進行嘗試註冊。如果將registration attempt counter重置為0,則針對每個時間間隔有5次嘗試註冊的機會,所以可以為嘗試註冊提供更多的機會。Further optionally, the registration attempt counter in the first context information in the first storage space is reset to 0. The terminal device resets the registration attempt counter to 0 to provide more opportunities for registration attempts. For example, one possible implementation of registration attempts is: multiple different time intervals are set in the terminal device, such as 30s, 2 minutes, 5 minutes, etc., and the upper limit of the registration attempt counter is 5. If the current registration attempt counter is 4, there is only one chance to try to register for each time interval, that is, after the terminal device attempts to register once with a time interval of 30s, if the registration fails, it will wait for 2 minutes before making the next registration attempt. If the registration still fails, it will wait for another 5 minutes before making another registration attempt. If the registration attempt counter is reset to 0, there are 5 opportunities to try to register for each time interval, so more opportunities can be provided for registration attempts.

終端設備可以先將registration attempt counter重置為0,再將包含重置為0的registration attempt counter的第一上下文資訊儲存於第一儲存空間中;也可以是先將第一上下文資訊儲存於第一儲存空間中,再將第一儲存空間中的第一上下文資訊中的registration attempt counter重置為0。The terminal device may first reset the registration attempt counter to 0, and then store the first context information including the registration attempt counter reset to 0 in the first storage space; or the terminal device may first store the first context information in the first storage space, and then reset the registration attempt counter in the first context information in the first storage space to 0.

如果終端設備未接收到回復消息,MM上下文中包含的5GMM狀態為:5GMM註冊.嘗試註冊更新態(5GMM-REGISTERED. ATTEMPTING-REGISTRATION-UPDATE)等5GMM註冊子狀態。如果MM上下文中包含registration attempt counter,則將registration attempt counter置為0。If the terminal device does not receive the reply message, the 5GMM status contained in the MM context is: 5GMM-REGISTERED. ATTEMPTING-REGISTRATION-UPDATE and other 5GMM registration sub-states. If the MM context contains a registration attempt counter, the registration attempt counter is set to 0.

如果終端設備接收到一些拒絕註冊的原因值,MM上下文中包含5GMM狀態為:5GMM註冊.嘗試註冊更新態或5GMM註冊.PLMN查找態(5GMM-REGISTERED.PLMN-SEARCH)等5GMM註冊子狀態。如果MM上下文中包含registration attempt counter,則將registration attempt counter置為0。If the terminal device receives some reason value for registration rejection, the MM context contains 5GMM status such as 5GMM-REGISTERED.ATTEMPTED REGISTRATION UPDATE or 5GMM-REGISTERED.PLMN-SEARCH. If the MM context contains registration attempt counter, the registration attempt counter is set to 0.

一種可能的實現方式b1:A possible implementation b1:

當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,終端設備保持在註冊態,可以基於第一值和第二值,確定是否將第一上下文資訊儲存於第一儲存空間中。When the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, the terminal device remains in the registered state and can determine whether to store the first context information in the first storage space based on the first value and the second value.

所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長。The first value is used to indicate the remaining time of the deregistration timer, and the second value is the duration of the first event.

如果所述第一值大於或等於所述第二值,將第一上下文資訊儲存於第一儲存空間中;如果所述第一值小於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。或者,如果所述第一值大於所述第二值,將第一上下文資訊儲存於第一儲存空間中;如果所述第一值小於或等於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。If the first value is greater than or equal to the second value, the first context information is stored in the first storage space; if the first value is less than the second value, the first context information is not stored in the first storage space. Alternatively, if the first value is greater than the second value, the first context information is stored in the first storage space; if the first value is less than or equal to the second value, the first context information is not stored in the first storage space.

以下介紹確定第一值的多種可能的示例:The following are several possible examples of determining the first value:

如果針對最後一次發送的註冊請求消息接收到註冊拒絕消息,所述第一值為去註冊計時器的最大值。網路設備在發送註冊拒絕消息時,啟動去註冊計時器,忽略傳輸時延,終端設備在接收到註冊拒絕消息,去註冊計時器的剩餘時長為去註冊計時器的最大值Tmax,即第一值為Tmax。If a registration rejection message is received for the last registration request message sent, the first value is the maximum value of the deregistration timer. When the network device sends the registration rejection message, the deregistration timer is started, ignoring the transmission delay. When the terminal device receives the registration rejection message, the remaining time of the deregistration timer is the maximum value Tmax of the deregistration timer, that is, the first value is Tmax.

如果針對最後一次發送的註冊請求消息未接收到回復消息,所述第一值基於去註冊計時器的最大值Tmax、所述第一事件開始執行的時間和最後一次收到回復消息的時間確定;其中,所述最後一次收到回復消息為第一次發送所述註冊請求消息之前接收到的註冊接受消息,或第一次發送所述註冊請求消息之後接收到的註冊拒絕消息。If no reply message is received for the last registration request message sent, the first value is determined based on the maximum value Tmax of the deregistration timer, the time when the first event starts to execute, and the time when the last reply message is received; wherein, the last reply message received is a registration acceptance message received before the registration request message is sent for the first time, or a registration rejection message received after the registration request message is sent for the first time.

其中,第一事件開始執行的時間可以基於步驟202中介紹的不可達時間的起始點(start of unavailability period)或第一預設時長確定。The time when the first event starts to be executed may be determined based on the start of the unavailability period introduced in step 202 or the first preset duration.

如圖3所示,終端設備第一次發送註冊請求消息的時間為t1,第一事件開始執行的時間為t2,最後一次收到回復消息的時間為t3,(a)中介紹了最後一次收到回復消息為第一次發送所述註冊請求消息之後接收到的註冊拒絕消息,(b)中介紹了最後一次收到回復消息為第一次發送所述註冊請求消息之前接收到的註冊接受消息。網路設備在發送註冊拒絕消息或註冊接受消息時,啟動去註冊計時器,忽略傳輸時延,終端設備在接收到註冊拒絕消息或註冊接受消息時,去註冊計時器的剩餘時長為去註冊計時器的最大值。經過一段時長之後,終端設備開始執行第一事件,這時去註冊計時器的剩餘時長為:去註冊計時器的最大值-(第一事件開始執行的時間t2-最後一次收到回復消息的時間t3),即第一值為Tmax-(t2-t3)。As shown in Figure 3, the time when the terminal device first sends the registration request message is t1, the time when the first event starts to execute is t2, and the time when the reply message is last received is t3. (a) mediates the last time the reply message is received as the registration rejection message received after the registration request message is first sent, and (b) mediates the last time the reply message is received as the registration acceptance message received before the registration request message is first sent. When the network device sends a registration rejection message or a registration acceptance message, the deregistration timer is started, ignoring the transmission delay. When the terminal device receives the registration rejection message or the registration acceptance message, the remaining time of the deregistration timer is the maximum value of the deregistration timer. After a period of time, the terminal device starts to execute the first event. At this time, the remaining time of the deregistration timer is: the maximum value of the deregistration timer - (the time t2 when the first event starts to execute - the time t3 when the last reply message is received), that is, the first value is Tmax-(t2-t3).

網路設備向終端設備發送註冊拒絕消息或註冊接受消息時,網路設備會啟動一個去註冊計時器,進行倒計時,當該去註冊計時器剩餘時長為0時,網路設備對終端設備進行隱式去註冊,不會再維護終端設備的上下文。When the network device sends a registration rejection message or a registration acceptance message to the terminal device, the network device starts a deregistration timer and counts down. When the remaining time of the deregistration timer is 0, the network device implicitly deregisters the terminal device and no longer maintains the context of the terminal device.

終端設備在接收到註冊拒絕消息或註冊接受消息後,如果在去註冊計時器的剩餘時長為0之前再次向網路設備發送註冊請求消息,網路設備可以通過接收到註冊請求消息確定終端設備是線上的,就不會對終端設備進行隱式去註冊,仍然維護終端設備的上下文。After receiving a registration rejection message or a registration acceptance message, if the terminal device sends a registration request message to the network device again before the remaining time of the deregistration timer reaches 0, the network device can determine that the terminal device is online by receiving the registration request message, and will not implicitly deregister the terminal device, and still maintain the context of the terminal device.

終端設備在接收到註冊拒絕消息或註冊接受消息時,啟動週期註冊更新計時器T3512。網路設備的去註冊計時器和終端設備的週期註冊更新計時器T3512的時長最大值相同或幾乎相同,例如,均為54分鐘,或者網路設備的去註冊計時器比T3512的時長最大值再多幾分鐘,例如多4分鐘。When the terminal device receives a registration rejection message or a registration acceptance message, it starts the periodic registration update timer T3512. The maximum value of the deregistration timer of the network device and the periodic registration update timer T3512 of the terminal device are the same or almost the same, for example, both are 54 minutes, or the deregistration timer of the network device is a few minutes longer than the maximum value of T3512, for example, 4 minutes longer.

在該示例中,如果去註冊計時器的剩餘時長大於第一事件的持續時長,則在第一事件執行完成時,網路設備還維護終端設備的上下文。終端設備可以在第一事件執行完成時,向網路設備發送註冊請求消息,網路設備接收到終端設備的註冊請求消息則不對終端設備執行隱式去註冊,網路設備繼續維護終端設備的上下文資訊,所以終端設備將第一上下文資訊儲存於第一儲存空間中,在第一事件執行完成後可以複用之前協商好的上下文,不用與網路重新協商,可以節省信令開銷,加快業務流程,也不會使會話或業務中斷。如果去註冊計時器的剩餘時長小於第一事件的持續時長,則在第一事件執行完成時,網路設備已經執行去註冊,不維護終端設備的上下文,終端設備也無需將第一上下文資訊儲存於第一儲存空間中,可以節省終端設備的儲存空間。In this example, if the remaining time of the deregistration timer is greater than the duration of the first event, the network device also maintains the context of the terminal device when the first event is completed. The terminal device can send a registration request message to the network device when the first event is completed. When the network device receives the registration request message from the terminal device, it does not perform implicit deregistration on the terminal device. The network device continues to maintain the context information of the terminal device, so the terminal device stores the first context information in the first storage space. After the first event is completed, the previously negotiated context can be reused without renegotiating with the network, which can save signaling overhead, speed up the business process, and will not interrupt the session or business. If the remaining time of the deregistration timer is less than the duration of the first event, when the first event is completed, the network device has already executed the deregistration, and the context of the terminal device is not maintained. The terminal device does not need to store the first context information in the first storage space, which can save the storage space of the terminal device.

一種可能的實現方式c1:A possible implementation c1:

當達到所述預設時間或當達到所述第一預設時長時,如果終端設備針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,終端設備保持在註冊態,可以將第一上下文資訊中的第一部分資訊儲存於第一儲存空間中,第一部分資訊用於安全校驗。When the preset time is reached or when the first preset duration is reached, if the terminal device does not receive a reply message or receives a registration rejection message for the last registration request message sent, the terminal device remains in the registered state and can store the first part of the information in the first context information in the first storage space, and the first part of the information is used for security verification.

第一部分資訊中包括用於安全校驗的第一部分資訊,還包括除用於安全校驗之外的第二部分資訊,終端設備不會將第二部分資訊儲存於第一儲存空間中,這樣可以避免儲存資源浪費。第一部分資訊包括但不限於現有定義的全球唯一臨時UE標識(Globally Unique Temporary UE Identity,GUTI)和安全上下文等MM上下文,用於第一事件完成後複用之前協商的安全上下文,加快註冊的流程。The first part of information includes the first part of information used for security verification, and also includes the second part of information other than that used for security verification. The terminal device will not store the second part of information in the first storage space, so as to avoid wasting storage resources. The first part of information includes but is not limited to the currently defined MM contexts such as the Globally Unique Temporary UE Identity (GUTI) and security context, which is used to reuse the previously negotiated security context after the first event is completed, so as to speed up the registration process.

在該方式c1中,當終端設備執行第一事件時,終端設備可以進入去註冊流程。In the mode c1, when the terminal device executes the first event, the terminal device may enter the deregistration process.

一種可能的實現方式d1:A possible implementation d1:

終端設備接收到註冊接受消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中。不管是針對第一次發送的註冊請求消息接收到註冊接受消息,還是針對非第一次發送的註冊請求消息接收到註冊接受消息,只要接收到註冊接受消息就可以將第一上下文資訊儲存於第一儲存空間中。The terminal device receives the registration acceptance message, remains in the registration state, and stores the first context information in the first storage space. Regardless of whether the registration acceptance message is received for a registration request message sent for the first time, or the registration acceptance message is received for a registration request message not sent for the first time, the first context information can be stored in the first storage space as long as the registration acceptance message is received.

如圖4所示,結合圖2以及實現方式a1和d1,介紹一種通信方法。在該方法中,以終端設備為UE,網路設備為AMF網元,第一事件為OS更新或數據機重置,第一上下文資訊為MM和SM上下文資訊為例進行說明。As shown in FIG4, in combination with FIG2 and implementations a1 and d1, a communication method is introduced. In the method, the terminal device is a UE, the network device is an AMF network element, the first event is an OS update or a modem reset, and the first context information is MM and SM context information.

步驟400:UE處於註冊態。Step 400: UE is in the registration state.

步驟401:UE準備OS更新或數據機重置。Step 401: UE prepares for OS update or modem reset.

步驟402:UE確定能夠將MM和SM上下文資訊儲存於第一儲存空間中。Step 402: The UE determines that the MM and SM context information can be stored in the first storage space.

例如,確定第一儲存空間有剩餘的儲存資源來儲存MM和SM上下文資訊。For example, it is determined that the first storage space has remaining storage resources to store the MM and SM context information.

步驟403:UE發送註冊請求消息,相應的,AMF網元接收註冊請求消息。其中,所述註冊請求消息中攜帶不可達時間資訊。Step 403: The UE sends a registration request message, and the AMF network element receives the registration request message accordingly. The registration request message carries the unreachable time information.

步驟404:判斷各種情況,例如,是否接收到註冊接受消息,是否接收到註冊拒絕消息,是否達到預設時間或第一預設時長。Step 404: Determine various situations, for example, whether a registration acceptance message is received, whether a registration rejection message is received, whether a preset time or a first preset time has been reached.

如果未接收到回復消息或接收到註冊拒絕消息,轉到步驟403。If no reply message is received or a registration rejection message is received, go to step 403.

如果達到不可達時間的起始點或第一預設時長,轉到步驟405a和步驟405b。If the starting point of the unreachable time or the first preset time duration is reached, go to step 405a and step 405b.

如果接收到註冊接受消息,轉到步驟406。If a registration acceptance message is received, go to step 406.

步驟405a:UE針對最後一次發送的註冊請求消息未接收到回復消息,保持在註冊態,將SM和MM上下文資訊儲存於第一儲存空間中,將註冊嘗試計數器置為0。Step 405a: The UE does not receive a reply message for the last registration request message sent, and remains in the registration state, stores the SM and MM context information in the first storage space, and sets the registration attempt counter to 0.

MM上下文中包含的5GMM狀態為:5GMM註冊.嘗試註冊更新態(5GMM-REGISTERED. ATTEMPTING-REGISTRATION-UPDATE)等5GMM註冊子狀態。如果MM上下文中包含registration attempt counter,則將registration attempt counter置為0。The 5GMM status included in the MM context is: 5GMM-REGISTERED. ATTEMPTING-REGISTRATION-UPDATE and other 5GMM registration sub-states. If the MM context contains a registration attempt counter, the registration attempt counter is set to 0.

在步驟405a之後執行步驟407。After step 405a, step 407 is executed.

步驟405b:UE針對最後一次發送的註冊請求消息接收到包含一些原因值的註冊拒絕消息,保持在註冊態,將SM和MM上下文資訊儲存於第一儲存空間中,將註冊嘗試計數器置為0。Step 405b: The UE receives a registration rejection message including some reason values for the last registration request message sent, remains in the registered state, stores the SM and MM context information in the first storage space, and sets the registration attempt counter to 0.

MM上下文包含5GMM狀態為:5GMM註冊.嘗試註冊更新態或5GMM註冊.PLMN查找態(5GMM-REGISTERED.PLMN-SEARCH)等5GMM註冊子狀態。如果MM上下文中包含registration attempt counter,則將registration attempt counter置為0。The MM context includes 5GMM status such as 5GMM-REGISTERED.PLMN-SEARCH or 5GMM-REGISTERED.PLMN-SEARCH. If the MM context includes a registration attempt counter, the registration attempt counter is set to 0.

在步驟405b之後執行步驟407。After step 405b, step 407 is executed.

步驟406:UE接收到註冊接受消息,保持在註冊態,將SM和MM上下文資訊儲存於第一儲存空間中。Step 406: The UE receives the registration acceptance message, remains in the registered state, and stores the SM and MM context information in the first storage space.

在步驟406之後執行步驟407。After step 406, step 407 is executed.

步驟407:UE進行OS更新或數據機重置,在進行OS更新或數據機重置之後,進行初始註冊或移動註冊。Step 407: The UE performs an OS update or a modem reset, and after the OS update or the modem reset, performs an initial registration or a mobile registration.

如圖5所示,結合圖2以及實現方式b1和d1,介紹一種通信方法。在該方法中,以終端設備為UE,網路設備為AMF網元,第一事件為OS更新或數據機重置,第一上下文資訊為MM和SM上下文資訊為例進行說明。As shown in FIG5 , in combination with FIG2 and implementations b1 and d1, a communication method is introduced. In the method, the terminal device is a UE, the network device is an AMF network element, the first event is an OS update or a modem reset, and the first context information is MM and SM context information.

步驟500-步驟503可以參考步驟400-步驟403,不再重複贅述。Step 500 to step 503 may refer to step 400 to step 403, and will not be repeated here.

步驟504:判斷各種情況,例如,是否接收到註冊接受消息,是否接收到註冊拒絕消息,是否達到預設時間或第一預設時長。Step 504: Determine various situations, for example, whether a registration acceptance message is received, whether a registration rejection message is received, whether a preset time or a first preset time has been reached.

如果未接收到回復消息或接收到註冊拒絕消息,轉到步驟503。If no reply message is received or a registration rejection message is received, go to step 503.

如果達到不可達時間的起始點或第一預設時長,轉到步驟505。If the starting point of the unreachable time or the first preset duration is reached, go to step 505.

如果接收到註冊接受消息,轉到步驟506。If a registration acceptance message is received, go to step 506.

步驟505:UE針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中。Step 505: If the UE does not receive a reply message or receives a registration rejection message for the last registration request message sent, the UE remains in the registration state and determines whether to store the first context information in the first storage space based on the first value and the second value.

在步驟505之後執行步驟507。After step 505, step 507 is executed.

步驟506:UE接收到註冊接受消息,保持在註冊態,將SM和MM上下文資訊儲存於第一儲存空間中。Step 506: The UE receives the registration acceptance message, remains in the registered state, and stores the SM and MM context information in the first storage space.

在步驟506之後執行步驟507。After step 506, step 507 is executed.

步驟507:UE進行OS更新或數據機重置,在進行OS更新或數據機重置之後,進行初始註冊或移動註冊。Step 507: The UE performs an OS update or a modem reset, and after the OS update or the modem reset, performs an initial registration or a mobile registration.

如圖6所示,結合圖2以及實現方式c1和d1,介紹一種通信方法。在該方法中,以終端設備為UE,網路設備為AMF網元,第一事件為OS更新或數據機重置,第一上下文資訊為MM和SM上下文資訊為例進行說明。As shown in FIG6 , in combination with FIG2 and implementations c1 and d1, a communication method is introduced. In the method, the terminal device is a UE, the network device is an AMF network element, the first event is an OS update or a modem reset, and the first context information is MM and SM context information.

步驟600-步驟603可以參考步驟400-步驟403,不再重複贅述。Step 600 to step 603 may refer to step 400 to step 403, and will not be repeated here.

步驟604:判斷各種情況,例如,是否接收到註冊接受消息,是否接收到註冊拒絕消息,是否達到預設時間或第一預設時長。Step 604: Determine various situations, for example, whether a registration acceptance message is received, whether a registration rejection message is received, whether a preset time or a first preset time has been reached.

如果未接收到回復消息或接收到註冊拒絕消息,轉到步驟603。If no reply message is received or a registration rejection message is received, go to step 603.

如果達到不可達時間的起始點或第一預設時長,轉到步驟605。If the starting point of the unreachable time or the first preset duration is reached, go to step 605.

如果接收到註冊接受消息,轉到步驟606。If a registration acceptance message is received, go to step 606.

步驟605:UE針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,將現有定義的GUTI和安全上下文等MM上下文儲存於第一儲存空間中。Step 605: If the UE does not receive a reply message or receives a registration rejection message for the last registration request message sent, the UE remains in the registered state and stores the currently defined MM contexts such as the GUTI and security context in the first storage space.

在步驟605之後執行步驟607。After step 605, step 607 is executed.

步驟606:UE接收到註冊接受消息,保持在註冊態,將SM和MM上下文資訊儲存於第一儲存空間中。Step 606: The UE receives the registration acceptance message, remains in the registered state, and stores the SM and MM context information in the first storage space.

步驟607:UE進行OS更新或數據機重置,在進行OS更新或數據機重置之後,進行初始註冊或移動註冊。Step 607: The UE performs an OS update or a modem reset, and after the OS update or the modem reset, performs an initial registration or a mobile registration.

前文的實現方式a1、b1和c1分別介紹了終端設備儲存上下文資訊的方式,這些實現方式可以與圖2關聯,即當達到所述預設時間或當達到所述第一預設時長時,如果終端設備仍然未接收到回復消息或接收到註冊拒絕消息,採用上述介紹的實現方式a1、b1和c1進行儲存,這些實現方式也可以與圖2的過程解耦,以下進行再介紹多種可能的實現方式:The implementations a1, b1 and c1 in the previous text respectively introduce the methods of storing context information in the terminal device. These implementations can be associated with FIG. 2, that is, when the preset time is reached or when the first preset time is reached, if the terminal device still does not receive a reply message or receives a registration rejection message, the above-mentioned implementations a1, b1 and c1 are used for storage. These implementations can also be decoupled from the process of FIG. 2. The following introduces multiple possible implementations:

方式a2:終端設備發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路;如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中;然後執行所述第一事件。Mode a2: The terminal device sends a registration request message, and the registration request message is used to provide the unreachable time information of the first event to the network; if no reply message is received or a registration rejection message is received, it remains in the registered state and stores the first context information in the first storage space; then the first event is executed.

方式b2:終端設備發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路;如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中;其中,所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長;然後執行所述第一事件。Mode b2: The terminal device sends a registration request message, and the registration request message is used to provide the unreachable time information of the first event to the network; if no reply message is received or a registration rejection message is received, it remains in the registered state, and determines whether to store the first context information in the first storage space based on the first value and the second value; wherein the first value is used to indicate the remaining time of the deregistration timer, and the second value is the duration of the first event; and then the first event is executed.

方式c2:終端設備發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路;如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,將第一上下文資訊中的第一部分資訊儲存於第一儲存空間中;然後執行所述第一事件。進一步可選的,在執行第一事件時,終端設備進入去註冊態。Mode c2: The terminal device sends a registration request message, the registration request message is used to provide the network with the unreachable time information of the first event; if no reply message is received or a registration rejection message is received, the terminal device remains in the registered state, stores the first part of the first context information in the first storage space, and then executes the first event. Further optionally, when executing the first event, the terminal device enters the deregistered state.

方式a2、b2和c2中限定了在發送註冊請求消息後要執行第一事件。方式a2、b2和c2中的註冊請求消息可以是達到圖2的步驟202中的預設時間或第一預設時長之前發送的最後一條註冊請求消息,也可以是基於其它觸發條件或其它場景發送的註冊請求消息。關於方式a2、b2、c2的其它技術細節可以參考方式a1、b1和c1,不再重複贅述。Modes a2, b2 and c2 define that the first event is to be executed after the registration request message is sent. The registration request message in modes a2, b2 and c2 may be the last registration request message sent before the preset time or the first preset time in step 202 of FIG. 2 is reached, or may be a registration request message sent based on other triggering conditions or other scenarios. For other technical details of modes a2, b2 and c2, reference may be made to modes a1, b1 and c1, and no further repetition is given.

可以理解的是,為了實現上述實施例中功能,終端設備和網路設備包括了執行各個功能相應的硬體結構和/或軟體模組。本領域技術人員應該很容易意識到,結合本申請中所公開的實施例描述的各示例的單元及方法步驟,本申請能夠以硬體或硬體和電腦軟體相結合的形式來實現。某個功能究竟以硬體還是電腦軟體驅動硬體的方式來執行,取決於技術方案的特定應用場景和設計約束條件。It is understandable that, in order to realize the functions in the above-mentioned embodiments, the terminal equipment and the network equipment include hardware structures and/or software modules corresponding to the execution of each function. It should be easy for a person skilled in the art to realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

圖7和圖8為本申請的實施例提供的可能的通信裝置的結構示意圖。這些通信裝置可以用於實現上述方法實施例中網路設備或終端設備的功能,因此也能實現上述方法實施例所具備的有益效果。Figures 7 and 8 are schematic diagrams of possible communication devices provided by the embodiments of the present application. These communication devices can be used to implement the functions of the network device or terminal device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments.

如圖7所示,通信裝置700包括處理單元710和收發單元720。As shown in FIG. 7 , the communication device 700 includes a processing unit 710 and a transceiver unit 720 .

例如,通信裝置700用於實現上述圖2、圖4、圖5、圖6所示的方法實施例中終端設備或UE的功能。所述收發單元720,可以執行上述方法實施例中終端設備或UE執行的接收動作和發送動作。所述處理單元710,可以執行上述方法實施例中終端設備或UE執行的動作中除發送動作和接收動作外的其它動作。For example, the communication device 700 is used to implement the functions of the terminal device or UE in the method embodiments shown in Figures 2, 4, 5, and 6. The transceiver unit 720 can execute the receiving action and the sending action executed by the terminal device or UE in the method embodiments. The processing unit 710 can execute other actions except the sending action and the receiving action among the actions executed by the terminal device or UE in the method embodiments.

在一種可能的實現方式中,所述收發單元720,用於發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路。In a possible implementation, the transceiver unit 720 is used to send a registration request message, and the registration request message is used to provide unreachable time information of the first event to the network.

在一種可能的實現方式中,所述處理單元710,用於確定是否達到預設時間,當達到所述預設時間時,執行所述第一事件;其中,所述預設時間為所述不可達時間的起始點。In a possible implementation, the processing unit 710 is used to determine whether a preset time is reached, and when the preset time is reached, execute the first event; wherein the preset time is the starting point of the unreachable time.

在一種可能的實現方式中,所述處理單元710,用於確定是否達到第一預設時長,當達到所述第一預設時長時,執行所述第一事件。In a possible implementation, the processing unit 710 is used to determine whether a first preset time duration has been reached, and when the first preset time duration has been reached, execute the first event.

在一種可能的實現方式中,所述處理單元710,用於當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,並將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。In one possible implementation, the processing unit 710 is used to remain in the registered state and store the first context information in the first storage space when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost.

在一種可能的實現方式中,所述處理單元710,用於將所述第一上下文資訊中的註冊嘗試計數器重置為0。In a possible implementation, the processing unit 710 is configured to reset the registration attempt counter in the first context information to 0.

在一種可能的實現方式中,所述處理單元710,用於當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,並基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中;其中,所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長。In one possible implementation, the processing unit 710 is used to, when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, remain in the registered state and determine whether to store the first context information in the first storage space based on a first value and a second value; wherein the first value is used to indicate the remaining duration of the deregistration timer, and the second value is the duration of the first event.

在一種可能的實現方式中,所述處理單元710,具體用於如果所述第一值大於或等於所述第二值,將第一上下文資訊儲存於第一儲存空間中;如果所述第一值小於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。In a possible implementation, the processing unit 710 is specifically configured to store the first context information in a first storage space if the first value is greater than or equal to the second value; and not store the first context information in the first storage space if the first value is less than the second value.

在一種可能的實現方式中,所述處理單元710,用於當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,並將第一上下文資訊中第一部分資訊儲存於第一儲存空間中;其中,所述第一部分資訊用於安全校驗。In one possible implementation, the processing unit 710 is used to maintain the registration state and store the first part of the information in the first context information in the first storage space when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received; wherein the first part of the information is used for security verification.

在一種可能的實現方式中,所述處理單元710,用於如果接收到註冊接受消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中。In a possible implementation, the processing unit 710 is configured to, if a registration acceptance message is received, remain in a registered state and store the first context information in a first storage space.

有關上述處理單元710和收發單元720更詳細的描述可以直接參考圖2、圖4、圖5、圖6所示的方法實施例中相關描述直接得到,這裡不加贅述。所述處理單元710可以通過處理器來實現,所述收發單元720可以通過收發器來實現。A more detailed description of the processing unit 710 and the transceiver unit 720 can be directly obtained by referring to the relevant descriptions in the method embodiments shown in Figures 2, 4, 5, and 6, and will not be repeated here. The processing unit 710 can be implemented by a processor, and the transceiver unit 720 can be implemented by a transceiver.

如圖8所示,通信裝置800包括處理器810和介面電路820。處理器810和介面電路820之間相互耦合。可以理解的是,介面電路820可以為收發器或輸入輸出介面。可選的,通信裝置800還可以包括記憶體830,用於儲存處理器810執行的指令或儲存處理器810運行指令所需要的輸入資料或儲存處理器810運行指令後產生的資料。As shown in FIG8 , the communication device 800 includes a processor 810 and an interface circuit 820. The processor 810 and the interface circuit 820 are coupled to each other. It is understood that the interface circuit 820 can be a transceiver or an input-output interface. Optionally, the communication device 800 can also include a memory 830 for storing instructions executed by the processor 810 or storing input data required by the processor 810 to run instructions or storing data generated after the processor 810 runs instructions.

例如,通信裝置800用於實現上述圖2、圖4、圖5、圖6所示的方法實施例中終端設備或UE的功能。例如,處理器810用於實現上述處理單元710的功能,介面電路820用於實現上述收發單元720的功能。For example, the communication device 800 is used to implement the functions of the terminal device or UE in the method embodiments shown in Figures 2, 4, 5, and 6. For example, the processor 810 is used to implement the functions of the processing unit 710, and the interface circuit 820 is used to implement the functions of the transceiver unit 720.

當上述通信裝置為應用於網路設備的晶片時,該網路設備晶片實現上述方法實施例中網路設備的功能。該網路設備晶片從網路設備中的其它模組(如射頻模組或天線)接收資訊,該資訊是終端設備發送給網路設備的;或者,該網路設備晶片向網路設備中的其它模組(如射頻模組或天線)發送資訊,該資訊是網路設備發送給終端設備的。When the communication device is a chip applied to a network device, the network device chip implements the functions of the network device in the above method embodiment. The network device chip receives information from other modules in the network device (such as a radio frequency module or an antenna), and the information is sent to the network device by the terminal device; or the network device chip sends information to other modules in the network device (such as a radio frequency module or an antenna), and the information is sent to the terminal device by the network device.

當上述通信裝置為應用於終端設備的模組時,該終端設備模組實現上述方法實施例中終端設備的功能。該終端設備模組從終端設備中的其它模組(如射頻模組或天線)接收資訊,該資訊是網路設備發送給終端設備的;或者,該終端設備模組向終端設備中的其它模組(如射頻模組或天線)發送資訊,該資訊是終端設備發送給網路設備的。這裡的終端設備模組可以是終端設備的基帶晶片,也可以是DU或其他模組,這裡的DU可以是開放式無線接入網(open radio access network,O-RAN)架構下的DU。When the above-mentioned communication device is a module applied to a terminal device, the terminal device module implements the functions of the terminal device in the above-mentioned method implementation example. The terminal device module receives information from other modules in the terminal device (such as a radio frequency module or an antenna), and the information is sent by the network device to the terminal device; or, the terminal device module sends information to other modules in the terminal device (such as a radio frequency module or an antenna), and the information is sent by the terminal device to the network device. The terminal device module here can be a baseband chip of the terminal device, or it can be a DU or other module. The DU here can be a DU under the open radio access network (O-RAN) architecture.

可以理解的是,本申請的實施例中的處理器可以是中央處理單元(Central Processing Unit,CPU),還可以是其它通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現場可程式設計閘陣列(Field Programmable Gate Array,FPGA)或者其它可程式設計邏輯器件、電晶體邏輯器件,硬體部件或者其任意組合。通用處理器可以是微處理器,也可以是任何常規的處理器。It is understood that the processor in the embodiment of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

本申請實施例還提供了一種電腦可讀儲存介質,儲存有電腦程式,該電腦程式被電腦執行時,可以使得所述電腦用於執行上述通信方法。或者說:所述電腦程式包括用於實現上述通信的指令。The embodiment of the present application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, enables the computer to execute the above communication method. In other words, the computer program includes instructions for implementing the above communication.

本申請實施例還提供了一種電腦程式產品,包括:電腦程式代碼,當所述電腦程式代碼在電腦上運行時,使得電腦可以執行上述提供的通信方法。The embodiment of the present application also provides a computer program product, including: computer program code, when the computer program code is run on a computer, the computer can execute the communication method provided above.

本申請實施例還提供了一種通信的系統,所述通信系統包括:執行上述通信方法的網路設備和終端設備。The embodiment of the present application also provides a communication system, which includes: a network device and a terminal device for executing the above communication method.

本申請的實施例中的方法步驟可以通過硬體的方式來實現,也可以由處理器執行軟體指令的方式來實現。軟體指令可以由相應的軟體模組組成,軟體模組可以被存放於隨機存取記憶體、快閃記憶體、唯讀記憶體、可程式設計唯讀記憶體、可擦除可程式設計唯讀記憶體、電可擦除可程式設計唯讀記憶體、寄存器、硬碟、移動硬碟、CD-ROM或者本領域熟知的任何其它形式的儲存介質中。一種示例性的儲存介質耦合至處理器,從而使處理器能夠從該儲存介質讀取資訊,且可向該儲存介質寫入資訊。當然,儲存介質也可以是處理器的組成部分。處理器和儲存介質可以位於ASIC中。另外,該ASIC可以位於基地台或終端中。當然,處理器和儲存介質也可以作為分立元件存在於基地台或終端中。The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, register, hard disk, removable hard disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a base station or a terminal. Of course, the processor and the storage medium can also exist in a base station or a terminal as discrete components.

在上述實施例中,可以全部或部分地通過軟體、硬體、韌體或者其任意組合來實現。當使用軟體實現時,可以全部或部分地以電腦程式產品的形式實現。所述電腦程式產品包括一個或多個電腦程式或指令。在電腦上載入和執行所述電腦程式或指令時,全部或部分地執行本申請實施例所述的流程或功能。所述電腦可以是通用電腦、專用電腦、電腦網路、網路設備、使用者設備或者其它可程式設計裝置。所述電腦程式或指令可以儲存在電腦可讀儲存介質中,或者從一個電腦可讀儲存介質向另一個電腦可讀儲存介質傳輸,例如,所述電腦程式或指令可以從一個網站站點、電腦、伺服器或資料中心通過有線或無線方式向另一個網站站點、電腦、伺服器或資料中心進行傳輸。所述電腦可讀儲存介質可以是電腦能夠存取的任何可用介質或者是集成一個或多個可用介質的伺服器、資料中心等資料存放裝置。所述可用介質可以是磁性介質,例如,軟碟、硬碟、磁帶;也可以是光介質,例如,數位視訊光碟;還可以是半導體介質,例如,固態硬碟。該電腦可讀儲存介質可以是易失性或非易失性儲存介質,或可包括易失性和非易失性兩種類型的儲存介質。In the above embodiments, the embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, the embodiments may 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 or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiments of the present application is executed in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may 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 or instruction may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disc; it may also be a semiconductor medium, such as a solid-state hard disk. The computer-readable storage media may be volatile or nonvolatile storage media, or may include both volatile and nonvolatile types of storage media.

在本申請的各個實施例中,如果沒有特殊說明以及邏輯衝突,不同的實施例之間的術語和/或描述具有一致性、且可以相互引用,不同的實施例中的技術特徵根據其內在的邏輯關係可以組合形成新的實施例。In each embodiment of the present application, unless otherwise specified or logically conflicted, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form a new embodiment based on their inherent logical relationships.

本申請實施例中,對於名詞的數目,除非特別說明,表示“單數名詞或複數名詞”,即"一個或多個”。“至少一個”是指一個或者多個,“多個”是指兩個或兩個以上。“和/或”,描述關聯物件的關聯關係,表示可以存在三種關係,例如,A和/或B,可以表示:單獨存在A,同時存在A和B,單獨存在B的情況,其中的A或B可以是單數或者複數。字元“/”一般表示前後關聯物件是一種“或”的關係。例如,A/B,表示:A或B。“以下至少一項(個)”或“其中一項或多項”等類似表達,是指的這些項中的任意組合,包括單項(個)或複數項(個)的任意組合。例如,a、b、或c中的至少一項,或a、b、或c中的一項或多項,表示:a,b,c,a和b,a和c,b和c,或,a和b和c。其中a、b、c中的每項可以是單個,也可以是多個。In the embodiments of the present application, the number of nouns, unless otherwise specified, means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plurality" means two or more. "And/or" describes the association relationship of related objects, indicating that three types of relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A or B can be singular or plural. The character "/" generally indicates that the previous and following related objects are in an "or" relationship. For example, A/B means: A or B. "At least one of the following items" or "one or more of them" and other similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c, or one or more of a, b, or c, represents: a, b, c, a and b, a and c, b and c, or a, b, and c. Each of a, b, and c can be single or multiple.

本申請實施例提及“第一”、“第二”等序數詞是用於對多個物件進行區分,不用於限定多個物件的大小、內容、順序、時序、優先級或者重要程度等。且,這種名稱也並不是表示這兩個資訊包括的內容、發送端/接收端、發送順序、大小、應用場景、優先級或者重要程度等的不同。另外,本申請所介紹的各個實施例中對於步驟的編號,只是為了區分不同的步驟,並不用於限定步驟之間的先後順序。The ordinal words "first" and "second" mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the size, content, sequence, timing, priority or importance of the multiple objects. Moreover, such names do not indicate that the two information include different contents, senders/receivers, sending sequences, sizes, application scenarios, priorities or importance, etc. In addition, the numbering of steps in the various embodiments introduced in this application is only for distinguishing different steps, and is not used to limit the order of the steps.

700、800:通信裝置 710:處理單元 720:收發單元 810:處理器 820:介面電路 830:記憶體 201、202、203、400、401、402、403、404、405a、405b、406、407、500、501、502、503、504、505、506、507、600、601、602、603、604、605、606、607:步驟 700, 800: communication device 710: processing unit 720: transceiver unit 810: processor 820: interface circuit 830: memory 201, 202, 203, 400, 401, 402, 403, 404, 405a, 405b, 406, 407, 500, 501, 502, 503, 504, 505, 506, 507, 600, 601, 602, 603, 604, 605, 606, 607: steps

圖1a為本申請提供的一種通信系統的架構示意圖; 圖1b為本申請提供的一種通信系統的架構示意圖; 圖2為本申請提供的一種通信方法流程示意圖; 圖3為本申請提供的一種時間分配示意圖; 圖4為本申請提供的一種通信方法流程示意圖; 圖5為本申請提供的一種通信方法流程示意圖; 圖6為本申請提供的一種通信方法流程示意圖; 圖7為本申請提供的一種通信裝置結構圖; 圖8為本申請提供的一種通信裝置結構圖。 Figure 1a is a schematic diagram of the architecture of a communication system provided by this application; Figure 1b is a schematic diagram of the architecture of a communication system provided by this application; Figure 2 is a schematic diagram of the flow of a communication method provided by this application; Figure 3 is a schematic diagram of a time allocation provided by this application; Figure 4 is a schematic diagram of the flow of a communication method provided by this application; Figure 5 is a schematic diagram of the flow of a communication method provided by this application; Figure 6 is a schematic diagram of the flow of a communication method provided by this application; Figure 7 is a structural diagram of a communication device provided by this application; Figure 8 is a structural diagram of a communication device provided by this application.

201、202、203:步驟 201, 202, 203: Steps

Claims (29)

一種通信方法,其中,包括: 發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,則重複發送所述註冊請求消息,直至達到預設時間;其中,所述預設時間為所述不可達時間的起始點; 當達到所述預設時間時,執行所述第一事件。 A communication method, comprising: Sending a registration request message, wherein the registration request message is used to provide the network with the unreachable time information of the first event; If no reply message is received or a registration rejection message is received, the registration request message is repeatedly sent until a preset time is reached; wherein the preset time is the starting point of the unreachable time; When the preset time is reached, the first event is executed. 一種通信方法,其中,包括: 發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,則重複發送所述註冊請求消息,直至達到第一預設時長; 當達到所述第一預設時長時,執行所述第一事件。 A communication method, comprising: Sending a registration request message, wherein the registration request message is used to provide unreachable time information of a first event to the network; If no reply message is received or a registration rejection message is received, repeatedly sending the registration request message until a first preset time is reached; When the first preset time is reached, executing the first event. 如請求項2所述的方法,其中,所述第一預設時長的開始時間:與第一次發送所述註冊請求消息的時間有關,或者,與第一次發送所述註冊請求消息確定未接收到回復消息或接收到註冊拒絕消息的時間有關。A method as described in claim 2, wherein the start time of the first preset time period is related to the time when the registration request message is first sent, or to the time when the registration request message is first sent and it is determined that no reply message is received or a registration rejection message is received. 如請求項2或3所述的方法,其中,所述第一預設時長為嘗試註冊的時長。A method as described in claim 2 or 3, wherein the first preset duration is the duration of the registration attempt. 如請求項1-4任一項所述的方法,其中,當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,在執行所述第一事件之前,還包括: 保持在註冊態,並將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。 As described in any one of claim items 1-4, wherein, when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, before executing the first event, it also includes: Maintaining the registered state and storing the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost. 如請求項5所述的方法,其中,所述第一儲存空間中的所述第一上下文資訊中的註冊嘗試計數器被重置為0。A method as described in claim 5, wherein a registration attempt counter in the first context information in the first storage space is reset to 0. 如請求項1-4任一項所述的方法,其中,當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,在執行所述第一事件之前,還包括: 保持在註冊態,並基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中;其中,所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長;所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。 A method as described in any one of claim items 1-4, wherein, when the preset time is reached or when the first preset duration is reached, if no reply message or registration rejection message is received for the last registration request message sent, before executing the first event, it also includes: Maintaining the registered state, and determining whether to store the first context information in the first storage space based on the first value and the second value; wherein the first value is used to indicate the remaining duration of the deregistration timer, and the second value is the duration of the first event; the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost. 如請求項7所述的方法,其中,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中,包括: 如果所述第一值大於或等於所述第二值,將第一上下文資訊儲存於第一儲存空間中; 如果所述第一值小於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。 The method of claim 7, wherein determining whether to store the first context information in the first storage space based on the first value and the second value comprises: If the first value is greater than or equal to the second value, storing the first context information in the first storage space; If the first value is less than the second value, not storing the first context information in the first storage space. 如請求項8所述的方法,其中,當達到所述預設時間或當達到所述第一預設時長時: 如果針對最後一次發送的註冊請求消息接收到註冊拒絕消息,所述第一值為去註冊計時器的最大值; 如果針對最後一次發送的註冊請求消息未接收到回復消息,所述第一值基於去註冊計時器的最大值、所述第一事件開始執行的時間和最後一次收到回復消息的時間確定;其中,所述最後一次收到回復消息為第一次發送所述註冊請求消息之前接收到的註冊接受消息,或第一次發送所述註冊請求消息之後接收到的註冊拒絕消息。 A method as described in claim 8, wherein when the preset time is reached or when the first preset duration is reached: If a registration rejection message is received for the last registration request message sent, the first value is the maximum value of the deregistration timer; If no reply message is received for the last registration request message sent, the first value is determined based on the maximum value of the deregistration timer, the time when the first event starts to execute, and the time when the last reply message is received; wherein the last reply message received is a registration acceptance message received before the first registration request message is sent, or a registration rejection message received after the first registration request message is sent. 如請求項1-4任一項所述的方法,其中,當達到所述預設時間或當達到所述第一預設時長時,如果針對最後一次發送的註冊請求消息未接收到回復消息或接收到註冊拒絕消息,在執行所述第一事件之前,還包括: 保持在註冊態,並將第一上下文資訊中第一部分資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理,所述第一部分資訊用於安全校驗;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。 As described in any one of claim items 1-4, wherein, when the preset time is reached or when the first preset duration is reached, if no reply message is received for the last registration request message sent or a registration rejection message is received, before executing the first event, it also includes: Maintaining the registration state, and storing the first part of the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management, and the first part of the information is used for security verification; when shutting down or executing the first event, the data in the first storage space will not be lost. 如請求項10所述的方法,其中,在執行所述第一事件時,還包括: 進入去註冊態。 The method as described in claim 10, wherein when executing the first event, it also includes: Entering a deregistered state. 如請求項1-11任一項所述的方法,其中,所述第一事件包括:作業系統更新和/或數據機重置。A method as described in any of claim items 1-11, wherein the first event includes: an operating system update and/or a modem reset. 如請求項1-12任一項所述的方法,其中,在執行所述第一事件之前,還包括: 如果接收到註冊接受消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。 The method as described in any one of claim items 1-12, wherein before executing the first event, it further includes: If a registration acceptance message is received, remain in the registered state and store the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost. 一種通信方法,其中,包括: 發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失; 執行所述第一事件。 A communication method, comprising: Sending a registration request message, wherein the registration request message is used to provide unreachable time information of a first event to the network; If no reply message is received or a registration rejection message is received, remaining in the registered state, storing first context information in a first storage space; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost; Executing the first event. 如請求項14所述的方法,其中,所述第一儲存空間中的所述第一上下文資訊中的註冊嘗試計數器被重置為0。A method as described in claim 14, wherein a registration attempt counter in the first context information in the first storage space is reset to 0. 一種通信方法,其中,包括: 發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中;其中,所述第一值用於指示去註冊計時器的剩餘時長,所述第二值為所述第一事件的持續時長;所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失; 執行所述第一事件。 A communication method, comprising: Sending a registration request message, wherein the registration request message is used to provide unreachable time information of a first event to a network; If no reply message is received or a registration rejection message is received, remaining in a registered state, and determining whether to store first context information in a first storage space based on a first value and a second value; wherein the first value is used to indicate the remaining time of a deregistration timer, and the second value is the duration of the first event; the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost; Executing the first event. 如請求項16所述的方法,其中,基於第一值和第二值確定是否將第一上下文資訊儲存於第一儲存空間中,包括: 如果所述第一值大於或等於所述第二值,將第一上下文資訊儲存於第一儲存空間中; 如果所述第一值小於所述第二值,不將第一上下文資訊儲存於第一儲存空間中。 The method of claim 16, wherein determining whether to store the first context information in the first storage space based on the first value and the second value comprises: If the first value is greater than or equal to the second value, storing the first context information in the first storage space; If the first value is less than the second value, not storing the first context information in the first storage space. 如請求項17所述的方法,其中,如果接收到註冊拒絕消息,所述第一值為去註冊計時器的最大值; 如果未接收到回復消息,所述第一值基於去註冊計時器的最大值、所述第一事件開始執行的時間和在發送所述註冊請求消息之前最後一次收到回復消息的時間確定。 A method as described in claim 17, wherein if a registration rejection message is received, the first value is the maximum value of the deregistration timer; If no reply message is received, the first value is determined based on the maximum value of the deregistration timer, the time when the first event starts to execute, and the time when the last reply message was received before the registration request message was sent. 一種通信方法,其中,包括: 發送註冊請求消息,所述註冊請求消息用於提供第一事件的不可達時間資訊給網路; 如果未接收到回復消息或接收到註冊拒絕消息,保持在註冊態,將第一上下文資訊中第一部分資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理,所述第一部分資訊用於安全校驗;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失; 執行所述第一事件。 A communication method, comprising: Sending a registration request message, wherein the registration request message is used to provide the network with unreachable time information of a first event; If no reply message is received or a registration rejection message is received, remaining in the registered state, storing the first part of the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management, and the first part of the information is used for security verification; when shutting down or executing the first event, the data in the first storage space will not be lost; Executing the first event. 如請求項19所述的方法,其中,在執行所述第一事件時,還包括: 進入去註冊態。 The method as described in claim 19, wherein when executing the first event, it also includes: Entering a deregistered state. 如請求項13-20任一項所述的方法,其中,在執行所述第一事件之前,還包括: 如果接收到註冊接受消息,保持在註冊態,將第一上下文資訊儲存於第一儲存空間中;其中,所述第一上下文資訊用於移動管理和/或會話管理;在關機或執行所述第一事件時,所述第一儲存空間中的資料不會丟失。 The method as described in any one of claim items 13-20, wherein before executing the first event, it further includes: If a registration acceptance message is received, remain in the registered state and store the first context information in the first storage space; wherein the first context information is used for mobile management and/or session management; when shutting down or executing the first event, the data in the first storage space will not be lost. 如請求項13-21任一項所述的方法,其中,所述第一事件包括:作業系統更新和/或數據機重置。A method as described in any of claims 13-21, wherein the first event includes: an operating system update and/or a modem reset. 一種通信裝置,其中,包括用於執行如請求項1-22中的任一項所述方法的模組。A communication device, comprising a module for executing the method described in any one of claims 1-22. 一種通信裝置,其中,包括處理器,所述處理器與記憶體耦合; 所述記憶體,用於儲存電腦程式或指令; 所述處理器,用於執行所述記憶體中的部分或者全部電腦程式或指令,當所述部分或者全部電腦程式或指令被執行時,用於實現如請求項1-22任一項所述的方法。 A communication device, comprising a processor coupled to a memory; the memory is used to store computer programs or instructions; the processor is used to execute part or all of the computer programs or instructions in the memory, and when the part or all of the computer programs or instructions are executed, it is used to implement the method described in any one of claim items 1-22. 一種通信裝置,其中,包括處理器和記憶體; 所述記憶體,用於儲存電腦程式或指令; 所述處理器,用於執行所述記憶體中的部分或者全部電腦程式或指令,當所述部分或者全部電腦程式或指令被執行時,用於實現如請求項1-22任一項所述的方法。 A communication device, comprising a processor and a memory; The memory is used to store computer programs or instructions; The processor is used to execute part or all of the computer programs or instructions in the memory, and when the part or all of the computer programs or instructions are executed, it is used to implement the method described in any one of claim items 1-22. 一種通信裝置,其中,包括處理器和介面電路,所述介面電路用於接收來自所述通信裝置之外的其它通信裝置的信號並傳輸至所述處理器或將來自所述處理器的信號發送給所述通信裝置之外的其它通信裝置,所述處理器通過邏輯電路或執行代碼指令用於實現如請求項1-22中任一項所述的方法。A communication device, comprising a processor and an interface circuit, wherein the interface circuit is used to receive signals from other communication devices outside the communication device and transmit them to the processor or send signals from the processor to other communication devices outside the communication device, and the processor is used to implement the method described in any one of claim items 1-22 through a logic circuit or execution code instructions. 一種通信系統,其中,所述通信系統包括:執行如請求項1-22中任一項所述的方法的終端設備和與所述終端設備進行交互的網路設備。A communication system, wherein the communication system includes: a terminal device that executes the method described in any one of claims 1-22 and a network device that interacts with the terminal device. 一種電腦可讀儲存介質,其中,所述儲存介質中儲存有電腦程式或指令,當所述電腦程式或指令被通信裝置執行時,實現如請求項1-22中任一項所述的方法。A computer-readable storage medium, wherein a computer program or instruction is stored in the storage medium, and when the computer program or instruction is executed by a communication device, the method described in any one of claims 1-22 is implemented. 一種電腦程式產品,其中,所述電腦程式產品包括:電腦指令,當所述電腦指令在電腦上運行時,使得如請求項1-22任一項所述的方法被實現。A computer program product, wherein the computer program product comprises: computer instructions, which, when executed on a computer, enable the method described in any one of claims 1-22 to be implemented.
TW113141831A 2023-11-06 2024-11-01 A communication method and apparatus TW202520766A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311473496X 2023-11-06
CN202311473496.XA CN119946796A (en) 2023-11-06 2023-11-06 A communication method and device thereof

Publications (1)

Publication Number Publication Date
TW202520766A true TW202520766A (en) 2025-05-16

Family

ID=95551953

Family Applications (1)

Application Number Title Priority Date Filing Date
TW113141831A TW202520766A (en) 2023-11-06 2024-11-01 A communication method and apparatus

Country Status (3)

Country Link
CN (1) CN119946796A (en)
TW (1) TW202520766A (en)
WO (1) WO2025098233A1 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709764B (en) * 2020-05-21 2023-06-27 华为技术有限公司 Communication method and device
CN113015187B (en) * 2021-02-22 2023-10-10 Oppo广东移动通信有限公司 A network registration method, device, terminal equipment and computer storage medium

Also Published As

Publication number Publication date
WO2025098233A1 (en) 2025-05-15
CN119946796A (en) 2025-05-06

Similar Documents

Publication Publication Date Title
CN110049070B (en) Event notification method and related equipment
US11805394B2 (en) Context management method and apparatus
WO2022237516A1 (en) Wireless communication method and communication apparatus
WO2021134167A1 (en) Roaming method, apparatus and system
WO2023213177A1 (en) Communication method and apparatus
WO2019218762A1 (en) Policy control method, device and system
CN114731731B (en) Communication method and device
WO2021134175A1 (en) Roaming method and apparatus, and system
CN116321110B (en) Service subscription method, device, service providing network element and storage medium
TW202520766A (en) A communication method and apparatus
WO2024208017A1 (en) Communication method, communication apparatus, and communication system
WO2021088060A1 (en) Communication method and apparatus
CN112584448A (en) Method, device, terminal, system and readable storage medium for keeping resource consistency
WO2023220998A1 (en) Wireless communication method, user equipment, and network device
CN116647832A (en) A communication method and device
US20250267612A1 (en) Communication method, communication apparatus, and communication system
WO2023185062A1 (en) Backup method, communication device, and communication system
WO2025195132A1 (en) Communication method and apparatus
WO2025102808A1 (en) Communication method, communication apparatus, and communication system
WO2024169556A1 (en) Network element selection method and apparatus
WO2025213869A1 (en) Information transmission method and communication apparatus
WO2023082858A1 (en) Method for determining mobility management policy, communication apparatus, and communication system
WO2025209096A1 (en) Communication method and communication device
WO2025209296A1 (en) Communication method, device and system
WO2023125211A1 (en) Communication method and apparatus