WO2022227805A1 - 通信方法和通信装置 - Google Patents

通信方法和通信装置 Download PDF

Info

Publication number
WO2022227805A1
WO2022227805A1 PCT/CN2022/076884 CN2022076884W WO2022227805A1 WO 2022227805 A1 WO2022227805 A1 WO 2022227805A1 CN 2022076884 W CN2022076884 W CN 2022076884W WO 2022227805 A1 WO2022227805 A1 WO 2022227805A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
mode
information
protocol
network device
Prior art date
Application number
PCT/CN2022/076884
Other languages
English (en)
French (fr)
Inventor
强鹂
常俊仁
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22794285.1A priority Critical patent/EP4311203A4/en
Publication of WO2022227805A1 publication Critical patent/WO2022227805A1/zh
Priority to US18/493,200 priority patent/US20240056516A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/04Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration using triggered events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels

Definitions

  • the present application relates to the field of communication, and more particularly to a communication method and a communication apparatus.
  • the protocol version formulated by the 3rd generation partnership project (3GPP) is also constantly evolving.
  • the new protocol version needs to be compatible with the old protocol version, or the old protocol version can be compatible with the new protocol version.
  • the people who promote the new protocol version do not fully consider, so that the new protocol version cannot be compatible with the old protocol version, or the old protocol version cannot be compatible with the new one. Protocol version.
  • the terminal device cannot parse the message sent by the network device through a protocol version different from that of the terminal device, which will lead to the incompatibility of the protocol versions of the terminal device and the network device, resulting in the problem of inability to communicate.
  • the new protocol version adopted by the network device sends a message to the terminal device. Since the terminal device adopts the old protocol version, the terminal device may not recognize the message sent by the network device, and the terminal device will discard the message. . In this way, terminal devices cannot communicate with network devices, especially when the number of terminal devices exceeds one million, and millions of terminal devices cannot communicate with network devices, resulting in poor user experience and heavy economic losses.
  • Embodiments of the present application provide a communication method and a communication device, which can improve user experience and reduce economic losses.
  • a communication method comprising: a first device indicating to a second device that the first device is in a first mode, and the current protocol version of the first device is different from that of the second device.
  • the current protocol version is incompatible; the first device receives protocol information from the second device, and the protocol information is used by the first device to update the current protocol version; the first device updates based on the protocol information The current protocol version of the first device.
  • the first device may indicate to the second device that the first device is in the first mode, and after the second device learns that the first device is in the first mode, the second device infers that the current protocol version of the first device is the same as that of the second device. If the current protocol version of the device is incompatible, the second device may send protocol information to the first device, and the first device may update the protocol version based on the protocol information. That is to say, when the second device learns that the first device is in the first mode, it can push the protocol information to the first device, so as to prevent the first device from being unable to receive the protocol information and thus unable to update the protocol version.
  • the protocol version of the device can be compatible with the protocol version of the second device, that is, the updated protocol version of the first device is compatible with the protocol version of the second device, avoiding the problem of incompatibility between the protocol versions of the first device and the second device, and can improve the User experience, and can reduce economic losses.
  • the protocol information may indicate an upgrade package, a downgrade package, a protocol patch, a protocol stack installation package or an update package, and the like.
  • the protocol version of the second device is a protocol version corresponding to the protocol information.
  • the protocol version corresponding to the protocol information is a protocol version applicable to the first device, or the protocol version corresponding to the protocol information is compatible with the protocol version of the second device, for example, the protocol corresponding to the protocol information.
  • the version may be the protocol version of the second device, or the protocol version corresponding to the protocol information may be a protocol lower or higher than the protocol version of the second device, but normal communication between the first device and the second device can be guaranteed.
  • the first device is a terminal device
  • the second device is a network device; optionally, the network device may be an access network device or a core network device. If the network device is a core network device, for example, the second device may be an access and mobility management function (AMF) or a mobility management entity (MME) or in the future such as 6G and 7G protocols. Network equipment with similar functions.
  • AMF access and mobility management function
  • MME mobility management entity
  • the fact that the first device is in the first mode can be understood as: in the first mode, the first device has limited capabilities but can complete the update of the protocol version; or it can be understood as: the first device is in the first mode, The most basic network connection can be guaranteed, so that the first device can complete the update of the protocol version; or it can be understood as: if the current protocol version of the first device is incompatible with the current protocol version of the second device, the first device enters the first mode , can escape through the first mode; or can be understood as: the first device in the first mode can update the current protocol version, the first device in the non-first mode cannot update the current protocol version, if the first device determines When the current protocol version of the first device is incompatible with the current protocol version of the second device, the first device enters the first mode and can complete the update of the protocol version.
  • the first mode may also be referred to as the first state.
  • the first mode may be referred to as safe mode, or basic mode, or minimal mode, or upgrade mode, or protocol update mode, or escape mode, or manager mode, or fault-tolerant mode, or protocol revision mode, or System revision mode, etc., the embodiment of the present application does not make any limitation on the name of the first mode.
  • the first device indicating to the second device that the first device is in the first mode includes: the first device sending first indication information to the second device, the first device being in the first mode.
  • An indication message is used to indicate that the first device is in the first mode.
  • the first device may carry the first indication information in any message sent to the second device.
  • the first indication information may directly indicate that the first device is in the first mode or indirectly indicate that the first device is in the first mode.
  • the first device indicates to the second device that the first device is in the first mode, including:
  • the first device sends the current chip information of the first device to the second device; and/or,
  • the first device sends the current protocol version information of the first device to the second device, where the current version information of the first device is used to indicate the current protocol version of the first device.
  • the current chip information of the first device may indicate that the first device is in the first mode.
  • the current chip information of the first device is used to indicate the current chip model information and/or chip manufacturer information of the first device.
  • the current protocol version information of the first device when used to indicate the current protocol version of the first device, it can also indicate that the first device is in the first mode.
  • the current protocol version information of the first device may indicate the current protocol version of the first device by indicating the current protocol version number of the first device.
  • the communication method further includes: the first device starts a first timer at a first moment, and before the first timer times out, the first device does not repeatedly enter the The first mode, wherein the duration of the first timer is the first duration, and the first moment is the moment when the first device enters the first mode, or the first device sends a message to the first mode. The moment when the second device indicates that the first device is in the first mode.
  • the first device may maintain the first timer, and before the first timer expires, the first device does not repeatedly enter the first mode, that is, after the first device enters the first mode for the first time, Do not enter the first mode again before the first timer expires, so as to avoid signaling overhead caused by the first device needing to repeatedly enter the first mode.
  • the first device may enter the first mode after satisfying the conditions for entering the first mode. Before the first timer expires, if the first device satisfies the condition for entering the first mode again, the first device will not enter the first mode again.
  • the first duration may be specified by an agreement.
  • the communication method further includes: the first device starts a second timer at a second moment, and before the second timer expires, the first device no longer sends messages to the The second device indicates that the first device is in the first mode, wherein the duration of the second timer is a second duration, and the second time is the time when the first device enters the first mode , or the first device indicates to the second device the moment when the first device is in the first mode.
  • the first device may maintain a second timer, and before the second timer expires, the first device no longer indicates to the second device that the first device is in the first mode. That is, after the first device indicates to the second device that the first device is in the first mode, it does not again indicate to the second device that the first device is in the first mode, which can save signaling overhead.
  • the first device does not send the first indication information to the second device again.
  • the first device does not send the current protocol information of the first device to the second device again, and the current protocol information of the first device is used to indicate that the first device is in the first mode.
  • the first device does not send the current chip information of the first device to the second device again, and the current chip information of the first device is used to indicate that the first device is in the first mode.
  • the first device sends first indication information to the second device, where the first indication information is used to indicate that the first device is in the first mode, and before the second timer times out, the first device will not send any further information to the second device.
  • the device sends the first indication information, and will not send the current version information of the first device and/or the current chip information of the first device.
  • the current version information of the first device and/or the current chip information of the first device is used to indicate the first device.
  • a device is in a first mode. That is to say, the first device indicates that the first device is in the first mode through the first indication information for the first time, and the first device will not pass the first indication information or the current version of the first device again before the second timer expires.
  • any one of the information or the current chip information of the first device indicates that the first device is in the first mode.
  • the first device indicates that the first device is in the first mode through the current version information of the first device or the current chip information of the first device for the first time, and the first device will not pass the first mode again until the second timer expires.
  • the indication information or the current version information of the first device or the current chip information of the first device indicates that the first device is in the first mode.
  • the second duration may be specified by an agreement.
  • the communication method further includes: the first device starts a third timer at a third moment, and after the third timer expires, the first device exits the first mode, wherein the duration of the third timer is a third duration, and the third time is the time when the first device enters the first mode, or the first device indicates to the second device The moment when the first device is in the first mode.
  • the first device may maintain a third timer, and after the third timer expires, the first device may exit the first mode to avoid a situation where the first device cannot exit the first mode.
  • the third duration may be specified by the agreement.
  • the first device may maintain one or two or three timers among the first timer, the second timer, or the third timer, which is not limited in this embodiment of the present application.
  • the communication method further includes: the first device learning from the second device a service that the first device can support in the first mode.
  • the first device may receive second indication information from the second device, where the second indication information is used to indicate services that the first device can support in the first mode.
  • the second indication information may directly or indirectly indicate services that the first device can support in the first mode.
  • the first device is a terminal device
  • the second device is a core network device
  • the first device indicates to the second device that the first device is in the first mode, including:
  • the terminal device sends a registration request message to the core network device, and indicates that the terminal device is in the first mode through the registration request message.
  • the terminal device may indicate to the core network device that the terminal device is in the first mode through a registration request message during the registration process.
  • the registration request message may carry the first indication information.
  • the registration request message may carry current chip information of the terminal device, and the current chip information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the registration request message may carry current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the first device is a terminal device
  • the second device is a core network device
  • the first device receives protocol information from the second device, including:
  • the terminal device receives a registration acceptance message or a registration rejection message from the core network device, where the registration acceptance message or the registration rejection message includes the protocol information; or,
  • the terminal device receives the protocol information from the core network device through the data radio bearer DRB between the terminal device and the access network device.
  • the registration acceptance message or the registration rejection message sent by the core network device to the terminal device carries the protocol information through the registration acceptance message or the registration rejection message.
  • the core network device may send the protocol information to the access network device, and the access network device may send the protocol information to the terminal device through the DRB.
  • the first device is a terminal device, and the second device is an access network device; wherein the first device indicates to the second device that the first device is in the first mode, include:
  • the first device receives protocol information from the second device, including:
  • the terminal device receives the protocol information from the access network device through the DRB between the terminal device and the access network device.
  • the terminal device may indicate to the access network device that the terminal device is in the first mode through an RRC message.
  • the access network device can send the protocol information to the terminal device through the DRB. That is, the access network device can send the protocol information to the terminal device through the user plane process.
  • the RRC message may carry the first indication information.
  • the RRC message may carry current chip information of the terminal device, and the current chip information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the RRC message may carry current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the first device is a terminal device, and the second device is an access network device;
  • the first device indicating to the second device that the first device is in the first mode includes:
  • the first device receives protocol information from the second device, including:
  • the terminal device receives the protocol information from the access network device through the DRB between the terminal device and the access network device.
  • the terminal device may indicate to the access network device that the terminal device is in the first mode through an RRC setup request message.
  • the access network device can send the protocol information to the terminal device through the DRB. That is, the access network device can send the protocol information to the terminal device through the user plane process.
  • the RRC setup request message may carry the first indication information.
  • the RRC establishment request message may carry current chip information of the terminal device, and the current chip information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the RRC establishment request message may carry current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the communication method further includes: the terminal device sends a PDU session establishment request message to the core network device; the terminal device receives a PDU session establishment accept message from the core network device, and the The PDU session establishment accept message includes the parameters for establishing a user plane connection; the terminal device establishes a user plane connection according to the parameters for the user plane connection, and the user plane connection corresponds to the DRB.
  • the terminal device may receive the PDU session accept message from the core network device during the process of establishing the PDU session, and establish the user plane connection according to the parameters for establishing the user plane connection carried in the PDU session reception message.
  • the first device is a terminal device, and the second device is an access network device;
  • the first device indicating to the second device that the first device is in the first mode includes:
  • the first device receives protocol information from the second device, including:
  • the terminal device receives an RRC response message from the access network device, where the RRC response message includes the protocol information.
  • the terminal device may indicate to the access network device that the terminal device is in the first mode through an RRC setup request message.
  • the access network device may send the protocol information to the terminal device through an RRC response message. That is, the access network device can send the protocol information to the terminal device through the control plane process.
  • the RRC setup request message may carry the first indication information.
  • the RRC establishment request message may carry current chip information of the terminal device, and the current chip information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the RRC establishment request message may carry current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the RRC response message may be an RRC accept message or an RRC reject message.
  • the RRC accept message indicates that the access network device accepts the RRC establishment request of the terminal device, and the RRC reject message indicates that the access network device rejects the RRC establishment request of the terminal device.
  • a communication method comprising: a second device learning that the first device is in a first mode, and the current protocol version of the second device is incompatible with the current protocol version of the first device; The second device sends protocol information to the first device, where the protocol information is used by the first device to update the current protocol version.
  • the second device infers that the current protocol version of the first device is incompatible with the current protocol version of the second device, and the second device can report to the first device.
  • the protocol information is sent, and the first device may update the protocol version based on the protocol information. That is to say, when the second device learns that the first device is in the first mode, it can push the protocol information to the first device, so as to prevent the first device from being unable to receive the protocol information and thus unable to update the protocol version.
  • the protocol version of the device can be compatible with the protocol version of the second device, that is, the updated protocol version of the first device is compatible with the protocol version of the second device, avoiding the problem of incompatibility between the protocol versions of the first device and the second device, and can improve the User experience, and can reduce economic losses.
  • the second device may learn from the first device that the first device is in the first mode, or the second device may learn from other devices that the first device is in the first mode.
  • the terminal device may indicate to the core network device that the terminal device is in the first mode, and the core network device learns from the terminal device that the terminal device is in the first mode, or receives
  • the network access device indicates to the core network device that the terminal device is in the first mode, and the core network device learns from the access network device that the terminal device is in the first mode.
  • the protocol information may indicate an upgrade package, a downgrade package, a protocol patch, a protocol stack installation package or an update package, and the like.
  • the protocol of the second device is a protocol corresponding to the protocol information.
  • the protocol corresponding to the protocol information is a protocol applicable to the first device or the protocol corresponding to the protocol information is compatible with the protocol of the second device.
  • the protocol corresponding to the protocol information may be the protocol of the second device.
  • the protocol, or the protocol corresponding to the protocol information may be a protocol with a lower or higher version than the protocol version of the second device, but normal communication between the first device and the second device can be guaranteed.
  • the first device is a terminal device
  • the second device is a network device; optionally, the second device may be an access network device or a core network device. If the second device is a core network device, for example, the second device may be an access and AMF or MME or a network device that performs similar functions in future protocols such as 6G and 7G.
  • the second device learning that the first device is in the first mode includes: the second device receiving first indication information from the first device, the first indication information using to indicate that the first device is in the first mode.
  • the second device knows that the first device is in the first mode, including:
  • the second device receives the current chip information of the first device from the first device; and/or,
  • the second device receives current version information of the first device from the first device, where the current version information of the first device is used to indicate the current protocol version of the first device.
  • the communication method further includes: the second device determines a protocol version required by the first device according to a current protocol version of the second device; the second device determines a protocol version required by the first device according to the current protocol version of the second device; The protocol version required by the first device acquires the protocol information.
  • the second device can determine the protocol version required by the first device according to the current protocol version of the second device, and obtain the protocol information according to the protocol version required by the first device. In this way, the second device can be made
  • the acquired protocol information is the protocol version required by the first device, and the protocol version required by the first device is compatible with the current protocol version of the second device.
  • determining, by the second device, the protocol version required by the first device according to the current protocol version of the second device comprising: determining, by the second device, that the protocol version required by the first device is: A protocol version that is compatible with the current protocol version of the second device.
  • the second device determines that the protocol version required by the first device is the current protocol version of the second device, or a protocol version that is higher than the current protocol version of the second device. A protocol version with a lower or higher version, but compatible with the current protocol version of the second device.
  • the protocol information may be stored by the second device or acquired from the third device.
  • the second device determines the current protocol version of the second device according to the current protocol version of the second device. Version information required by the first device, including:
  • the second device determines the current protocol version of the second device as the first device The desired protocol version.
  • the second device acquires the protocol information according to the protocol version required by the first device, including: the second device sends a request message to the third device, and the request message uses for requesting protocol information from the third device; the second device receives the protocol information from the third device.
  • the second device may trigger the second device to send a request message to the third device.
  • the request message sent by the second device to the third device carries the protocol version required by the first device.
  • the third device may be a server, and if the second device receives the current chip information of the first device from the first device, the second device may determine the third device according to the current chip information of the first device.
  • the third device may be a core network device that stores protocol information.
  • the request message includes a protocol version required by the first device, and/or if the second device receives the current chip of the first device from the first device information, the request message includes the current chip information of the first device.
  • the communication method further includes: starting a fourth timer at a fourth moment, and before the fourth timer times out, the second device learns the first device again from the first device After a device is in the first mode, it no longer sends the protocol information to the first device, wherein the duration of the fourth timer is a fourth duration, and the fourth time is for the second device to determine the the time when the first device is in the first mode.
  • the second device learns again from the first device that the first device is in the first mode, it does not send protocol information to the first device. It saves overhead and avoids denial of service (DoS) attacks. Even if an attacker indicates to the second device that the first device is in the first mode through the first device, the second device will no longer report to the first device. Send protocol information.
  • DoS denial of service
  • the fourth time is the time when the second device learns that the first device is in the first mode.
  • the fourth time is the time when the core network device learns from the terminal device that the terminal device is in the first mode.
  • the fourth time is the time when the core network device learns from the access network device that the terminal device is in the first mode.
  • the communication method further includes: the second device indicating to the first device a service that the first device can support in the first mode.
  • the first device is a terminal device
  • the second device is a core network device
  • the second device learns that the first device is in the first mode, including:
  • the core network device receives a registration request message from the terminal device, and indicates that the terminal device is in the first mode through the registration request message.
  • the first device is a terminal device
  • the second device is a core network device
  • the second device sends protocol information to the first device, including:
  • the core network device sends a registration acceptance message or a registration rejection message to the terminal device, where the registration acceptance message or the registration rejection message includes the protocol information; or,
  • the core network device sends the protocol information to the terminal device through the data radio bearer DRB between the access network device and the terminal device.
  • the first device is a terminal device, and the second device is an access network device;
  • the second device learning that the first device is in the first mode includes:
  • the access network device receives an RRC message from the terminal device through a radio resource control RRC connection, and indicates that the terminal device is in the first mode through the RRC message;
  • the second device sends protocol information to the first device, including:
  • the access network device sends the protocol information to the terminal device through the DRB between the access network device and the terminal device.
  • the first device is a terminal device, and the second device is an access network device;
  • the second device learning that the first device is in the first mode includes:
  • the access network device receives an RRC setup request message from the terminal device, and indicates that the terminal device is in the first mode through the RRC setup request message;
  • the second device sends protocol information to the first device, including:
  • the access network device sends the protocol information to the terminal device through the DRB between the access network device and the terminal device.
  • the communication method further includes:
  • the second device sends a PDU session establishment accept message to the terminal device, where the PDU session establishment accept message includes the parameters for establishing a user plane connection, and the user plane connection corresponds to the DRB.
  • the communication method further includes:
  • the second device sends the parameter for establishing a user plane connection to the terminal device, where the user plane connection corresponds to the DRB.
  • the first device is a terminal device, and the second device is an access network device;
  • the second device learning that the first device is in the first mode includes:
  • the second device sends protocol information to the first device, including:
  • the access network device sends an RRC response message to the terminal device, where the RRC response message includes the protocol information.
  • a communication apparatus for executing the method in any possible implementation manner of the above aspects.
  • the apparatus includes a unit for executing the method in the first aspect or any possible implementation manner of the first aspect, or the apparatus includes the second aspect or any possible implementation manner of the second aspect method in the unit.
  • a communication device including a processor, which is coupled to a memory and can be used to execute instructions in the memory to implement the first aspect or any of the possible implementations of the first aspect.
  • the communication device further includes a memory.
  • the communication device further includes a communication interface, and the processor is coupled to the communication interface.
  • the communication apparatus is a first device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the communication device is a chip configured in the first device.
  • the communication interface may be an input/output interface.
  • the communication apparatus is a second device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the communication device is a chip configured in the second device.
  • the communication interface may be an input/output interface.
  • a processor including: an input circuit, an output circuit, and a processing circuit.
  • the processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the first aspect or the method in any possible implementation manner of the first aspect, or the second aspect or The method in any possible implementation manner of the second aspect.
  • the above-mentioned processor may be a chip
  • the input circuit may be an input pin
  • the output circuit may be an output pin
  • the processing circuit may be a transistor, a gate circuit, a flip-flop, and various logic circuits.
  • the input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver
  • the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter
  • the circuit can be the same circuit that acts as an input circuit and an output circuit at different times.
  • the present application does not limit the specific implementation of the processor and various circuits.
  • a computer program product comprising: a computer program (also referred to as code, or instructions), which, when the computer program is executed, causes a computer to execute the above-mentioned first aspect or the first aspect A method in any one possible implementation manner of the second aspect, or a method in any one possible implementation manner of the second aspect or the second aspect.
  • a computer program also referred to as code, or instructions
  • a computer-readable storage medium stores a computer program (also referred to as code, or instruction), when it runs on a computer, causing the computer to execute the above-mentioned first aspect or A method in any possible implementation manner of the first aspect, or a method in the second aspect or any possible implementation manner of the second aspect.
  • a computer program also referred to as code, or instruction
  • FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • FIGS 2-13 are schematic diagrams of communication methods provided by embodiments of the present application.
  • FIGS. 14-15 are schematic block diagrams of a communication apparatus provided by an embodiment of the present application.
  • GSM global system for mobile communications
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • GPRS general packet radio service
  • long term evolution long term evolution
  • LTE long term evolution
  • LTE frequency division duplex frequency division duplex
  • TDD time division duplex
  • UMTS universal mobile telecommunication system
  • WiMAX worldwide interoperability for microwave access
  • FIG. 1 shows a schematic diagram of a system architecture applied to an embodiment of the present application.
  • the system 100 includes: a user equipment (user equipment, UE) 101, a radio access network (radio access network, RAN) 102, a user plane function (user plane function, UPF) 103, a data network (data network, DN) 104, core network access and mobility management function (AMF) 105, session management function (session management function, SMF) 106, unified data repository (unified data repository) , UDR) 107 or at least one of unified data management (unified data management, UDM) 108.
  • UE user equipment
  • RAN radio access network
  • UPF user plane function
  • UPF data network
  • DN data network
  • AMF core network access and mobility management function
  • SMF session management function
  • UDR unified data repository
  • UDR unified data repository
  • UDM unified data management
  • UE 101 also known as terminal equipment, mobile station (MS), mobile terminal (MT), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user equipment, etc.
  • MS mobile station
  • MT mobile terminal
  • access terminal subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user equipment, etc.
  • the UE 101 may be a device that provides voice/data connectivity to a user, such as a handheld device with wireless connectivity, a vehicle-mounted device, or the like.
  • terminal devices include: mobile phone (mobile phone), tablet computer, notebook computer, PDA, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented Augmented reality (AR) equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, smart grid wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone, session initiation protocol protocol, SIP) telephones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices, or other processing devices connected to wireless modems, Vehicle-mounted devices, wearable devices, terminal devices in 5G networks, or terminal devices in the future evolved public land mobile network (PLMN), etc., are not limited in this application.
  • PLMN public land mobile network
  • the RAN 102 can be a device that communicates with the UE 101.
  • the RAN 102 can also be called an access network device or a radio access network device, and it can be a transmission reception point (TRP), or it can be an LTE system.
  • the evolved base station evolved NodeB, eNB or eNodeB
  • can also be a home base station for example, home evolved NodeB, or home Node B, HNB), base band unit (base band unit, BBU), or cloud wireless access
  • the RAN102 can be a relay station, an access point, an in-vehicle device, a wearable device, a network device in a 5G network, or a network device in a future evolved PLMN network etc.
  • it can also be an access point (AP) in WLAN
  • it can also be gNB in NR system
  • the above RAN 111 can also be city base station, micro base station, pico
  • the RAN 102 may include a centralized unit (CU) node, or a distributed unit (DU) node, or a radio access network (radio access network) including a CU node and a DU node, RAN) device, or a device including a control plane CU node (CU-CP node), a user plane CU node (CU-UP node) and a DU node.
  • CU centralized unit
  • DU distributed unit
  • radio access network radio access network
  • CU-CP node control plane CU node
  • CU-UP node user plane CU node
  • DU node a radio access network
  • the RAN 102 provides services for the cell, and the UE 101 communicates with the cell through transmission resources (eg, frequency domain resources, or spectrum resources) allocated by the RAN 102, and the cell may belong to a macro base station (eg, a macro eNB or a macro gNB, etc.) , can also belong to the base station corresponding to the small cell, where the small cell can include: urban cell (metro cell), micro cell (micro cell), pico cell (pico cell), femto cell (femto cell), etc. , these small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
  • a macro base station eg, a macro eNB or a macro gNB, etc.
  • the small cell can include: urban cell (metro cell), micro cell (micro cell), pico cell (pico cell), femto cell (femto cell), etc.
  • these small cells have the characteristics of small coverage and low transmission power, and are suitable for
  • UPF 103 is mainly responsible for processing business data, such as forwarding, billing, and legal interception.
  • the DN 104 provides data transmission services for the UE 101, and can be a public data network (public data network, PDN) network, such as the Internet (internet).
  • PDN public data network
  • Internet Internet
  • the AMF 105 is mainly used for the attachment, mobility management, and tracking area update procedures of the UE 101 in the mobile network.
  • the access management network element terminates non-access stratum (NAS) messages, completes registration management, and connection management. And reachability management, allocation tracking area list (track area list, TA list) and mobility management, etc., and transparent routing session management (session management, SM) messages to session management network elements.
  • NAS non-access stratum
  • reachability management allocation tracking area list (track area list, TA list) and mobility management, etc.
  • SM transparent routing session management
  • the SMF 106 is responsible for UPF selection or reselection, IP address allocation, session establishment, modification and release, and quality of service (QoS) control.
  • QoS quality of service
  • the UDR 107 is responsible for storing structured data information, wherein the data information includes subscription information, policy information, and network data or service data defined in a standard format, such as upgrade packages.
  • the UDM 108 is responsible for managing the subscription information of the UE 101.
  • each network element such as UE 101, RAN 102, UPF 103, DN 104, AMF 105, SMF 106, UDR 107 and UDM 108, etc.
  • the above-mentioned network elements may also have other names, which are not specifically limited in this embodiment of the present application.
  • some or all of the above-mentioned network elements may use the terminology in 5G, or other names, etc., which will be uniformly described here, and will not be repeated below.
  • each network element in FIG. 1 does not necessarily exist at the same time, and which network elements are required can be determined according to requirements.
  • the connection relationship between each network element in FIG. 1 is not uniquely determined, and can be adjusted according to requirements.
  • the network device may include one or more network elements other than UE 101 in FIG. 1 .
  • the UE 101 in FIG. 1 communicates with a network device (such as the RAN 102 or the AMF 105), the UE 101 and the network device must complete the communication according to the 3GPP protocol version.
  • the same protocol version is usually required, for example, the protocol version is both R17 or R18.
  • the different protocol versions need to be compatible to ensure normal communication. For example, if the network device adopts the R18 protocol version and the terminal device adopts the R16 protocol version, during the communication between the network device and the UE 101, the R18 protocol version needs to be compatible with the R16 protocol version to ensure the normal communication between the UE 101 and the network device.
  • different protocol versions may not be compatible.
  • the person promoting the new protocol version considers that it is not fully compatible with the old protocol version, or the old protocol version is not compatible with the new protocol version, or the UE 101 cannot Parse the message sent by the network device through a protocol version different from that of the UE 101, which will cause the problem that the UE 101 and the network device cannot communicate.
  • the new protocol version adopted by the network device sends a message to the UE 101. Since the UE 101 adopts the old protocol version, the UE 101 cannot recognize the message sent by the network device, and the UE 101 discards the message .
  • the UE 101 cannot communicate with the network device, especially when the number of UE 101 exceeds one million units, it will cause one million units of UE 101 to be unable to communicate with the network device, resulting in poor user experience and heavy economic losses.
  • the UE 101 needs to register with the network device, the UE 101 sends a registration request message to the network device according to its current protocol version, and the network device sends a registration accept message to the UE 101 according to its current protocol version, so that the registration can be completed. process.
  • an operator has upgraded the protocol version of its own network equipment to a new protocol version, but the UE 101 still uses the old protocol version.
  • the UE 101 sends a registration request message to the network equipment, and the network equipment follows the new protocol version.
  • the protocol version of the protocol version returns the registration acceptance message to UE 101, and a certain field in the registration acceptance message is increased by one byte (from 3 bytes before the upgrade to 4 bytes after the upgrade), and the UE 101 receives After the registration acceptance message, it is determined that the field is longer than the expected length, so it is determined that there is an error in the registration acceptance message, and then the registration acceptance message is directly discarded, causing the UE 101 to fail to register. Since the UE 101 cannot be registered, the UE 101 cannot download the upgrade package on the network device side, and therefore cannot upgrade the protocol version.
  • UE means “UE 101”
  • AMF means “AMF 105”.
  • the communication method 200 provided by this embodiment of the present application is described below by taking the first device as a terminal device and the second device as a network device as an example.
  • the method 200 includes:
  • the terminal device indicates to the network device that the terminal device is in the first mode, and the network device learns from the terminal device that the terminal device is in the first mode.
  • the terminal device enters the first mode if the current protocol version of the terminal device is incompatible with the current protocol version of the network device.
  • the incompatibility between the current protocol version of the terminal device and the current protocol version of the network device can be understood as: the terminal device cannot communicate with the current protocol version of the network device using the current protocol version. Specifically, when the current protocol version of the terminal device is higher than the current protocol version of the network device, the current protocol version of the terminal device may be incompatible with the current protocol version of the network device; or the current protocol version of the terminal device is lower than the current protocol version of the network device. When the current protocol version of the terminal device is not compatible with the current protocol version of the network device.
  • the terminal device is in the first mode.
  • Manner 1 In the first mode, the terminal device has limited capabilities, but can complete the update of the protocol version.
  • Manner 2 When the current protocol version of the terminal device is incompatible with the current protocol version of the network device, the terminal device can escape through the first mode, that is, the terminal device can register with the network device through the first mode.
  • the terminal device when the terminal device is in the first mode, the most basic network connection can be guaranteed, so that the terminal device can complete the update of the protocol version.
  • the terminal device in the first mode can update the current protocol version, and the terminal device in the non-first mode cannot update the current protocol version. If the terminal device determines that the current protocol version of the terminal device is different from the current protocol version of the network device. When compatible, the terminal device enters the first mode from the non-first mode, so as to complete the update of the protocol version.
  • the terminal device may indicate to the network device that the terminal device is in the first mode in different ways, and the network device may learn that the terminal device is in the first mode in different ways, which will be discussed in the following cases:
  • the network device learns that the terminal device may be in the first mode. That is, the terminal device may indicate that the terminal device is in the first mode by not sending any message to the network device.
  • the terminal device sends first indication information to the network device
  • the first indication information may indicate that the terminal device is in the first mode
  • the network device receives the first indication information from the terminal device, and learns that the terminal device is in the first mode according to the first indication information .
  • the first indication information may directly indicate that the terminal device is in the first mode, and may also indirectly indicate that the terminal device is in the first mode.
  • the terminal device sends the current chip information of the terminal device to the network device.
  • the current chip information of the terminal device may indicate that the terminal device is in the first mode, and the network device learns that the terminal device is in the first mode according to the current chip information of the terminal device. That is to say, after receiving the current chip information of the terminal device, the network device can know that the current protocol version of the terminal device may be incompatible with the protocol version of the network device.
  • the network device needs to send protocol information to the terminal device so that the terminal device can update the current protocol version. .
  • sending the current chip information of the terminal device to the network device by the terminal device may indirectly indicate that the terminal device is in the first mode.
  • the network device can know that the terminal device is in the first mode, and if the terminal device does not send the current chip information of the terminal device to the network device, the network device knows that the terminal device is in the first mode. The device is not in the first mode.
  • the current chip information of the terminal device may indicate the manufacturer information of the current chip of the terminal device, and/or the model information of the current chip of the terminal device, and the like. That is to say, in the third case, the current chip information of the terminal device may not only indicate that the terminal device is in the first mode, but also indicate the manufacturer information and/or model information of the current chip of the terminal device.
  • the current chip information of the terminal device sent by the terminal device to the network device may not indicate that the terminal device is in the first mode, and the chip information may indicate information related to the current chip of the terminal device, such as indicating the manufacturer of the current chip of the terminal device. information, and/or the model information of the current chip of the terminal device.
  • the terminal device sends the current protocol version information of the terminal device to the network device.
  • the current protocol version information of the terminal device may indicate that the terminal device is in the first mode, and the network device learns that the terminal device is in the first mode according to the current protocol version information of the terminal device. . That is to say, when the network device receives the current protocol version information of the terminal device, it can know that the current protocol version of the terminal device is not compatible with the protocol version of the network device.
  • the network device needs to send the protocol information to the terminal device so that the terminal device can update the current protocol version. .
  • the current protocol version information of the terminal device sent by the terminal device to the network device may indirectly indicate that the terminal device is in the first mode.
  • the network device can know that the terminal device is in the first mode, and if the terminal device does not send the current protocol version information of the terminal device to the network device, then the network device It is known that the terminal device is not in the first mode.
  • the current version information of the terminal device may indicate the current protocol version of the terminal device, for example, the current version information of the terminal device may be the current protocol version number of the terminal device. That is to say, in the fourth case, the current protocol version information of the terminal device can not only indicate that the terminal device is in the first mode, but also can indicate the current protocol version of the terminal device.
  • the current protocol version information of the terminal device sent by the terminal device to the network device may not indicate that the terminal device is in the first mode, and the current protocol version information may indicate the current protocol version of the terminal device.
  • the terminal device sends the current chip information and current protocol version information of the terminal device to the network device.
  • the current chip information and the current protocol version information of the terminal device can indicate that the terminal device is in the first mode, and the network device can be based on the current state of the terminal device.
  • the chip information and the current protocol version information know that the terminal device is in the first mode. That is to say, when the network device receives the current chip information and the current protocol version information of the terminal device, it can know that the current protocol version of the terminal device is incompatible with the protocol version of the network device.
  • the network device needs to send the protocol information to the terminal device so that the terminal device can Update the current protocol version.
  • the current protocol version information of the terminal device sent by the terminal device to the network device may indirectly indicate that the terminal device is in the first mode.
  • the network device can know that the terminal device is in the first mode, if the terminal device does not send the current chip information of the terminal device to the network device. and the current protocol version information, the network device knows that the terminal device is not in the first mode.
  • the current version information of the terminal device may indicate the current protocol version of the terminal device, for example, the current version information of the terminal device may be the current protocol version number of the terminal device.
  • the current chip information of the terminal device may indicate the manufacturer information of the current chip of the terminal device, and/or the model information of the current chip of the terminal device, and the like. That is to say, in case 5, the current protocol version information of the terminal device and the current chip information of the terminal device can also indicate that the terminal device is in the first mode.
  • the current protocol version information and current chip information of the terminal device sent by the terminal device to the network device may not indicate that the terminal device is in the first mode, and the current protocol version information may indicate the current protocol version of the terminal device.
  • the current chip information may indicate the manufacturer information of the current chip of the terminal device and/or the model information of the current chip of the terminal device.
  • the network device is a core network device, as an alternative to S201, the access network device indicates to the core network device that the terminal device is in the first mode, and the core network device learns the terminal device from the access network device. The device is in the first mode.
  • the access network device determines that the protocol version of the terminal device is incompatible, the access network device instructs the terminal device to enter the first mode, and the access network device instructs the core network device that the terminal device is in the first mode. a mode. For example, after the access network device receives the message from the terminal device, and the parsing is wrong, the access network device determines that the protocol versions of the access network device and the terminal device are incompatible. Or the access network device receives multiple messages sent by the terminal device, and when the number of message parsing errors reaches a preset value, the access network device determines that the protocol versions of the access network device and the terminal device are incompatible.
  • the method 200 further includes: after the terminal device satisfies a condition for triggering entering the first mode, the terminal device enters the first mode.
  • the trigger condition is: the terminal device determines that the protocol version is incompatible with the network device.
  • the terminal device may determine incompatibility with the protocol version of the network device in at least one of the following ways.
  • Manner 1 If the terminal device parses the system message incorrectly after receiving the system message, the terminal device determines that the protocol version is incompatible with the network device. Or the terminal device receives multiple system messages, and when the number of system message parsing errors reaches a preset value, the terminal device determines that the protocol version is incompatible with the network device.
  • the terminal device determines that the protocol version of the terminal device is incompatible with the network device. Or, if the terminal device registers with the network device for many times, and the number of registration failures reaches a preset value, the terminal device determines that the protocol version of the network device is incompatible.
  • the terminal device may start a first timer at the first moment, the duration of the first timer is the first duration, and the first duration is a preset value. Before the first timer expires, the terminal device does not repeatedly enter the first mode. It can also be understood that, before the first timer expires, the terminal device remains in the first mode. In this way, after the terminal device satisfies the trigger condition for entering the first mode, it is avoided to repeatedly enter the first mode. Helps to save signaling overhead, thereby helping to save energy.
  • the terminal device may perform S201 before the first timer times out.
  • the first moment is the moment when the terminal device enters the first mode, that is, the first timer is started immediately after the terminal device enters the first mode.
  • the first moment is the moment when the terminal device indicates to the network device that the terminal device is in the first mode in S201.
  • the first moment is when the terminal device sends the first indication information or the current protocol version information of the terminal device or the terminal device to the network device.
  • the time when the current chip information of the device (the first indication information or the current protocol version information of the terminal device or the current chip information of the terminal device is used to indicate that the terminal device is in the first mode).
  • the first duration may be the same or different in the above two cases.
  • the terminal device needs to indicate to the second device that the terminal device is in the first mode after entering the first mode, that is, the first moment in case 1 can be before the first moment in case 2, or the first moment in case 1. It is the same as the first moment in case two (that is, the moment when the terminal device enters the first mode also indicates to the second device that the terminal device is in the first mode), in other words, the start time of the first timer in case one is earlier than Either equal to the start time in case 2, or, if the first duration in case 1 and case 2 are the same, the timeout period of the first timer in case 1 is earlier than or equal to the timeout period in case 2.
  • the terminal device may start a second timer at the second moment, the duration of the second timer is the second duration, and the second duration is a preset value. Before the second timer expires, the terminal device no longer indicates to the network device that the terminal device is in the first mode. In this way, signaling overhead caused when the terminal device needs to repeatedly indicate to the network device that the terminal device is in the first mode is avoided.
  • the second time is the time when the terminal device enters the first mode, that is, the second timer is started immediately after the terminal device enters the first mode.
  • the terminal device starts the second timer at the moment of entering the first mode. After the terminal device enters the first mode and before the second timer expires, it first indicates to the network device that the terminal device is in the first mode. Indicating to the network device that the terminal device is in the first mode.
  • the second time is the time when the terminal device indicates to the network device that the terminal device is in the first mode in S201, that is, the second time is the time when the terminal device first indicates to the network device that the terminal device is in the first mode.
  • the terminal device starts a second timer, and before the second timer expires, the terminal device no longer indicates to the network device that the terminal device is in the first mode.
  • the second moment is when the terminal device sends the first indication information or the current protocol version information of the terminal device or the current chip information of the terminal device (the first indication information or the current protocol version information of the terminal device or the current chip information of the terminal device) to the network device.
  • the information is used to indicate the moment when the terminal device is in the first mode).
  • the second duration may be the same or different in the above two cases.
  • the terminal device needs to indicate to the second device that the terminal device is in the first mode after entering the first mode, that is, the second moment in case 1 may be before the second moment in case 2, or the second moment in case 1. It is the same as the second moment in case two (that is, the moment the terminal device enters the first mode also indicates to the network device that the terminal device is in the first mode), in other words, the start time of the second timer in case one is earlier than or Equal to the start time in case two, or, if the second duration in case one and case two are the same, the timeout time of the second timer in case one is earlier than or equal to the timeout time in case two.
  • the terminal device may start a third timer at the third moment, the duration of the third timer is a third duration, and the third duration is a preset value. After the third timer expires, the terminal device exits the first mode. In this way, the situation that the terminal device cannot exit when it keeps entering the first mode is avoided.
  • the third time is the time when the terminal device enters the first mode, that is, the third timer is started immediately after the terminal device enters the first mode.
  • the terminal device starts a third timer at the moment of entering the first mode, and performs S201 after the terminal device enters the first mode and before the third timer times out.
  • the third time is the time when the terminal device indicates to the network device that the terminal device is in the first mode in S201, and when the terminal device indicates to the network device that the terminal device is in the first mode, the terminal device starts the third timer, and in the first mode After three timers expire, the terminal device exits the first mode.
  • the third moment is when the terminal device sends the first indication information or the current protocol version information of the terminal device or the current chip information of the terminal device (the first indication information or the current protocol version information of the terminal device or the current chip of the terminal device) to the network device.
  • the information is used to indicate the moment when the terminal device is in the first mode).
  • the third duration may be the same or different in the above two cases.
  • the terminal device needs to indicate to the second device that the terminal device is in the first mode after entering the first mode, that is, the third moment in case 1 may be before the third moment in case 2, or the third moment in case 1. It is the same as the third moment in case two (that is, the moment the terminal device enters the first mode also indicates to the network device that the terminal device is in the first mode), in other words, the start time of the third timer in case one is earlier than or equal to the start time in case two, or, if the third duration in case one and case two are the same, the timeout time of the third timer in case one is earlier than or equal to the timeout time in case two.
  • the terminal device may maintain one or two or three timers of the first timer, the second timer and the third timer at the same time, which is not shown in this embodiment of the present application.
  • at least two of the first time, the second time, and the third time may be the same or different, which is not limited in this application.
  • at least two of the first duration, the second duration and the third duration may be the same or different, which is not limited in this application.
  • the network device sends protocol information to the terminal device, the terminal device receives the protocol information from the network device, and the protocol information is used by the terminal device to update the current protocol version.
  • the network device may send protocol information to the terminal device after learning that the terminal device is in the first mode.
  • the protocol information may indicate an upgrade package, a downgrade package, a protocol patch, a protocol installation package or an update package, and the like. That is, the terminal device can upgrade the protocol version according to the protocol information, or downgrade the protocol version according to the protocol information, or repair the protocol version, or install the protocol version according to the protocol information, or can update the protocol version according to the protocol information.
  • the method 200 further includes that the network device determines the protocol version required by the terminal device, so that in S202, the network device can send the terminal device the protocol information corresponding to the protocol version required by the terminal device.
  • the device can obtain the protocol version required by the terminal device in any of the following ways:
  • the network device determines the current protocol version of the network device as the protocol version required by the terminal device. That is to say, as long as the network device knows that the terminal device is in the first mode, it can determine the current protocol version of the network device as the protocol version required by the terminal device. In other words, the network device may not pay attention to whether the current protocol version of the terminal device is. Whatever, as long as the network device knows that the terminal device is in the first mode and the network device also knows that the terminal device needs to update the protocol version, the network device determines the protocol version of the network device as the protocol version required by the terminal device.
  • the network device can determine the protocol version required by the terminal device according to the current chip information of the terminal device. For example, the network device can determine the protocol version that can adapt to the current chip information of the terminal device as the protocol version required by the terminal device. If there are multiple protocol versions that can adapt to the current chip information of the terminal device, the network device can Select a protocol version with a higher protocol version from multiple protocol versions to determine the protocol version required by the terminal device, or the network device can select a protocol version from multiple protocol versions that is close to the protocol version of the network device or determine the protocol version of the network device as the terminal device. The desired protocol version.
  • Mode 3 If the terminal device sends the current version information of the terminal device to the network device, and if the protocol version indicated by the current version information of the terminal device is different from the current protocol version of the network device, the network device determines the current protocol version of the network device as the terminal device. The protocol version required by the device.
  • Mode 4 If the terminal device sends the current version information of the terminal device to the network device, if the protocol version indicated by the current version information of the terminal device is different from the current protocol version of the network device, the network device determines the protocol version compatible with the terminal device as The protocol version required by the terminal device, and the protocol version compatible with the terminal device may be the protocol version of the network device, or may be a protocol version lower than or higher than the network device.
  • Method 5 If the terminal device sends the current version information of the terminal device and the current chip information to the network device, the network device can combine the current version information of the terminal device, the current chip information and the protocol version of the network device. Protocol version. Specifically, if the protocol version indicated by the current version information of the terminal device is different from the current protocol version of the network device, and the current protocol version of the network device can adapt to the current chip information of the terminal device, the network device converts the current protocol version of the network device to the current protocol version of the network device. Determine the protocol version required by the end device.
  • the network device may acquire protocol information according to the protocol version required by the terminal device.
  • a network device can obtain protocol information in any of the following ways.
  • Manner 1 The network device stores the protocol information required by the terminal device.
  • the network device may store one or more protocol information. After the network device learns that the terminal device is in the first mode, the network device determines the protocol information required by the terminal device according to the protocol version required by the terminal device. For example, the network device determines that the protocol version required by the terminal device is R17, and the network device sends the saved installation package or upgrade package or protocol patch of R17 to the terminal device. In this case, the protocol information indicates the installation package, upgrade package or protocol patch of R17.
  • the network device obtains the protocol information from the server.
  • the network device sends a request message to the server, where the request message is used to request protocol information from the server, and the network device receives the protocol information from the server.
  • the request message may include a protocol version required by the terminal device, and the server may determine the protocol information according to the protocol version required by the terminal device, and send the protocol information to the network device.
  • the request message may include version information required by the terminal device, the version information required by the terminal device is used to indicate the protocol version required by the terminal device, and the server indicates the protocol version required by the terminal device according to the version information required by the terminal device.
  • the protocol version determines the protocol information and sends the protocol information to the network device.
  • the network device can determine the server according to the terminal device, for example, the terminal device belongs to a certain manufacturer, the network device can learn the server corresponding to the chip of the terminal device, and send a request message to the server.
  • the network device may determine the server according to the manufacturer information of the chip and/or the model information of the chip, and send a request message to the server, where the request message includes the chip information of the terminal device.
  • the network device receives chip information from the terminal device, the chip information is used to indicate chip manufacturer information and/or chip model information.
  • the network device can determine the server according to the manufacturer information of the chip and/or the model information of the chip, and send a request message to the server.
  • the request message includes the chip information of the terminal device and the protocol version required by the terminal device.
  • the protocol version required by the terminal device determines the protocol information, and sends the protocol information to the network device.
  • the network device in the method 200 obtains the protocol information from another network device.
  • the AMF can obtain the protocol information from the UDR, and the UDR is another network device at this time.
  • the AMF can obtain the protocol information from the UDM, which is another network device at this time.
  • the network device in method 200 sends a request message to another network device, where the request message is used to request protocol information from another network device, and the network device in method 200 receives protocol information from another network device.
  • the request message may include a protocol version required by the terminal device, and another network device may determine protocol information according to the protocol version required by the terminal device, and send the protocol information to the network device in method 200 .
  • the request message may include version information required by the terminal device, the version information required by the terminal device is used to indicate the protocol version required by the terminal device, and another network device indicates the terminal device according to the version information required by the terminal device.
  • the required protocol version determines the protocol information and sends the protocol information to the network device in method 200 .
  • the network device in the method 200 receives the chip information from the terminal device, the chip information is used to indicate the manufacturer information and/or the chip model information of the chip.
  • the network device in the method 200 can send a request message to another network device, where the request message includes the chip information of the terminal device and the protocol version required by the terminal device, and the other network device can send a request message according to the chip information of the terminal device and the protocol required by the terminal device.
  • the version determines the protocol information and sends the protocol information to the network device in method 200 .
  • the terminal device in the method 200 may be the first device
  • the network device in the method 200 may be the second device
  • the server in the above-mentioned method 2 may be the third device
  • the other network device in the above-mentioned method 3 It can also be a third device.
  • the network device determines that the terminal device is in the first mode, and the network device may start a fourth timer at the fourth moment, and the duration of the fourth timer is the fourth duration, and before the fourth timer times out, Even if the network device learns from the terminal device that the terminal device is in the first mode again, the network device does not send the protocol information to the terminal device again, for example, even if the network device receives the first indication information from the terminal device again, or receives the current status of the terminal device again.
  • the network device will not report to the terminal device.
  • the device sends the protocol information again. In this way, the network device can avoid sending the protocol information to the terminal device multiple times, which can save overhead and avoid denial of service (DoS) attacks.
  • DoS denial of service
  • the device indicates that the terminal device is in the first mode, and the network device no longer sends protocol information to the terminal device.
  • the fourth moment when the network device starts the fourth timer may be the moment when the network device determines that the terminal device is in the first mode.
  • the network device in method 200 may determine that the terminal device is in the first mode according to information sent by another network device that the terminal device is in the first mode, for example Typically, the network device in the method 200 is the AMF in FIG. 1 , and the AMF may determine that the terminal device is in the first mode according to the information that the terminal device is in the first mode sent by the RAN.
  • the fourth timer may be independent of the aforementioned first timer, second timer or third timer.
  • the fourth timer may also be related to the aforementioned first timer, second timer or point timer.
  • the fourth duration of the fourth timer may be greater than or equal to the first duration, or the fourth duration may be is greater than or equal to the second duration, or the fourth duration may be greater than or equal to the third duration, which is not limited in this embodiment of the present application.
  • S201 and S202 can be implemented through different messages, which are described in the following scenarios:
  • Scenario 1 the registration scenario.
  • S201 includes: S201a1, the terminal device sends a registration request message to the network device, indicating that the terminal device is in the first mode through the registration request message, and the network device learns according to the registration request message that the terminal device is in the first mode model.
  • the registration request message may carry first indication information, and the first indication information is used to indicate that the terminal device is in the first mode; for another example, the registration request message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the device is in the first mode; for another example, the registration request message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • S202 may include: S202a2, the network device sends a registration response message to the terminal device.
  • the Registration Response message includes protocol information.
  • the registration response message may be a registration accept message, which is used to indicate that the network device accepts the registration of the terminal device; or the registration response message may be a registration rejection message, which indicates that the network device rejects the registration of the terminal device.
  • S202a2 sends the protocol information to the terminal device through the control plane process.
  • the network device may be a core network device, that is, a terminal device registers with the core network device, for example, the core network device may be the AMF shown in FIG. 1 .
  • S201 is implemented in the registration scenario, and S202 is implemented through the user plane process.
  • the network device is a core network device.
  • S201 includes: S201b1, the terminal device sends a registration request message to the core network device, and the registration request message indicates that the terminal device is in the first mode, and the core network device learns according to the registration request message that the terminal device is in the first mode.
  • the registration request message may carry first indication information, and the first indication information is used to indicate that the terminal device is in the first mode; for another example, the registration request message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the device is in the first mode; for another example, the registration request message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • S202 which may include: S202b2 and S202b3, wherein in S202b2, the core network device sends protocol information to the access network device; S202b3, the access network device can transfer the protocol information through a data radio bearer (DRB) between the access network device and the terminal device.
  • DRB data radio bearer
  • the terminal device may be preset with parameters for establishing a user plane connection, and may establish a user plane connection with the access network device according to the preset parameters for establishing a user plane connection, and the user plane connection is DRB corresponds.
  • the method 200 may further include: S204b, the core network device may construct parameters for establishing a user plane connection, and before S202b3, the method 200 may further include: S205b, using the constructed parameters for establishing a connection The parameters of the user plane connection are sent to the terminal device; S206, the terminal device can establish a user plane connection with the access network device according to the parameters for establishing the user plane connection, and the user plane connection corresponds to the DRB.
  • the method 200 may further include: the access network device may construct parameters for establishing a user plane connection, and send the constructed parameters for establishing a user plane connection to the terminal device; The parameters of the plane connection establish a user plane connection with the access network equipment, and the user plane connection corresponds to the DRB.
  • the parameter for establishing a user plane connection constructed by the core network device or the access network device may be a parameter for establishing a "fake” PDU session, where the "fake” PDU session refers to: PDU session, the user plane connection of the "fake” PDU session is only the user plane connection between the terminal equipment and the access network equipment, and the user plane connection between the access network equipment and the core network equipment does not exist.
  • the user plane connection of a general PDU session includes the user plane connection between the terminal equipment and the access network equipment, and the user plane connection between the access network equipment and the core network equipment (for example, the core network equipment is UPF).
  • the terminal device does not perceive whether it is a general PDU session or a "fake” PDU session. Therefore, the terminal device may not perceive that it is establishing a user plane connection for a "false” PDU session, and the terminal device only establishes a user plane connection with the access network device according to the received parameters for establishing the user plane connection.
  • the method 200 may further include: the terminal device sends a PDU session establishment request message to the core network device, where the PDU session establishment request message is used to request the core network device to establish a PDU session, and the core network device may send a PDU session establishment request message to the terminal device.
  • the device sends a PDU session accept message.
  • the PDU session accept message includes the parameters used to establish the user plane connection in S205b.
  • the terminal device can establish a user plane connection with the access network device according to the parameters used to establish the user plane connection.
  • the user plane connection is connected to the DRB. correspond.
  • the parameters for establishing the user plane connection included in the PDU session accept message are the parameters for establishing the user plane connection of the general PDU session, that is, the user plane connection of the general PDU session is the user plane connection including the terminal equipment to the access network equipment.
  • plane connection, and the user plane connection from the access network equipment to the core network equipment (for example, the core network equipment is UPF).
  • the core network device is the AMF shown in FIG. 1
  • the access network device is the RAN shown in FIG. 1 .
  • the core network learns that the terminal device is in the first mode, and the core network device can simplify the registration process of the terminal device. In this way, the terminal device can be improved. Registration speed and success rate.
  • the core network device may not perform authentication on the terminal device, or may not perform mobility restriction (mobility restriction) detection on the terminal device, or may not perform access restriction (access restriction) detection on the terminal device.
  • Scenario 3 S201 is implemented through a radio resource control (radio resource control, RRC) message, and S202 is implemented through a user plane process.
  • the network device may be an access network device.
  • S201 includes: S201c1, the terminal device sends an RRC message to the access network device through the RRC connection, and instructs the terminal through the RRC message
  • the device is in the first mode, and the access network device learns that the terminal device is in the first mode according to the RRC message.
  • the RRC message may carry first indication information, and the first indication information is used to indicate that the terminal device is in the first mode; for another example, the RRC message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • the first mode for another example, the RRC message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • S202 may include: S202c2, the access network device sends protocol information to the terminal device through the DRB between the access network device and the terminal device, and the terminal device receives the protocol information through the DRB between the access network device and the access network device.
  • the terminal device may be preset with parameters for establishing a user plane connection, and may establish a user plane connection with the access network device according to the preset parameters for establishing a user plane connection, and the user plane connection is DRB corresponds.
  • the method 200 may further include: S204c, the access network device may construct parameters for establishing a user plane connection, and before S202c2, the method 200 may further include: S205c, using the constructed parameters for The parameters for establishing the user plane connection are sent to the terminal device; S206, the terminal device can establish a user plane connection with the access network device according to the parameters for establishing the user plane connection, and the user plane connection corresponds to the DRB.
  • the access network device may send the parameters for establishing the user plane connection to the terminal device through an RRC message.
  • the parameter constructed by the access network device for establishing a user plane connection may be a parameter for establishing a "fake” PDU session, where the "fake” PDU session refers to: "Compared with a general PDU session, " The user plane connection of the false PDU session is only the user plane connection between the terminal device and the access network device, and the user plane connection between the access network device and the core network device does not exist.
  • the user plane connection of a general PDU session includes the user plane connection between the terminal equipment and the access network equipment, and the user plane connection between the access network equipment and the core network equipment (for example, the core network equipment is UPF).
  • the terminal device does not perceive whether it is a general PDU session or a "fake” PDU session. Therefore, the terminal device may not perceive that it is establishing a user plane connection for a "false” PDU session, and the terminal device only establishes a user plane connection with the access network device according to the received parameters for establishing the user plane connection.
  • the access network device is the RAN shown in FIG. 1 .
  • S201 is implemented through an RRC establishment request message
  • S202 is implemented through a user plane process
  • the network device may be an access network device.
  • S201 includes: S201d1, the terminal device sends an RRC setup request (RRC setup Request) message to the access network device,
  • RRC setup request message is used to request the access network device to establish an RRC connection, the RRC setup request message indicates that the terminal device is in the first mode, and the access network device learns that the terminal device is in the first mode according to the RRC setup request message.
  • the RRC setup request message may carry the first indication information, which is used to indicate that the terminal device is in the first mode; for another example, the RRC setup request message may carry the current version information of the terminal device, and the current version information of the terminal device is used for Indicates that the terminal device is in the first mode; for another example, the RRC establishment request message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • S202 which may include: S202d2, the access network device sends protocol information to the terminal device through the DRB between the access network device and the terminal device, and the terminal device receives the protocol information through the DRB between the access network device and the access network device.
  • the method 200 may further include: S204d, the access network device may construct parameters for establishing a user plane connection, and before S202d2, the method 200 may further include: S205d, using the constructed parameters for The parameters for establishing the user plane connection are sent to the terminal device; S206, the terminal device can establish a user plane connection with the access network device according to the parameters for establishing the user plane connection, and the user plane connection corresponds to the DRB.
  • the access network device may send the parameters for establishing the user plane connection to the terminal device through an RRC setup (RRC setup) message.
  • RRC setup RRC setup
  • the parameter constructed by the access network device for establishing a user plane connection may be a parameter for establishing a "fake” PDU session, where the "fake” PDU session refers to: "Compared with a general PDU session, " The user plane connection of the false PDU session is only the user plane connection between the terminal device and the access network device, and the user plane connection between the access network device and the core network device does not exist.
  • the user plane connection of a general PDU session includes the user plane connection between the terminal equipment and the access network equipment, and the user plane connection between the access network equipment and the core network equipment (for example, the core network equipment is UPF).
  • the terminal device does not perceive whether it is a general PDU session or a "fake” PDU session. Therefore, the terminal device may not perceive that it is establishing a user plane connection for a "false” PDU session, and the terminal device only establishes a user plane connection with the access network device according to the received parameters for establishing the user plane connection.
  • the access network device is the RAN shown in FIG. 1 .
  • Scenario 5 S201 is implemented through an RRC establishment request message, and S202 is implemented through an RRC response.
  • the network device may be an access network device.
  • S201 includes: S201e1, the terminal device sends an RRC setup request (RRC setup request) message to the access network device,
  • RRC setup request message is used to request the access network device to establish an RRC connection, the RRC setup request message indicates that the terminal device is in the first mode, and the access network device learns that the terminal device is in the first mode according to the RRC setup request message.
  • the RRC setup request message may carry the first indication information, which is used to indicate that the terminal device is in the first mode; for another example, the RRC setup request message may carry the current version information of the terminal device, and the current version information of the terminal device is used for Indicates that the terminal device is in the first mode; for another example, the RRC establishment request message may carry the current version information of the terminal device, and the current version information of the terminal device is used to indicate that the terminal device is in the first mode.
  • S202 which may include: S202e2, the access network device sends an RRC response message to the terminal device, where the RRC response message includes protocol information.
  • the RRC response message may be an RRC setup (RRC setup) message, and the RRC setup message indicates that the access network device accepts the RRC setup request from the terminal device.
  • the RRC response message may be an RRC reject (RRC reject) message, and the RRC reject message indicates that the access network device rejects the RRC establishment request of the terminal device.
  • the access network device is the RAN shown in FIG. 1 .
  • the method 200 further includes: the network device indicates to the terminal device services that the terminal device can support in the first mode, and the terminal device learns the services supported by the terminal device in the first mode from the network device. In this way, the terminal device can determine the services that the terminal device can initiate. For example, the network device indicates to the terminal device that the terminal device can support the emergency dialing service in the first mode.
  • the method further includes:
  • the terminal device updates the current protocol version of the terminal device based on the protocol information.
  • the terminal device may upgrade the current protocol version according to the upgrade package indicated by the protocol information to obtain an upgraded protocol version. If the protocol information indicates a downgraded package, the terminal device may downgrade the current protocol version of the terminal device according to the downgraded package indicated by the protocol information to obtain a downgraded protocol version. If the protocol version indicates the protocol patch, the terminal device can patch the current protocol version according to the protocol patch to obtain the patched protocol version and the like.
  • the terminal device exits the first mode.
  • the terminal device can exit the first mode after updating the current protocol version.
  • the terminal device after S202, after the terminal device exits the first mode, perform S203.
  • the terminal device after receiving the protocol information from the network device, the terminal device can exit the first mode first, and then update the current protocol version.
  • the terminal device can exit the first mode after the third timer expires, S203 can be before the third timer expires or after the third timer expires, but S202 can be after the third timer expires. Executed before the timer expires. In other words, it needs to be ensured that the terminal device receives the protocol information before the third timer expires.
  • the terminal device may update the protocol version according to the protocol information before or after the third timer times out.
  • the terminal device can exit the first mode after receiving the protocol information in S202 without being restricted by whether the third timer expires or not, or the terminal device can exit the first mode after receiving the protocol information in S202.
  • Exiting the first mode after updating the current protocol version in S203 is not limited by the timeout of the third timer. In other words, the terminal device maintains the third timer to avoid the situation that the terminal device is always in the first mode and cannot exit.
  • the terminal device receives the protocol information of S202, it can also be used as a trigger condition to exit the first mode, or if After the terminal device has updated the current protocol version in S203, it can also be used as a trigger condition for exiting the first mode.
  • This embodiment of the present application does not limit the trigger condition for the terminal device exiting the first mode.
  • the terminal device when the terminal device is in the first mode, it can indicate to the network device that the terminal device is in the first mode, and the network device can send protocol information to the terminal device after learning that the terminal device is in the first mode.
  • the information updates the current protocol version, so as to avoid the problem that the terminal device cannot update the protocol version.
  • a communication method 800 provided by an embodiment of the present application is shown.
  • the second device may be an AMF
  • the first device may be a UE.
  • the method 800 corresponds to the above scenario 1.
  • the method 800 includes:
  • the UE enters the first mode.
  • the UE After the UE satisfies the condition for entering the first mode, the UE enters the first mode. Specifically, refer to the description of the method 200 to meet the condition of entering the first mode.
  • S802 may be triggered after the UE enters the first mode.
  • the UE sends a registration request (registration request) message to the AMF, the AMF receives the registration request message, and indicates that the UE is in the first mode through the registration request message.
  • registration request registration request
  • the registration request message may carry at least one of first indication information indicating that the UE is in the first mode, current version information of the UE, or current chip information of the UE.
  • first indication information indicating that the UE is in the first mode
  • current version information of the UE current chip information of the UE.
  • current chip information of the UE reference may be made to the description of the method 200 .
  • the UE starts at least one of the first timer, the second timer or the third timer.
  • the start time of the first timer, the second timer or the third timer is different, and the execution time of S803 is different.
  • the start time of the first timer, the second timer or the third timer may be the moment when the UE performs S801, or the moment when the UE performs S802. If the start time of the first timer, the second timer or the third timer can be the moment when the UE executes S801, the UE executes S803 while executing S801. If the start time of the first timer, the second timer or the third timer can be the moment when the UE executes S802, the UE executes S803 while executing S802.
  • the UE Before the first timer expires, the UE does not repeatedly enter the first mode.
  • the UE Before the second timer expires, the UE no longer sends a registration request message to the AMF.
  • the UE After the third counter times out, the UE exits the first mode.
  • the AMF starts a fourth timer.
  • the AMF determines the moment when the UE enters the first mode to start the fourth timer.
  • the AMF may determine that the UE enters the first mode after S802, and the AMF may start a fourth timer while performing S802.
  • the method 800 further includes: the RAN determines that the protocol versions of the UE and the RAN are incompatible, the RAN may send the instruction information for entering the first mode to the UE, and the UE enters the first mode according to the instruction information sent by the RAN to enter the first mode. first mode. That is, the RAN may trigger the UE to perform S801 through the indication information of entering the first mode.
  • the RAN may send a notification message that the UE enters the first mode to the AMF, and the AMF determines that the UE enters the first mode according to the notification message.
  • the AMF may start a fourth timer while receiving the notification message.
  • the AMF Before the fourth timer expires, even if the AMF receives the registration request message from the UE again, and learns that the UE is in the first mode through the registration request message, the AMF will no longer determine the protocol version information required by the UE, or the AMF will no longer report to the UE.
  • the UE sends the protocol information, or the AMF no longer requests the UDR for the protocol information, that is, the AMF does not perform any of the steps in S805-S808 again. In this way, it can be avoided that the attacker initiates the registration request again through the UE. Helps to avoid DDoS attacks.
  • the AMF determines the protocol version required by the UE according to the registration request message.
  • the AMF determines the protocol version required by the UE with reference to the description of the method 200 .
  • the AMF may store the protocol information required by the UE corresponding to the protocol version required by the UE, and then perform S808.
  • the AMF does not save the protocol information required by the UE corresponding to the protocol version required by the UE, and the UDR saves the protocol information required by the UE corresponding to the protocol version required by the UE, and S806 is performed.
  • the AMF sends a request message to the UDR, and the UDR receives the request message from the AMF, where the request message is used to request the UDR for protocol information required by the UE.
  • the registration request message includes chip information
  • the request message includes chip information
  • the UDR can determine the protocol information required by the UE according to the chip information carried in the request message.
  • the request message may include the protocol version required by the UE, for example, the version number of the protocol version required by the UE, and the UDR may determine the protocol information required by the UE according to the protocol version required by the UE.
  • the request message may include chip information and a protocol version required by the UE, and the UDR may determine the protocol information required by the UE according to the chip information and the protocol version required by the UE.
  • the request message may further include an identity (identity, ID) of the UE.
  • the AMF may request the server for protocol information required by the UE.
  • the AMF may request the server for the protocol information required by the UE.
  • the AMF may request the server for the protocol information required by the UE.
  • neither the AMF nor the UDR saves the protocol information required by the UE, and the AMF can request the server for the protocol information required by the UE.
  • the AMF can send a request message to the UDR, and the response message of the request message returned by the UDR does not contain If the protocol information required by the UE is included, the AMF determines that the UDR does not store the protocol information required by the UE; for example, if the protocol specifies which device stores the protocol information, the AMF can determine whether the UDR and the AMF save the protocol required by the UE according to the protocol. information.
  • the AMF sends a request message to the server, the server receives the request message from the AMF, and the request message is used to request the server for protocol information required by the UE.
  • the AMF can determine the server according to the chip information. For example, if the chip information indicates that the current chip of the terminal device is a chip of manufacturer A, the AMF determines that the server is the server of manufacturer A. For another example, if the chip information indicates that the current chip of the terminal device is the chip of manufacturer B, the AMF determines that the server is the server of manufacturer B.
  • the request message sent by the AMF to the server may further include the protocol version required by the UE, for example, the version number of the protocol version required by the UE, and the server may determine the protocol information required by the UE according to the protocol version required by the UE.
  • the request message sent by the AMF to the server may include chip information and a protocol version required by the UE, and the server may determine the protocol information required by the UE according to the chip information and the protocol version required by the UE.
  • the request message sent by the AMF to the server may further include the identity (identity, ID) of the UE.
  • the UDR sends the protocol information to the AMF according to the request message, and the AMF receives the protocol information from the UDR.
  • the AMF sends a registration response message to the UE, and the UE receives the registration response message from the AMF, where the registration response message includes protocol information.
  • the registration response message may be a registration acceptance message or a registration rejection message.
  • the Registration Accept message indicates that the AMF accepts the UE's registration request.
  • the registration rejection message indicates that the AMF rejects the UE's registration request.
  • the service that the UE can support in the first mode may also be indicated to the UE through the registration response message.
  • the registration response message may carry second indication information, and the second indication information may indicate that the UE is in the first mode. Businesses that can be supported in one mode.
  • the UE may determine the service that the UE can support in the first mode according to the registration response message, so as to initiate the service supported by the UE.
  • the second indication information may indicate the service type or service level of the service supported by the UE in the first mode. For example, if the UE is a mobile phone, the second indication information indicates service level 1.
  • Service level 1 means that the UE can make emergency calls and receive protocols.
  • the second indication information indicates service level 2
  • service level 2 is that ordinary calls can be made in addition to the services listed in service level 1
  • the third indication information indicates service level 3, service level 3
  • the UE is also allowed to upload data packets corresponding to high-priority services.
  • the AMF may determine whether to accept the registration of the UE, and in the process of determining whether to accept the registration of the UE, the authentication process for the UE may be omitted, or the mobility restriction may be skipped. (mobility restriction) check, or skip the access restriction check. In this way, the AMF skips these steps, which can save the registration time of the UE, and can also quickly push the protocol information to the UE, so as to prevent the UE from being unable to register with the network for a long time.
  • the UE updates the current protocol version according to the protocol information.
  • the UE can initiate the registration process again using the updated protocol version after updating the current protocol version.
  • S810 is executed. That is, after the UE updates the current protocol version, the UE exits the first mode.
  • S809 is executed. That is, after the UE exits the first mode, the UE is updating the current protocol version.
  • S810 is performed after the third timer expires.
  • the UE may perform S810 after S808 regardless of whether the third timer has expired or not.
  • the UE may perform S810 after S809 regardless of whether the third timer has expired or not.
  • the UE releases the access network (access network, AN) connection with the AMF.
  • the UE and the AMF may have a separate step of establishing an AN connection, or the UE and the AMF may establish an AN connection in the process of exchanging messages.
  • the UE may establish an AN connection in S802, or establish an AN connection before S802. .
  • S811 can be after S808, but there is no restriction on the order of S811 and S809 or S810. That is to say, the UE may release the AN connection with the AMF before or after exiting the first mode, or before or after the UE updates the current protocol version, which is not limited in this embodiment of the present application.
  • the above method 800 sends the protocol information to the UE through the control plane flow through the AMF.
  • the following describes the AMF sending the protocol information to the UE through the user plane flow with reference to the method 900 in FIG. 9 .
  • the method 900 corresponds to the second scenario described above.
  • S901-904 are the same as S801-S804 respectively. In order to avoid redundant description, detailed description is omitted.
  • the AMF generates parameters for establishing a user plane connection.
  • the parameters for establishing a user plane connection may include: establishing a protocol data unit (protocol data unit, PDU) session identifier, PDU session type, PDU session mode, aggregate maximum bit rate (aggregate maximum bit rate, AMBR), At least one of a procedure transaction identity (PTI), a PDU session establishment acceptance message identity, a service continuity (service and session continuity, SSC) mode, or a quality of service (QoS) rule.
  • PDU protocol data unit
  • PDU session identifier PDU session identifier
  • PDU session type PDU session type
  • PDU session mode aggregate maximum bit rate
  • aggregate maximum bit rate aggregate maximum bit rate
  • AMBR aggregate maximum bit rate
  • PDU session establishment acceptance message identity e.g., PDU session identifier
  • service continuity service and session continuity, SSC
  • QoS quality of service
  • the parameters for establishing a user plane connection may also be referred to as parameters for establishing a protocol data unit (protocol data unit, PDU) session.
  • PDU protocol data unit
  • the AMF may construct parameters for establishing a user plane connection, that is, the parameters constructed by the AMF for establishing a user plane connection are not to establish a general PDU session, but to establish a "fake" PDU session, a general PDU session.
  • the user plane connection of the session includes the user plane connection between the UE and the RAN, the user plane connection between the RAN and the UPF, and the user plane connection between the UPF and the DN.
  • the parameters established by the AMF for establishing the user plane connection are to allow the UE to establish the user plane connection with the RAN, and the user plane connection between the RAN and the UPF and the user plane connection between the UPF and the DN do not need to be established.
  • the AMF sends a registration response message to the UE, and the UE receives the registration response message from the AMF.
  • the registration response message includes parameters for establishing a user plane connection.
  • the registration response message may include: indicating to the UE services that the UE can support in the first mode, for example, the registration response message may include the second indication information in the method 800 .
  • the UE establishes a user plane connection with the RAN according to the parameters for establishing the user plane connection.
  • the user plane connection between the UE and the RAN may be referred to as DRB.
  • S908-S910 are respectively the same as S805-S807, and are not described in detail in order to avoid redundant description.
  • any one of S905-S907 and any one of S908-S910 is not limited. Any of S905-S907 may be performed before or after or simultaneously with any of S908-S910.
  • the AMF sends an N2 message to the RAN, and the RAN receives the N2 message, where the N2 message includes the protocol information in S910.
  • the N2 message may be an N2 request message or an N2 response message.
  • the RAN sends the protocol information to the UE through the DRB, and the UE receives the protocol information through the DRB.
  • S913-S914 are the same as S809-S810.
  • the UE releases the AN connection between the AMFs.
  • S915 can be after S906, but the order of S915 and any one of S907 to S914 is not limited, and S915 can be performed before or after or simultaneously with any one of S907 to S914.
  • Described in method 900 is that the RAN can send the protocol information to the UE through the DRB (or user plane procedure) between the RAN and the UE, and the parameters for establishing the user plane connection between the RAN and the UE are generated by the AMF.
  • the following describes the process of the UE establishing a real PDU session with reference to FIG. 10 , that is, the parameters used to establish the user plane connection are not generated by the AMF, but are sent to the UE by the SMF.
  • the method 1000 corresponds to the above-mentioned second scenario, and the method 1000 includes:
  • S1001-S1005 are the same as S801-S805 respectively.
  • the AMF sends the information for indicating the protocol version required by the UE to the UPF.
  • the UPF can obtain the protocol information according to the protocol version required by the UE.
  • the method for the UPF to obtain the protocol information is similar to the method for the AMF to obtain the protocol information in the method 800, and is not described in detail in order to avoid repetition.
  • S1005 and S1006 are before S1011, but the order of S1005 and S1006 and any one of steps in S1007-S1010 is not limited, and S1005 and S1006 can be performed before or after or at the same time as any of steps in S1007-S1010.
  • the AMF sends a registration response message to the UE.
  • the registration response message may be a registration acceptance message.
  • S1007 and S1005 may be performed before or after or at the same time as S1005.
  • the UE sends a PDU session establishment request message to the AMF
  • the AMF may send the PDU session establishment request message to the SMF
  • the SMF receives the PDU session establishment request message from the AMF.
  • the PDU session establishment request message may include a PDU session identifier.
  • the PDU session establishment request message may further include: network slice selection assistance information (network slice selection assistance information, NSSAI) and the like.
  • network slice selection assistance information network slice selection assistance information, NSSAI
  • the PDU session establishment request message may further include: at least one of first indication information indicating that the UE is in the first mode, current version information of the UE, or current chip information of the UE.
  • the registration request message in S1002 may not include at least one of the first indication information indicating that the UE is in the first mode, the current version information of the UE, or the current chip information of the UE included in the PDU session establishment request message. That is, the UE may indicate to the AMF that the UE is in the first mode at S1002, or may indicate to the AMF that the UE is in the first mode at S1008.
  • S1003 and S1004 may be after S1008.
  • the SMF may send a PDU session accept message to the AMF, and the AMF sends the PDU session accept message to the UE, where the PDU session accept message includes parameters for establishing a user plane connection.
  • the UE establishes a user plane connection with the RAN according to the parameters used for establishing the user plane connection.
  • the user plane connection between the UE and the RAN may be referred to as DRB.
  • the UPF sends the protocol information to the RAN through the user plane connection with the RAN.
  • the UPF may execute S1011 after acquiring the protocol information after S1006.
  • S1012-S1014 are the same as S912-S914 respectively.
  • the UE releases the AN connection.
  • the UE and each network element in FIG. 10 may have a separate step of establishing an AN connection, or the UE and each network element in FIG. 10 may establish an AN connection in the process of exchanging messages, for example, the UE may in S1002 An AN connection is established, or an AN connection is established separately before S1002.
  • the AN connection is used for the UE to send interaction information with the network element in FIG. 10 (for example, the information in S1002 and S1007-S1010).
  • Method 1100 corresponds to scenario three.
  • Method 1100 includes:
  • the AMF sends an N2 message to the RAN, and the RAN receives the N2 message from the AMF, where the N2 message includes protocol information.
  • the method for the AMF to acquire the protocol information is the same as that of the method 800, and in order to avoid redundant description, the embodiment of the present application will not describe in detail.
  • the N2 message may be an N2 request message or an N2 response message.
  • S1102 can be sent in any N2 message exchanged between the AMF and the RAN, and is not limited to the timing of sending.
  • the AMF can send an N2 message to the RAN, and the N2 message includes the protocol
  • the AMF may send an N2 message to the RAN based on the request of the RAN, and the N2 message includes protocol information.
  • the RAN determines that the UE is in the first mode, and the RAN may send a request message to the AMF, and the request message is used to send a request to the AMF.
  • the AMF requests protocol information, and the AMF may send the protocol information to the RAN based on the request message.
  • S1102 is performed before or after any one of steps S1101 to S1108 in the method 1100, which is not limited in this embodiment of the present application.
  • the RAN may acquire the protocol information from the server, or the RAN may acquire the protocol information from the UDR, or the RAN may store the protocol information.
  • the server or the UDR may send the protocol information to the RAN; for another example, the server or the UDR may send the protocol information to the RAN based on the request of the RAN, for example, after S1103, the RAN determines that the UE is in the first In a mode, the RAN may send a request message to the server or the UDR, the request message is used to request the server or the UDR for protocol information, and the server or the UDR may send the protocol information to the RAN based on the request message.
  • the manner in which the RAN acquires the protocol information is similar to the manner in which the AMF acquires the protocol information in the method 800, and will not be described in detail in order to avoid repetition. That is, the protocol information in method 1100 may be acquired by the RAN from the AMF, or stored by the RAN, or acquired by the RAN from a server, or acquired by the RAN from the UDR.
  • the RRC between the UE and the RAN is in a connected state.
  • the UE may be triggered to perform S1103.
  • the UE sends an RRC message to the RAN through the RRC connection, and the RAN receives the RRC message from the UE through the RRC connection.
  • the RRC message indicates that the UE is in the first mode, and the RAN learns that the UE is in the first mode according to the RRC message.
  • the RRC message may carry at least one of first indication information indicating that the UE is in the first mode, current version information of the UE, or current chip information of the UE.
  • first indication information the current chip information of the UE, and the current version information of the UE, reference may be made to the description of the method 200 .
  • the UE no longer sends an RRC message to the RAN, that is, it no longer indicates that the UE is in the first mode through the RRC message.
  • Other descriptions are the same as S804.
  • the RAN starts a fourth timer.
  • the RAN determines the moment when the UE enters the first mode to start the fourth timer.
  • the RAN may determine that the UE enters the first mode after S1103, and the RAN may start a fourth timer while performing S1103.
  • the method 1100 further includes: the RAN determines that the protocol versions of the UE and the RAN are incompatible, the RAN may send the indication information for entering the first mode to the UE, and the UE enters the first mode according to the indication information for entering the first mode sent by the RAN. That is, the RAN may trigger the UE to execute S1101 through the indication information of entering the first mode.
  • the RAN starts a fourth timer while sending the indication information for entering the first mode to the UE.
  • the RAN Before the fourth timer expires, even if the RAN receives the RRC message from the UE again and learns that the UE is in the first mode through the RRC message, the RAN will no longer determine the protocol version information required by the UE, or the RAN will no longer send the UE to the UE. protocol information, or the RAN no longer obtains the protocol information, that is, the RAN does not perform any one of the steps in S1106-S1109 again. In this way, it can be avoided that the attacker initiates the RRC message again through the UE. It is beneficial to avoid distributed denial of service (DDoS) attacks.
  • DDoS distributed denial of service
  • the RAN generates parameters for establishing a user plane connection.
  • the parameters for establishing a user plane connection may also be referred to as parameters for establishing a protocol data unit (protocol data unit, PDU) session.
  • PDU protocol data unit
  • the description of the parameters used to establish the user plane connection may refer to the description of the method 900.
  • the RAN may construct parameters for establishing a user plane connection.
  • the parameters constructed by the RAN for establishing a user plane connection are not to establish a general PDU session, but to establish a "fake" PDU session.
  • the user plane connection includes the user plane connection between the UE and the RAN, the user plane connection between the RAN and the UPF, and the user plane connection between the UPF and the DN.
  • the parameters for establishing the user plane connection established by the RAN are to allow the UE to establish the user plane connection with the RAN, and the user plane connection between the RAN and the UPF and the user plane connection between the UPF and the DN do not need to be established.
  • the RAN sends the parameters for establishing the user plane connection to the UE through the RRC connection, and the UE receives the parameters for establishing the user plane connection from the RAN through the RRC connection.
  • the UE establishes a user plane connection with the RAN according to the parameters used for establishing the user plane connection.
  • the user plane connection between the UE and the RAN may be referred to as DRB.
  • the RAN sends the protocol information to the UE through the DRB.
  • the protocol information required by the RAN to obtain the UE refer to the description of the method 200 .
  • the RAN may store the protocol information required by the UE, and then execute S1110.
  • the protocol information required by the UE saved by the RAN may be obtained in S1102, or obtained from the server or from the UDR.
  • the RAN acquires the protocol information from the server or the UDR reference may be made to the manner in which the AMF acquires the protocol information, for example, refer to S806-S808, which will not be described in detail in order to avoid redundant description.
  • S1110-S1111 are the same as S810-S811 respectively.
  • the method 1100 described above indicates that the UE is in the first mode through the RRC message, and the protocol information is sent through the user plane process.
  • the following describes in conjunction with the method 1200 in FIG. 12 that the UE is in the first mode through the RRC setup request message, and the protocol information is sent through the user plane process. .
  • the method 1200 corresponds to the fourth scenario described above.
  • Method 1200 includes:
  • S1201-S1202 are the same as S1101-S1102 respectively.
  • the UE is in an RRC disconnected state.
  • S1201 may trigger the UE to perform S1203.
  • the UE sends an RRC (RRC setup request) setup request message to the RAN, and the RAN receives the RRC setup request message from the UE.
  • RRC RRC setup request
  • the RRC setup request message indicates that the UE is in the first mode, and the RAN learns that the UE is in the first mode according to the RRC setup request message.
  • the RRC setup request message may carry at least one of first indication information indicating that the UE is in the first mode, current version information of the UE, or current chip information of the UE.
  • first indication information indicating that the UE is in the first mode
  • current version information of the UE current chip information of the UE.
  • current chip information of the UE reference may be made to the description of the method 200 .
  • the RAN sends an RRC setup (RRC setup) message to the UE, and the UE receives the RRC setup message from the RAN, where the RRC setup message includes parameters for establishing a user plane connection.
  • RRC setup RRC setup
  • the UE sends an RRC setup complete (RRC setup complete) message to the RAN.
  • RRC setup complete RRC setup complete
  • S1209-S1212 are the same as S1108-S1111, respectively.
  • the above-mentioned method 1200 indicates that the UE is in the first mode through the RRC establishment request message, and sends the protocol information through the control plane process.
  • the following describes in conjunction with the method 1300 of FIG. 13 that the UE is in the first mode through the RRC establishment request message, and sends through the user plane process. Protocol information.
  • the method 1300 corresponds to the fifth scenario described above.
  • Method 1300 includes:
  • S1301-S1305 are the same as S1201-S1205 respectively.
  • the RAN sends an RRC response message to the UE, and the UE receives the RRC response message from the RAN, where the RRC response message includes protocol information.
  • the RRC response message may be an RRC setup (RRC setup) message, and the RRC setup message indicates that the access network device accepts the RRC setup request from the terminal device.
  • the RRC response message may be an RRC reject (RRC reject) message, and the RRC reject message indicates that the access network device rejects the RRC establishment request of the terminal device.
  • S1307-S1308 are the same as S1210 and S1211 respectively.
  • the above methods 800 to 1300 respectively describe communication methods in different scenarios.
  • the incompatibility of the protocol versions of the terminal device and the network device can be understood as the incompatibility of the protocol versions of the terminal device and the access network device, or the incompatibility of the protocol versions of the terminal device and the core network device.
  • the terminal equipment is not compatible with the protocol versions of the access network equipment and the core network equipment.
  • the terminal device includes a UE
  • the access network device includes a RAN
  • the core network device includes an AMF.
  • first timer, the second timer, the third timer, and the fourth timer may be associated before, or may not be associated, which is not limited in this embodiment of the present application. There may be one or more timers in the first timer, the second timer, the third timer, and the fourth timer, or there may not be any one of the four timers, and this embodiment of the present application does not be restricted.
  • FIG. 2 to FIG. 13 may be independent embodiments or may be combined with each other.
  • the embodiments in the foregoing scenario 1, scenario 2, scenario 3, and scenario 4 may be independent embodiments.
  • the embodiments can also be combined with each other.
  • FIG. 14 is a schematic block diagram of a communication apparatus provided by an embodiment of the present application.
  • the apparatus 1400 may include a processing unit 1410 and a transceiver unit 1420 .
  • the apparatus 1400 may correspond to the first device or terminal device in the above method embodiments, for example, may be a UE, or a chip configured in the UE.
  • the apparatus 1400 is configured to execute each step or process corresponding to the first device or the terminal device or the UE in the above-mentioned method 200 to the method 1300 .
  • the processing unit 1410 is configured to indicate to the second device that the communication device is in the first mode, and the current protocol version of the communication device is incompatible with the current protocol version of the second device; the transceiver unit 1420 is configured to Receive protocol information from the second device, where the protocol information is used for the communication device to update the current protocol version; the processing unit 1410 is further configured to update the current protocol version of the communication device based on the protocol information.
  • the processing unit 1410 is specifically configured to send first indication information to the second device through the transceiving unit 1420, where the first indication information is used to indicate that the communication apparatus is in the first mode.
  • the processing unit 1410 is specifically configured to send the current chip information of the communication apparatus to the second device through the transceiver unit 1420; and/or,
  • the processing unit 1410 is specifically configured to send the current protocol version information of the communication device to the second device through the transceiver unit 1420, where the current version information of the communication device is used to indicate the current protocol version of the communication device .
  • the processing unit 1410 is further configured to: start a first timer at a first moment, and before the first timer expires, the communication device does not repeatedly enter the first mode, wherein all the The duration of the first timer is the first duration, and the first moment is the moment when the communication device enters the first mode, or the communication device indicates to the second device that the communication device is in the first mode mode moment.
  • the processing unit 1410 is further configured to: start a second timer at a second moment, and before the second timer expires, the processing unit no longer indicates the communication device to the second device is in the first mode, wherein the duration of the second timer is a second duration, and the second time is the time when the communication device enters the first mode, or the processing unit sends a message to the first mode.
  • the second device indicates the moment when the communication device is in the first mode.
  • the processing unit 1410 is further configured to: start a third timer at a third moment, and after the third timer expires, the communication device exits the first mode, wherein the third timer The duration of the timer is a third duration, and the third time is the time when the communication device enters the first mode, or the processing unit indicates to the second device that the communication device is in the first mode .
  • the processing unit 1410 is further configured to acquire, from the second device, a service that the communication apparatus can support in the first mode.
  • the second device is a core network device; the processing unit 1410 is specifically configured to send a registration request message to the core network device through the transceiver unit, and use the registration request message to indicate that the communication device is in the first mode.
  • the second device is a core network device
  • the transceiver unit 1420 is specifically configured to: receive a registration acceptance message or a registration rejection message from the core network device, where the registration acceptance message or the registration rejection message includes the protocol information; or, receive the protocol information from the core network device through a data radio bearer DRB between the communication apparatus and the access network device.
  • the second device is an access network device;
  • the processing unit 1410 is specifically configured to send an RRC message to the access network device by using the radio resource control RRC connection through the transceiver unit, and use the RRC message to send an RRC message to the access network device.
  • the transceiver unit 1420 is specifically configured to receive the protocol information from the access network device through the DRB between the communication device and the access network device.
  • the second device is an access network device; the processing unit 1410 is specifically configured to send an RRC setup request message to the access network device through the transceiver unit 1420, and indicate through the RRC setup request message
  • the communication device is in the first mode; the transceiver unit 1420 is specifically configured to: receive the protocol information from the access network device through the DRB between the communication device and the access network device.
  • the transceiver unit 1420 is further configured to: send a PDU session establishment request message to the core network device; receive a PDU session establishment accept message from the core network device, where the PDU session establishment accept message includes the user parameters for establishing a user plane connection; the processing unit 1410 is further configured to establish a user plane connection according to the parameters for establishing a user plane connection, and the user plane connection corresponds to the DRB.
  • the second device is an access network device;
  • the processing unit 1410 is specifically configured to send a radio resource control RRC establishment request message to the access network device through the transceiver unit, and use the RRC establishment request message a message indicating that the communication device is in the first mode;
  • the transceiver unit 1420 is specifically configured to receive an RRC response message from the access network device, where the RRC response message includes the protocol information.
  • the apparatus 1400 may correspond to the second device or the network device or the access network device or the core network device or the AMF or the RAN in the above method embodiment, for example, it may be the AMF, or it may be configured in
  • the chip in the AMF can be, for example, the RAN, or is configured with the chip in the RAN.
  • the apparatus 1400 is configured to execute each step or process corresponding to the second device or the network device or the access network device or the core network device or the AMF or the RAN in the above method 200 - the method 1300 .
  • the processing unit 1410 is configured to know that the first device is in the first mode, the current protocol version of the communication device is incompatible with the current protocol version of the first device; the transceiver unit 1420 is configured to send the communication device to the The first device sends protocol information, where the protocol information is used by the first device to update the current protocol version.
  • the processing unit 1410 is specifically configured to receive first indication information from the first device through the transceiver unit 1420, where the first indication information is used to indicate that the first device is in the first mode .
  • the processing unit 1410 is specifically configured to receive the current chip information of the first device from the first device through the transceiver unit 1420 . and / or,
  • the processing unit 1410 is specifically configured to receive the current version information of the first device from the first device through the transceiver unit 1420, where the current version information of the first device is used to indicate the first device.
  • the processing unit 1410 is specifically configured to receive the current version information of the first device from the first device through the transceiver unit 1420, where the current version information of the first device is used to indicate the first device.
  • a device's current protocol version is specifically configured to receive the current version information of the first device from the first device through the transceiver unit 1420, where the current version information of the first device is used to indicate the first device.
  • a device's current protocol version is used to indicate the first device.
  • the processing unit 1410 is further configured to: determine the protocol version required by the first device according to the current protocol version of the communication device; acquire the protocol information according to the protocol version required by the first device .
  • the processing unit 1410 is specifically configured to: if the current version information of the first device indicates If the protocol version is incompatible with the current protocol version of the communication device, the current protocol version of the communication device is determined as the protocol version required by the first device.
  • the processing unit 1410 is specifically configured to send a request message to the third device through the transceiver unit 1420, where the request message is used to request protocol information from the third device; the processing unit 1410 is specifically configured to The protocol information is received from the third device through the transceiving unit 1420 .
  • the request message includes a protocol version required by the first device, and/or, if the transceiver unit 1420 receives the current chip information of the first device from the first device, the The request message includes the current chip information of the first device.
  • the processing unit 1410 is further configured to: start a fourth timer at a fourth moment, and before the fourth timer times out, the processing unit learns again from the first device that the first device is in After the first mode, the protocol information is no longer sent to the first device, wherein the duration of the fourth timer is a fourth duration, and the fourth time is when the processing unit determines that the first device is in the the moment of the first mode.
  • processing unit 1410 is further configured to: indicate to the first device a service that the first device can support in the first mode.
  • the first device is a terminal device
  • the processing unit 1410 is specifically configured to receive a registration request message from the terminal device through the transceiver unit 1420, and use the registration request message to indicate that the terminal device is in the desired location. Describe the first mode.
  • the first device is a terminal device
  • the transceiver unit 1420 is specifically configured to send a registration acceptance message or a registration rejection message to the terminal device, where the registration acceptance message or the registration rejection message includes the protocol or, the transceiver unit 1420 is specifically configured to send the protocol information to the terminal device through the data radio bearer DRB between the access network device and the terminal device.
  • the first device is a terminal device; the processing unit 1410 is specifically configured to receive an RRC message from the terminal device by using the radio resource control RRC connection through the transceiver unit 1420, and indicate the RRC message through the RRC message.
  • the terminal device is in the first mode; the transceiver unit 1420 is specifically configured to send the protocol information to the terminal device through the DRB between the communication device and the terminal device.
  • the first device is a terminal device; the processing unit 1410 is specifically configured to receive an RRC setup request message from the terminal device through the transceiver unit 1420, and instruct the terminal device through the RRC setup request message In the first mode; the transceiver unit 1420 is specifically configured to send the protocol information to the terminal device through the DRB between the communication device and the terminal device.
  • the transceiver unit 1420 is further configured to: receive a PDU session establishment request message from the terminal device; send a PDU session establishment accept message to the terminal device, where the PDU session establishment accept message includes the PDU session establishment accept message Parameters of the user plane connection, the user plane connection corresponds to the DRB.
  • the processing unit 1410 is further configured to generate the parameters for establishing a user plane connection; the transceiver unit 1420 is further configured to send the parameters for establishing a user plane connection to the terminal device, so The user plane connection corresponds to the DRB.
  • the first device is a terminal device; the processing unit 1410 is specifically configured to receive an RRC setup request message from the terminal device through the transceiver unit 1420, and instruct the terminal device through the RRC setup request message In the first mode; the transceiver unit 1420 is specifically configured to send an RRC response message to the terminal device, where the RRC response message includes the protocol information.
  • the apparatus 1400 herein is embodied in the form of functional units.
  • the term "unit” as used herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a dedicated processor, or a group of processors, etc.) and memory, merge logic, and/or other suitable components to support the described functions.
  • ASIC application specific integrated circuit
  • the apparatus 1400 may be specifically the first device or the terminal device or the UE in the foregoing embodiment, and may be used to perform the same operation as the first device or the terminal device or the UE in the foregoing method embodiment.
  • the respective processes and/or steps corresponding to the UE, or, the apparatus 1400 may be specifically the second device or network device or AMF or RAN in the foregoing embodiment, and may be used to perform the connection between the second device or the network device or the AMF or RAN in the foregoing method embodiment.
  • the respective processes and/or steps corresponding to the AMF or the RAN are not repeated here in order to avoid repetition.
  • the apparatus 1400 of each of the above solutions has the function of implementing the corresponding steps performed by the first device or terminal device or UE in the above method, or the apparatus 1400 of each of the above solutions has the function of implementing the second device or network device or AMF or RAN in the above method.
  • the functions can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions; for example, the communication unit may be replaced by a transceiver (for example, the transmitting unit in the communication unit may be replaced by a transmitter, and the receiving unit in the communication unit may be replaced by a receiving unit). machine replacement), other units, such as a processing unit, etc., may be replaced by a processor, respectively, to perform the transceiver operations and related processing operations in each method embodiment.
  • the above-mentioned communication unit may also be a transceiver circuit (for example, may include a receiving circuit and a transmitting circuit), and the processing unit may be a processing circuit.
  • the apparatus in FIG. 14 may be the terminal device or the network device in the foregoing embodiment, or may be a chip or a chip system, such as a system on chip (system on chip, SoC).
  • the communication unit may be an input/output circuit or a communication interface; the processing unit is a processor, a microprocessor or an integrated circuit integrated on the chip. This is not limited.
  • FIG. 15 shows a communication apparatus 1500 provided by an embodiment of the present application.
  • the communication device 1500 includes a processor 1510 and a transceiver 1520 .
  • the processor 1510 and the transceiver 1520 communicate with each other through an internal connection path, and the processor 1510 is configured to execute instructions to control the transceiver 1520 to send and/or receive signals.
  • the communication apparatus 1500 may further include a memory 1530, and the memory 1530 communicates with the processor 1510 and the transceiver 1520 through an internal connection path.
  • the memory 1530 is used to store instructions, and the processor 1510 can execute the instructions stored in the memory 1530 .
  • the communication apparatus 1500 is configured to implement various processes and steps corresponding to the first device or the terminal device or the UE in the foregoing method embodiments.
  • the apparatus 1500 is configured to implement various processes and steps corresponding to the second device or the network device or the AMF or the RAN in the foregoing method embodiments.
  • the communication apparatus 1500 may specifically be the first device or the terminal device or the UE or the second device or the network device or the AMF or the RAN in the above embodiments, and may also be a chip or a chip system.
  • the transceiver 1520 may be a transceiver circuit of the chip, which is not limited herein.
  • the apparatus 1500 may be configured to execute various steps and/or processes corresponding to the first device or the terminal device or the UE or the second device or the network device or the AMF or the RAN in the above method embodiments.
  • the memory 1530 may include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory.
  • the memory may also store device type information.
  • the processor 1510 can be used to execute the instructions stored in the memory, and when the processor 1510 executes the instructions stored in the memory, the processor 1510 is used to execute the above-mentioned connection with the first device or the terminal device or the UE or the second device or Each step and/or process of the method embodiment corresponding to the network device or the AMF or the RAN.
  • each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, detailed description is omitted here.
  • the processor in this embodiment of the present application may be an integrated circuit chip, which has a signal processing capability.
  • each step of the above method embodiments may be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software.
  • the aforementioned processors may be general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs field programmable gate arrays
  • the methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
  • the memory in this embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the present application also provides a computer program product, the computer program product includes: computer program code, when the computer program code is run on a computer, the computer is made to execute the steps shown in FIGS. 2 to 13 .
  • the steps shown in FIGS. 2 to 13 Each step or process performed by the first device or the terminal device or the UE or the second device or the network device or the AMF or the RAN in the illustrated embodiment.
  • the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores program codes, and when the program codes are run on a computer, the computer is made to execute FIGS. 2 to 2 .
  • the computer-readable storage medium stores program codes, and when the program codes are run on a computer, the computer is made to execute FIGS. 2 to 2 .
  • FIGS. 2 to 2 In the embodiment shown in 13, each step or process performed by the first device or the terminal device or the UE or the second device or the network device or the AMF or the RAN.
  • the present application further provides a communication system, which includes the aforementioned one or more first devices and one or more second devices.
  • the communication system includes the aforementioned one or more terminal devices and one or more network devices.
  • the communication system includes the aforementioned one or more AMFs and one or more UEs.
  • the communication system includes the aforementioned one or more RANs and one or more UEs.
  • the communication system includes at least two network elements in the embodiments shown in FIG. 2 to FIG. 13 .
  • the transceiver unit performs the receiving Or the step of sending, other steps except sending and receiving may be performed by a processing unit (processor).
  • the functions of specific units may be based on corresponding method embodiments.
  • the number of processors may be one or more.
  • indication may include direct indication and indirect indication, as well as explicit indication and implicit indication.
  • the information indicated by a certain information is called the information to be indicated, and in the specific implementation process, there can be many ways to indicate the information to be indicated.
  • the information to be indicated can be directly indicated, such as indicating the information to be indicated itself. Or the index of the information to be indicated, etc.
  • the information to be indicated may also be indirectly indicated by indicating other information, where there is an association relationship between the other information and the information to be indicated. It is also possible to indicate only a part of the information to be indicated, while other parts of the information to be indicated are known or agreed in advance.
  • the indication of specific information can also be implemented by means of a pre-agreed (for example, a protocol stipulated) arrangement order of various information, so as to reduce the indication overhead to a certain extent.
  • the first, second, and various numeral numbers are only used to distinguish for convenience of description, and are not used to limit the scope of the embodiments of the present application. For example, distinguish between different network slices, distinguish between different network devices, etc.
  • At least one herein refers to one or more, and “plurality” refers to two or more.
  • And/or which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, can indicate: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • At least one (a) of a, b and c may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b, c can be single or multiple.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • each functional unit may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions (programs). When the computer program instructions (programs) are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • 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, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

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

Abstract

本申请提供了一种通信方法和通信装置。该方法中,第一设备可以向第二设备指示第一设备处于第一模式,第二设备获知第一设备处于第一模式之后,第二设备推断出第一设备当前的协议版本与第二设备当前的协议版本无法兼容,第二设备可以向第一设备发送协议信息,第一设备可以基于协议信息进行更新协议版本。第二设备在获知第一设备处于第一模式下,可以向第一设备推送协议信息,避免第一设备无法接收到协议信息而导致无法更新协议版本,这样,第一设备更新后的协议版本与第二设备的协议版本兼容,避免第一设备和第二设备的协议版本不兼容的问题,能够提高用户体验,且能降低经济损失。

Description

通信方法和通信装置
本申请要求于2021年04月25日提交国家知识产权局、申请号为202110449312.0、申请名称为“通信方法和通信装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,并且更具体地涉及通信方法和通信装置。
背景技术
随着通信技术的发展,第三代合作伙伴计划(3rd generation partnership project,3GPP)制定的协议版本也在不断的演进。在协议版本演进的过程中,通常情况下新的协议版本需要兼容旧的协议版本,或者旧的协议版本能兼容新的协议版本。但是,在一种情况下,有可能推进新的协议版本的过程中,推进新的协议版本的人员考虑不全面导致新的协议版本无法兼容旧的协议版本,或者旧的协议版本无法兼容新的协议版本。在另一种情况下,终端设备无法解析网络设备通过与终端设备不同的协议版本发送的消息,这样,会导致终端设备和网络设备的协议版本不兼容,从而导致无法通信的问题。举例来说,网络设备采用的新的协议版本向终端设备发送了一个消息,由于终端设备采用的是旧的协议版本,终端设备可能无法识别网络设备发送的消息,则终端设备会将该消息丢弃。这样,会导致终端设备无法与网络设备通信,尤其是终端设备的数量超过百万台的情况下,会导致百万台的终端设备都无法与网络设备通信,用户体验差,且经济损失惨重。
发明内容
本申请实施例提供了通信方法和通信装置,能够提高用户体验,降低经济损失。
第一方面,提供了一种通信方法,该通信方法包括:第一设备向第二设备指示所述第一设备处于第一模式,所述第一设备当前的协议版本与所述第二设备的当前的协议版本无法兼容;所述第一设备从所述第二设备接收协议信息,所述协议信息用于所述第一设备更新当前的协议版本;所述第一设备基于所述协议信息更新所述第一设备当前的协议版本。
在上述方案中,第一设备可以向第二设备指示第一设备处于第一模式,第二设备获知第一设备处于第一模式之后,第二设备推断出第一设备当前的协议版本与第二设备当前的协议版本无法兼容,第二设备可以向第一设备发送协议信息,第一设备可以基于协议信息进行协议版本更新。也就是说,第二设备在获知第一设备处于第一模式下,可以向第一设备推送协议信息,避免第一设备无法接收到协议信息而导致无法更新协议版本,这样,第一设备更新后的协议版本能够与第二设备的协议版本兼容,也就是第一设备更新后的协议版本与第二设备的协议版本兼容,避免第一设备和第二设备的协议版本不兼容的问题,能够提高用户体验,且能降低经济损失。
可选地,协议信息可以指示升级包、降级包、协议补丁、协议栈安装包或者更新包等。
可选地,所述第二设备的协议版本为所述协议信息对应的协议版本。
可选地,所述协议信息对应的协议版本为适用于所述第一设备的协议版本,或者,所述协议信息对应的协议版本与第二设备的协议版本兼容,例如,协议信息对应的协议版本可能为第二设备的协议版本,或者,协议信息对应的协议版本可能为比第二设备的协议版本低或者高的协议,但是能保证第一设备与第二设备正常的通信。
可选地,第一设备为终端设备,第二设备为网络设备;可选地,网络设备可以为接入网设备或者核心网设备。若网络设备为核心网设备,例如第二设备可以为接入和移动性管理功能(access and mobility management function,AMF)或者移动管理实体(mobility management entity,MME)或者未来例如6G、7G协议中执行类似功能的网络设备。
可选地,第一设备处于第一模式可以理解为:第一设备在第一模式下,能力受限,但能完成协议版本的更新;或者可以理解为:第一设备处于第一模式下,可以保证最基础的网络连接,以便第一设备完成协议版本的更新;或者可以理解为:若第一设备当前的协议版本与第二设备当前的协议版本不兼容,则第一设备进入第一模式,可以通过第一模式逃生;或者可以理解为:处于第一模式的第一设备的能够更新当前的协议版本,处于非第一模式的第一设备不能更新当前的协议版本,若第一设备确定第一设备的当前的协议版本与第二设备的当前的协议版本不兼容时,则第一设备进入第一模式,可以完成协议版本的更新。
可选地,第一模式也可以称为第一状态。
可选地,第一模式可以称为安全模式、或者基础模式、或者是最小模式、或者升级模式、或者协议更新模式、或者逃生模式、或者管理者模式、或者容错模式、或者协议修订模式、或者系统修订模式等,本申请实施例对第一模式的名称不作任何限定。
在一些可能的实现方式中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:所述第一设备向所述第二设备发送第一指示信息,所述第一指示信息用于指示所述第一设备处于所述第一模式。
可选地,第一设备可以在向第二设备发送的任何消息中携带第一指示信息。
可选地,第一指示信息可以直接指示第一设备处于第一模式或者间接指示第一设备处于第一模式。
在一些可能的实现方式中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
所述第一设备向所述第二设备发送所述第一设备当前的芯片信息;和/或,
所述第一设备向所述第二设备发送所述第一设备当前的协议版本信息,所述第一设备当前的版本信息用于指示所述第一设备当前的协议版本。
可选地,第一设备当前的芯片信息可以指示第一设备处于第一模式。
可选地,第一设备当前的芯片信息用于指示第一设备当前的芯片型号信息和/或芯片厂家信息。
可选地,第一设备当前的协议版本信息用于指示第一设备当前的协议版本的同时 还可以指示第一设备处于第一模式。
可选地,第一设备当前的协议版本信息可以通过指示第一设备当前的协议版本号来指示第一设备当前的协议版本。
在一些可能的实现方式中,所述通信方法还包括:所述第一设备在第一时刻启动第一计时器,在所述第一计时器超时之前,所述第一设备不再反复进入所述第一模式,其中,所述第一计时器的时长为第一时长,所述第一时刻为所述第一设备进入所述第一模式的时刻,或者所述第一设备向所述第二设备指示所述第一设备处于第一模式的时刻。
在上述方案中,第一设备可以维护第一计时器,在第一计时器超时之前,第一设备不再反复进入第一模式,也就是说,第一设备进入第一次第一模式之后,在第一计时器超时之前不再次进入第一模式,避免第一设备需要反复进入第一模式所带来的信令开销。
可选地,第一设备可以在满足进入第一模式的条件之后进入第一模式。在第一计时器超时之前,若第一设备再次满足进入第一模式的条件,则第一设备也不会再次进入第一模式。
可选地,第一时长可以是协议规定的。
在一些可能的实现方式中,所述通信方法还包括:所述第一设备在第二时刻启动第二计时器,在所述第二计时器超时之前,所述第一设备不再向所述第二设备指示所述第一设备处于所述第一模式,其中,所述第二计时器的时长为第二时长,所述第二时刻为所述第一设备进入所述第一模式的时刻,或者所述第一设备向所述第二设备指示所述第一设备处于第一模式的时刻。
在上述方案中,第一设备可以维护第二计时器,在第二计时器超时之前,第一设备不再向第二设备指示第一设备处于第一模式。也就是说,第一设备向第二设备指示了第一设备处于第一模式之后,不再次向第二设备指示第一设备处于第一模式,这样可以节省信令开销。
可选地,在第二计时器超时之前,第一设备不再次向第二设备发送第一指示信息。可选地,在第二计时器超时之前,第一设备不再次向第二设备发送第一设备当前的协议信息,第一设备当前的协议信息用于指示第一设备处于第一模式。可选地,在第二计时器超时之前,第一设备不再次向第二设备发送第一设备当前的芯片信息,第一设备当前的芯片信息用于指示第一设备处于第一模式。
可选地,第一设备向第二设备发送了第一指示信息,第一指示信息用于指示第一设备处于第一模式,在第二计时器超时之前,第一设备不会再向第二设备发送第一指示信息,也不会发送第一设备当前的版本信息和/或第一设备当前的芯片信息,第一设备当前的版本信息和/或第一设备当前的芯片信息用于指示第一设备处于第一模式。也就是说,第一设备首次通过第一指示信息指示了第一设备处于第一模式,在第二计时器超时之前,第一设备也不会再次通过第一指示信息或者第一设备当前的版本信息或者第一设备当前的芯片信息中的任意一项指示第一设备处于第一模式。同样的,第一设备首次通过第一设备当前的版本信息或者第一设备当前的芯片信息指示第一设备处于第一模式,在第二计时器超时之前,第一设备也不会再次通过第一指示信息或者第 一设备当前的版本信息或者第一设备当前的芯片信息指示第一设备处于第一模式。
可选地,第二时长可以是协议规定的。
在一些可能的实现方式中,所述通信方法还包括:所述第一设备在第三时刻启动第三计时器,在所述第三计时器超时之后,所述第一设备退出所述第一模式,其中,所述第三计时器的时长为第三时长,所述第三时刻为所述第一设备进入所述第一模式的时刻,或者所述第一设备向所述第二设备指示所述第一设备处于第一模式的时刻。
在上述方案中,第一设备可以维护第三计时器,在第三计时器超时之后,第一设备可以退出第一模式,避免第一设备无法退出第一模式的情形。
可选地,第三时长可以是协议规定的。
可选地,第一设备可以维护第一计时器、第二计时器或者第三计时器中的一个或两个或者三个计时器,本申请实施例不予限制。
在一些可能的实现方式中,所述通信方法还包括:所述第一设备从所述第二设备获知所述第一设备在所述第一模式下能够支持的业务。
可选地,第一设备可以从第二设备接收第二指示信息,第二指示信息用于指示第一设备在第一模式下能够支持的业务。可选地,第二指示信息可以直接或者间接指示第一设备在第一模式下能够支持的业务。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为核心网设备,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
所述终端设备向所述核心网设备发送注册请求消息,通过所述注册请求消息指示所述终端设备处于所述第一模式。
在上述方案中,终端设备可以在注册过程中通过注册请求消息向核心网设备指示终端设备处于所述第一模式。
可选地,注册请求消息可以携带第一指示信息。可选地,注册请求消息可以携带终端设备当前的芯片信息,终端设备当前的芯片信息用于指示终端设备处于第一模式。可选地,注册请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为核心网设备,所述第一设备从所述第二设备接收协议信息,包括:
所述终端设备从所述核心网设备接收注册接受消息或注册拒绝消息,所述注册接受消息或所述注册拒绝消息包括所述协议信息;或者,
所述终端设备通过所述终端设备与接入网设备之间的数据无线承载DRB,从所述核心网设备接收所述协议信息。
在上述方案中,核心网设备向终端设备发送的注册接受消息或者注册拒绝消息,通过注册接受消息或者注册拒绝消息携带协议信息。或者核心网设备可以将协议信息发送到接入网设备,接入网设备可以通过DRB将协议信息发送给终端设备。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为接入网设备;其中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
所述终端设备通过无线资源控制RRC连接向所述接入网设备发送RRC消息,通过所述RRC消息指示所述终端设备处于所述第一模式;
其中,所述第一设备从所述第二设备接收协议信息,包括:
所述终端设备通过所述终端设备与所述接入网设备之间的DRB,从所述接入网设备接收所述协议信息。
在上述方案中,在RRC连接的状态下,终端设备可以通过RRC消息向接入网设备指示终端设备处于第一模式。接入网设备可以将协议信息通过DRB发送给终端设备。也就是接入网设备可以通过用户面流程将协议信息发送给终端设备。
可选地,RRC消息可以携带第一指示信息。可选地,RRC消息可以携带终端设备当前的芯片信息,终端设备当前的芯片信息用于指示终端设备处于第一模式。可选地,RRC消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为接入网设备;
其中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
所述终端设备向所述接入网设备发送RRC建立请求消息,通过所述RRC建立请求消息指示所述第一设备处于所述第一模式;
其中,所述第一设备从所述第二设备接收协议信息,包括:
所述终端设备通过所述终端设备与所述接入网设备之间的DRB,从所述接入网设备接收所述协议信息。
在上述方案中,在RRC为非连接的状态下,终端设备可以通过RRC建立请求消息向接入网设备指示终端设备处于第一模式。接入网设备可以将协议信息通过DRB发送给终端设备。也就是接入网设备可以通过用户面流程将协议信息发送给终端设备。
可选地,RRC建立请求消息可以携带第一指示信息。可选地,RRC建立请求消息可以携带终端设备当前的芯片信息,终端设备当前的芯片信息用于指示终端设备处于第一模式。可选地,RRC建立请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。
在一些可能的实现方式中,所述通信方法还包括:所述终端设备向所述核心网设备发送PDU会话建立请求消息;所述终端设备从所述核心网设备接收PDU会话建立接受消息,所述PDU会话建立接受消息包括所述用于建立用户面连接的参数;所述终端设备根据所述用于用户面连接的参数建立用户面连接,所述用户面连接对应所述DRB。
在上述方案中,终端设备可以在PDU会话建立的过程中,从核心网设备接收PDU会话接受消息,并根据PDU会话接收消息中携带的用于建立用户面连接的参数建立用户面连接。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为接入网设备;
其中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
所述终端设备向所述接入网设备发送无线资源控制RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;
其中,所述第一设备从所述第二设备接收协议信息,包括:
所述终端设备从所述接入网设备接收RRC响应消息,所述RRC响应消息包括所述协议信息。
在上述方案中,在RRC为非连接的状态下,终端设备可以通过RRC建立请求消息向接入网设备指示终端设备处于第一模式。接入网设备可以将协议信息通过RRC响应消息发送给终端设备。也就是接入网设备可以通过控制面流程将协议信息发送给终端设备。
可选地,RRC建立请求消息可以携带第一指示信息。可选地,RRC建立请求消息可以携带终端设备当前的芯片信息,终端设备当前的芯片信息用于指示终端设备处于第一模式。可选地,RRC建立请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。
可选地,RRC响应消息可以为RRC接受消息或者RRC拒绝消息。RRC接受消息表示接入网设备接受终端设备的RRC建立请求,RRC拒绝消息表示接入网设备拒绝终端设备的RRC建立请求。
第二方面,提供了一种通信方法,包括:第二设备获知所述第一设备处于第一模式,所述第二设备当前的协议版本与所述第一设备当前的协议版本无法兼容;所述第二设备向所述第一设备发送协议信息,所述协议信息用于所述第一设备更新当前的协议版本。
在上述方案中,第二设备获知第一设备处于第一模式之后,第二设备推断出获知第一设备当前的协议版本与第二设备当前的协议版本不兼容,第二设备可以向第一设备发送协议信息,第一设备可以基于协议信息进行更新协议版本。也就是说,第二设备在获知第一设备处于第一模式下,可以向第一设备推送协议信息,避免第一设备无法接收到协议信息而导致无法更新协议版本,这样,第一设备更新后的协议版本能够与第二设备的协议版本兼容,也就是第一设备更新后的协议版本与第二设备的协议版本兼容,避免第一设备和第二设备的协议版本不兼容的问题,能够提高用户体验,且能降低经济损失。
可选地,第二设备可以从第一设备获知第一设备处于第一模式,或者第二设备可以从其他设备获知第一设备处于第一模式。举例来说,第一设备为终端设备,第二设备为核心网设备,终端设备可以向核心网设备指示终端设备处于第一模式,核心网设备从终端设备获知终端设备处于第一模式,或者接入网设备向核心网设备指示终端设备处于第一模式,核心网网设备从接入网设备获知终端设备处于第一模式。
可选地,协议信息可以指示升级包、降级包、协议补丁、协议栈安装包或者更新包等。
可选地,所述第二设备的协议为所述协议信息对应的协议。
可选地,所述协议信息对应的协议为适用于所述第一设备的协议或者所述协议信息对应的协议与第二设备的协议兼容,例如,协议信息对应的协议可能为第二设备的协议,或者协议信息对应的协议可能为比第二设备的协议版本低或者高的协议,但是能保证第一设备与第二设备正常的通信。
可选地,第一设备为终端设备,第二设备为网络设备;可选地,第二设备可以为接入网设备或者核心网设备。若第二设备为核心网设备,例如第二设备可以为接入和 AMF或者MME或者未来例如6G、7G协议中执行类似功能的网络设备。
在一些可能的实现方式中,所述第二设备获知所述第一设备处于第一模式,包括:所述第二设备从所述第一设备接收第一指示信息,所述第一指示信息用于指示所述第一设备处于所述第一模式。
在一些可能的实现方式中,所述第二设备获知所述第一设备处于第一模式,包括:
所述第二设备从所述第一设备接收所述第一设备当前的芯片信息;和/或,
所述第二设备从所述第一设备接收所述第一设备当前的版本信息,所述第一设备当前的版本信息用于指示所述第一设备当前的协议版本。
在一些可能的实现方式中,所述通信方法还包括:所述第二设备根据所述第二设备当前的协议版本确定所述第一设备所需的协议版本;所述第二设备根据所述第一设备所需的协议版本获取所述协议信息。
在上述方案中,第二设备可以根据第二设备当前的协议版本确定第一设备所需的协议版本,并根据第一设备所需的协议版本获取所述协议信息,这样,可以使得第二设备获取的协议信息为第一设备所需的协议版本,且第一设备所需的协议版本与第二设备当前的协议版本兼容。
可选地,所述第二设备根据所述第二设备当前的协议版本确定所述第一设备所需的协议版本,包括:所述第二设备确定所述第一设备所需的协议版本为与所述第二设备当前的协议版本兼容的协议版本,例如,第二设备确定所述第一设备所需的协议版本为所述第二设备当前的协议版本,或者比第二设备当前的协议版本低或者高的协议版本,但是能够与第二设备当前的协议版本兼容。
可选地,协议信息可以是第二设备保存的或者是从第三设备获取的。
在一些可能的实现方式中,若所述第二设备从所述第一设备接收到所述第一设备当前的版本信息,所述第二设备根据所述第二设备当前的协议版本确定所述第一设备所需的版本信息,包括:
若所述第一设备的当前的版本信息指示的协议版本与所述第二设备当前的协议版本不兼容,所述第二设备将所述第二设备当前的协议版本确定为所述第一设备所需的协议版本。
在一些可能的实现方式中,所述第二设备根据所述第一设备所需的协议版本获取所述协议信息,包括:所述第二设备向第三设备发送请求消息,所述请求消息用于向所述第三设备请求协议信息;所述第二设备从所述第三设备接收所述协议信息。
可选地,第二设备确定第一设备所需的协议版本之后,可以触发第二设备向第三设备发送请求消息。
可选地,第二设备确定第一设备所需的协议版本之后,第二设备向第三设备发送的请求消息携带第一设备所需的协议版本。
可选地,第三设备可以是服务器,若第二设备从第一设备接收第一设备当前的芯片信息,则第二设备可以根据第一设备当前的芯片信息确定第三设备。
可选地,第三设备可以为保存有协议信息的核心网设备。
在一些可能的实现方式中,所述请求消息包括所述第一设备所需的协议版本,和/或,若所述第二设备从所述第一设备接收到所述第一设备当前的芯片信息,则所述请 求消息包括所述第一设备当前的芯片信息。
在一些可能的实现方式中,所述通信方法还包括:在第四时刻启动第四计时器,在所述第四计数器超时之前,所述第二设备从所述第一设备再次获知所述第一设备处于第一模式后不再向所述第一设备发送所述协议信息,其中,所述第四计时器的时长为第四时长,所述第四时刻为所述第二设备确定所述第一设备处于所述第一模式的时刻。
在上述方案中,第二设备从第一设备再次获知第一设备处于第一模式后不再向第一设备发送协议信息,这样,可以避免第二设备向第一设备多次发送协议信息,能够节省开销,同时也能避免拒绝服务(denial of service,DoS)攻击,即使再有攻击者通过第一设备向第二设备指示第一设备处于第一模式,第二设备也不再向第一设备发送协议信息。
可选地,第四时刻为第二设备获知第一设备处于第一模式的时刻。可选地,若第二设备为核心网设备,第一设备为终端设备,第四时刻为核心网设备从终端设备获知终端设备处于第一模式的时刻。可选地,若第二设备为核心网设备,第一设备为终端设备,第四时刻为核心网设备从接入网设备获知终端设备处于第一模式的时刻。
在一些可能的实现方式中,所述通信方法还包括:所述第二设备向所述第一设备指示所述第一设备在所述第一模式下能够支持的业务。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为核心网设备,所述第二设备获知所述第一设备处于第一模式,包括:
所述核心网设备从所述终端设备接收注册请求消息,通过所述注册请求消息指示所述终端设备处于所述第一模式。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为核心网设备,所述第二设备向所述第一设备发送协议信息,包括:
所述核心网设备向所述终端设备发送注册接受消息或者注册拒绝消息,所述注册接受消息或者所述注册拒绝消息包括所述协议信息;或者,
所述核心网设备通过接入网设备与所述终端设备的数据无线承载DRB,向所述终端设备发送所述协议信息。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为接入网设备;
其中,所述第二设备获知所述第一设备处于第一模式,包括:
所述接入网设备通过无线资源控制RRC连接从所述终端设备接收RRC消息,通过所述RRC消息指示所述终端设备处于所述第一模式;
其中,所述第二设备向所述第一设备发送协议信息,包括:
所述接入网设备通过所述接入网设备与所述终端设备之间的DRB,向所述终端设备发送所述协议信息。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为接入网设备;
其中,所述第二设备获知所述第一设备处于第一模式,包括:
所述接入网设备从所述终端设备接收RRC建立请求消息,通过所述RRC建立请 求消息指示所述终端设备处于所述第一模式;
其中,所述第二设备向所述第一设备发送协议信息,包括:
所述接入网设备通过所述接入网设备与所述终端设备之间的DRB,向所述终端设备发送所述协议信息。
在一些可能的实现方式中,所述通信方法还包括:
所述第二设备从所述终端设备接收PDU会话建立请求消息;
所述第二设备向所述终端设备发送PDU会话建立接受消息,所述PDU会话建立接受消息包括所述用于建立用户面连接的参数,所述用户面连接对应所述DRB。
在一些可能的实现方式中,所述通信方法还包括:
所述第二设备生成所述用于建立用户面连接的参数;
所述第二设备向所述终端设备发送所述用于建立用户面连接的参数,所述用户面连接对应所述DRB。
在一些可能的实现方式中,所述第一设备为终端设备,所述第二设备为接入网设备;
其中,所述第二设备获知所述第一设备处于第一模式,包括:
所述接入网设备从所述终端设备接收RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;
其中,所述第二设备向所述第一设备发送协议信息,包括:
所述接入网设备向所述终端设备发送RRC响应消息,所述RRC响应消息包括所述协议信息。
需要说明的是,第二方面中其他可能的实现方式中的有益效果参见第一方面的描述了,为了避免赘述,不再详细描述。
第三方面,提供了一种通信装置,用于执行上述各方面中任一种可能的实现方式中的方法。具体地,该装置包括用于执行上述第一方面或第一方面中任一种可能的实现方式中的方法的单元,或者该装置包括第二方面或第二方面中任一种可能的实现方式中的方法的单元。
第四方面,提供了一种通信装置,包括处理器,该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面或第一方面中任一种可能的实现方式中的方法,或者第二方面或第二方面中任一种可能的实现方式中的方法。
在一种可能的实现方式中,该通信装置还包括存储器。在一种可能的实现方式中,该通信装置还包括通信接口,处理器与通信接口耦合。
在一种实现方式中,该通信装置为第一设备。当该通信装置为第一设备时,该通信接口可以是收发器,或,输入/输出接口。
在另一种实现方式中,该通信装置为配置于第一设备中的芯片。当该通信装置为配置于第一设备中的芯片时,该通信接口可以是输入/输出接口。
在一种实现方式中,该通信装置为第二设备。当该通信装置为第二设备时,该通信接口可以是收发器,或,输入/输出接口。
在另一种实现方式中,该通信装置为配置于第二设备中的芯片。当该通信装置为配置于第二设备中的芯片时,该通信接口可以是输入/输出接口。
第五方面,提供了一种处理器,包括:输入电路、输出电路和处理电路。该处理电路用于通过该输入电路接收信号,并通过该输出电路发射信号,使得该处理器执行上述第一方面或第一方面中任一种可能的实现方式中的方法,或者第二方面或第二方面中任一种可能的实现方式中的方法。
在具体实现过程中,上述处理器可以为芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于接收器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请对处理器及各种电路的具体实现方式不做限定。
第六方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序(也可以称为代码,或指令),当该计算机程序被运行时,使得计算机执行上述第一方面或第一方面中任一种可能的实现方式中的方法,或者第二方面或第二方面中任一种可能的实现方式中的方法。
第七方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面或第一方面中任一种可能的实现方式中的方法,或者第二方面或第二方面中任一种可能的实现方式中的方法。
附图说明
图1是本申请实施例提供的系统架构示意图。
图2-图13是本申请实施例提供的通信方法示意图。
图14-图15是本申请实施例提供的通信装置的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通信(global system for mobile communications,GSM)系统、码分多址(code division multiple access,CDMA)系统、宽带码分多址(wideband code division multiple access,WCDMA)系统、通用分组无线业务(general packet radio service,GPRS)、长期演进(long term evolution,LTE)系统、LTE频分双工(frequency division duplex,FDD)系统、LTE时分双工(time division duplex,TDD)、通用移动通信系统(universal mobile telecommunication system,UMTS)、全球互联微波接入(worldwide interoperability for microwave access,WiMAX)通信系统、未来的第五代(5th generation,5G)系统或新无线(new radio,NR)等。
图1示出了应用于本申请实施例的一个系统架构示意图。如图1所示,该系统100包括:用户设备(user equipment,UE)101、无线接入网(radio access network,RAN)102、用户面功能网元(user plane function,UPF)103、数据网络(data network,DN)104、核心网接入和移动性管理功能(core access and mobility management function,AMF)105、会话管理功能网元(session management function,SMF)106、统一数据存储(unified data  repository,UDR)107或统一数据管理(unified data management,UDM)108中的至少一种。
UE 101,也称为终端设备、移动台(mobile station,MS)、移动终端(mobile terminal,MT)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置等。
UE 101可以是一种向用户提供语音/数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。目前,一些终端设备的举例包括:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请对此并不限定。
RAN 102,可以是与UE 101通信的设备,该RAN 102也可以称为接入网设备或无线接入网设备,它可以是传输接收点(transmission reception point,TRP),还可以是LTE系统中的演进型基站(evolved NodeB,eNB或eNodeB),还可以是家庭基站(例如,home evolved NodeB,或home Node B,HNB)、基带单元(base band unit,BBU),还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器,或者该RAN102可以为中继站、接入点、车载设备、可穿戴设备以及5G网络中的网络设备或者未来演进的PLMN网络中的网络设备等,还可以是WLAN中的接入点(access point,AP),还可以是NR系统中的gNB,上述RAN 111还可以是城市基站、微基站、微微基站、毫微微基站等等,本申请对此不做限定。
在一种网络结构中,RAN 102可以包括集中单元(centralized unit,CU)节点、或分布单元(distributed unit,DU)节点、或是包括CU节点和DU节点的无线接入网络(radio access network,RAN)设备、或者是包括控制面CU节点(CU-CP节点)和用户面CU节点(CU-UP节点)以及DU节点的设备。
RAN 102为小区提供服务,UE 101通过RAN 102分配的传输资源(例如,频域资源,或者说,频谱资源)与小区进行通信,该小区可以属于宏基站(例如,宏eNB或宏gNB等),也可以属于小小区(small cell)对应的基站,这里的小小区可以包括:城市小区(metro cell)、微小区(micro cell)、微微小区(pico cell)、毫微微小区(femto cell)等,这些小小区具有覆盖范围小、发射功率低的特点,适用于提供高速率的数据传输服务。
UPF 103,主要负责对业务数据进行处理,如转发、计费、合法监听等。
DN 104,为UE 101提供数据传输服务,可以是公用数据网(public data network,PDN)网络,如因特网(internet)等。
AMF 105,主要用于移动网络中的UE 101的附着、移动性管理、跟踪区更新流程,接入管理网元终结了非接入层(non access stratum,NAS)消息、完成注册管理、连接管理以及可达性管理、分配跟踪区域列表(track area list,TA list)以及移动性管理等,并且透明路由会话管理(session management,SM)消息到会话管理网元。
SMF 106,负责UPF的选择或者重选,IP地址分配,负责会话的建立、修改和释放,服务质量(quality of service,QoS)的控制。
UDR 107,负责存储结构化的数据信息,其中数据信息包括签约信息,策略信息,以及有标准格式定义的网络数据或业务数据,例如升级包。
UDM 108,负责管理UE 101的签约信息。
需要说明的是,图1中包括的各个网元(比如UE 101、RAN 102、UPF 103、DN 104、AMF 105、SMF 106、UDR 107以及UDM 108等)的命名仅是一个名字,名字对网元本身的功能不构成限定。在5G网络以及未来其它的网络中,上述各个网元也可以是其他的名字,本申请实施例对此不作具体限定。例如,在6G网络中,上述各个网元中的部分或全部可以沿用5G中的术语,也可能是其他命名,等等,在此进行统一说明,以下不再赘述。
需要说明的是,图1中的各个网元不是必须同时存在的,可以根据需求确定需要哪些网元。图1中的各个网元之间的连接关系也不是唯一确定的,可以根据需求进行调整。
也需要说明的是,图1中除了UE 101之外,其他的网元可以称之为网络设备。换句话说,网络设备可以包括图1中除了UE 101之外的一个或多个网元。
图1中的UE 101在与网络设备(如RAN 102或者AMF 105)通信的过程中,UE 101与网络设备都要按照3GPP的协议版本才能完成通信。UE 101和网络设备通信的过程中,通常需要采用同样的协议版本,例如都为R17或者R18的协议版本。即使UE 101和网络设备采用的协议版本不同,则不同的协议版本需要兼容才能保证正常的通信。例如,网络设备采用R18的协议版本,终端设备采用R16的协议版本,则网络设备和UE 101进行通信的过程中,R18的协议版本需要兼容R16的协议版本才能保证UE 101和网络设备的正常通信。但是在一些情形下,不同的协议版本可能没法兼容,例如,推进新的协议版本的人员考虑不全面无法兼容旧的协议版本,或者旧的协议版本无法兼容新的协议版本,或者UE 101无法解析网络设备通过与UE 101不同的协议版本发送的消息,这样,会导致UE 101和网络设备无法通信的问题。举例来说,网络设备采用的新的协议版本向UE 101发送了一个消息,由于UE 101采用的是旧的协议版本,则UE 101无法识别网络设备发送的消息,则UE 101会将该消息丢弃。这样,会导致UE 101无法与网络设备通信,尤其是UE 101的数量超过百万台的情况下,会导致百万台的UE 101都无法与网络设备通信,用户体验差,且经济损失惨重。正常情况下,UE 101需要到网络设备进行注册,UE 101按照自身当前的协议版本向网络设备发送注册请求消息,网络设备按照自身当前的协议版本向UE 101发送注册接受消息,从而可以完成注册的过程。例如,某运营商将自己的网络设备的协议版本进行了升级,升级为新的协议版本,但是UE 101还采用的是旧的协议版本,UE 101向网络设备发送注册请求消息,网络设备按照新的协议版本向UE 101回复注册接受消息,注册接受消息中某一个字段比升级前的字段增加了一个字节(由升级前的3字节增加为升级后的4字节),UE 101接收到注册接受消息之后,确定该字段比预期的长度长,因此确定该注册接受消息存在错误,然后直接将注册接受消息丢弃,导致UE 101注册失败。由 于UE 101无法注册,从而导致UE 101无法下载网络设备侧的升级包,因此也无法升级协议版本。
下面为了方便描述,将网元的编号省去,例如“UE”表示“UE 101”,“AMF”表示“AMF 105”。
下面以第一设备为终端设备,第二设备为网络设备为例描述本申请实施例提供的通信方法200,方法200包括:
S201,终端设备向网络设备指示终端设备处于第一模式,网络设备从终端设备获知终端设备处于第一模式。
可选地,若终端设备当前的协议版本与网络设备当前的协议版本无法兼容,则终端设备进入第一模式。
可选地,终端设备当前的协议版本与网络设备当前的协议版本无法兼容可以理解为:终端设备利用当前的协议版本与网络设备当前的协议版本无法进行通信。具体地,终端设备当前的协议版本高于网络设备当前的协议版本时,可能会导致终端设备当前的协议版本与网络设备当前的协议版本不兼容;或者终端设备当前的协议版本低于网络设备当且的协议版本时,可能会导致终端设备当前的协议版本与网络设备当前的协议版本不兼容。
终端设备处于第一模式可以有以下至少一种理解方式。
方式一,终端设备在第一模式下,能力受限,但是能够完成协议版本的更新。
方式二,当终端设备当前的协议版本与网络设备当前的协议版本不兼容时,终端设备可以通过第一模式逃生,即终端设备可以通过第一模式注册到网络设备。
方式三,当终端设备处于第一模式下,可以保证最基础的网络连接,以便终端设备完成协议版本的更新。
方式四,处于第一模式的终端设备能够更新当前的协议版本,处于非第一模式的终端设备不能更新当前的协议版本,若终端设备确定终端设备当前的协议版本与网络设备当前的协议版本不兼容时,终端设备从非第一模式进入第一模式,以便完成协议版本的更新。
在S201中,终端设备可以通过不同的方式向网络设备指示终端设备处于第一模式,网络设备可以通过不同的方式获知终端设备处于第一模式,下面分情况讨论:
情况一,网络设备在预设时间段内没有收到终端设备发送的任何消息或某一特定消息,则网络设备获知终端设备可能处于第一模式。也就是说,终端设备可以通过不向网络设备发送任何消息来指示终端设备处于第一模式。
情况二,终端设备向网络设备发送第一指示信息,第一指示信息可以指示终端设备处于第一模式,网络设备从终端设备接收第一指示信息,根据第一指示信息获知终端设备处于第一模式。可选地,第一指示信息可以直接指示终端设备处于第一模式,还可以间接指示终端设备处于第一模式。
情况三,终端设备向网络设备发送终端设备当前的芯片信息,终端设备当前的芯片信息可以指示终端设备处于第一模式,网络设备根据终端设备当前的芯片信息获知终端设备处于第一模式。也就是说,网络设备接收到终端设备当前的芯片信息可以获知终端设备当前的协议版本可能与网络设备的协议版本不兼容,网络设备需要向终端设备发送协议信息,以便终端设备更新当前的协议版本。换句话说,终端设备向网络设备发送终端设备当前的芯片信息可以间接指示终端设备处于第一模式。
可选地,如果终端设备向网络设备发送了终端设备当前的芯片信息,网络设备可以获知终端设备处于第一模式,如果终端设备向网络设备没有发送终端设备当前的芯片信息,则网络设备获知终端设备没有处于第一模式。
可选地,在情况三中,终端设备当前的芯片信息可以指示终端设备当前的芯片的厂家信息,和/或终端设备当前的芯片的型号信息等。也就是说,在情况三中,终端设备当前的芯片信息不仅可以指示终端设备处于第一模式也可以指示终端设备当前的芯片的厂家信息和/或型号信息。
可选地,终端设备向网络设备发送的终端设备当前的芯片信息可以不指示终端设备处于第一模式,芯片信息可以指示与终端设备当前的芯片有关的信息,如指示终端设备当前的芯片的厂家信息,和/或终端设备当前的芯片的型号信息。
情况四,终端设备向网络设备发送终端设备当前的协议版本信息,终端设备当前的协议版本信息可以指示终端设备处于第一模式,网络设备根据终端设备当前的协议版本信息获知终端设备处于第一模式。也就是说,网络设备接收到终端设备当前的协议版本信息可以获知终端设备当前的协议版本与网络设备的协议版本不兼容,网络设备需要向终端设备发送协议信息,以便终端设备更新当前的协议版本。换句话说,终端设备向网络设备发送的终端设备当前的协议版本信息可以间接指示终端设备处于第一模式。
可选地,如果终端设备向网络设备发送了终端设备当前的协议版本信息,网络设备可以获知终端设备处于第一模式,如果终端设备向网络设备没有发送终端设备当前的协议版本信息,则网络设备获知终端设备没有处于第一模式。
可选地,在情况四,终端设备当前的版本信息可以指示终端设备当前的协议版本,例如终端设备当前的版本信息可以为终端设备当前的协议版本号。也就是说,在情况四,终端设备当前的协议版本信息不仅可以指示终端设备处于第一模式也可以指示终端设备当前的协议版本。
可选地,终端设备向网络设备发送的终端设备当前的协议版本信息可以不指示终端设备处于第一模式,当前的协议版本信息可以指示终端设备当前的协议版本。
情况五,终端设备向网络设备发送终端设备当前的芯片信息和当前的协议版本信息,终端设备当前的芯片信息和当前的协议版本信息可以指示终端设备处于第一模式,网络设备根据终端设备当前的芯片信息和当前的协议版本信息获知终端设备处于第一模式。也就是说,网络设备接收到终端设备当前的芯片信息和当前的协议版本信息可以获知终端设备当前的协议版本和网络设备的协议版本不兼容,网络设备需要向终端设备发送协议信息,以便终端设备更新当前的协议版本。换句话说,终端设备向网络设备发送的终端设备的当前的协议版本信息可以间接指示终端设备处于第一模式。
可选地,如果终端设备向网络设备发送了终端设备当前的芯片信息和当前的协议版本信息,网络设备可以获知终端设备处于第一模式,如果终端设备向网络设备没有发送终端设备当前的芯片信息和当前的协议版本信息,则网络设备获知终端设备没有处于第一模式。
可选地,在情况五,终端设备当前的版本信息可以指示终端设备当前的协议版本,例如终端设备当前的版本信息可以为终端设备当前的协议版本号。终端设备当前的芯片信息可以指示终端设备当前的芯片的厂家信息,和/或,终端设备当前的芯片的型号信息等。也就是说,在情况五,终端设备当前的协议版本信息和终端设备当前的芯片信息还可以指示 终端设备处于第一模式。
可选地,终端设备向网络设备发送的终端设备当前的协议版本信息和当前的芯片信息可以不指示终端设备处于第一模式,当前的协议版本信息可以指示终端设备当前的协议版本。当前的芯片信息可以指示终端设备当前的芯片的厂家信息和/或终端设备当前的芯片的型号信息。
可选地,若方法200中的,网络设备为核心网设备,作为S201可替换的方式,接入网设备向核心网设备指示终端设备处于第一模式,核心网设备从接入网设备获知终端设备处于第一模式。可选地,若接入网设备确定与终端设备的协议版本无法兼容,则接入网设备向终端设备指示终端设备进入第一模式,并且,接入网设备向核心网设备指示终端设备处于第一模式。例如,接入网设备接收到终端设备的消息之后,解析错误,则接入网设备确定接入网设备与终端设备的协议版本不兼容。或者接入网设备接收到终端设备发送的多次消息,当消息解析错误的次数达到预设值,则接入网设备确定接入网设备与终端设备的协议版本不兼容。
可选地,在S201之前,方法200还包括:终端设备满足触发进入第一模式的条件之后,终端设备进入第一模式。可选地,触发条件为:终端设备确定与网络设备的协议版本不兼容。
终端设备可以通过以下至少一种方式确定与网络设备的协议版本不兼容。
方式一,若终端设备接收到系统消息之后解析错误,则终端设备确定与网络设备的协议版本不兼容。或者终端设备接收到多次系统消息,当系统消息解析错误的次数达到预设值,则终端设备确定与网络设备的协议版本不兼容。
方式二,终端设备向网络设备注册失败,则终端设备确定与网络设备的协议版本不兼容。或者终端设备向网络设备注册多次,注册失败的次数达到预设值,则终端设备确定与网络设备的协议版本不兼容。
可选地,终端设备可以在第一时刻启动第一计时器,第一计时器的时长为第一时长,第一时长为预设值。在第一计时器超时之前,终端设备不再反复进入第一模式。也可以理解为,在第一计时器超时之前,终端设备保持在第一模式。这样,避免当终端设备满足进入第一模式的触发条件之后,需要反复进入第一模式。有助于节省信令开销,从而有利于节省能耗。
可选地,在第一计时器超时之前,终端设备可以执行S201。
下面分两种情况讨论第一时刻。
情况一,第一时刻为终端设备进入第一模式的时刻,也就是说,终端设备进入第一模式后立刻启动第一计时器。
情况二,第一时刻为S201中终端设备向网络设备指示终端设备处于第一模式的时刻,例如,第一时刻为终端设备向网络设备发送第一指示信息或者终端设备当前的协议版本信息或者终端设备当前的芯片信息(第一指示信息或者终端设备当前的协议版本信息或者终端设备当前的芯片信息用于指示终端设备处于第一模式)的时刻。
可选地,上述两种情况中第一时长可以相同或者而不同。
终端设备需要在进入第一模式之后向第二设备指示终端设备处于第一模式,也就是说,情况一中的第一时刻可以在情况二的第一时刻之前,或者情况一中的第一时刻与情况二中 的第一时刻相同(即终端设备进入第一模式的时刻也向第二设备指示终端设备处于第一模式),换句话说,第一计时器在情况一中的启动时间早于或者等于在情况二中的启动时间,或者,若情况一和情况二中的第一时长相同,则第一计时器在情况一中的超时时间早于或者等于在情况二中的超时时间。
可选地,终端设备可以在第二时刻启动第二计时器,第二计时器的时长为第二时长,第二时长为预设值。在第二计时器超时之前,终端设备不再向网络设备指示终端设备处于所述第一模式。这样,避免当终端设备需要反复向网络设备指示终端设备处于第一模式所带来的信令开销。
下面分两种情况讨论第二时刻。
情况一,第二时刻为终端设备进入第一模式的时刻,也就是说,终端设备进入第一模式后立刻启动第二计时器。终端设备在进入第一模式的时刻启动第二计时器,终端设备进入第一模式之后且第二计时器超时之前向网络设备首次指示终端设备处于第一模式,在第二计时器超时之前不再次向网络设备指示终端设备处于第一模式。
情况二,第二时刻为S201中终端设备向网络设备指示终端设备处于第一模式的时刻,也就是说,第二时刻为终端设备首次向网络设备指示终端设备处于第一模式的时刻,在终端设备首次向网络设备指示终端设备处于第一模式的时刻,终端设备启动第二计时器,在第二计时器超时之前,终端设备不再向网络设备指示终端设备处于第一模式。例如,第二时刻为终端设备向网络设备发送第一指示信息或者终端设备当前的协议版本信息或者终端设备当前的芯片信息(第一指示信息或者终端设备当前的协议版本信息或者终端设备当前的芯片信息用于指示终端设备处于第一模式)的时刻。
可选地,上述两种情况中第二时长可以相同或者不同。
终端设备需要在进入第一模式之后向第二设备指示终端设备处于第一模式,也就是说,情况一中的第二时刻可以在情况二的第二时刻之前,或者情况一中的第二时刻与情况二中的第二时刻相同(即终端设备进入第一模式的时刻也向网络设备指示终端设备处于第一模式),换句话说,第二计时器在情况一中的启动时间早于或者等于在情况二中的启动时间,或者,若情况一和情况二中的第二时长相同,则第二计时器在情况一中的超时时间早于或者等于在情况二中的超时时间。
可选地,终端设备可以在第三时刻启动第三计时器,第三计时器的时长为第三时长,第三时长为预设值。在第三计时器超时之后,终端设备退出第一模式。这样,避免当终端设备一直进入第一模式,无法退出的情形。
下面分两种情况讨论第三时刻。
情况一,第三时刻为终端设备进入第一模式的时刻,也就是说,终端设备进入第一模式后立刻启动第三计时器。终端设备在进入第一模式的时刻启动第三计时器,终端设备进入第一模式之后且第三计时器超时之前执行S201。
情况二,第三时刻为S201中终端设备向网络设备指示终端设备处于第一模式的时刻,在终端设备向网络设备指示终端设备处于第一模式的时刻,终端设备启动第三计时器,在第三计时器超时之后,终端设备退出第一模式。例如,第三时刻为终端设备向网络设备发送第一指示信息或者终端设备当前的协议版本信息或者终端设备当前的芯片信息(第一指示信息或者终端设备当前的协议版本信息或者终端设备当前的芯片信息用于指示终端设 备处于第一模式)的时刻。
可选地,上述两种情况中第三时长可以相同或者而不同。
终端设备需要在进入第一模式之后向第二设备指示终端设备处于第一模式,也就是说,情况一中的第三时刻可以在情况二的第三时刻之前,或者情况一中的第三时刻与情况二中的第三时刻相同(即终端设备进入第一模式的时刻也向网络设备指示终端设备处于第一模式),换句话说,第三计时器在情况一中的启动时间早于或者等于在情况二中的启动时间,或者,若情况一和情况二中的第三时长相同,则第三计时器在情况一中的超时时间早于或者等于在情况二中的超时时间。
可以理解的是,终端设备可以同时维护第一计时器、第二计时器和第三计时器中的一个或两个或者三个计时器,本申请实施例不予显示。此外,第一时刻、第二时刻和第三时刻中可以存在至少两个时刻相同或者不同,本申请不予限制。且第一时长、第二时长和第三时长中可以存在至少两个时长相同或者不同,本申请不予限制。
S202,网络设备向终端设备发送协议信息,终端设备从网络设备接收协议信息,协议信息用于终端设备更新当前的协议版本。
其中,网络设备获知终端设备处于第一模式之后,可以向终端设备发送协议信息。
可选地,协议信息可以指示升级包、降级包、协议补丁、协议安装包或者更新包等。也就是说,终端设备可以根据协议信息进行升级协议版本,或者可以根据协议信息降级协议版本,或者修补协议版本,或者根据协议信息安装协议版本,或者可以根据协议信息更新协议版本等。
可选地,在S202之前,方法200还包括,网络设备确定终端设备所需的协议版本,这样,在S202中,网络设备可以向终端设备发送终端设备所需的协议版本对应的协议信息,网络设备可以通过以下任意一种方式获取终端设备所需的协议版本:
方式一,网络设备将网络设备当前的协议版本确定为终端设备所需的协议版本。也就是说,网络设备只要获知终端设备处于第一模式,可以就将网络设备当前的协议版本确定为终端设备所需的协议版本,换句话说,网络设备可以不关注终端设备当前的协议版本是什么,只要网络设备获知终端设备处于第一模式,网络设备也获知终端设备需要更新协议版本,则网络设备将网络设备的协议版本确定为终端设备所需的协议版本。
方式二,若终端设备向网络设备发送了终端设备当前的芯片信息,网络设备可以根据终端设备当前的芯片信息确定终端设备所需的协议版本。例如,网络设备可以将能够适配终端数设备当前的芯片信息的协议版本确定为终端设备所需的协议版本,如果能够适配终端设备当前芯片信息的协议版本有多个,则网络设备可以在多个协议版本中选择一个协议版本比较高的确定终端设备所需的协议版本,或者网络设备可以在多个协议版本中选择一个与网络设备协议版本接近或者将网络设备的协议版本确定为终端设备所需的协议版本。
方式三,若终端设备向网络设备发送了终端设备当前的版本信息,若终端设备当前的版本信息指示的协议版本与网络设备当前的协议版本不同,网络设备将网络设备当前的协议版本确定为终端设备所需的协议版本。
方式四,若终端设备向网络设备发送了终端设备当前的版本信息,若终端设备当前的版本信息指示的协议版本与网络设备当前的协议版本不同,网络设备将能够兼容终端设备的协议版本确定为终端设备所需的协议版本,能够兼容终端设备的协议版本可以为网络设 备的协议版本或者也可以为低于网络设备的协议版本或者高于网络设备的协议版本。
方式五,若终端设备向网络设备发送了终端设备当前的版本信息和当前的芯片信息,网络设备可以结合终端设备当前的版本信息、当前的芯片信息和网络设备的协议版本确定终端设备所需的协议版本。具体地,若终端设备当前的版本信息指示的协议版本与网络设备当前的协议版本不同,且网络设备当前的协议版本能够适配终端设备当前的芯片信息,则网络设备将网络设备当前的协议版本确定终端设备所需的协议版本。
可选地,网络设备确定终端设备所需的协议版本之后,网络设备可以根据终端设备所需的协议版本获取协议信息。网络设备可以通过以下任意一种方式获取协议信息。
方式一,网络设备保存有终端设备所需的协议信息。
具体地,网络设备可以保存有一个或多个协议信息,网络设备获知终端设备处于第一模式之后,网络设备根据终端设备所需的协议版本确定终端设备所需的协议信息。例如网络设备确定终端设备所需的协议版本为R17,网络设备将保存的R17的安装包或者升级包或者协议补丁发送给终端设备。此时协议信息指示R17的安装包或者升级包或者协议补丁。
方式二,网络设备从服务器获取协议信息。
可选地,网络设备向服务器发送请求消息,请求消息用于向服务器请求协议信息,网络设备从服务器接收协议信息。
可选地,请求消息可以包括终端设备所需的协议版本,服务器可以根据终端设备所需的协议版本确定协议信息,并将协议信息发送给网络设备。
可选地,请求消息可以包括终端设备所需的版本信息,终端设备所需的版本信息用于指示终端设备所需的协议版本,服务器根据终端设备所需的版本信息指示的终端设备所需的协议版本确定协议信息,并将协议信息发送给网络设备。
可选地,网络设备可以根据终端设备确定服务器,例如终端设备是某个厂商的,网络设备可以获知该终端设备的芯片对应的服务器,并向服务器发送请求消息。
可选地,若网络设备从终端设备接收到芯片信息,芯片信息用于指示芯片的厂商信息和/或芯片型号信息。网络设备可以根据芯片的厂商信息和/或芯片的型号信息确定服务器,并向服务器发送请求消息,请求消息包括终端设备的芯片信息。
可选地,若网络设备从终端设备接收到芯片信息,芯片信息用于指示芯片的厂商信息和/或芯片型号信息。网络设备可以根据芯片的厂商信息和/或芯片的型号信息确定服务器,并向服务器发送请求消息,请求消息包括终端设备的芯片信息和终端设备所需的协议版本,服务器根据终端设备的芯片信息和终端设备所需的协议版本确定协议信息,并将协议信息发送给网络设备。
方式三,方法200中的网络设备从另一个网络设备获取协议信息。
示例性地,若方法200中的网络设备为AMF,则在方式三中,AMF可以从UDR获取协议信息,此时UDR为另一个网络设备。或者,AMF可以从UDM获取协议信息,此时UDM为另一个网络设备。
可选地,方法200中的网络设备向另一个网络设备发送请求消息,请求消息用于向另一个网络设备请求协议信息,方法200中的网络设备从另一个网络设备接收协议信息。
可选地,请求消息可以包括终端设备所需的协议版本,另一个网络设备可以根据终端设备所需的协议版本确定协议信息,并将协议信息发送给方法200中的网络设备。
可选地,请求消息可以包括终端设备所需的版本信息,终端设备所需的版本信息用于指示终端设备所需的协议版本,另一个网络设备根据终端设备所需的版本信息指示的终端设备所需的协议版本确定协议信息,并将协议信息发送给方法200中的网络设备。
可选地,若方法200中的网络设备从终端设备接收到芯片信息,芯片信息用于指示芯片的厂商信息和/或芯片型号信息。方法200中的网络设备可以向另一个网络设备发送请求消息,请求消息包括终端设备的芯片信息和终端设备所需的协议版本,另一个网络设备根据终端设备的芯片信息和终端设备所需的协议版本确定协议信息,并将协议信息发送给方法200中的网络设备。
可以理解的是,方法200中的终端设备可以为第一设备,方法200中的网络设备可以为第二设备,上述的方式二中的服务器可以为第三设备,上述方式三中另一个网络设备也可以为第三设备。
可选地,在S201之后,网络设备确定终端设备处于第一模式,网络设备可以在第四时刻启动第四计时器,第四计时器的时长为第四时长,在第四计时器超时之前,即使网络设备从终端设备再次获知终端设备处于第一模式,网络设备也不再次向终端设备发送协议信息,例如即使网络设备从终端设备再次接收到第一指示信息,或者再次接收到终端设备当前的版本信息,或者再次接收到终端设备当前的芯片信息(第一指示信息或终端设备当前的版本信息或者终端设备当前的芯片信息用于指示终端设备处于第一模式),网络设备也不会向终端设备再次发送协议信息,这样,可以避免网络设备向终端设备多次发送协议信息,能够节省开销,同时也能避免拒绝服务(denial of service,DoS)攻击,即使再有攻击者通过终端设备向网络设备指示终端设备处于第一模式,网络设备也不再向终端设备发送协议信息。
网络设备启动第四计时器的第四时刻,可以是网络设备确定终端设备处于第一模式的时刻。可选地,网络设备在S201中后确定终端设备处于第一模式,或者方法200中的网络设备可以根据另一个网络设备发送的终端设备处于第一模式的信息确定终端设备处于第一模式,示例性地,方法200中的网络设备为图1的AMF,AMF可以根据RAN发送的终端设备处于第一模式的信息确定终端设备处于第一模式。
可选地,第四计时器可以与前述的第一计时器、第二计时器或者第三计时器无关。可选地,第四计时器也可以与前述的第一计时器、第二计时器或者点计时器有关,例如第四计时器的第四时长可以大于或等于第一时长,或者第四时长可以大于或等于第二时长,或者第四时长可以大于或等于第三时长,本申请实施例不予限制。
在不同的场景下,S201和S202可以通过不同的消息实现,下面分场景描述:
场景一,注册场景。
在注册场景下,如图3所示,S201包括:S201a1,终端设备向网络设备发送注册请求消息,通过注册请求消息指示终端设备处于第一模式,网络设备根据注册请求消息获知终端设备处于第一模式。例如注册请求消息可以携带第一指示信息,第一指示信息用于指示终端设备处于第一模式;又例如,注册请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式;再例如,注册请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。在注册场景下,S202,可以包括:S202a2,网络设备向终端设备发送注册响应消息。注册响应 消息包括协议信息。注册响应消息可以为注册接受消息,注册接受消息用于表示网络设备接收终端设备的注册;或者注册响应消息可以为注册拒绝消息,注册拒绝消息表示网络设备拒绝终端设备的注册。
也就是说,在场景一下,S202a2是通过控制面流程将协议信息发送给终端设备。
示例性地,在场景一下,网络设备可以是核心网设备,即终端设备向核心网设备注册,例如核心网设备可以为图1所示的AMF。
场景二,在注册场景下实现S201,通过用户面流程实现S202。在场景二中,网络设备为核心网设备。
在注册场景下,如图4所示,S201包括:S201b1,终端设备向核心网设备发送注册请求消息,通过注册请求消息指示终端设备处于第一模式,核心网设备根据注册请求消息获知终端设备处于第一模式。例如注册请求消息可以携带第一指示信息,第一指示信息用于指示终端设备处于第一模式;又例如,注册请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式;再例如,注册请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。S202,可以包括:S202b2和S202b3,其中S202b2,核心网设备向接入网设备发送协议信息;S202b3,接入网设备可以通过与终端设备之间的数据无线承载(data radio bearer,DRB)将协议信息发送给终端设备,终端设备通过与接入网设备之间的DRB接收协议信息。
可选地,在场景二中,终端设备可以预设有用于建立用户面连接的参数,可以根据预设的用于建立用户面连接的参数与接入网设备建立用户面连接,用户面连接与DRB对应。
可选地,在场景二中,方法200还可以包括:S204b,核心网设备可以构建用于建立用户面连接的参数,并在S202b3之前,方法200还可以包括:S205b,将构建的用于建立用户面连接的参数发送给终端设备;S206,终端设备可以根据用于建立用户面连接的参数与接入网设备建立用户面连接,用户面连接与DRB对应。
可选地,方法200还可以包括:接入网设备可以构建用于建立用户面连接的参数,并将构建的用于建立用户面连接的参数发送给终端设备;终端设备可以根据用于建立用户面连接的参数与接入网设备建立用户面连接,用户面连接与DRB对应。
可选地,核心网设备或者接入网设备构建的用于建立用户面连接的参数可以是一种建立“虚假”PDU会话的参数,这里的“虚假”PDU会话是指:相比于一般的PDU会话,“虚假”PDU会话用户面连接只有终端设备到接入网设备用户面连接,接入网设备到核心网设备之间的用户面连接不存在。一般的PDU会话的用户面连接包括终端设备到接入网设备的用户面连接,以及接入网设备到核心网设备(如核心网设备为UPF)的用户面连接。但是对于终端设备来讲并不感知是一般的PDU会话还是“虚假”PDU会话。因此,终端设备可以不感知是在为“虚假”的PDU会话建立用户面连接,终端设备只根据接收到的用于建立用户面连接的参数建立与接入网设备之间的用户面连接。
可选地,在场景二中,方法200还可以包括:终端设备向核心网设备发送PDU会话建立请求消息,PDU会话建立请求消息用于向核心网设备请求建立PDU会话,核心网设备可以向终端设备发送PDU会话接受消息,PDU会话接受消息包括S205b中用于建立用户面连接的参数,终端设备可以根据用于建立用户面连接的参数与接入网设备建立用户面连接,用户面连接与DRB对应。也就是说,PDU会话接受消息中包括的用于建立用户面 连接的参数是建立一般PDU会话的用户面连接的参数,即一般PDU会话的用户面连接为包括终端设备到接入网设备的用户面连接,以及接入网设备到核心网设备(如核心网设备为UPF)的用户面连接。
示例性地,场景二中,核心网设备为图1所示的AMF,接入网设备为图1所示的RAN。
可选地,在场景一和场景二中,核心网接收到终端设备发送的注册请求消息之后,获知终端设备处于第一模式,核心网设备可以简化终端设备注册流程,这样,可以提高终端设备的注册速度和成功率。例如,核心网设备可以不对终端设备进行鉴权,或者不对终端设备进行移动性限制(mobility restriction)检测,或者不对终端设备进行接入限制(access restriction)检测。
场景三,通过无线资源控制(radio resource control,RRC)消息实现S201,通过用户面流程实现S202。场景三中,网络设备可以为接入网设备。
在场景三下,终端设备与接入网设备之间的RRC处于连接态,如图5所示,S201包括:S201c1,终端设备通过RRC连接向接入网设备发送RRC消息,通过RRC消息指示终端设备处于第一模式,接入网设备根据RRC消息获知终端设备处于第一模式。例如RRC消息可以携带第一指示信息,第一指示信息用于指示终端设备处于第一模式;又例如,RRC消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式;再例如,RRC消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。S202,可以包括:S202c2,接入网设备通过接入网设备与终端设备之间的DRB向终端设备发送协议信息,终端设备通过与接入网设备之间的DRB接收协议信息。
可选地,在场景三中,终端设备可以预设有用于建立用户面连接的参数,可以根据预设的用于建立用户面连接的参数与接入网设备建立用户面连接,用户面连接与DRB对应。
可选地,在场景三中,方法200还可以包括:S204c,接入网设备可以构建用于建立用户面连接的参数,并在S202c2之前,方法200还可以包括:S205c,将构建的用于建立用户面连接的参数发送给终端设备;S206,终端设备可以根据用于建立用户面连接的参数与接入网设备建立用户面连接,用户面连接与DRB对应。可选地,接入网设备可以通过RRC消息将用于建立用户面连接的参数发送给终端设备。
可选地,接入网设备构建的用于建立用户面连接的参数可以是一种建立“虚假”PDU会话的参数,这里的“虚假”PDU会话是指:相比于一般的PDU会话,“虚假”PDU会话用户面连接只有终端设备到接入网设备用户面连接,接入网设备到核心网设备之间的用户面连接不存在。一般的PDU会话的用户面连接包括终端设备到接入网设备的用户面连接,以及接入网设备到核心网设备(如核心网设备为UPF)的用户面连接。但是对于终端设备来讲并不感知是一般的PDU会话还是“虚假”PDU会话。因此,终端设备可以不感知是在为“虚假”的PDU会话建立用户面连接,终端设备只根据接收到的用于建立用户面连接的参数建立与接入网设备之间的用户面连接。
示例性地,场景三中,接入网设备为图1所示的RAN。
场景四,通过RRC建立请求消息实现S201,通过用户面流程实现S202。场景四中,网络设备可以为接入网设备。
在场景四下,终端设备与接入网设备之间的RRC处于非连接态,如图6所示,S201 包括:S201d1,终端设备向接入网设备发送RRC建立请求(RRC setup Request)消息,RRC建立请求消息用于向接入网设备请求建立RRC连接,通过RRC建立请求消息指示终端设备处于第一模式,接入网设备根据RRC建立请求消息获知终端设备处于第一模式。例如RRC建立请求消息可以携带第一指示信息,第一指示信息用于指示终端设备处于第一模式;又例如,RRC建立请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式;再例如,RRC建立请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。S202,可以包括:S202d2,接入网设备通过接入网设备与终端设备之间的DRB向终端设备发送协议信息,终端设备通过与接入网设备之间的DRB接收协议信息。
可选地,在场景四中,方法200还可以包括:S204d,接入网设备可以构建用于建立用户面连接的参数,并在S202d2之前,方法200还可以包括:S205d,将构建的用于建立用户面连接的参数发送给终端设备;S206,终端设备可以根据用于建立用户面连接的参数与接入网设备建立用户面连接,用户面连接与DRB对应。可选地,接入网设备接收到RRC建立请求消息之后,接入网设备可以将用于建立用户面连接的参数通过RRC建立(RRC setup)消息发送给终端设备。
可选地,接入网设备构建的用于建立用户面连接的参数可以是一种建立“虚假”PDU会话的参数,这里的“虚假”PDU会话是指:相比于一般的PDU会话,“虚假”PDU会话用户面连接只有终端设备到接入网设备用户面连接,接入网设备到核心网设备之间的用户面连接不存在。一般的PDU会话的用户面连接包括终端设备到接入网设备的用户面连接,以及接入网设备到核心网设备(如核心网设备为UPF)的用户面连接。但是对于终端设备来讲并不感知是一般的PDU会话还是“虚假”PDU会话。因此,终端设备可以不感知是在为“虚假”的PDU会话建立用户面连接,终端设备只根据接收到的用于建立用户面连接的参数建立与接入网设备之间的用户面连接。
示例性地,场景四中,接入网设备为图1所示的RAN。
场景五,通过RRC建立请求消息实现S201,通过RRC响应实现S202。场景五中,网络设备可以为接入网设备。
在场景五下,终端设备与接入网设备之间的RRC处于非连接态,如图7所示,S201包括:S201e1,终端设备向接入网设备发送RRC建立请求(RRC setup request)消息,RRC建立请求消息用于向接入网设备请求建立RRC连接,通过RRC建立请求消息指示终端设备处于第一模式,接入网设备根据RRC建立请求消息获知终端设备处于第一模式。例如RRC建立请求消息可以携带第一指示信息,第一指示信息用于指示终端设备处于第一模式;又例如,RRC建立请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式;再例如,RRC建立请求消息可以携带终端设备当前的版本信息,终端设备当前的版本信息用于指示终端设备处于第一模式。S202,可以包括:S202e2,接入网设备向终端设备发送RRC响应消息,RRC响应消息包括协议信息。可选地,RRC响应消息可以为RRC建立(RRC setup)消息,RRC建立消息表示接入网设备接受终端设备的RRC建立请求。可选地,RRC响应消息可以为RRC拒绝(RRC reject)消息,RRC拒绝消息表示接入网设备拒绝终端设备的RRC建立请求。
示例性地,场景五中,接入网设备为图1所示的RAN。
可选地,在S201之后,方法200还包括:网络设备向终端设备指示终端设备在第一模式下能够支持的业务,终端设备从网络设备获知终端设备在第一模式下支持的业务。这样,终端设备可以确定终端设备能够发起的业务。例如,网络设备向终端设备指示终端设备在第一模式能够支持紧急拨打电话业务。
回到图2,终端设备通过上述任一方式接收到协议信息后,该方法还包括:
S203,终端设备基于协议信息更新终端设备当前的协议版本。
具体地,若协议信息指示升级包,终端设备可以根据协议信息指示的升级包对当前的协议版本进行升级,得到升级后的协议版本。若协议信息指示降级包,终端设备可以根据协议信息指示的降级包对终端设备当前的协议版本进行降级,得到降级后的协议版本。若协议版本指示协议补丁,终端设备可以根据协议补丁修补当前的协议版本,得到修补后的协议版本等。
可选地,在S203之后,终端设备退出第一模式。换句话说,终端设备更新完当前的协议版本之后可以退出第一模式。
可选地,在S202之后,终端设备退出第一模式之后,执行S203。换句话说,终端设备可以从网络设备接收到协议信息之后,可以先退出第一模式,然后再更新当前的协议版本。
可选地,若存在上述第三计时器,终端设备在第三计时器超时之后可以退出第一模式,S203可以在第三计时器超时之前或者第三计时器超时之后,但是S202可以在第三计时器超时之前执行。换句话说,需要保证终端设备在第三计时器超时之前接收到协议信息。终端设备可以在第三计时器超时之前或者超时之后根据协议信息更新协议版本。
可选地,即便存在上述第三计时器,在另一个实施例中,终端设备可以在接收到S202中的协议信息之后退出第一模式不受第三计时器超时与否的限制,或者终端设备可以在S203中更新完当前的协议版本之后退出第一模式不受第三计时器超时与否的限制。换句话说,终端设备维护第三计时器是为了避免终端设备一直处于第一模式,无法退出的情形,若终端设备接收到S202的协议信息,也可以作为退出第一模式的触发条件,或者若终端设备在S203更新完当前的协议版本,也可以作为退出第一模式的触发条件,本申请实施例对终端设备退出第一模式的触发条件不作限制。
上述方法200中,当终端设备处于第一模式时,可以向网络设备指示终端设备处于第一模式,网络设备获知终端设备处于第一模式之后,可以向终端设备发送协议信息,终端设备可以基于协议信息更新当前的协议版本,这样,避免终端设备无法更新协议版本的问题。
为了更好的说明上述方法200,下面进行举例说明。
如图8所示示出了本申请实施例提供的通信方法800。通信方法800中第二设备可以为AMF,第一设备可以为UE。方法800对应上述场景一,如图8所示方法800包括:
S801,UE进入第一模式。
具体地,UE满足处于进入第一模式的条件之后,UE进入第一模式。具体地,满足处于进入第一模式的条件参见方法200的描述。
可以理解的是,第一模式的描述参见方法200的描述。
可选地,UE进入第一模式之后可以触发S802。
S802,UE向AMF发送注册请求(registration request)消息,AMF接收注册请求消息,通过注册请求消息指示UE处于第一模式。
可选地,如图8所示注册请求消息可以携带指示UE处于第一模式的第一指示信息、UE当前的版本信息或UE当前的芯片信息中的至少一项。具体地,第一指示信息、UE当前的芯片信息和UE当前的版本信息可以参考方法200的描述。
S803,UE启动第一计时器、第二计时器或者第三计时器中的至少一项。
具体地,第一计时器、第二计时器或者第三计时器的启动时间不同,S803的执行时间不同。例如第一计时器、第二计时器或者第三计时器的启动时间可以为UE执行S801的时刻,或者UE执行S802的时刻。若第一计时器、第二计时器或者第三计时器的启动时间可以为UE执行S801的时刻,则UE在执行S801的同时执行S803。若第一计时器、第二计时器或者第三计时器的启动时间可以为UE执行S802的时刻,则UE在执行S802的同时执行S803。
在第一计时器超时之前,UE不再反复进入第一模式。
在第二计时器超时之前,UE不再向AMF发送注册请求消息。
在第三计数器超时之后,UE退出第一模式。
S804,AMF启动第四计时器。
可选地,AMF确定UE进入第一模式的时刻启动第四计时器。
可选地,AMF可以在S802后可以确定UE进入第一模式,AMF可以在执行S802的同时启动第四计时器。
可选地,在S801之前,方法800还包括:RAN确定UE与RAN的协议版本不兼容,RAN可以向UE发送进入第一模式的指示信息,UE根据RAN发送的进入第一模式的指示信息进入第一模式。即RAN可以通过进入第一模式的指示信息触发UE执行S801。
可选地,RAN可以向AMF发送UE进入第一模式的通知消息,AMF根据通知消息确定UE进入第一模式。AMF在接收通知消息的同时可以启动第四计时器。
在第四计时器超时之前,即使AMF再从UE接收到注册请求消息,并通过注册请求消息获知UE处于第一模式,AMF也不再确定UE所需的协议版本信息,或者AMF也不再向UE发送协议信息,或者AMF也不再向UDR请求协议信息,即AMF不再次执行S805-S808中的任意一个步骤。这样,可以避免攻击者通过UE再次发起注册请求。有利于避免DDoS攻击。
S805,AMF根据注册请求消息确定UE所需的协议版本。
具体地,AMF确定UE所需的协议版本参见方法200的描述。
可选地,AMF可以保存有UE所需的协议版本对应的UE所需的协议信息,则执行S808。
可选地,AMF不保存UE所需的协议版本对应的UE所需的协议信息,UDR保存有UE所需的协议版本对应的UE所需的协议信息,则执行S806。
S806,AMF向UDR发送请求消息,UDR从AMF接收请求消息,请求消息用于向UDR请求UE所需的协议信息。
可选地,若注册请求消息包括芯片信息,如图8所示,请求消息包括芯片信息,UDR可以根据请求消息中携带的芯片信息确定UE所需的协议信息。
可选地,如图8所示,请求消息可以包括UE所需的协议版本,例如包括UE所需的 协议版本的版本号,UDR可以根据UE所需的协议版本确定UE所需的协议信息。
可选地,如图8所示,请求消息可以包括芯片信息和UE所需的协议版本,UDR可以根据芯片信息和UE所需的协议版本确定UE所需的协议信息。
可选地,请求消息还可以包括UE的标识(identity,ID)。
在一些情况下,AMF可以向服务器请求UE所需的协议信息。可选地,在AMF不保存UE所需的协议信息的情况下,AMF可以去向服务器请求UE所需的协议信息。可选地,在AMF和UDR都不保存UE所需的协议信息,AMF可以向服务器请求UE所需的协议信息,例如,AMF可以向UDR发送请求消息,UDR返回的请求消息的响应消息中不包括UE所需的协议信息,则AMF确定UDR不保存UE所需的协议信息;又例如,协议规定是哪个设备保存协议信息,AMF可以根据协议的规定确定UDR和AMF是否保存UE所需的协议信息。
可选地,AMF向服务器发送请求消息,服务器从AMF接收请求消息,请求消息用于向服务器请求UE所需的协议信息。
可选地,若注册请求消息包括芯片信息,AMF可以根据芯片信息确定服务器,例如,芯片信息指示终端设备当前的芯片为A厂商的芯片,则AMF确定服务器为A厂商的服务器。又例如,芯片信息指示终端设备当前的芯片为B厂商的芯片,则AMF确定服务器为B厂商的服务器。
可选地,AMF向服务器发送的请求消息还可以包括UE所需的协议版本,例如包括UE所需的协议版本的版本号,服务器可以根据UE所需的协议版本确定UE所需的协议信息。
可选地,AMF向服务器发送的请求消息可以包括芯片信息和UE所需的协议版本,服务器可以根据芯片信息和UE所需的协议版本确定UE所需的协议信息。
可选地,AMF向服务器发送的请求消息还可以包括UE的标识(identity,ID)。
S807,UDR根据请求消息向AMF发送协议信息,AMF从UDR接收协议信息。
S808,AMF向UE发送注册响应消息,UE从AMF接收注册响应消息,注册响应消息包括协议信息。
可选地,注册响应消息可以为注册接受消息或者注册拒绝消息。注册接受消息表示AMF接受UE的注册请求。注册拒绝消息表示AMF拒绝UE的注册请求。
可选地,如图8所示,还可以通过注册响应消息向UE指示UE在第一模式下能够支持的业务,例如注册响应消息可以携带第二指示信息,第二指示信息可以指示UE在第一模式下能够支持的业务。UE可以根据注册响应消息确定UE在第一模式下能够支持的业务,从而发起UE支持的业务。比如第二指示信息可以指示UE在第一模式下支持的服务的服务类型或者服务等级,例如,UE为手机,第二指示信息指示服务等级1,服务等级1为UE可以打紧急电话以及接收协议信息的推送;又例如,第二指示信息指示服务等级2,服务等级2为除了服务等级1中所列服务外还可以拨打普通的电话;再例如,第三指示信息指示服务等级3,服务等级3在服务等级2的基础上还允许UE上传高优先级的业务对应的数据报文。
可选地,AMF获知UE处于第一模式后,可以确定是否接受UE的注册,在确定是否接受UE的注册的过程中,可以省去对UE的鉴权流程,或者也可以跳过移动性限制 (mobility restriction)检测,或者跳过接入限制(access restriction)检测。这样,AMF跳过这些步骤,可以节省UE的注册时间,也能快速将协议信息推送给UE,避免UE长时间无法注册到网络。
S809,UE根据协议信息更新当前的协议版本。
需要说明的是,如果存在第三计时器,则需要在第三计时器超时之前执行S808。
可以理解的是,即使UE在S808中接收的注册响应消息为注册拒绝消息,UE可以在更新当前的协议版本之后,利用更新后的协议版本可以再次发起注册流程。
S810,UE退出第一模式。
可选地,S809执行完之后,执行S810。即UE更新完当前的协议版本之后,UE退出第一模式。
可选地,S810执行完之后,执行S809。即UE退出第一模式之后,UE在更新当前的协议版本。
可选地,如果存在第三计时器,则在第三计时器超时后执行S810。可选地,如果存在第三计时器,UE可以不受第三计时器是否超时与否的限制,在S808之后执行S810。可选地,如果存在第三计时器,UE可以不受第三计时器是否超时与否的限制,在S809之后执行S810。
S811,UE释放与AMF的接入网络(access network,AN)连接。
可选地,UE与AMF可以存在单独建立AN连接的步骤,或者UE与AMF可以在交互消息的过程中建立AN连接,例如,UE在S802中可以建立AN连接,或者在S802之前单独建立AN连接。
可以理解的是,S811可以在S808之后,但是S811与S809或者S810的顺序没有任何限制。也就是说UE释放与AMF的AN连接可以在退出第一模式之前或者之后,或者在UE更新当前的协议版本的之前或者之后,本申请实施例不予限制。
上述方法800通过AMF通过控制面流程向UE发送协议信息,下面结合图9的方法900描述AMF通过用户面流程向UE发送协议信息。方法900与上述场景二对应。
S901-904,分别与S801-S804相同。为了避免赘述不再详细描述。
S905,AMF生成用于建立用户面连接的参数。
可选地,用于建立用户面连接的参数可以包括:建立协议数据单元(protocol data unit,PDU)会话标识、PDU会话类型、PDU会话模式、聚合最大比特速率(aggregate maximum bit rate,AMBR)、过程事物标识(procedure transaction identity,PTI)、PDU会话建立接受消息标识、服务连续性(service and session continuity,SSC)模式或服务质量(quality of service,QoS)规则中的至少一项。
可选地,用于建立用户面连接的参数也可以称为用于建立协议数据单元(protocol data unit,PDU)会话的参数。
可选地,AMF可以构建用于建立用户面连接的参数,即AMF构建的用于建立用户面连接的参数不是要建立一般的PDU会话,而是要建立“虚假”的PDU会话,一般的PDU会话的用户面连接包括UE与RAN之间的用户面连接,RAN与UPF之间的用户面连接,UPF与DN之间的用户面连接。AMF构建的用于建立用户面连接的参数是为了让UE建立与RAN之间的用户面连接,RAN与UPF之间的用户面连接以及UPF与DN之间的用户面连 接无需建立。
S906,AMF向UE发送注册响应消息,UE从AMF接收注册响应消息。注册响应消息包括用于建立用户面连接的参数。
可选地,注册响应消息可以包括:向UE指示UE在第一模式下能够支持的业务,例如注册响应消息可以包括方法800中的第二指示信息。
S907,UE根据用于建立用户面连接的参数与RAN建立用户面连接。
其中,UE与RAN之间的用户面连接可以称为DRB。
S908-S910,分别与S805-S807相同,为了避免赘述不详细描述。
可以理解的是,S905-S907中的任一项与S908-S910中任一项的顺序不作限定。S905-S907中的任一项可以在S908-S910中任一项之前或者之后或者同时进行。
S911,AMF向RAN发送N2消息,RAN接收N2消息,N2消息包括S910中的协议信息。
可选地,N2消息可以是N2请求消息或者N2响应消息。
在S907和S911之后,执行S911。
S912,RAN通过DRB向UE发送协议信息,UE通过DRB接收协议信息。
S913-S914同S809-S810。
S915,UE释放AMF之间的AN连接。
可以理解的是,S915可以在S906之后,但是S915与S907至S914中任一项的顺序没有任何限制,S915可以在S907至S914中任一项之前或者之后或者同时进行。
方法900中描述的是,RAN可以通过与UE之间的DRB(或者用户面流程)将协议信息发送给UE,RAN与UE之间的用于建立用户面连接的参数是AMF生成的。下面结合图10描述UE建立真正的PDU会话的过程,即用于建立用户面连接的参数不是AMF生成的,是SMF发送给UE的。方法1000对应上述场景二,方法1000包括:
S1001-S1005,分别与S801-S805相同。
S1006,AMF向UPF发送用于指示UE所需的协议版本的信息。
可以理解的是,在S1006之后UPF可以根据UE所需的协议版本获取协议信息,具体地,UPF获取协议信息的方法与方法800中AMF获取协议信息的方法类似,为了避免赘述,不详细描述。
需要说明的是,S1005和S1006在S1011之前,但是S1005和S1006与S1007-S1010中的任何一个步骤的顺序没有限制,S1005和S1006可以在S1007-S1010中的任何一个步骤之前或者之后或者同时进行。
S1007,AMF向UE发送注册响应消息。
其中,注册响应消息可以是注册接受消息。
需要说明的是,S1007与S1005的顺序没有任何限制,S1007可以在S1005之前或者之后或者同时进行。
S1008,UE向AMF发送PDU会话建立请求消息,AMF可以将PDU会话建立请求消息发送给SMF,SMF从AMF接收PDU会话建立请求消息。PDU会话建立请求消息可以包括PDU会话标识。
可选地,PDU会话建立请求消息还可以包括:网络切片选择辅助信息(network slice  selection assistance information,NSSAI)等。
可选地,PDU会话建立请求消息还可以包括:指示UE处于第一模式的第一指示信息、UE当前的版本信息或UE当前的芯片信息中的至少一项。此时,S1002中的注册请求消息可以不包括PDU会话建立请求消息所包括的指示UE处于第一模式的第一指示信息、UE当前的版本信息或UE当前的芯片信息中的至少一项。也就是说,UE可以在S1002向AMF指示UE处于第一模式,或者也可以在S1008向AMF指示UE处于第一模式。
可以理解的是,若UE在S1008中向AMF指示UE处于第一模式,则S1003和S1004可以在S1008之后。
S1009,SMF可以向AMF发送PDU会话接受消息,AMF将PDU会话接受消息发送给UE,PDU会话接受消息包括用于建立用户面连接的参数。
其中,用于建立用户面连接的参数的描述可以参见方法900的描述。
可以理解的是,执行S1009和S1010之后,UPF与RAN之间的用户面连接也建立了,具体地,UPF与RAN之间的建立用户面连接的过程可以参见现有技术。
S1010,UE根据用于建立用户面连接的参数与RAN建立用户面连接。
其中,UE与RAN之间的用户面连接可以称为DRB。
S1011,UPF通过与RAN之间的用户面连接将协议信息发送给RAN。
具体地,UPF可以在S1006之后获取到协议信息之后执行S1011。
S1012-S1014,分别与S912-S914相同。
S1015,UE释放AN连接。
可选地,UE与图10中的各个网元可以存在单独建立AN连接的步骤,或者UE与图10中的各个网元可以在交互消息的过程中建立AN连接,例如,UE在S1002中可以建立AN连接,或者在S1002之前单独建立AN连接。
其中,AN连接用于UE与图10中的网元发送交互信息(例如交互S1002,S1007-S1010中的信息)。
上述图9和图10描述的是UE在注册过程中向AMF指示UE处于第一模式,RAN可以通过与UE之间的DRB(或者用户面流程)将协议信息发送给UE。下面结合图11的方法1100描述UE通过RRC消息指示UE处于第一模式,RAN通过用户面流程向UE发送协议信息。方法1100对应场景三。方法1100包括:
S1101,同S801。
S1102,AMF向RAN发送N2消息,RAN从AMF接收N2消息,N2消息包括协议信息。
其中,AMF获取协议信息的方法与方法800相同,为了避免赘述,本申请实施例不详细描述。
可选地,N2消息可以是N2请求消息或者N2响应消息。
可以理解的是,S1102可以在AMF与RAN之间交互的任何N2消息中发送的,不限于发送的时机,例如,AMF在与RAN建立连接时,AMF可以向RAN发送N2消息,N2消息包括协议信息;又例如,AMF可以基于RAN的请求向RAN发送N2消息,N2消息包括协议信息,例如,在S1103后,RAN确定UE处于第一模式,RAN可以向AMF发送请求消息,请求消息用于向AMF请求协议信息,AMF可以基于请求消息将协议信息发送 给RAN。S1102在方法1100的中S1101-S1108中的任何一个步骤的之前或者之后进行,本申请实施例不予限制。
作为S1102可以替换的方式,RAN可以从服务器获取协议信息,或者RAN可以从UDR获取协议信息,或者RAN保存有协议信息。例如,RAN在与服务器或者UDR建立连接时,服务器或者UDR可以向RAN发送协议信息;又例如,服务器或者UDR可以基于RAN的请求向RAN发送协议信息,例如,在S1103后,RAN确定UE处于第一模式,RAN可以向服务器或者UDR发送请求消息,请求消息用于向服务器或者UDR请求协议信息,服务器或者UDR可以基于请求消息将协议信息发送给RAN。RAN获取协议信息的方式与方法800的AMF获取协议信息的方式类似,为了避免赘述不详细描述。也即方法1100中的协议信息可以是RAN从AMF获取的,或者RAN保存的,或者RAN从服务器获取的,或者RAN从UDR获取的。
在方法1100中,UE与RAN之间的RRC处于连接态。
UE进入第一模式之后,可以触发UE执行S1103。
S1103,UE通过RRC连接向RAN发送RRC消息,RAN通过RRC连接从UE接收RRC消息。
其中,通过RRC消息指示UE处于第一模式,RAN根据RRC消息获知UE处于第一模式。
可选地,如图11所示RRC消息可以携带指示UE处于第一模式的第一指示信息、UE当前的版本信息或UE当前的芯片信息中的至少一项。具体地,第一指示信息、UE当前的芯片信息和UE当前的版本信息可以参考方法200的描述。
S1104,与S804类似。
与S804不同的是,在第二计时器超时之前,UE不再向RAN发送RRC消息,即不再通过RRC消息指示UE处于第一模式。其他的描述与S804相同。
S1105,RAN启动第四计时器。
可选地,RAN确定UE进入第一模式的时刻启动第四计时器。
可选地,RAN可以在S1103后可以确定UE进入第一模式,RAN可以在执行S1103的同时启动第四计时器。
可选地,方法1100还包括:RAN确定UE与RAN的协议版本不兼容,RAN可以向UE发送进入第一模式的指示信息,UE根据RAN发送的进入第一模式的指示信息进入第一模式。即RAN可以通过进入第一模式的指示信息触发UE执行S1101。可选地,RAN向UE发送进入第一模式的指示信息的同时启动第四计时器。
在第四计时器超时之前,即使RAN再从UE接收到RRC消息,并通过RRC消息获知UE处于第一模式,RAN也不再确定UE所需的协议版本信息,或者RAN也不再向UE发送协议信息,或者RAN也不再获取协议信息,即RAN不再次执行S1106-S1109中的任意一个步骤。这样,可以避免攻击者通过UE再次发起RRC消息。有利于避免分布式拒绝服务攻击(distributed denial of service,DDoS)攻击。
S1106,RAN生成用于建立用户面连接的参数。
可选地,用于建立用户面连接的参数也可以称为用于建立协议数据单元(protocol data unit,PDU)会话的参数。其中,用于建立用户面连接的参数的描述可以参见方法900的 描述。
可选地,RAN可以构建用于建立用户面连接的参数,RAN构建的用于建立用户面连接的参数不是要建立一般的PDU会话,而是要建立“虚假”的PDU会话,一般PDU会话的用户面连接包括UE与RAN之间的用户面连接,RAN与UPF之间的用户面连接,UPF与DN之间的用户面连接。RAN构建的用于建立用户面连接的参数是为了让UE建立与RAN之间的用户面连接,RAN与UPF之间的用户面连接以及UPF与DN之间的用户面连接无需建立。
S1107,RAN通过RRC连接向UE发送用于建立用户面连接的参数,UE通过RRC连接从RAN接收用于建立用户面连接的参数。
S1108,UE根据用于建立用户面连接的参数与RAN建立用户面连接。
其中,UE与RAN之间的用户面连接可以称为DRB。
S1109,RAN通过DRB向UE发送协议信息。
具体地,RAN获取UE所需的协议信息参见方法200的描述。
可选地,RAN可以保存有UE所需的协议信息,则执行S1110。RAN保存的UE所需的协议信息可以是S1102中获得的,或者从服务器或者从UDR获得的。RAN从服务器或者UDR获取协议信息的方式可以参见AMF获取协议信息的方式,例如参见S806-S808,为了避免赘述不详细描述。
S1110-S1111,分别与S810-S811相同。
上述方法1100描述的通过RRC消息指示UE处于第一模式,通过用户面流程发送协议信息,下面结合图12的方法1200描述通过RRC建立请求消息支持UE处于第一模式,通过用户面流程发送协议信息。方法1200对应上述场景四。方法1200包括:
S1201-S1202,分别与S1101-S1102相同。
方法1200中,UE处于RRC非连接态。
S1201可以触发UE执行S1203。
S1203,UE向RAN发送RRC(RRC setup request)建立请求消息,RAN从UE接收RRC建立请求消息。
其中,通过RRC建立请求消息指示UE处于第一模式,RAN根据RRC建立请求消息获知UE处于第一模式。
可选地,如图12所示RRC建立请求消息可以携带指示UE处于第一模式的第一指示信息、UE当前的版本信息或UE当前的芯片信息中的至少一项。具体地,第一指示信息、UE当前的芯片信息和UE当前的版本信息可以参考方法200的描述。
S1204-S1206,同S1104-S1106。
S1207,RAN向UE发送RRC建立(RRC setup)消息,UE从RAN接收RRC建立消息,RRC建立消息包括用于建立用户面连接的参数。
S1208,UE向RAN发送RRC建立完成(RRC setup complete)消息。
S1209-S1212分别与S1108-S1111相同。
需要说明的是,S1208与S1209-S1212中任一步骤的顺序没有任何限制,S1208可以在S1209-S1212中任一步骤之前或者之后或者同时进行。
上述方法1200描述的通过RRC建立请求消息指示UE处于第一模式,通过控制面流 程发送协议信息,下面结合图13的方法1300描述通过RRC建立请求消息支持UE处于第一模式,通过用户面流程发送协议信息。方法1300对应上述场景五。方法1300包括:
S1301-S1305,分别与S1201-S1205相同。
S1306,RAN向UE发送RRC响应消息,UE从RAN接收RRC响应消息,RRC响应消息包括协议信息。
可选地,RRC响应消息可以为RRC建立(RRC setup)消息,RRC建立消息表示接入网设备接受终端设备的RRC建立请求。可选地,RRC响应消息可以为RRC拒绝(RRC reject)消息,RRC拒绝消息表示接入网设备拒绝终端设备的RRC建立请求。
S1307-S1308,分别与S1210和S1211相同。
上述方法800-方法1300分别描述了不同场景下的通信方法。
需要说明的是,通常情况下,终端设备与网络设备的协议版本不兼容可以理解为,终端设备与接入网设备的协议版本不兼容,或者理解为:终端设备与核心网设备的协议版本不兼容,或者理解为:终端设备与接入网设备和核心网设备的协议版本都不兼容。示例性地,终端设备包括UE,接入网设备包括RAN,核心网设备包括AMF。
需要说明的是,第一计时器、第二计时器、第三计时器和第四计时器之前可以存在关联,或者不存在关联,本申请实施例不予限制。第一计时器、第二计时器、第三计时器和第四计时器中可以存在一个或一个以上的计时器,或者不存在这四个计时器中的任何一个计时器,本申请实施例不予限制。
可以理解的是,上述图2至图13中描述的通信方法可以是独立的实施例也可以互相结合实施例,例如,前述场景一、场景二、场景三和场景四中的实施例可以是独立的实施例也可以是互相结合的实施例。
上述图2-图13描述了本申请实施例提供的通信方法,下面结合图14和图15描述本申请实施例提供的通信装置。
图14是本申请实施例提供的通信装置的示意性框图。如图14所示,该装置1400可以包括处理单元1410和收发单元1420。
在一种可能的设计中,该装置1400可对应于上文方法实施例中的第一设备或者终端设备,例如,可以为UE,或者配置于UE中的芯片。该装置1400用于执行上述方法200-方法1300中第一设备或者终端设备或者UE对应的各个步骤或流程。
具体地,处理单元1410,用于向第二设备指示所述通信装置处于第一模式,所述通信装置当前的协议版本与所述第二设备当前的协议版本无法兼容;收发单元1420,用于从所述第二设备接收协议信息,所述协议信息用于所述通信装置更新当前的协议版本;所述处理单元1410还用于基于所述协议信息更新所述通信装置当前的协议版本。
可选地,所述处理单元1410具体用于通过所述收发单元1420向所述第二设备发送第一指示信息,所述第一指示信息用于指示所述通信装置处于所述第一模式。
可选地,所述处理单元1410具体用于通过所述收发单元1420向所述第二设备发送所述通信装置当前的芯片信息;和/或,
所述处理单元1410具体用于通过所述收发单元1420向所述第二设备发送所述通信装置当前的协议版本信息,所述通信装置当前的版本信息用于指示所述通信装置当前的协议版本。
可选地,所述处理单元1410还用于:在第一时刻启动第一计时器,在所述第一计时器超时之前,所述通信装置不再反复进入所述第一模式,其中,所述第一计时器的时长为第一时长,所述第一时刻为所述通信装置进入所述第一模式的时刻,或者所述通信装置向所述第二设备指示所述通信装置处于第一模式的时刻。
可选地,所述处理单元1410还用于:在第二时刻启动第二计时器,在所述第二计时器超时之前,所述处理单元不再向所述第二设备指示所述通信装置处于所述第一模式,其中,所述第二计时器的时长为第二时长,所述第二时刻为所述通信装置进入所述第一模式的时刻,或者所述处理单元向所述第二设备指示所述通信装置处于第一模式的时刻。
可选地,所述处理单元1410还用于:在第三时刻启动第三计时器,在所述第三计时器超时之后,所述通信装置退出所述第一模式,其中,所述第三计时器的时长为第三时长,所述第三时刻为所述通信装置进入所述第一模式的时刻,或者所述处理单元向所述第二设备指示所述通信装置处于第一模式的时刻。
可选地,所述处理单元1410还用于:从所述第二设备获知所述通信装置在所述第一模式下能够支持的业务。
可选地,所述第二设备为核心网设备;所述处理单元1410具体用于通过所述收发单元向所述核心网设备发送注册请求消息,通过所述注册请求消息指示所述通信装置处于所述第一模式。
可选地,所述第二设备为核心网设备,所述收发单元1420具体用于:从所述核心网设备接收注册接受消息或注册拒绝消息,所述注册接受消息或所述注册拒绝消息包括所述协议信息;或者,通过所述通信装置与接入网设备之间的数据无线承载DRB,从所述核心网设备接收所述协议信息。
可选地,所述第二设备为接入网设备;所述处理单元1410具体用于通过所述收发单元利用无线资源控制RRC连接向所述接入网设备发送RRC消息,通过所述RRC消息指示所述通信装置处于所述第一模式;所述收发单元1420具体用于通过所述通信装置与所述接入网设备之间的DRB,从所述接入网设备接收所述协议信息。
可选地,所述第二设备为接入网设备;所述处理单元1410具体用于通过所述收发单元1420向所述接入网设备发送RRC建立请求消息,通过所述RRC建立请求消息指示所述通信装置处于所述第一模式;所述收发单元1420具体用于:通过所述通信装置与所述接入网设备之间的DRB,从所述接入网设备接收所述协议信息。
可选地,所述收发单元1420还用于:向所述核心网设备发送PDU会话建立请求消息;从所述核心网设备接收PDU会话建立接受消息,所述PDU会话建立接受消息包括所述用于建立用户面连接的参数;所述处理单元1410还用于根据所述用于用户面连接的参数建立用户面连接,所述用户面连接对应所述DRB。
可选地,所述第二设备为接入网设备;所述处理单元1410具体用于通过所述收发单元向所述接入网设备发送无线资源控制RRC建立请求消息,通过所述RRC建立请求消息指示所述通信装置处于所述第一模式;
所述收发单元1420具体用于从所述接入网设备接收RRC响应消息,所述RRC响应消息包括所述协议信息。
在一种可能的设计中,该装置1400可对应于上文方法实施例中的第二设备或者网络 设备或者接入网设备或者核心网设备或者AMF或者RAN,例如,可以为AMF,或者配置于AMF中的芯片,又例如可以为RAN,或者配置与RAN中的芯片。该装置1400用于执行上述方法200-方法1300中第二设备或者网络设备或者接入网设备或者核心网设备或者AMF或者RAN对应的各个步骤或流程。
具体地,处理单元1410,用于获知所述第一设备处于第一模式,所述通信装置当前的协议版本与所述第一设备当前的协议版本无法兼容;收发单元1420,用于向所述第一设备发送协议信息,所述协议信息用于所述第一设备更新当前的协议版本。
可选地,所述处理单元1410具体用于通过所述收发单元1420从所述第一设备接收第一指示信息,所述第一指示信息用于指示所述第一设备处于所述第一模式。
可选地,所述处理单元1410具体用于通过所述收发单元1420从所述第一设备接收所述第一设备当前的芯片信息。和/或,
可选地,所述处理单元1410具体用于通过所述收发单元1420从所述第一设备接收所述第一设备当前的版本信息,所述第一设备当前的版本信息用于指示所述第一设备当前的协议版本。
可选地,所述处理单元1410还用于:根据所述通信装置当前的协议版本确定所述第一设备所需的协议版本;根据所述第一设备所需的协议版本获取所述协议信息。
可选地,若所述收发单元1420从所述第一设备接收到所述第一设备当前的版本信息,所述处理单元1410具体用于:若所述第一设备的当前的版本信息指示的协议版本与所述通信装置当前的协议版本不兼容,将所述通信装置当前的协议版本确定为所述第一设备所需的协议版本。
可选地,所述处理单元1410具体用于通过所述收发单元1420向第三设备发送请求消息,所述请求消息用于向所述第三设备请求协议信息;所述处理单元1410具体用于通过所述收发单元1420从所述第三设备接收所述协议信息。
可选地,所述请求消息包括所述第一设备所需的协议版本,和/或,若所述收发单元1420从所述第一设备接收到所述第一设备当前的芯片信息,则所述请求消息包括所述第一设备当前的芯片信息。
可选地,所述处理单元1410还用于:在第四时刻启动第四计时器,在所述第四计数器超时之前,所述处理单元从所述第一设备再次获知所述第一设备处于第一模式后不再向所述第一设备发送所述协议信息,其中,所述第四计时器的时长为第四时长,所述第四时刻为所述处理单元确定所述第一设备处于所述第一模式的时刻。
可选地,所述处理单元1410还用于:向所述第一设备指示所述第一设备在所述第一模式下能够支持的业务。
可选地,所述第一设备为终端设备,所述处理单元1410具体用于通过所述收发单元1420从所述终端设备接收注册请求消息,通过所述注册请求消息指示所述终端设备处于所述第一模式。
可选地,所述第一设备为终端设备,所述收发单元1420具体用于向所述终端设备发送注册接受消息或者注册拒绝消息,所述注册接受消息或者所述注册拒绝消息包括所述协议信息;或者,所述收发单元1420具体用于通过接入网设备与所述终端设备的数据无线承载DRB,向所述终端设备发送所述协议信息。
可选地,所述第一设备为终端设备;所述处理单元1410具体用于通过所述收发单元1420利用无线资源控制RRC连接从所述终端设备接收RRC消息,通过所述RRC消息指示所述终端设备处于所述第一模式;所述收发单元1420具体用于通过所述通信装置与所述终端设备之间的DRB,向所述终端设备发送所述协议信息。
可选地,所述第一设备为终端设备;所述处理单元1410具体用于通过所述收发单元1420从所述终端设备接收RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;所述收发单元1420具体用于通过所述通信装置与所述终端设备之间的DRB,向所述终端设备发送所述协议信息。
可选地,所述收发单元1420还用于:从所述终端设备接收PDU会话建立请求消息;向所述终端设备发送PDU会话建立接受消息,所述PDU会话建立接受消息包括所述用于建立用户面连接的参数,所述用户面连接对应所述DRB。
可选地,所述处理单元1410还用于生成所述用于建立用户面连接的参数;所述收发单元1420还用于向所述终端设备发送所述用于建立用户面连接的参数,所述用户面连接对应所述DRB。
可选地,所述第一设备为终端设备;所述处理单元1410具体用于通过所述收发单元1420从所述终端设备接收RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;所述收发单元1420具体用于向所述终端设备发送RRC响应消息,所述RRC响应消息包括所述协议信息。
应理解,这里的装置1400以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,装置1400可以具体为上述实施例中的第一设备或者终端设备或者UE,可以用于执行上述方法实施例中与第一设备或者终端设备或者UE对应的各个流程和/或步骤,或者,装置1400可以具体为上述实施例中的第二设备或者网络设备或者AMF或者RAN,可以用于执行上述方法实施例中与第二设备或者网络设备或者AMF或者RAN对应的各个流程和/或步骤,为避免重复,在此不再赘述。
上述各个方案的装置1400具有实现上述方法中第一设备或者终端设备或者UE所执行的相应步骤的功能,或者,上述各个方案的装置1400具有实现上述方法中第二设备或者网络设备或者AMF或者RAN所执行的相应步骤的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块;例如通信单元可以由收发机替代(例如,通信单元中的发送单元可以由发送机替代,通信单元中的接收单元可以由接收机替代),其它单元,如处理单元等可以由处理器替代,分别执行各个方法实施例中的收发操作以及相关的处理操作。
此外,上述通信单元还可以是收发电路(例如可以包括接收电路和发送电路),处理单元可以是处理电路。在本申请的实施例,图14中的装置可以是前述实施例中的终端设备或网络设备,也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。其中,通信单元可以是输入输出电路、通信接口;处理单元为该芯片上集成的处理器或者微处理器或者集成电路。在此不做限定。
图15示出了本申请实施例提供的通信装置1500。该通信装置1500包括处理器1510和收发器1520。其中,处理器1510和收发器1520通过内部连接通路互相通信,该处理器1510用于执行指令,以控制该收发器1520发送信号和/或接收信号。
可选地,该通信装置1500还可以包括存储器1530,该存储器1530与处理器1510、收发器1520通过内部连接通路互相通信。该存储器1530用于存储指令,该处理器1510可以执行该存储器1530中存储的指令。在一种可能的实现方式中,通信装置1500用于实现上述方法实施例中的第一设备或者终端设备或者UE对应的各个流程和步骤。在另一种可能的实现方式中,装置1500用于实现上述方法实施例中的第二设备或者网络设备或者AMF或者RAN对应的各个流程和步骤。
应理解,通信装置1500可以具体为上述实施例中的第一设备或者终端设备或者UE或者第二设备或者网络设备或者AMF或者RAN,也可以是芯片或者芯片系统。对应的,该收发器1520可以是该芯片的收发电路,在此不做限定。具体地,该装置1500可以用于执行上述方法实施例中与第一设备或者终端设备或者UE或者第二设备或者网络设备或者AMF或者RAN对应的各个步骤和/或流程。可选地,该存储器1530可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器1510可以用于执行存储器中存储的指令,并且当该处理器1510执行存储器中存储的指令时,该处理器1510用于执行上述与第一设备或者终端设备或者UE或者第二设备或者网络设备或者AMF或者RAN对应的方法实施例的各个步骤和/或流程。
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
应注意,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只 读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
根据本申请实施例提供的方法,本申请还提供一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行图2至图13所示的实施例第一设备或者终端设备或者UE或者第二设备或者网络设备或者AMF或者RAN所执行的各个步骤或流程。
根据本申请实施例提供的方法,本申请还提供一种计算机可读存储介质,该计算机可读存储介质存储有程序代码,当该程序代码在计算机上运行时,使得该计算机执行图2至图13所示的实施例中第一设备或者终端设备或者UE或者第二设备或者网络设备或者AMF或者RAN所执行的各个步骤或流程。
根据本申请实施例提供的方法,本申请还提供一种通信系统,其包括前述的一个或多个第一设备以及一个或多个第二设备。或者通信系统包括前述的一个或多个终端设备以及一个或多个网络设备。或者通信系统包括前述的一个或多个AMF以及一个或多个UE。或者通信系统包括前述的一个或多个RAN以及一个或多个UE。或者通信系统包括图2至图13所示的实施例中的至少两个网元。
上述各个装置实施例中和方法实施例中的图2至图13所示的实施例中完全对应,由相应的模块或单元执行相应的步骤,例如收发单元(收发器)执行方法实施例中接收或发送的步骤,除发送、接收外的其它步骤可以由处理单元(处理器)执行。具体单元的功能可以基于相应的方法实施例。其中,处理器可以为一个或多个。
在本申请中,“指示”可以包括直接指示和间接指示,也可以包括显式指示和隐式指示。将某一信息所指示的信息称为待指示信息,则具体实现过程中,对待指示信息进行指示的方式可以有很多种,例如但不限于,可以直接指示待指示信息,如指示待指示信息本身或者该待指示信息的索引等。也可以通过指示其他信息来间接指示待指示信息,其中该其他信息与待指示信息之间存在关联关系。还可以仅仅指示待指示信息的一部分,而待指示信息的其他部分则是已知的或者提前约定的。例如,还可以借助预先约定(例如协议规定)的各个信息的排列顺序来实现对特定信息的指示,从而在一定程度上降低指示开销。
在本申请的实施例中,各术语及英文缩略语均为方便描述而给出的示例性举例,不应对本申请构成任何限定。本申请并不排除在已有或未来的协议中定义其它能够实现相同或相似功能的术语的可能。
在本申请的实施例中,第一、第二以及各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围。例如,区分不同的网络切片、区分不同的网络设备等。
应理解,本文中的“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/ 或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b和c中的至少一项(个),可以表示:a,或b,或c,或a和b,或a和c,或b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以基于前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
在上述实施例中,各功能单元的功能可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令(程序)。在计算机上加载和执行所述计算机程序指令(程序)时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有 技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (30)

  1. 一种通信方法,其特征在于,包括:
    第一设备向第二设备指示所述第一设备处于第一模式,所述第一设备当前的协议版本与所述第二设备当前的协议版本无法兼容;
    所述第一设备从所述第二设备接收协议信息,所述协议信息用于所述第一设备更新当前的协议版本;
    所述第一设备基于所述协议信息更新所述第一设备当前的协议版本。
  2. 根据权利要求1所述的通信方法,其特征在于,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
    所述第一设备向所述第二设备发送第一指示信息,所述第一指示信息用于指示所述第一设备处于所述第一模式。
  3. 根据权利要求1或2所述的通信方法,其特征在于,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
    所述第一设备向所述第二设备发送所述第一设备当前的芯片信息;和/或,
    所述第一设备向所述第二设备发送所述第一设备当前的协议版本信息,所述第一设备当前的版本信息用于指示所述第一设备当前的协议版本。
  4. 根据权利要求1至3中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    所述第一设备在第一时刻启动第一计时器,在所述第一计时器超时之前,所述第一设备不再反复进入所述第一模式,其中,所述第一计时器的时长为第一时长,所述第一时刻为所述第一设备进入所述第一模式的时刻,或者所述第一设备向所述第二设备指示所述第一设备处于第一模式的时刻;或者所述通信方法还包括:
    所述第一设备在第二时刻启动第二计时器,在所述第二计时器超时之前,所述第一设备不再向所述第二设备指示所述第一设备处于所述第一模式,其中,所述第二计时器的时长为第二时长,所述第二时刻为所述第一设备进入所述第一模式的时刻,或者所述第一设备向所述第二设备指示所述第一设备处于第一模式的时刻;或者所述通信方法还包括:
    所述第一设备在第三时刻启动第三计时器,在所述第三计时器超时之后,所述第一设备退出所述第一模式,其中,所述第三计时器的时长为第三时长,所述第三时刻为所述第一设备进入所述第一模式的时刻,或者所述第一设备向所述第二设备指示所述第一设备处于第一模式的时刻。
  5. 根据权利要求1至4中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    所述第一设备从所述第二设备获知所述第一设备在所述第一模式下能够支持的业务。
  6. 根据权利要求1至5中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为核心网设备,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
    所述终端设备向所述核心网设备发送注册请求消息,通过所述注册请求消息指示 所述终端设备处于所述第一模式。
  7. 根据权利要求1至6中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为核心网设备,所述第一设备从所述第二设备接收协议信息,包括:
    所述终端设备从所述核心网设备接收注册接受消息或注册拒绝消息,所述注册接受消息或所述注册拒绝消息包括所述协议信息;或者,
    所述终端设备通过所述终端设备与接入网设备之间的数据无线承载DRB,从所述核心网设备接收所述协议信息。
  8. 根据权利要求1至5中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为接入网设备;
    其中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
    所述终端设备通过无线资源控制RRC连接向所述接入网设备发送RRC消息,通过所述RRC消息指示所述终端设备处于所述第一模式;
    其中,所述第一设备从所述第二设备接收协议信息,包括:
    所述终端设备通过所述终端设备与所述接入网设备之间的DRB,从所述接入网设备接收所述协议信息。
  9. 根据权利要求1至5中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为接入网设备;
    其中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
    所述终端设备向所述接入网设备发送RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;
    其中,所述第一设备从所述第二设备接收协议信息,包括:
    所述终端设备通过所述终端设备与所述接入网设备之间的DRB,从所述接入网设备接收所述协议信息。
  10. 根据权利要求7至9中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    所述终端设备向所述核心网设备发送PDU会话建立请求消息;
    所述终端设备从所述核心网设备接收PDU会话建立接受消息,所述PDU会话建立接受消息包括所述用于建立用户面连接的参数;
    所述终端设备根据所述用于用户面连接的参数建立用户面连接,所述用户面连接对应所述DRB。
  11. 根据权利要求1至5中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为接入网设备;
    其中,所述第一设备向第二设备指示所述第一设备处于第一模式,包括:
    所述终端设备向所述接入网设备发送无线资源控制RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;
    其中,所述第一设备从所述第二设备接收协议信息,包括:
    所述终端设备从所述接入网设备接收RRC响应消息,所述RRC响应消息包括所述协议信息。
  12. 一种通信方法,其特征在于,包括:
    第二设备获知第一设备处于第一模式,所述第二设备当前的协议版本与所述第一设备当前的协议版本无法兼容;
    所述第二设备向所述第一设备发送协议信息,所述协议信息用于所述第一设备更新当前的协议版本。
  13. 根据权利要求12所述的通信方法,其特征在于,所述第二设备获知所述第一设备处于第一模式,包括:
    所述第二设备从所述第一设备接收第一指示信息,所述第一指示信息用于指示所述第一设备处于所述第一模式。
  14. 根据权利要求12或13所述的通信方法,其特征在于,所述第二设备获知所述第一设备处于第一模式,包括:
    所述第二设备从所述第一设备接收所述第一设备当前的芯片信息;和/或,
    所述第二设备从所述第一设备接收所述第一设备当前的版本信息,所述第一设备当前的版本信息用于指示所述第一设备当前的协议版本。
  15. 根据权利要求12至14中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    所述第二设备根据所述第二设备当前的协议版本确定所述第一设备所需的协议版本;
    所述第二设备根据所述第一设备所需的协议版本获取所述协议信息。
  16. 根据权利要求15所述的通信方法,其特征在于,若所述第二设备从所述第一设备接收到所述第一设备当前的版本信息,所述第二设备根据所述第二设备当前的协议版本确定所述第一设备所需的版本信息,包括:
    若所述第一设备的当前的版本信息指示的协议版本与所述第二设备当前的协议版本不同,所述第二设备将所述第二设备当前的协议版本确定为所述第一设备所需的协议版本。
  17. 根据权利要求15或16所述的通信方法,其特征在于,所述第二设备根据所述第一设备所需的协议版本获取所述协议信息,包括:
    所述第二设备向第三设备发送请求消息,所述请求消息用于向所述第三设备请求所述协议信息;
    所述第二设备从所述第三设备接收所述协议信息。
  18. 根据权利要求17所述的通信方法,其特征在于,所述请求消息包括所述第一设备所需的协议版本,和/或,若所述第二设备从所述第一设备接收到所述第一设备当前的芯片信息,则所述请求消息包括所述第一设备当前的芯片信息。
  19. 根据权利要求12至18中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    在第四时刻启动第四计时器,在所述第四计数器超时之前,所述第二设备从所述第一设备再次获知所述第一设备处于第一模式后不再向所述第一设备发送所述协议信息,其中,所述第四计时器的时长为第四时长,所述第四时刻为所述第二设备确定所述第一设备处于所述第一模式的时刻。
  20. 根据权利要求12至19中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    所述第二设备向所述第一设备指示所述第一设备在所述第一模式下能够支持的业务。
  21. 根据权利要求12至20中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为核心网设备,所述第二设备获知所述第一设备处于第一模式,包括:
    所述核心网设备从所述终端设备接收注册请求消息,通过所述注册请求消息指示所述终端设备处于所述第一模式。
  22. 根据权利要求12至21中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为核心网设备,所述第二设备向所述第一设备发送协议信息,包括:
    所述核心网设备向所述终端设备发送注册接受消息或者注册拒绝消息,所述注册接受消息或者所述注册拒绝消息包括所述协议信息;或者,
    所述核心网设备通过接入网设备与所述终端设备的数据无线承载DRB,向所述终端设备发送所述协议信息。
  23. 根据权利要求12至20中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为接入网设备;
    其中,所述第二设备获知所述第一设备处于第一模式,包括:
    所述接入网设备通过无线资源控制RRC连接从所述终端设备接收RRC消息,通过所述RRC消息指示所述终端设备处于所述第一模式;
    其中,所述第二设备向所述第一设备发送协议信息,包括:
    所述接入网设备通过所述接入网设备与所述终端设备之间的DRB,向所述终端设备发送所述协议信息。
  24. 根据权利要求12至20中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为接入网设备;
    其中,所述第二设备获知所述第一设备处于第一模式,包括:
    所述接入网设备从所述终端设备接收RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;
    其中,所述第二设备向所述第一设备发送协议信息,包括:
    所述接入网设备通过所述接入网设备与所述终端设备之间的DRB,向所述终端设备发送所述协议信息。
  25. 根据权利要求22至24中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    所述第二设备从所述终端设备接收PDU会话建立请求消息;
    所述第二设备向所述终端设备发送PDU会话建立接受消息,所述PDU会话建立接受消息包括所述用于建立用户面连接的参数,所述用户面连接对应所述DRB。
  26. 根据权利要求22至24中任一项所述的通信方法,其特征在于,所述通信方法还包括:
    所述第二设备生成所述用于建立用户面连接的参数;
    所述第二设备向所述终端设备发送所述用于建立用户面连接的参数,所述用户面连接对应所述DRB。
  27. 根据权利要求12至20中任一项所述的通信方法,其特征在于,所述第一设备为终端设备,所述第二设备为接入网设备;
    其中,所述第二设备获知所述第一设备处于第一模式,包括:
    所述接入网设备从所述终端设备接收RRC建立请求消息,通过所述RRC建立请求消息指示所述终端设备处于所述第一模式;
    其中,所述第二设备向所述第一设备发送协议信息,包括:
    所述接入网设备向所述终端设备发送RRC响应消息,所述RRC响应消息包括所述协议信息。
  28. 一种通信装置,其特征在于,包括用于执行权利要求1至27中任一项所述的方法中的单元。
  29. 一种通信装置,其特征在于,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述通信装置执行权利要求1-27中任一项所述的方法。
  30. 一种计算机可读存储介质,用于存储计算机程序,其特征在于,所述计算机程序包括用于实现权利要求1-27中任一项所述的方法的指令。
PCT/CN2022/076884 2021-04-25 2022-02-18 通信方法和通信装置 WO2022227805A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22794285.1A EP4311203A4 (en) 2021-04-25 2022-02-18 COMMUNICATION METHOD AND COMMUNICATION APPARATUS
US18/493,200 US20240056516A1 (en) 2021-04-25 2023-10-24 Communication method and communication apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110449312.0 2021-04-25
CN202110449312.0A CN115250298A (zh) 2021-04-25 2021-04-25 通信方法和通信装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/493,200 Continuation US20240056516A1 (en) 2021-04-25 2023-10-24 Communication method and communication apparatus

Publications (1)

Publication Number Publication Date
WO2022227805A1 true WO2022227805A1 (zh) 2022-11-03

Family

ID=83697427

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/076884 WO2022227805A1 (zh) 2021-04-25 2022-02-18 通信方法和通信装置

Country Status (4)

Country Link
US (1) US20240056516A1 (zh)
EP (1) EP4311203A4 (zh)
CN (1) CN115250298A (zh)
WO (1) WO2022227805A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388881A (zh) * 2007-09-13 2009-03-18 华为技术有限公司 通信协议版本协商的方法、网元及系统
CN101577632A (zh) * 2008-05-05 2009-11-11 深圳华为通信技术有限公司 设备管理的保障方法、装置和系统
CN109981522A (zh) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 通信协议的兼容方法及装置
CN110113207A (zh) * 2019-05-08 2019-08-09 广州创想云科技有限公司 一种基于物联网的协议更新方法、装置、设备和存储介质
CN111061504A (zh) * 2019-11-13 2020-04-24 广州视源电子科技股份有限公司 多系统版本匹配方法、系统、服务端、客户端、电子设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8983532B2 (en) * 2009-12-30 2015-03-17 Blackberry Limited Method and system for a wireless communication device to adopt varied functionalities based on different communication systems by specific protocol messages
CN103068070B (zh) * 2012-12-31 2015-08-26 华为技术有限公司 一种协议版本的协商方法、移动终端、基站和通信系统
US9730056B2 (en) * 2015-08-14 2017-08-08 Telefonaktiebolaget Lm Ericsson (Publ) System, method, and apparatus for facilitating selection of a serving node

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388881A (zh) * 2007-09-13 2009-03-18 华为技术有限公司 通信协议版本协商的方法、网元及系统
CN101577632A (zh) * 2008-05-05 2009-11-11 深圳华为通信技术有限公司 设备管理的保障方法、装置和系统
CN109981522A (zh) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 通信协议的兼容方法及装置
CN110113207A (zh) * 2019-05-08 2019-08-09 广州创想云科技有限公司 一种基于物联网的协议更新方法、装置、设备和存储介质
CN111061504A (zh) * 2019-11-13 2020-04-24 广州视源电子科技股份有限公司 多系统版本匹配方法、系统、服务端、客户端、电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4311203A4

Also Published As

Publication number Publication date
EP4311203A4 (en) 2024-02-28
US20240056516A1 (en) 2024-02-15
CN115250298A (zh) 2022-10-28
EP4311203A1 (en) 2024-01-24

Similar Documents

Publication Publication Date Title
TWI717904B (zh) 映射演進封包系統承載上下文之處理方法及其使用者設備
KR101958859B1 (ko) 이동통신 시스템 및 그 이동통신 시스템에서 체감 성능을 개선하기 위한 정보 처리 방법
US20220330361A1 (en) Method for establishing connection and obtaining relay service code and communications apparatus
AU2019250861A1 (en) Data Transmission Method and Apparatus
WO2019144935A1 (zh) 通信方法和通信装置
EP3550886B1 (en) Voice over ims incoming session
EP4044685A1 (en) Network access method and communication apparatus
CN110915245A (zh) 在无线通信系统中利用ladn的方法和设备
JP7035082B2 (ja) ユーザプレーンリンク確立方法、基地局、およびモビリティ管理デバイス
CN110557846B (zh) 一种数据传输方法、终端设备及网络设备
WO2021164720A1 (zh) 重建立的方法和通信装置
EP4221005A1 (en) Multipath transmission method and communication apparatus
JP2022530961A (ja) ハンドオーバー処理方法および装置
WO2013181805A1 (zh) 回到长期演进网络的方法、移动交换中心及系统
CN113938911A (zh) 一种通信方法、设备及系统
CN111385851A (zh) 一种通信方法及装置
US20230018378A1 (en) Parameter configuration method, apparatus and system, device and storage medium
WO2021088007A1 (zh) 无线通信的方法、终端设备和网络设备
WO2022227805A1 (zh) 通信方法和通信装置
CN114363975A (zh) 数据通信方法、装置、电子设备及存储介质
WO2024032041A1 (zh) 通信方法和通信装置
CN113543157B (zh) 网络资源控制的方法及设备
WO2023015973A1 (zh) 一种网络切片准入控制方法和装置
WO2023164849A1 (zh) 无线通信方法、装置、设备、存储介质及程序产品
WO2024027626A1 (zh) QoE测量配置方法、主节点及辅节点

Legal Events

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

Ref document number: 22794285

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022794285

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022794285

Country of ref document: EP

Effective date: 20231018

NENP Non-entry into the national phase

Ref country code: DE