Integrity protection using message authentication codes of varying lengths
In the wireless communication system, the base station notifies the user equipment to use a consistent message authentication code length for integrity protection, which solves the compatibility issues caused by different MAC lengths and ensures communication stability and message authenticity verification.
Patent Information
- Application Number
- CN201980090627.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-29
- Filing Date
- 2019-12-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-12-30
AI Technical Summary
Existing wireless communication systems may cause compatibility issues when using different message authentication code (MAC) lengths, making communication between base stations and user equipment impossible. Especially in 5G networks, transmitting equipment and receiving equipment use different MACs. length, the message integrity cannot be verified, causing the message to be ignored or discarded.
The base station decides and notifies the user equipment to use a specific message authentication code length for integrity protection. After receiving the instruction, the user equipment generates and transmits a message with the specified MAC length to ensure that the receiving end and the sending end use the same MAC length for verification.
It achieves MAC length consistency in wireless communication between user equipment and base stations, avoids communication interruptions due to MAC length mismatch, enhances the integrity protection capability of the system, and ensures message authenticity verification.
Smart Images

Figure CN113366800B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to integrity protection of wireless communications, and more particularly, to a wireless communication system supporting two or more different message authentication code lengths. Background Art
[0002] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. No work by the presently named inventors, to the extent described in this background section, and insofar as it may not otherwise qualify as prior art at the time of filing, is admitted, either expressly or impliedly, as prior art to the present disclosure.
[0003] Wireless communication networks often use integrity protection techniques to prevent or mitigate network attacks, such as "forgery" attacks that mimic valid messages. For example, in some cellular systems, a transmitting device uses a specific integrity protection algorithm and input parameters to calculate a message authentication code (or "MAC", not to be confused with the more widely used acronym "Media Access Control") and sends the MAC along with the message being transmitted. A receiving device calculates an expected MAC using the same algorithm and input parameters as the transmitting device, and verifies the data integrity of the message by comparing the expected MAC to the MAC in the received message.
[0004] Longer MACs increase the number of possible MAC values, which in turn reduces the likelihood that an attacker will be able to generate a MAC that matches the expected MAC. For example, if the legitimate (non-attacker) transmitting device uses a 32-bit MAC, the "correct" MAC would be 2 32 (approximately 4 billion) possible sequences. While this is a large number, an attacker device could eventually succeed by continually flooding the network with messages using different MACs. However, a 256-bit MAC results in 2 256 possible sequences, making it nearly impossible to match an expected MAC in any reasonable time frame.
[0005] The Third Generation Partnership Project (3GPP) TS 33.501v15.2.0 specifies that for fifth generation (5G) networks, the transmission equipment calculates a 32-bit access stratum MAC ("MAC-I") or non-access stratum (NAS)-MAC ("NAS-MAC") for control plane and user plane messages using a specific integrity protection algorithm and a set of input parameters. To improve security, 3GPP initiated a study to determine whether the MAC-I and NAS-MAC could be increased to 64, 128, or even 256 bits without excessively degrading system performance. However, even if such an increase does not significantly degrade system performance, it may introduce incompatibility issues caused by different devices using different MAC lengths.
[0006] For example, when transmitting a Packet Data Convergence Protocol (PDCP) Protocol Data Unit (PDU) including a control plane Radio Resource Control (RRC) message, a 5G base station (e.g., gNB) may use a 256-bit algorithm to calculate a MAC-I to attach to the RRC message, but an otherwise compatible user equipment (commonly referred to by the acronym UE, standing for "User Equipment") receiving the PDCP PDU may use a 32-bit algorithm to calculate the expected MAC-I (referred to as "XMAC-I"). Alternatively, the transmitting base station may calculate the MAC-I using a 32-bit algorithm, while the receiving UE calculates the XMAC-I using a 256-bit algorithm. In both scenarios, the receiving UE cannot verify / authenticate the message because the XMAC-I does not match the MAC-I, and therefore ignores / discards the message. Ultimately, in such a scenario, communication between the base station and the UE is not possible. Summary of the invention
[0007] At some point during an exchange of messages with a user device of the present disclosure, a base station of the present disclosure (e.g., a gNB) decides to use a particular message authentication code (MAC) length for integrity protection (e.g., in the access layer). The decision may be based at least in part on the MAC length capabilities of the user device. The user device itself may inform the base station of the user device MAC length capabilities, or the core network (e.g., 5GC) may inform the base station of these capabilities after learning the user device MAC length capabilities from a different network element, such as another base station or a registration server (e.g., via the Authentication Server Function or "AUSF" of the 5GC). Alternatively, the core network may decide to use a particular MAC length and then configure the base station to use that MAC length.
[0008] After the base station determines (or is notified of) the expected MAC length, the base station sends a message indicating the MAC length to the user equipment. For example, the message may be an RRC message (e.g., an RRC reconfiguration message) or a security mode command message contained in a PDCP PDU. In some implementations, in order to provide integrity protection for a message indicating the expected MAC length, the message includes MACs of different lengths. For example, the user equipment may initially default to a shorter MAC length, and the base station may provide integrity protection for the message indicating the MAC length by calculating and attaching a MAC with a shorter length. In such an implementation, the user equipment verifies the shorter MAC attached to the message, for example, by calculating an expected MAC with a shorter MAC length and comparing the expected MAC with the attached MAC. After the user equipment receives a message indicating the expected MAC length and may verify a MAC of another (e.g., shorter) length attached to the message, the user equipment uses the MAC of the indicated MAC length to provide integrity protection for one or more additional messages sent by the user equipment to the base station and / or received from the base station.
[0009] In some implementations, a base station message indicates an expected MAC length dedicated to user plane messages, in which case the user equipment uses the indicated MAC length for user plane messages (e.g., PDCP PDUs sent or received via a data radio bearer (DRB)), but not necessarily for control plane messages (e.g., RRC messages sent or received via a signaling radio bearer (SRB)). For example, the user equipment may continue to use the default (e.g., shorter) MAC length for control plane messages unless the base station sends a separate message indicating that the new MAC length will be used for control plane messages. In one such implementation, the base station sends a security command message indicating that the new MAC length will be used for user plane messages, and a separate RRC message (e.g., an RRC reconfiguration message) indicating that the new MAC length will also be used for control plane messages. In other implementations, the base station message indicates that the MAC length will be used for both user plane messages and control plane messages.
[0010] One example implementation of these techniques is a method in a user device that supports multiple MAC lengths for integrity protection of wireless communications. The method includes receiving, by processing hardware, a first message including an information element from a base station; determining, by the processing hardware based on the information element, that a first MAC length of the multiple MAC lengths is to be used for integrity protection; and, after determining that the first MAC length is to be used for integrity protection, generating, by the processing hardware, a second message including a MAC having the first MAC length. The method also includes transmitting the second message to the base station.
[0011] Another example implementation of these techniques is a method in a base station that supports multiple MAC lengths for integrity protection of wireless communications. The method includes determining, by processing hardware, that a first MAC length among multiple MAC lengths will be used for integrity protection; generating, by processing hardware, a first message including an information element indicating that the first MAC length will be used for integrity protection, and transmitting the first message to a user device. The method also includes receiving, by processing hardware, a second message including a MAC from the user device after transmitting the first message. The method also includes calculating, by processing hardware, an expected MAC having a first MAC length, and comparing, by processing hardware, the expected MAC with a MAC in a second message to verify that the MAC in the second message is a valid MAC.
[0012] Another example implementation of these techniques is a non-transitory medium having instructions stored thereon. When executed by processing hardware of a user device supporting multiple MAC lengths for integrity protection of wireless communications, the instructions cause the user device to receive a first message including an information element from a base station; determine, based on the information element, that a first MAC length of the multiple MAC lengths is to be used for integrity protection; and, after determining that the first MAC length is to be used for integrity protection, generate a second message including a MAC having the first MAC length. The instructions also cause the user device to transmit a second message to the base station.
[0013] Another example implementation of these techniques is a method in one or more core network elements (e.g., one or more servers and / or other computing devices). The method includes receiving, by processing hardware, a first message including a first information element from a first base station or a second base station. The method also includes determining, by processing hardware based on the first information element, that the user device supports a first MAC length among a plurality of MAC lengths supported by the first base station for integrity protection. The method also includes generating, by processing hardware, a second message including a second information element indicating that the first MAC length will be used for integrity protection of wireless communications between the first base station and the user device. The method also includes transmitting a second message to the first base station to configure the first base station to use the first MAC length for wireless communications with the user device. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a block diagram of an example wireless communication network in which user equipment and base stations of the present disclosure support multiple message authentication code (MAC) lengths for integrity protection;
[0015] Figure 2A-9B Describes what might happen in Figure 1 Various message delivery sequences related to MAC transmission in wireless communication networks;
[0016] Fig.10is a flow chart of an example method for applying an appropriate MAC length for integrity protection from the perspective of a user equipment; and
[0017] Fig.11 is a flow chart of an example method for applying an appropriate MAC length for integrity protection from the perspective of a base station. DETAILED DESCRIPTION
[0018] In general, the disclosed techniques allow user equipment (UE) and base stations to use consistent message authentication code (MAC) lengths for integrity protection, thereby allowing authentication / verification of messages in a wireless communication network. Therefore, the disclosed techniques avoid scenarios where communication is not possible due to lack of authentication. In addition, the disclosed techniques can avoid suboptimal system designs in which all user equipment and base stations must use a default, relatively short MAC length, regardless of their MAC length capabilities. Therefore, in scenarios where both user equipment and base stations support more robust integrity protection, integrity protection can be enhanced.
[0019] The following discusses these techniques with reference to examples of fifth generation (5G) radio access ("NR") networks and sometimes evolved universal terrestrial radio access (EUTRA) networks. In addition, these examples relate to a 5G core network (5GC). However, the techniques of the present disclosure may be applied to other radio access and / or core network technologies.
[0020] First reference Figure 1 , UE 102 may operate in an example wireless communication network 100. Wireless communication network 100 includes base stations 104-1 and 104-2 associated with respective cells 106-1 and 106-2. Figure 1 Each of base stations 104-1 and 104-2 is depicted as serving only one cell, but it should be understood that base station 104-1 and / or base station 104-2 may also cover a plurality of cells. Figure 1 In general, wireless communication network 100 may include any number of base stations, and each of the base stations may cover one, two, three, or any other suitable number of cells.
[0021] For example, base station 104-1 may operate as a 5G Node B (gNB), and base station 104-2 may operate as a next generation evolved Node B (ng-eNB). Figure 1 As shown, both base station 104-1 and base station 104-2 are connected to 5GC 110, which in turn is connected to Internet 112. In other scenarios, base station 104-2 may not be directly connected to 5GC 110 (e.g., base station 104-2 may be connected to Figure 1106-2). In various alternative implementations and / or scenarios, the wireless communication network 100 does not include the base station 104-2 and / or the cell 106-2, or the base station 104-2 is another gNB and the cell 106-2 is another NR cell, etc.
[0022] UE 102 may support an NR air interface and exchange messages with base station 104-1 when operating in NR cell 106-1. In some implementations, UE 102 may also support an EUTRA air interface and exchange messages with base station 104-1 via 5G NR when operating in NR cell 106-1, and exchange messages with base station 104-2 via EUTRA when operating in EUTRA cell 106-2. In other implementations, UE 102 may only support EUTRA. As discussed below, UE 102 may be any suitable device capable of wireless communication.
[0023] The UE 102 is equipped with processing hardware 120, which may include one or more general-purpose processors (e.g., CPUs) and non-transitory computer-readable memory storing instructions that the one or more general-purpose processors can execute. Additionally or alternatively, the processing hardware 120 may include a dedicated processing unit, such as, for example, a wireless communication chipset. The processing hardware 120 includes a packet data convergence protocol (PDCP) controller 122. The PDCP controller 122 is responsible for inbound messaging, outbound messaging, and internal processes at corresponding layers of the wireless communication protocol stack 130. For example, the PDCP controller 122 is configured to encapsulate and interpret PDCP protocol data units (PDUs) embedded with messages from other layers, such as radio resource control (RRC) messages. Although Figure 1 Not shown, the processing hardware 120 may also include a controller for each of a plurality of other layers, such as an RRC controller and / or a mobility management (MM) controller.
[0024] The PDCP controller 122 may be implemented using any suitable combination of hardware, software, and / or firmware. In one example implementation, the PDCP controller 122 is a set of instructions that define the corresponding components of the operating system of the UE 102, and one or more CPUs of the processing hardware 120 execute these instructions to perform the corresponding PDCP functions. In another implementation, the PDCP controller 122 is implemented using firmware as part of a wireless communication chipset.
[0025] Figure 1The protocol stack 130 shown in a simplified manner in FIG. 1 includes a physical layer 132 (usually abbreviated as PHY), a medium access control layer 134 (wherein the medium access control is not abbreviated as "MAC" here to avoid confusion), a radio link control (RLC) layer 136, a PDCP layer 138, an RRC layer 140, and possibly a service data adaptation protocol (SDAP) layer 141 as part of the access layer 142. The non-access layer (NAS) 150 of the protocol stack 130 includes, among other layers, one or more MM layers 160 for handling registration, attachment or tracking area update procedures.
[0026] like Figure 1 As further shown, the protocol stack 130 also supports high-level protocols 154 for various services and applications. For example, the high-level protocols 154 may include Internet Protocol (IP), Transmission Control Protocol, and User Datagram Protocol (UDP). The PDCP controller 122 is configured to encapsulate and interpret PDCP protocol data units (PDUs) embedded with data packets of high-level protocols (including the RRC layer 140 and the high-level protocols 154). The various layers 132, 134, 136, 138, 140, 141, 152, and 154 may be as follows Figure 1 However, it should be understood that in some implementations and / or situations, one or more of the layers depicted may be ordered in a manner that does not strictly conform to the order in which the layers are depicted. Figure 1 The sorting method shown operates.
[0027] The base station 104-1 is equipped with processing hardware 160, which may include one or more general-purpose processors (e.g., CPUs) and non-transitory computer-readable memory storing instructions that the one or more general-purpose processors can execute. Additionally or alternatively, the processing hardware 160 may include a dedicated processing unit, such as, for example, a wireless communication chipset. Similar to the processing hardware 120 of the UE 102, the processing hardware 160 includes a PDCP controller 162. Although the PDCP controller 122 of the UE 102 implements the functions of the PDCP layer 138 on the user equipment side, the PDCP controller 162 of the base station 104-1 implements the functions of the PDCP layer 138 on the base station side. Although Figure 1 Not shown, the processing hardware 160 may also include a controller for each of a plurality of other layers, such as an RRC controller and / or an MM controller.
[0028] The PDCP controller 162 may be implemented using any suitable combination of hardware, software, and / or firmware. In one example implementation, the PDCP controller 162 is a collection of instructions that define the corresponding components of the operating system of the base station 102, and one or more CPUs of the processing hardware 160 execute these instructions to perform the corresponding PDCP functions. In another implementation, the PDCP controller 162 is implemented using firmware that is part of a wireless communication chipset. In some implementations, the base station 104-2 includes processing hardware similar to the processing hardware 160 of the base station 104-1, but is specifically configured to operate in the EUTRA cell 106-2 instead of the NR cell 106-1. In other implementations, the base station 104-2 may be co-located with the base station 104-2 and share some of the processing hardware 160 of the base station 104-1.
[0029] To form a PDCP PDU for transmission, the PDCP controller 122 or the PDCP controller 162 prepends a PDCP header to a payload (e.g., a data packet or an RRC PDU including an RRC message) to be transmitted within the PDCP PDU, and to provide integrity protection, an access layer MAC (referred to herein as "MAC-I") is attached to the payload. For ease of explanation, references herein to the contents of a PDCP PDU may not explicitly refer to a PDCP header. Although various example implementations discussed below include a MAC-I at the end of the PDCP PDU, it should be understood that in other implementations, the MAC-I may instead be located at a different location within the PDCP PDU, or may be included in a data unit other than the PDCP PDU. In the following description, any reference to a PDCP PDU including or containing an RRC message is understood to mean that the PDCP PDU includes an RRC PDU, which in turn includes an RRC message.
[0030] The PDCP controller 122 or PDCP controller 162 calculates the MAC-I for the PDCP PDU by using an integrity algorithm that operates on various parameters with specific values, such as the "NIA" algorithm mentioned in 3GPP TS 38.331 v15.4.0. Upon receiving the PDCP PDU, the PDCP controller 122 or PDCP controller 162 uses the same (e.g., NIA) algorithm and calculates the "expected" MAC-I (referred to herein as XMAC-I) using the same parameters and parameter values if the sender / message is to be properly authenticated / verified. The PDCP controller 122 or PDCP controller 162 compares the XMAC-I with the MAC-I of the received PDCP PDU and verifies the authenticity of the message contained in the PDCP PDU if and only if the XMAC-I matches the MAC-I. For example, the UE 102 or base station 104-1 may ignore and / or discard messages that cannot be verified. In some implementations, the PDCP controller 122 or the PDCP controller 162 calculates the MAC-I or XMAC-I by using an integrity algorithm that operates on various parameters and a payload or operates on various parameters, a PDCP header, and a payload of a PDCP PDU.
[0031] For example, the NIA algorithm operates on (i.e., accepts as input) a "COUNT" parameter value, a "DIRECTION" parameter value, a "BEARER" parameter value, a "KEY" parameter value, and the message itself. The "DIRECTION" parameter has a binary value that reflects the direction of the transmission (e.g., "0" for uplink or "1" for downlink), while the "BEARER" parameter has a 5-bit value that reflects the radio bearer identification. In some implementations, the PDCP controller 122 can derive the KEY parameter value based on a security mode command message or an RRC reconfiguration message received from the base station 104-1. Similarly, the PDCP controller 162 can derive the KEY parameter value based on a security mode command message or an RRC reconfiguration message transmitted by the base station 104-1. In some implementations, the KEY parameter value is different for user plane and control plane messages.
[0032] As will be discussed in more detail below, the PDCP controller 122 of the UE 102 and the PDCP controller 162 of the base station 104-1 each support at least two MAC-I lengths, including a shorter MAC-I (referred to herein as a "short MAC-I") and a longer MAC-I (referred to herein as a "long MAC-I"). For example, the short MAC-I can be a 32-bit MAC-I, and the long MAC-I can be a 64-bit, 128-bit, or 256-bit MAC-I. For any given implementation or scenario discussed herein, it should be understood that each reference to a "short" MAC-I (or XMAC-I) represents a first constant bit length, and each reference to a "long" MAC-I (or XMAC-I) represents a second constant bit length. Therefore, for example, if two messages are referenced, each message containing a short MAC-I, for a particular implementation / scenario, it should be understood that the two MAC-Is have the same bit length. In an alternative implementation, the PDCP control 122 and / or the PDCP controller 162 also supports additional MAC-I lengths (eg, and intermediate length MAC-Is).
[0033] In some implementations, the PDCP controller 122 and the PDCP controller 162 each use a larger size COUNT parameter (i.e., a COUNT parameter value with more bits) when calculating a long MAC-I or XMAC-I, and each use a smaller size COUNT parameter (i.e., a COUNT parameter value with fewer bits) when calculating a short MAC-I or XMAC-I. According to various implementations, the following table provides examples of bit lengths of input parameters for the NIA algorithm. For example, the UE 102 and the base station 104-1 may support both the combination of parameter lengths shown in Example 1 (for short MAC-I) and the combination of parameter lengths shown in any one of Examples 2 to 13 (for long MAC-I):
[0034]
[0035]
[0036] In some implementations where the bit length of the COUNT parameter is different for short MAC-I and long MAC-I, (e.g., if both Examples 1 and 3 above are supported), the UE 102 and the base station 104-1 use COUNT, and if the base station 104-1 configures the UE 102 to use a long MAC-I, the PDCP controller 122 of the UE 102 and the PDCP controller 162 of the base station 104-1 use the COUNT size for the long MAC-I for RRC messages or data packets (as discussed below), and if the base station 104-1 does not configure the UE 102 to use a long MAC-I, the PDCP controller 122 of the UE 102 and the PDCP controller 162 of the base station 104-1 instead use the COUNT size for the short MAC-I for RRC messages or data packets. In other implementations, the PDCP controller 122 of the UE 102 and the PDCP controller 162 of the base station 104-1 use the same COUNT size regardless of the MAC-I size (eg, if both Examples 1 and 2 above are supported).
[0037] For simplicity, Figure 1 Various components of UE 102 and base station 104-1 are not depicted. In addition to the layer-specific controllers mentioned above, for example, UE 102 and base station 104-1 include corresponding transceivers, which include various hardware, firmware, and software components configured to transmit and receive wireless signals according to the NR air interface. Processing hardware 120 and processing hardware 160 can send commands and exchange information with corresponding transceivers as needed to perform various connection establishment procedures, perform various RRC or MM procedures, or communicate with other network elements, etc.
[0038] Now refer to Figure 2A-11 Discuss example message sequences and methods that UE 102 and / or base station 104-1 may implement and operate alone or in combination with other components of network 100. UE 102 and / or base station 104-1 may implement at least some of the actions described below in software, firmware, hardware, or any suitable combination of software, firmware, and hardware. Figure 1 Components and a 5G system (e.g., where base station 104-1 is a gNB) are discussed in detail. Figure 2A-11 , generally any suitable components or wireless communication networks may be used. In addition, although the following is discussed with reference to implementations in which UE 102 and base station 104-1 only use and / or support two MAC-I lengths (i.e., short MAC-I and long MAC-I), Figure 2A-11 In other implementations, UE 102 and base station 104-1 support three or more MAC-I lengths.
[0039] First reference Figure 2A and2B , the message passing diagram 200 depicts the message passing diagram according to one implementation and scenario. Figure 1 Example messages exchanged between UE 102 and base station 104-1. In some implementations and / or scenarios, Figure 2A and 2B At the beginning of the message sequence depicted in , base station 104-1 is not yet aware that UE 102 supports long MAC-I, and / or UE 102 is not yet aware that base station 104-1 supports long MAC-I.
[0040] In the message transfer diagram 200, after the UE 102 enters 202 the RRC_IDLE state, the UE 102 initiates the RRC establishment / setup process by transmitting 204 an RRC setup request message to the base station 104-1. In response, the base station 104-1 transmits 206 an RRC setup message to the UE 102. In the depicted implementation, the RRC setup request and the RRC setup message do not use the PDCP protocol (i.e., both messages bypass the PDCP layer 138) and are therefore not included in the PDCP PDU. In response to the RRC setup message, the UE 102 enters 210 the RRC_CONNECTED state.
[0041] Thereafter, the PDCP controller 122 of the UE 102 generates a PDCP PDU including an RRC setup complete message and a short (e.g., 32-bit) MAC-I. In one implementation, because the base station 104-1 has not yet configured the UE 102 to activate integrity protection, the PDCP controller 122 of the UE 102 sets all bits of the short MAC-I to zero, or to some other default value. The UE 102 then transmits 212 the PDCP PDU including the RRC setup complete message and the short MAC-I to the base station 104-1.
[0042] After receiving the RRC Setup Complete message, the PDCP controller 162 of the base station 104-1 generates a PDCP PDU including a security mode command message and a short MAC-I. The PDCP controller 162 may use an integrity protection algorithm indicated by an RRC field (e.g., integrityProtAlgorithm field) included in the security mode command message, and may also use a key associated with the algorithm (e.g., K of 3GPP TS 33.501). RRCint The PDCP controller 162 may calculate the short MAC-I using the security mode command message (key). For example, the PDCP controller 162 may calculate the short MAC-I using the NIA algorithm discussed above. The base station 104-1 then transmits 214 a PDCP PDU including the security mode command message and the short MAC-I to the UE 102.
[0043] After the UE 102 receives the PDCP PDU containing the security mode command message and the short MAC-I, the PDCP controller 122 of the UE 102 verifies 216 the short MAC-I to authenticate the received message. To this end, the PDCP controller 122 derives a key associated with the algorithm indicated in the security mode command message (e.g., K associated with integrityProtAlgorithm). RRCint 1), and calculates the short XMAC-I using the indicated algorithm and the derived key. For example, in the absence of a different command or configuration from base station 104-1, PDCP controller 122 may default to the short MAC-I / XMAC-I format. PDCP controller 122 compares the short MAC-I in the received PDCP PDU with the calculated short XMAC-I. If the MAC-I and XMAC-I match, then UE 102 has successfully authenticated the received security mode command message.
[0044] Figure 2A and 2B A scenario is depicted in which UE 102 successfully authenticates 216 the security mode command message. An unsuccessful authentication (at any time in the sequence) may result in UE 102 discarding the message or, in some cases, requesting termination of the connection between UE 102 and base station 104-1. Accordingly, PDCP controller 122 of UE 102 generates a PDCP PDU containing a security mode complete message and a short MAC-I. PDCP controller 122 may use the same integrity protection algorithm indicated by the field of the security mode command message and also use a key associated with the algorithm (e.g., K RRCint KEY) to calculate the short MAC-I. For example, the PDCP controller 122 may use the NIA algorithm discussed above to calculate the short MAC-I. The UE 102 then transmits 220 a PDCP PDU including the security mode complete message and the short MAC-I to the base station 104-1. In other scenarios where the PDCP controller 122 is unable to successfully verify the security mode command message, the UE 102 does not generate and / or send a PDCP PDU including the security mode complete message.
[0045] After the base station 104-1 receives the PDCP PDU containing the security mode complete message and the short MAC-I, the PDCP controller 162 of the base station 104-1 verifies 222 the short MAC-I to authenticate the received message. To this end, the PDCP controller 162 uses the same algorithm and key (e.g., integrityProtAlgorithm and K RRCintThe PDCP controller 162 compares the short MAC-I in the received PDCP PDU with the calculated short XMAC-I. If the MAC-I and XMAC-I match, the base station 104-1 has successfully verified the received security mode complete message.
[0046] If base station 104-1 fails to successfully verify the short MAC-I for the security mode complete message, base station 104-1 may transmit an RRC release message to UE 102 to terminate the connection between UE 102 and base station 104-1. Figure 2A and 2B A scenario is depicted in which base station 104-1 successfully authenticates 222 the security mode complete message. In this scenario, at some time after authentication, base station 104-1 determines 224 that the UE is configured to use a long (e.g., 64-bit, 128-bit, or 256-bit) MAC-I format. This determination may occur after base station 104-1 learns that UE 102 supports the long MAC-I format, for example, as discussed in further detail below (e.g., in conjunction with Figure 5 ).
[0047] After (e.g., in response to) determining 224 that the long MAC-I format is to be used, the base station 104-1 includes a security configuration (indicating the long MAC-I format) in the RRC reconfiguration message. The PDCP controller 162 of the base station 104-1 generates a PDCP PDU including the RRC reconfiguration message and the short MAC-I. The PDCP controller 162 may use the same algorithm and key (e.g., integrityProtAlgorithm and K RRCint The PDCP controller 162 may calculate the short MAC-I using the NIA algorithm discussed above. The base station 104-1 then transmits 226 a PDCP PDU including the RRC reconfiguration message and the short MAC-I to the UE 102.
[0048] After the UE 102 receives the PDCP PDU containing the RRC reconfiguration message and the short MAC-I, the PDCP controller 122 of the UE 102 verifies 230 the short MAC-I (as discussed above with respect to verification 216) to authenticate the received message. Figure 2A and 2B A scenario is depicted in which UE 102 successfully authenticates 230 the RRC reconfiguration message. Thus, in response to UE 102 determining to use the long MAC-I format based on the security configuration and / or the RRC reconfiguration message, UE 102 determines to begin using the long MAC-I format for subsequent RRC messages exchanged between UE 102 and base station 104-1 over a signaling radio bearer (SRB).
[0049] In some implementations, successful verification (by UE 102) of the RRC reconfiguration message transmitted 226 by base station 104-1 causes UE 102 to change to the long MAC-I format only for RRC messages exchanged between UE 102 and base station 104-1 over a subset (e.g., one of) of the plurality of SRBs. For example, UE 102 may apply the long MAC-I format for RRC messages sent over a first SRB (e.g., “SRB 1”) but not for RRC messages sent over a second SRB (e.g., “SRB 2”). UE 102 may instead continue to use the short MAC-I format for RRC messages sent over the second SRB (e.g., until configured otherwise by base station 104-1). In other implementations, UE 102 may change to the long MAC-I format for RRC messages sent over all SRBs.
[0050] Furthermore, in some implementations, successful verification (by the UE 102) of the RRC reconfiguration message transmitted 226 by the base station 104-1 causes the UE 102 to change to a long MAC-I format for data packets exchanged between the UE 102 and the base station 104-1 over one or more data radio bearers (DRBs), in addition to (or in lieu of) RRC messages exchanged over one or more SRBs. Alternatively, the UE 102 may change to a long MAC-I format only for RRC messages sent over an SRB (or a subset of all SRBs, if more than one), and not for data packets sent over any DRBs. For example, the UE 102 may instead use a short MAC-I format for data packets sent over a DRB.
[0051] exist Figure 2A and 2B In the scenario of , after verification 230, the PDCP controller 122 of the UE 102 generates a PDCP PDU containing an RRC reconfiguration complete message and a long MAC-I. The PDCP controller 122 may use the same integrity protection algorithm indicated by the field of the security mode command message and may also use the same key associated with the algorithm (e.g., K RRCint However, if the security configuration and / or RRC reconfiguration message indicates a different algorithm for integrity protection, the PDCP controller 122 may use that algorithm (e.g., and K RRCintUE 102 then transmits 232 a PDCP PDU containing the RRC reconfiguration complete message and the long MAC-I to base station 104-1, and base station 104-1 verifies 234 the long MAC-I for the RRC reconfiguration complete message using the same integrity protection algorithm and key that UE 102 had used to calculate the long MAC-I.
[0052] Figure 2A and 2B Example scenarios also include transmission of other RRC messages to which the UE 102 or the base station 104-1 appends a long MAC-I. For example, the base station 104-1 generates and transmits 236 a PDCP PDU including another RRC reconfiguration message (e.g., with fields for measurement configuration, L1 configuration, medium access control configuration, RLC configuration, and / or radio bearer configuration) and a long MAC-I (which the UE 102 verifies 240), the UE 102 generates and transmits 242 a PDCP PDU including another RRC reconfiguration complete message and a long MAC-I (which the base station 104-1 verifies 244), and the UE 102 generates and transmits 246 a PDCP PDU including a measurement report message and a long MAC-I (which the base station 104-1 verifies 250). In some implementations, if base station 104-1 fails to successfully verify the short MAC-I or the long MAC-I for any RRC message received from UE 102, base station 104-1 transmits an RRC release message to UE 102 to terminate the connection between UE 102 and base station 104-1.
[0053] Next reference Figure 3A and 3B , the message passing diagram 300 depicts a message passing diagram that may be used according to another implementation and / or scenario. Figure 1 Example messages exchanged between UE 102, base station 104-1, and 5GC 110. In some implementations and / or scenarios, Figure 3A and 3B At the beginning of the message sequence depicted in , base station 104-1 is not yet aware that UE 102 supports long MAC-I, and / or UE 102 is not yet aware that base station 104-1 supports long MAC-I.
[0054] In the message transfer diagram 300, after the UE 102 enters 302 the RRC_IDLE state, the UE 102 initiates the RRC establishment / setup process by transmitting 304 an RRC setup request message to the base station 104-1. In response, the base station 104-1 transmits 306 an RRC setup message to the UE 102. In the depicted implementation, the RRC setup request and the RRC setup message do not use the PDCP protocol (i.e., both messages bypass the PDCP layer 138) and are therefore not included in the PDCP PDU. In response to the RRC setup message, the UE 102 enters 310 an RRC_CONNECTED state.
[0055] Thereafter, the PDCP controller 122 of the UE 102 generates a PDCP PDU including an RRC setup complete message and a short (e.g., 32-bit) MAC-I. In one implementation, because the base station 104-1 has not yet configured the UE 102 to activate integrity protection, the PDCP controller 122 of the UE 102 sets all bits of the short MAC-I to zero, or to some other default value. The UE 102 then transmits 312 the PDCP PDU including the RRC setup complete message and the short MAC-I to the base station 104-1.
[0056] After receiving the RRC Setup Complete message, the PDCP controller 162 of the base station 104-1 generates a PDCP PDU including a security mode command message and a short MAC-I. The PDCP controller 162 may use an integrity protection algorithm indicated by an RRC field (e.g., integrityProtAlgorithm field) included in the security mode command message, and may also use a key associated with the algorithm (e.g., K of 3GPP TS 33.501). RRCint The PDCP controller 162 may calculate the short MAC-I using the security mode command message (key). For example, the PDCP controller 162 may calculate the short MAC-I using the NIA algorithm discussed above. The base station 104-1 then transmits 314 a PDCP PDU including the security mode command message and the short MAC-I to the UE 102.
[0057] After the UE 102 receives the PDCP PDU containing the security mode command message and the short MAC-I, the PDCP controller 122 of the UE 102 verifies 316 the short MAC-I to authenticate the received message. To this end, the PDCP controller 122 derives a key associated with the algorithm indicated in the security mode command message (e.g., K associated with integrityProtAlgorithm). RRCint1), and calculates the short XMAC-I using the indicated algorithm and the derived key. For example, in the absence of a different command or configuration from base station 104-1, PDCP controller 122 may default to the short MAC-I / XMAC-I format. PDCP controller 122 compares the short MAC-I in the received PDCP PDU with the calculated short XMAC-I. If the MAC-I and XMAC-I match, then UE 102 has successfully authenticated the received security mode command message.
[0058] Figure 3A and 3B A scenario is depicted in which UE 102 successfully authenticates 316 the security mode command message. An unsuccessful authentication (at any time in the sequence) may result in UE 102 discarding the message or, in some cases, requesting termination of the connection between UE 102 and base station 104-1. Accordingly, PDCP controller 122 of UE 102 generates a PDCP PDU containing a security mode complete message and a short MAC-I. PDCP controller 122 may use the same integrity protection algorithm indicated by the field of the security mode command message and also use a key associated with the algorithm (e.g., K RRCint KEY) to calculate the short MAC-I. For example, the PDCP controller 122 may use the NIA algorithm discussed above to calculate the short MAC-I. The UE 102 then transmits 320 a PDCP PDU including the security mode complete message and the short MAC-I to the base station 104-1. In other scenarios where the PDCP controller 122 is unable to successfully verify the security mode command message, the UE 102 does not generate and / or send a PDCP PDU including the security mode complete message.
[0059] After the base station 104-1 receives the PDCP PDU containing the security mode complete message and the short MAC-I, the PDCP controller 162 of the base station 104-1 verifies 322 the short MAC-I to authenticate the received message. To do this, the PDCP controller 162 uses the same algorithm and key (e.g., integrityProtAlgorithm and K RRCint The PDCP controller 162 compares the short MAC-I in the received PDCP PDU with the calculated short XMAC-I. If the MAC-I and XMAC-I match, the base station 104-1 has successfully verified the received security mode complete message.
[0060] If base station 104-1 fails to successfully verify the short MAC-I for the security mode complete message, base station 104-1 may transmit an RRC release message to UE 102 to terminate the connection between UE 102 and base station 104-1. Figure 3A and 3B A scenario is depicted in which base station 104-1 successfully authenticates 322 the security mode complete message. In this scenario, at some time after authentication, base station 104-1 determines 324 to be configured to use a long (e.g., 64-bit, 128-bit, or 256-bit) MAC-I format specifically for DRBs of UE 102. This determination may occur after base station 104-1 learns that UE 102 supports the long MAC-I format, for example, as discussed in further detail below (e.g., in conjunction with Figure 5 ).
[0061] After (e.g., in response to) determining 324 that the long MAC-I format is configured for DRB, the base station 104-1 includes a security configuration (indicating a long MAC-I format for DRB) in the RRC reconfiguration message. The PDCP controller 162 of the base station 104-1 generates a PDCP PDU including the RRC reconfiguration message and the short MAC-I. The PDCP controller 162 may use the same algorithm and key (e.g., integrityProtAlgorithm and K RRCint The PDCP controller 162 may calculate the short MAC-I using the RRC reconfiguration message (key). For example, the PDCP controller 162 may calculate the short MAC-I using the NIA algorithm discussed above. The base station 104-1 then transmits 326 a PDCP PDU including the RRC reconfiguration message and the short MAC-I to the UE 102.
[0062] After the UE 102 receives the PDCP PDU containing the RRC reconfiguration message and the short MAC-I, the PDCP controller 122 of the UE 102 verifies 330 the short MAC-I (as discussed above with respect to verification 316) to authenticate the received message. Figure 3A and 3B A scenario is depicted in which UE 102 successfully validates 330 the RRC reconfiguration message. Thus, in response to UE 102 determining (based on the security configuration and / or the RRC reconfiguration message) that the long MAC-I format is to be used for DRBs of UE 102, UE 102 determines to begin using the long MAC-I format for subsequent data packets exchanged between UE 102 and base station 104-1 over the DRBs.
[0063] exist Figure 3A and 3B In the example scenario of , after verification 330, the PDCP controller 122 of the UE 102 generates a PDCP PDU including an RRC reconfiguration complete message and a short MAC-I. That is. Figure 3A and 3BThis reflects an implementation in which the long MAC-I format is not applicable to RRC messages exchanged between UE 102 and base station 104-1 over the SRB. However, in some implementations, the PDCP controller 122 uses the same integrity protection algorithm indicated by the field of the security mode command message and possibly the same key associated with the algorithm (e.g., K RRCint UE 102 then transmits 332 a PDCP PDU containing the RRC reconfiguration complete message and the short MAC-I to base station 104-1, and base station 104-1 verifies 334 the short MAC-I for the RRC reconfiguration complete message using the same integrity protection algorithm and key that UE 102 had used to calculate the short MAC-I.
[0064] Also in Figure 3A and 3B In a scenario, when UE 102 needs to send some data (e.g., data related to layer 154) via DRB, the PDCP controller 122 of UE 102 generates a PDCP PDU (or, in some implementations, an SDAP PDU) containing a data packet and a long MAC-I. For example, the data packet may be an Internet Protocol (IP) packet. If base station 104-1 configures UE 102 to use SDAP for DRB, UE 102 generates an SDAP PDU containing the data packet and then includes the SDAP PDU in the PDCP PDU. In some implementations and / or scenarios, the PDCP controller 122 may use the same integrity protection algorithm indicated by a field of the security mode command message and possibly the same key associated with the algorithm (e.g., K RRCint However, if the security configuration and / or RRC reconfiguration message indicates a different algorithm for integrity protection, the PDCP controller 122 may use that algorithm (e.g., and K RRCint Key). UE 102 then transmits 336 a PDCP PDU (or SDAP PDU) containing the data packet and the long MAC-I over the DRB, and base station 104-1 verifies 340 the long MAC-I of the PDCP PDU (i.e., by calculating the long XMAC-I and comparing it to the received long MAC-I). If base station 104-1 configures UE 102 to use SDAP for DRB, base station 104-1 extracts the data packet from the SDAP PDU. Base station 104-1 then transmits 342 the data packet from the PDCP PDU to 5GC 110.
[0065] exist Figure 3A and 3BIn the example scenario, 5GC 110 then transmits 344 another data packet for the DRB (e.g., data associated with layer 154) to base station 104-1. The PDCP controller 162 of base station 104-1 then generates a PDCP PDU (or, in some implementations, an SDAP PDU) containing the data packet and the long MAC-I. For example, the data packet may be an IP packet. If base station 104-1 configures UE 102 to use SDAP for DRB, base station 104-1 generates an SDAP PDU containing the data packet and then includes the SDAP PDU in the PDCP PDU. In certain implementations and / or scenarios, the PDCP controller 162 may use the same integrity protection algorithm indicated by a field of the security mode command message and possibly the same key associated with the algorithm (e.g., K RRCint Key) to calculate the long MAC-I of the PDCP PDU. However, if the security configuration and / or RRC reconfiguration message indicates a different algorithm for integrity protection, the PDCP controller 162 may use that algorithm (e.g., and K RRCint The base station 104-1 then transmits 346 a PDCP PDU (or SDAPPDU) containing the data packet and the long MAC-I via the DRB, and the UE 102 verifies 348 the long MAC-I of the PDCP PDU (i.e., by calculating the long XMAC-I and comparing it to the received long MAC-I).
[0066] In the corresponding Figure 3A and 3B In a first implementation of the example message diagram, prior to transmission 326, base station 104-1 configures a first DRB (e.g., “DRB 1”) to UE 102, configures integrity protection for the first DRB, and configures a second DRB (e.g., “DRB 2”) to UE 102, but does not configure integrity protection for the second DRB. To this end, base station 104-1 may (prior to transmission 326) transmit an additional RRC reconfiguration message and a corresponding short MAC-I to UE 102 within each of one or more PDCP PDUs. Thereafter, if UE 102 successfully verifies the short MAC-I for the RRC reconfiguration message sent in transmission 326, UE 102 does not use the long MAC-I format for the second DRB. That is, in this implementation and scenario, UE 102 and base station 104-1 include neither a short MAC-I nor a long MAC-I in the PDCP PDUs exchanged through the second DRB.
[0067] In the corresponding Figure 3A and 3BIn a second implementation of the example message diagram of , prior to transmission 326, base station 104-1 configures a first DRB (e.g., “DRB 1”) to UE 102, configures integrity protection for the first DRB, configures a second DRB (e.g., “DRB 2”) to UE 102, and configures integrity protection for the second DRB. To this end, base station 104-1 may transmit an additional RRC reconfiguration message and a corresponding short MAC-I to UE 102 in each of one or more PDCP PDUs (prior to transmission 326). In this implementation, UE 102 uses a short MAC-I format (e.g., to calculate a short MAC-I or XMAC-I in the manner discussed above) for data packets to be transmitted or received through either of the two DRBs. Thereafter, if UE 102 successfully verifies the short MAC-I for the RRC reconfiguration message sent in transmission 326, UE 102 may use a long MAC-I format for data packets sent through the second DRB. That is, the security configuration applies not only to the first DRB, but also to the second DRB.
[0068] In the corresponding Figure 3A and 3B In a third implementation of the example message diagram of , prior to transmission 326, base station 104-1 configures a first DRB (e.g., “DRB 1”) to UE 102, configures integrity protection for the first DRB, configures a second DRB (e.g., “DRB 2”) to UE 102, and configures integrity protection for the second DRB. To this end, base station 104-1 may (prior to transmission 326) transmit an additional RRC reconfiguration message and a corresponding short MAC-I to UE 102 within each of one or more PDCP PDUs. In this implementation, UE 102 uses a short MAC-I format (e.g., to calculate a short MAC-I or XMAC-I in the manner discussed above) for data packets to be transmitted or received via either of the two DRBs. Thus, the third implementation may initially be the same or similar to the second implementation discussed above. However, if UE 102 then successfully verifies the short MAC-I for the RRC reconfiguration message sent in the transmission, UE 102 does not use a long MAC-I format for data packets sent via the second DRB. That is, the security configuration applies to the first DRB but not to the second DRB.
[0069] In each of the first, second and third implementations described above, the base station 104-1 may Figure 3A and 3B326. Thus, for each of the additional RRC reconfiguration message(s) discussed above, base station 104-1 may include a security configuration (indicating a long MAC-I format) in the additional RRC reconfiguration message and transmit the additional RRC reconfiguration message to UE 102 in a PDCP PDU (e.g., before transmission 326 occurs).
[0070] In some implementations, if the base station 104-1 fails to successfully verify the long MAC-I for the data packet received through the DRB, the base station 104-1 transmits an RRC release message to the UE 102 to terminate the connection between the UE 102 and the base station 104-1. In an alternative implementation, if the base station 104-2 fails to successfully verify the long MAC-I for the data packet received through the DRB, the base station 104-1 ignores the data packet. However, in this alternative implementation, if the base station 104-1 fails to successfully verify the long MAC-I for a plurality of data packets received through the DRB (e.g., a certain threshold number of data packets predetermined by the base station 104-1), the base station 104-1 transmits an RRC release message to the UE 102 to terminate the connection between the UE 102 and the base station 104-1. Depending on the implementation, the base station 104-1 may send the RRC release message only when the base station 104-1 receives a plurality of data packets in succession, or may send the RRC release message regardless of whether the base station 104-1 receives a plurality of data packets in succession.
[0071] Furthermore, in some implementations, base station 104-1 may configure UE 102 to use the long MAC-I format for both SRB(s) and DRB(s), such as Figure 4A and 4B The example implementation and scenario are shown in Figure 4A and 4B In the example, a message passing diagram 400 depicts a message passing diagram that may be used according to another implementation and / or scenario. Figure 1 Example messages exchanged between UE 102, base station 104-1 and 5GC 110. Figure 4A and 4B The actions and messages shown in Figure 3A and 3B The corresponding actions and messages shown in are similar or identical (for example, Figure 3A The 302 corresponds to Figure 4A 402, Figure 3A The 304 corresponds to Figure 4A404, etc.), except that: (1) in the messaging diagram 400, the base station 104-1 determines 424 that both (one or more) SRBs and (one or more) DRBs (rather than just the DRBs) are configured to use the long MAC-I format; (2) the RRC reconfiguration message transmitted 426 in the messaging diagram 400 includes a security configuration indicating the long MAC-I format for both (one or more) SRBs and (one or more) DRBs (rather than just the DRBs); (3) (in transmission 432) the PDCP PDU containing the RRC reconfiguration complete message includes a long MAC-I (rather than a short MAC-I); and (4) the base station verifies 434 the long MAC-I (rather than a short MAC-I) in the PDCP PDU containing the RRC reconfiguration complete message.
[0072] As described above, in some implementations, the base station 104-1 may need to learn the MAC-I length capabilities of the UE 102 before attempting to configure the UE 102 to use the long MAC-I format. For example, the UE 102 may transmit UE capability information indicating that the UE 102 supports the long MAC-I format to the base station 104-1 or the 5GC 110. For example, the base station 104-1 may forward the UE capability information from the UE 102 to the core network. In some implementations and / or scenarios, before transmitting 426 an RRC reconfiguration message to configure the long MAC-I format to the UE 102 (e.g., as described above), the base station 104-1 receives UE capability information indicating support for the long MAC-I format from the UE 102 or the 5GC 110 (e.g., from an access and mobility management function (AMF)).
[0073] For example, the UE capability information transmitted by the UE 102 may have the same format as the UE capability information received by the base station 104-1, or may have a different format. The base station 104-1 may determine to configure the long MAC-I format in response to determining that the UE capability information indicates that the UE 102 supports the long MAC-I. If the UE 102 instead indicates that the long MAC-I is not supported (or the base station simply does not receive an indication of the UE 102's support for the long MAC-I), the base station 104-1 may not determine to configure the long MAC-I format to the UE 102, or may explicitly determine not to configure the long MAC-I to the UE 102. In other implementations and / or scenarios, in response to the 5GC 110 determining that the UE capability information indicates that the UE 102 supports the long MAC-I, the 5GC 110 may send a network interface message to configure the base station 104-1 to use the long MAC-I format for the UE 102.
[0074] Figure 5A messaging diagram 500 is depicted corresponding to one implementation and scenario in which a base station 104-1, which may be a gNB or ng-eNB, learns the capabilities of a UE 102. In the messaging diagram 500, the UE 102 enters 502 an RRC_CONNECTED state. The PDCP controller 162 of the base station 104-1 generates a PDCP PDU including a UE capability query message for querying the 5G NR capabilities of the UE 102 and also including a short MAC-I. The base station 104-1 transmits 504 a PDCP PDU including the UE capability query message and the short MAC-I to the UE 102.
[0075] In response, if UE 102 successfully verifies the short MAC-I in the PDCP PDU containing the UE capability query message, UE 102 transmits 506 to base station 104-1 a UE capability information message contained in a PDCP PDU that also contains the short MAC-I calculated by PDCP controller 122. The UE capability information message includes a UE-NR-Capability information element. In the depicted scenario, the UE-NR-Capability information element indicates that UE 102 supports the long MAC-I format.
[0076] After successfully verifying the short MAC-I attached to the UE capability information message and identifying the UE-NR-Capability information element in the message, the base station 104-1 includes the UE-NR-Capability information element in a network interface message (e.g., a Next Generation Application Protocol (NGAP) message or a UE RADIO CAPABILITY INFO INDICATION message) and transmits 510 the message to the 5GC 110. In other implementations, the base station 104-1 receives a network interface message (e.g., an NGAP message or an INITIAL CONTEXT SETUP REQUEST message) from the 5GC 110 indicating that the UE supports the long MAC-I format or configures the communication between the UE 102 and the base station 104-1 as a long MAC-I.
[0077] In alternative implementations and / or scenarios, prior to transmitting an RRC setup request message as described elsewhere in this disclosure (e.g., with respect to transmission 204, 304, or 404), prior to receiving an RRC reconfiguration message configuring a long MAC-I format for UE 102 as described elsewhere in this disclosure (e.g., with respect to transmission 226, 326, or 426), or in conjunction with an RRC setup complete message as described elsewhere in this disclosure (e.g., by including a registration request message in transmission 212, 312, or 412), UE 102 includes UE capability information indicating support for long MAC-I format in the registration request message, and transmits the registration request message to 5GC 110 via a base station (i.e., via base station 104-1 or another base station such as base station 104-2) when UE 102 registers with 5GC 110. Thereafter, when UE 102 is connected to 5GC 110 via base station 104-1, 5GC 110 transmits a network interface message to base station 104-1, which includes an information element (e.g., UE security capability information element) indicating that UE 102 supports the long MAC-I format.
[0078] In another implementation and / or scenario, 5GC 110 receives a UE-NR-Capability information element including UE capability information indicating support for the long MAC-I format from a base station (i.e., base station 104-1 or another base station such as base station 104-2). For example, the transmitting base station may include the UE-NR-Capability information element in a UE RADIO CAPABILITY INFOINDICATION message.
[0079] Figure 6 A message transfer diagram 600 is depicted reflecting an example implementation and scenario in which the 5GC 110 has learned UE capability information in this manner. Figure 6 As shown, after UE 102 enters 602RRC_IDLE phase, UE 102 transmits 604RRC setup request message to base station 104-1, base station 104-1 transmits 606RRC setup message to UE 102, UE 102 enters 610RRC_CONNECTED state, and UE 102 transmits 612PDCP PDU including RRC setup completion message and short MAC-I to base station 104-1, as described above for other implementations.
[0080] In one implementation, the 5GC 110, having learned the UE capability information as described above, determines 614 to configure the base station 104-1 (with respect to communications with the UE 102) to use the long MAC-I format. Then, when the UE 102 is connected to the 5GC 110 via the base station 104-1, the 5GC 110 transmits 616 a message (e.g., an NGAP message such as an INITIAL CONTEXT SETUP REQUEST message) to the base station 104-1. The message (e.g., in a long MAC-I configuration information element) indicates / instructs the base station 104-1 to be configured to use the long MAC-I format for communications with the UE 102. By analyzing / processing the message, the base station 104-1 determines 620 to be configured to use the long MAC-I format, and ( Figure 6 ) may transmit a network interface message to configure base station 104-1 to use the long MAC-I format.
[0081] In alternative implementations and / or scenarios, the 5GC 110 does not determine 614 that the base station 104-1 is configured for the long MAC-I format regarding communications with the UE 102. Instead, the 5GC 110 merely transmits 616 an indication that the UE 102 supports the long MAC-I format (e.g., in a capability information element such as a UE-NR-Capability information element or a UE security capability information element in an NGAP message), and the base station 104-1 determines 620 to be configured to use the long MAC-I format based on the indication.
[0082] Figures 7-9 illustrate various implementations and / or scenarios for configuring UE 102 to use the long MAC-I format when 5GC 110 (1) configures base station 104-1 to use the long MAC-I format for communicating with UE 102, or (2) indicates that the UE supports the long MAC-I format so that base station 104-1 itself can decide to use the long MAC-I format for communicating with UE 102.
[0083] First reference Fig. 7A and 7B After UE 102 enters 702 the RRC_IDLE phase, UE 102 transmits 704 an RRC setup request message to base station 104-1, base station 104-1 transmits 706 an RRC setup message to UE 102, UE 102 enters 710 an RRC_CONNECTED state, and UE 102 transmits 712 a PDCP PDU including an RRC setup complete message and a short MAC-I to base station 104-1, as described above for other implementations (e.g., regarding Figure 2A and 2B ) described.
[0084] In one implementation and / or scenario, at some point before, during, or after transmission 712, 5GC 110 determines 714 to configure base station 104-1 to use the long MAC-I format (for purposes of communication with UE 102). For example, 5GC 110 may have configured base station 104-1 to use the long MAC-I format in any of the ways discussed above (e.g., as described above in conjunction with Figure 5 6) learns that UE 102 supports the long MAC-I format. Then, when UE 102 connects to 5GC 110 via base station 104-1, 5GC 110 transmits 716 a message (e.g., an NGAP message such as an INITIAL CONTEXT SETUP REQUEST message) to base station 104-1. The message (e.g., in a long MAC-I configuration information element) indicates / instructs base station 104-1 to be configured to use the long MAC-I format for communication with UE 102. By analyzing / processing the message, base station 104-1 determines 720 to be configured to use the long MAC-I format.
[0085] In alternative implementations and / or scenarios, the 5GC 110 does not determine 714 that the base station 104-1 is configured to use the long MAC-I format regarding communications with the UE 102. Instead, upon receiving (e.g., from the base station 104-2) an indication that the UE 102 supports the long MAC-I format (e.g., in a capability information element such as a UE-NR-Capability information element or a UE security capabilities information element), the 5GC 110 merely transmits 716 an indication that the UE 102 supports the long MAC-I format, and the base station 104-1 determines 720 to be configured to use the long MAC-I format based on the indication.
[0086] In other scenarios where the 5GC 110 does not transmit 716 an indication that the UE supports the long MAC-I format or an instruction to be configured to use the long MAC-I format, the base station 104-1 is not configured to use the long MAC-I format, and the UE 102 is not configured to use the long MAC-I format. Alternatively, in such a scenario, the base station 104-1 may transmit a UE capability query message to the UE 102, and in response receive a UE capability information message from the UE 102, for example, as described above in conjunction with Figure 5 discussed.
[0087] Back to Fig. 7A and 7BIn the scenario of FIG. 1 , after base station 104-1 determines 720 that the UE 102 is configured to use the long MAC-I format, the PDCP controller 162 of base station 104-1 generates a PDCP PDU including a security mode command message and a short MAC-I. The security mode command message includes an indication that UE 102 will be configured to use the long MAC-I format for communication with base station 104-1. For example, PDCP controller 162 may use any of the algorithms and keys discussed above (e.g., integrityProtAlgorithm and K RRCint Base station 104-1 transmits 722 a PDCP PDU including a security mode command message and a short MAC-I to UE 102, and UE 102 verifies 724 the short MAC-I using the same algorithm and key.
[0088] After successful verification of the short MAC-I, the PDCP controller 122 of the UE 102 generates a PDCP PDU containing a security mode complete message and a long MAC-I. For example, the PDCP controller 122 may use any of the algorithms and keys discussed above (e.g., integrityProtAlgorithm and K RRCint UE 102 transmits 726 a PDCP PDU including a security mode complete message and a long MAC-I to base station 104-1, and base station 104-1 verifies 730 the long MAC-I using the same algorithm and key.
[0089] Later, in Fig. 7A and 7B In the example scenario of FIG. 2 , the PDCP PDU controller 162 of the base station 104-1 generates a PDCP PDU including an RRC reconfiguration message and a long MAC-I, and the base station 104-1 transmits 732 the PDCP PDU to the UE 102. For example, the RRC reconfiguration message may include the same fields as the RRC reconfiguration message transmitted 236 in the message transfer diagram 200 of FIG. 2 . After the UE 102 verifies 734 the long MAC-I for the RRC reconfiguration message, the PDCP controller 122 of the UE 102 may generate a PDCP PDU including an RRC reconfiguration complete message and a long MAC-I, and the UE 102 may transmit 736 the PDCP PDU to the base station 104-1. Some time after base station 104-1 verifies 740 the long MAC-I for the RRC reconfiguration completion message, PDCP controller 122 of UE 102 may generate a PDCP PDU containing a measurement report message and a long MAC-I, and UE 102 may transmit 742 the PDCP PDU to base station 104-1. Base station 104-1 then verifies 744 the long MAC-I for the measurement report message.
[0090] Fig. 8A and 8B A message transfer diagram 800 is depicted reflecting an implementation and scenario in which the base station 104-1 configures the UE 102 to use a long MAC-I format for one or more SRBs and one or more DRBs in a security mode command message. In the message transfer diagram 800, after the UE 102 enters 802 the RRC_IDLE phase, the UE 102 transmits 804 an RRC SETUP REQUEST message to the base station 104-1, the base station 104-1 transmits 806 an RRC SETUP message to the UE 102, the UE 102 enters 810 an RRC_CONNECTED state, and the UE 102 transmits 812 a PDCP PDU containing an RRC SETUP COMPLETE message and a short MAC-I to the base station 104-1, as described above for other implementations (e.g., with respect to Figure 4A and 4B ) described.
[0091] In one implementation and / or scenario, at some point before, during, or after transmission 812, 5GC 110 determines 814 that base station 104-1 is configured to a long MAC-I format (for purposes of communication with UE 102). For example, 5GC 110 may have configured base station 104-1 to a long MAC-I format in any of the ways discussed above (e.g., as described above in conjunction with Figure 5 6) learns that UE 102 supports the long MAC-I format. Then, when UE 102 connects to 5GC 110 via base station 104-1, 5GC 110 transmits 816 a message (e.g., an NGAP message such as an INITIAL CONTEXT SETUP REQUEST message) to base station 104-1. The message (e.g., in a long MAC-I configuration information element) indicates / instructs base station 104-1 to be configured to use the long MAC-I format for communication with UE 102. By analyzing / processing the message, base station 104-1 determines 820 to be configured to use the long MAC-I format.
[0092] In alternative implementations and / or scenarios, the 5GC 110 does not determine 814 that the base station 104-1 is configured to use the long MAC-I format regarding communications with the UE 102. Instead, upon receiving (e.g., from the base station 104-2) an indication that the UE 102 supports the long MAC-I format (e.g., in a capability information element such as a UE-NR-Capability information element or a UE security capabilities information element in an NGAP message), the 5GC 110 merely transmits 816 to the base station 104-1 an indication that the UE 102 supports the long MAC-I format, and the base station 104-1 determines 820 to be configured to use the long MAC-I format based on the indication.
[0093] In other scenarios where the 5GC 110 does not transmit 816 an indication that the UE supports the long MAC-I format or an instruction to be configured to use the long MAC-I format, the base station 104-1 is not configured to use the long MAC-I format, and the UE 102 is not configured to use the long MAC-I format. Alternatively, in such a scenario, the base station 104-1 may transmit a UE capability query message to the UE 102, and in response receive a UE capability information message from the UE 102, for example, as described above in conjunction with Figure 5 discussed.
[0094] return Fig. 8A and 8B In the scenario of FIG. 8 , after base station 104-1 determines 820 that the UE 102 is configured to use the long MAC-I format, the PDCP controller 162 of base station 104-1 generates a PDCP PDU including a security mode command message and a short MAC-I. The security mode command message includes an indication that UE 102 will be configured to use the long MAC-I format for communications with base station 104-1. For example, PDCP controller 162 may use any of the algorithms and keys discussed above (e.g., integrityProtAlgorithm and K RRCint The base station 104-1 transmits 822 a PDCP PDU including a security mode command message and a short MAC-I to the UE 102, and the UE 102 verifies 824 the short MAC-I using the same algorithm and key.
[0095] After successful verification of the short MAC-I, the PDCP controller 122 of the UE 102 generates a PDCP PDU containing a security mode complete message and a long MAC-I. For example, the PDCP controller 122 may use any of the algorithms and keys discussed above (e.g., integrityProtAlgorithm and K RRCint UE 102 transmits 826 a PDCP PDU including a security mode complete message and a long MAC-I to base station 104-1, and base station 104-1 verifies 830 the long MAC-I using the same algorithm and key.
[0096] Later, in Fig. 8A and 8BIn an example scenario, the PDCP PDU controller 162 of the base station 104-1 generates a PDCP PDU including an RRC reconfiguration message and a long MAC-I. The RRC reconfiguration message includes an information element indicating that the UE 102 will enable integrity protection for a DRB (or, in some implementations, more than one DRB). The base station 104-1 transmits 832 the PDCP PDU to the UE 102. After the UE 102 verifies 834 the long MAC-I, the UE 102 enables integrity protection for the DRB, and the PDCP controller 122 of the UE 102 can generate a PDCP PDU including a data packet and a long MAC-I. The UE 102 transmits 836 the PDCP PDU to the base station 104-1 via the DRB, and the base station 104-1 verifies 840 the long MAC-I of the data packet. The base station 104-1 can then transmit 842 the data packet to the 5GC 110.
[0097] exist Fig. 8A and 8B In the example scenario of , 5GC 110 then transmits 844 another data packet for the DRB (e.g., data associated with layer 154) to base station 104-1. PDCP controller 162 of base station 104-1 then generates a PDCP PDU containing the data packet and the long MAC-I. For example, the data packet may be an IP packet. In some implementations and / or scenarios, PDCP controller 162 may use the same integrity protection algorithm indicated by the field of the security mode command message and possibly the same key associated with the algorithm (e.g., K RRCint Key) to calculate the long MAC-I of the PDCP PDU. However, if the security configuration and / or RRC reconfiguration message indicates a different algorithm for integrity protection, the PDCP controller 162 may use that algorithm (e.g., and K RRCint The base station 104-1 then transmits 846 the PDCP PDU containing the data packet and the long MAC-I via the DRB, and the UE 102 verifies 848 the long MAC-I of the PDCP PDU (i.e., by calculating the long XMAC-I and comparing it to the received long MAC-I). In some implementations and / or scenarios, the UE 102 and the base station 104-1 may instead generate an SDAPPDU for the DRB (e.g., as described above in conjunction with Figure 3A and 3B discussed).
[0098] Fig.9A and 9BA message transfer diagram 900 is depicted reflecting an implementation and scenario in which the base station 104-1 configures the UE 102 to use a long MAC-I format for one or more SRBs in a security mode command message. In the message transfer diagram 900, after the UE 102 enters 902 the RRC_IDLE phase, the UE 102 transmits 904 an RRC SETUP REQUEST message to the base station 104-1, the base station 104-1 transmits 906 an RRC SETUP message to the UE 102, the UE 102 enters 910 an RRC_CONNECTED state, and the UE 102 transmits 912 a PDCP PDU containing an RRC SETUP COMPLETE message and a short MAC-I to the base station 104-1, as described above for other implementations (e.g., with respect to Figure 4A and 4B ) described.
[0099] In one implementation and / or scenario, at some point before, during, or after transmission 912, 5GC 110 determines 914 that base station 104-1 is configured to a long MAC-I format (for purposes of communication with UE 102). For example, 5GC 110 may have configured base station 104-1 to a long MAC-I format in any of the ways discussed above (e.g., as described above in conjunction with Figure 5 6) learns that UE 102 supports the long MAC-I format. Then, when UE 102 connects to 5GC 110 via base station 104-1, 5GC 110 transmits 916 a message (e.g., an NGAP message such as an INITIAL CONTEXT SETUP REQUEST message) to base station 104-1. The message (e.g., in a long MAC-I configuration information element) indicates / instructs base station 104-1 to be configured to use the long MAC-I format for communications with UE 102 over one or more SRBs. By analyzing / processing the message, base station 104-1 determines 920 to be configured to use the long MAC-I format for (one or more) SRBs.
[0100] In alternative implementations and / or scenarios, the 5GC 110 does not determine 914 that the base station 104-1 is configured to use the long MAC-I format for communications with the UE 102 via the SRB(s). Instead, upon receiving (e.g., from the base station 104-2) an indication that the UE 102 supports the long MAC-I format, the 5GC 110 merely transmits 916 to the base station 104-1 an indication that the UE 102 supports the long MAC-I format (e.g., in a capability information element such as a UE-NR-Capability information element or a UE security capability information element in an NGAP message), and the base station 104-1 determines 920 based on the indication to be configured to use the long MAC-I format for the SRB(s).
[0101] In other scenarios where the 5GC 110 does not transmit 916 an indication that the UE supports the long MAC-I format or an instruction to be configured to use the long MAC-I format, the base station 104-1 is not configured to use the long MAC-I format for (one or more) SRBs, and the UE 102 is not configured to use the long MAC-I format for (one or more) SRBs. Alternatively, in such a scenario, the base station 104-1 can transmit a UE capability query message to the UE 102, and in response receive a UE capability information message from the UE 102, for example, as described above in conjunction with Figure 5 discussed.
[0102] return Fig.9A and 9B In the scenario of FIG. 1 , after the base station 104-1 determines 920 that the long MAC-I format is configured to be used for the SRB(s), the PDCP controller 162 of the base station 104-1 generates a PDCP PDU including a security mode command message and a short MAC-I. The security mode command message includes an indication that the UE 102 will be configured to use the long MAC-I format for communications with the base station 104-1 over the SRB(s). For example, the PDCP controller 162 may use any of the algorithms and keys discussed above (e.g., integrityProtAlgorithm and K RRCint The base station 104-1 transmits 922 a PDCP PDU including a security mode command message and a short MAC-I to the UE 102, and the UE 102 verifies 924 the short MAC-I using the same algorithm and key.
[0103] After successful verification of the short MAC-I, the PDCP controller 122 of the UE 102 generates a PDCP PDU containing a security mode complete message and a long MAC-I. For example, the PDCP controller 122 may use any of the algorithms and keys discussed above (e.g., integrityProtAlgorithm and K RRCint UE 102 transmits 926 a PDCP PDU including a security mode complete message and a long MAC-I to base station 104-1, and base station 104-1 verifies 930 the long MAC-I using the same algorithm and key.
[0104] At some time before, during, or after verification 930, 5GC 110 determines 932 that base station 104-1 is configured for a long MAC-I for a DRB or for a PDU session (and therefore, for the DRBs associated with the PDU session). 5GC 110 then transmits 934 a message to base station 104-1 instructing base station 104-1 to be configured to use a long MAC-I format for the DRB or PDU session. In response, base station 104-1 determines 936 that a long MAC-I is configured for the DRB or PDU session. The PDCP PDU controller 162 of base station 104-1 then generates a PDCP PDU including an RRC reconfiguration message and a long MAC-I. The RRC reconfiguration message includes an information element indicating that UE 102 is to enable integrity protection for the DRB or PDU session. Base station 104-1 transmits 940 a PDCP PDU to UE 102.
[0105] exist Fig.9A and 9B In the example scenario of , 5GC 110 then transmits 950 another data packet for the DRB (e.g., data associated with layer 154) to base station 104-1. PDCP controller 162 of base station 104-1 then generates a PDCP PDU containing the data packet and the long MAC-I. For example, the data packet may be an IP packet. In some implementations and / or scenarios, PDCP controller 162 may use the same integrity protection algorithm indicated by the field of the security mode command message and possibly the same key associated with the algorithm (e.g., K RRCint Key) to calculate the long MAC-I of the PDCP PDU. However, if the security configuration and / or RRC reconfiguration message indicates a different algorithm for integrity protection, the PDCP controller 162 may use that algorithm (e.g., and K RRCint The base station 104-1 then transmits 952 the PDCP PDU containing the data packet and the long MAC-I via the DRB, and the UE 102 verifies 954 the long MAC-I of the PDCP PDU (i.e., by calculating the long XMAC-I and comparing it to the received long MAC-I). In some embodiments and / or scenarios, the UE 102 and the base station 104-1 may instead generate a SDAPPDU for the DRB (e.g., as described above in conjunction with Figure 3A and 3B discussed).
[0106] After the UE 102 verifies 942 the long MAC-I, the UE 102 enables integrity protection for the DRB or PDU session. The PDCP controller 122 of the UE 102 may then generate a PDCP PDU containing the data packet and the long MAC-I. The UE 102 transmits 944 the PDCP PDU to the base station 104-1 via a DRB (i.e., a specific DRB for which the UE 102 is configured, or a DRB associated with a PDU session for which the UE 102 is configured), and the base station 104-1 verifies 946 the long MAC-I for the data packet. The base station 104-1 may then transmit 948 the data packet to the 5GC 110.
[0107] For the above combination Figure 2A-9B In one or more of the implementations and / or scenarios discussed, if the base station 104-1 configures the UE 102 to use the long MAC-I format in the security mode command message or the RRC reconfiguration message, the base station 104-1 may configure the UE 102 to reestablish the PDCP for the SRB or DRB in the security mode command message or the RRC reconfiguration message. For example, after the base station 104-1 transmits the security mode command message or the RRC reconfiguration message to the UE 102, the UE 102 may respond by reestablishing the PDCP entity for the SRB or DRB. As used in this disclosure, "PDCP entity" refers to a task, thread, or application responsible for PDCP communications for a specific context. The base station 104-1 may reestablish the PDCP entity for the SRB or DRB in response to configuring the UE 102 to reestablish the PDCP entity for the SRB. After reestablishing the PDCP entity, the UE 102 and the base station 104-1 may begin using the long MAC-I format. In some implementations, UE 102 and base station 104-1 reset PDCP state variables of the PDCP entity to initial values in response to re-establishing the PDCP entity.
[0108] In other implementations and / or scenarios, in the same security mode command message or RRC reconfiguration message that configures UE 102 to use the long MAC-I format, base station 104-1 may configure UE 102 not to reestablish PDCP for SRBs or DRBs. In this case, UE 102 does not reestablish the PDCP entity of SRBs or DRBs in response to the security mode command message or the RRC reconfiguration message, and base station 104-1 does not reestablish the PDCP entity of SRBs or DRBs. When a security mode complete message or an RRC reconfiguration complete message is transmitted to base station 104-1, UE 102 may start using the long MAC-I format. When a security mode complete message or an RRC reconfiguration complete message is received from UE 102, base station 104-1 may start using the long MAC-I format. In some implementations, if the PDCP entity is not reestablished, UE 102 and base station 104-1 do not reset the PDCP state variables of the PDCP entity to initial values.
[0109] In some implementations and / or scenarios, after base station 104-1 configures UE 102 to use the long MAC-I format for a session (e.g., as described above), base station 104-1 is not permitted to reconfigure UE 102 to use the short MAC-I format during the session.
[0110] Reference now Fig.10 , the example method 1000 for enhancing integrity protection may be used in a user device that supports multiple MAC lengths (such as, for example Figure 1 is implemented in UE 102).
[0111] At block 1002 of method 1000, a user equipment receives a signal from a base station (e.g., Figure 1 The base station 104-1) receives a first message including an information element. For example, the first message may include an RRC message (e.g., an RRC reconfiguration message) or a security mode command message, which includes an information element. As a more specific example, the first message may include Figure 2A Transmission 226, Figure 3A Transmission 326, Figure 4A Transmission 426, Fig. 7A Transmission 722, Fig. 8A Transmission 822 or Fig.9A The transmission 922 is associated with .
[0112] At block 1004, the user equipment determines, based on the information element, that a first MAC length (e.g., 64 bits, 128 bits, 256 bits, or another suitable length) of a plurality of MAC lengths (e.g., two MAC lengths, or three MAC lengths, etc.) is to be used for integrity protection. The user equipment may make the determination at block 1004 only for user plane messages, only for control plane messages, or for both user plane messages and control plane messages. In the above example, the user equipment determines at block 230 ( Figure 2A ), frame 330( Figure 3B ), frame 430( Figure 4B ), frame 724( Fig. 7A ), frame 824( Fig. 8A ), or block 924 ( Fig.9A ) to make that determination.
[0113] At block 1006, after making the determination at block 1004, the user equipment generates a second message including a MAC having a first MAC length. For example, the MAC may be a MAC-I (i.e., an access layer MAC). For example, block 1006 may include calculating the MAC (e.g., using any type of integrity protection algorithm discussed above) and appending the MAC to a payload in the second message. For example, in addition to the MAC, the second message may include an RRC message (e.g., an RRC reconfiguration complete message).
[0114] At block 1008, the user equipment transmits a second message to the base station, for example, Figure 2B Transmission 232, Figure 3B Transmission 332, Figure 4B Transmission 432, Fig. 7A Transmission 726, Fig. 8A Transmission 826, or Fig.9A 926. If the determination at block 1004 is for (at least) a user plane message, block 1004 may include generating a data packet, and block 1006 may include transmitting a second message (having the data packet and the MAC) over the DRB.
[0115] In some implementations and / or scenarios, method 1000 includes: Fig.10 1000 may include an additional block that occurs after block 1002, wherein the user device calculates an expected MAC having a second MAC length (e.g., 32 bits, or another suitable length) among the plurality of MAC lengths, and compares the expected MAC with the MAC in the first message to verify that the MAC in the first message is a valid MAC. For example, the user device may calculate the expected MAC using any type of integrity protection algorithm discussed above. For example, the second MAC length may be shorter than the first MAC length.
[0116] As another example, in an implementation and / or scenario where the determination at block 1004 is for a user plane message, method 1000 may include where the user equipment generates a third message including an RRC message (e.g., an RRC reconfiguration complete message) and a MAC having a second MAC length and where the user equipment transmits the third message to the base station (e.g., Figure 3B An additional box for transmission 332).
[0117] As another example, in an implementation and / or scenario where the determination at block 1004 is for both a user plane message and a control plane message, method 1000 may include where the user equipment generates a third message including an RRC message (e.g., an RRC reconfiguration complete message) and a MAC having a first MAC length, and where the user equipment transmits the third message (e.g., Figure 2B Transmission 232, Figure 4B Transmission 432, or Figure 7B An additional box for transmission 736).
[0118] As another example, in an implementation and / or scenario where the determination at block 1004 is for a control plane message, method 1000 may include the following additional blocks, wherein (1) the user equipment receives a third message including both a second RRC message (e.g., an RRC reconfiguration message) including another information element and a MAC having a first MAC length; (2) the user equipment calculates (e.g., using any type of integrity protection algorithm discussed above) an expected MAC having the first MAC length; (3) compares the expected MAC with the received MAC to verify that the received MAC is valid; (4) based on the information element in the second RRC message, determines to enable integrity protection for the user plane message; and (5) transmits the additional message to the base station. For example, the user equipment may generate Figure 8B Transmission 832.
[0119] In some implementations and / or scenarios, the user equipment receives a first message from a base station (eg, Figure 5 504) receives a message requesting the capabilities of the user equipment (e.g., an RRC UE capability query message), and in response transmits to the base station a message (e.g., an RRC UE capability information message) including an information element indicating that the user equipment supports the first MAC length, such as Figure 5 Transmission 506.
[0120] Fig.11 Describes the possibility of using a base station that supports multiple MAC lengths (such as, for example Figure 1An example method 1100 for enhancing integrity protection implemented in a base station 104-1 of a user equipment (e.g., Figure 1 UE 102) implements method 1000.
[0121] At block 1102 of method 1100, the base station determines that a first MAC length (e.g., 64 bits, 128 bits, 256 bits, or another suitable length) of a plurality of MAC lengths (e.g., two MAC lengths, or three MAC lengths, etc.) is to be used for integrity protection. Examples of this determination include Figure 2A Frame 224, Figure 3A Frame 324, Figure 4A Frame 424, Figure 6 620 of FIG. 7, 720 of FIG. 7, Fig. 8A The frame 820 and Fig.9A For example, block 1102 may include transmitting a message (e.g., an RRC UE capability query message) to a user equipment requesting capabilities of the user equipment, and in response receiving a message (e.g., an RRC UE capability information message) from the user equipment including an information element indicating that the user equipment supports the first MAC length. As a more specific example, the message may be related to Figure 5 Alternatively, block 1102 may include receiving from the core network (e.g., from 5GC 110) an indication that the user equipment supports the first MAC length, or a command to use (i.e., be configured to) the first MAC length (e.g., Figure 6 Transmission 616, Fig. 7A Transmission 716, Fig. 8A Transmission 816 or Fig.9A transmission 916).
[0122] At block 1104, the base station generates a first message including an information element indicating that a first MAC length is to be used for integrity protection. Block 1104 may include calculating a MAC having a second MAC length (e.g., shorter than the first MAC length) among a plurality of MAC lengths, and appending the MAC to a payload in the first message. For example, the base station may calculate the MAC using any type of integrity protection algorithm discussed above.
[0123] At block 1106, the base station transmits a first message to a user equipment (e.g., UE 102). For example, the first message may include an RRC message (e.g., an RRC reconfiguration message) or a security mode command message, and possibly a MAC with a second (e.g., shorter) MAC length. For example, the message may be associated with Figure 2A Transmission 226, Figure 3A Transmission 326, Figure 4A Transmission 426, Fig. 7A Transmission 722, Fig. 8A Transmission 822 or Fig.9A The transmission 922 is associated with .
[0124] At block 1108, after transmitting the first message at block 1106, the base station receives a second message including a MAC from the user equipment (e.g., a second message received by the base station from the user equipment). Figure 2B Transmission 232, Figure 3B Transmission 332, Figure 4B Transmission 432, Fig. 7A Transmission 726, Fig. 8A Transmission 826 or Fig.9A At block 1112, the base station compares the expected MAC with the MAC in the second message to verify that the MAC in the second message is a valid MAC (e.g., Figure 2B Verification 234, Figure 3B Verification 334, Figure 4B Verification 434, Fig. 7A Verification 730, Fig. 8A Verification of 830 or Fig.9A Verification 930).
[0125] The following additional considerations apply to the foregoing discussion.
[0126] The user equipment (e.g., UE 102) in which the technology of the present disclosure can be implemented can be any suitable device capable of wireless communication, such as a smart phone, a tablet computer, a laptop computer, a mobile game console, a point of sale (POS) terminal, a health monitoring device, a drone, a camera, a streaming media dongle or another person's media device, a wearable device such as a smart watch, a wireless hotspot, a femtocell, or a broadband router. In addition, in some cases, the user equipment can be embedded in an electronic system, such as a head unit or an advanced driver assistance system (ADAS) of a vehicle. Further, the user equipment can be operated as an Internet of Things (IoT) device or a mobile Internet device (MID). Depending on the type, the user equipment may include one or more general-purpose processors, a computer-readable memory, a user interface, one or more network interfaces, one or more sensors, etc.
[0127] Certain implementations are described in this disclosure as including logic or multiple components or modules. A module may be a software module (e.g., code stored on a non-transitory machine-readable medium) or a hardware module. A hardware module is a tangible unit that is capable of performing certain operations and may be configured or arranged in a certain manner. A hardware module may include dedicated circuits or logic that are permanently configured to perform certain operations (e.g., as a dedicated processor, such as a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC)). A hardware module may also include programmable logic or circuits (e.g., contained within a general-purpose processor or other programmable processor) that are temporarily configured by software to perform certain operations. The decision to implement a hardware module in a dedicated and permanently configured circuit or in a temporarily configured circuit (e.g., configured by software) may be driven by cost and time considerations.
[0128] When implemented in software, the techniques may be provided as part of an operating system, a library used by multiple applications, a specific software application, etc. The software may be executed by one or more general-purpose processors or one or more special-purpose processors.
[0129] After reading this disclosure, those skilled in the art will understand the principles disclosed herein for providing additional alternative structures and functional designs for integrity protection in wireless communication networks that generally support message authentication codes of different lengths. Therefore, although specific implementations and applications have been illustrated and described, it should be understood that the disclosed implementations are not limited to the precise constructions and components disclosed herein. Various modifications, changes and variations that are obvious to those of ordinary skill in the art may be made to the arrangement, operation and details of the methods and devices disclosed herein without departing from the spirit and scope defined in the appended claims.
Claims
1. A method in a user equipment supporting multiple message authentication code (MAC) lengths for integrity protection of wireless communications, the method comprising: receiving, from a base station, a first message including (i) an information element indicating a first MAC length of the plurality of MAC lengths and (ii) a MAC having a second MAC length of the plurality of MAC lengths; when the information element indicates that the first MAC length is to be used for integrity protection, generating a second message including a MAC having the first MAC length; as well as A second message is transmitted to the base station.
2. The method of claim 1, wherein: Receiving the first message includes receiving a first radio resource control (RRC) message; The method further includes: determining that a first MAC length is to be used for a user plane message; Generating the second message includes generating a data packet; Transmitting the second message to the base station comprises transmitting the second message via a data radio bearer (DRB); and The method further includes: generating a third message including a second RRC message and an additional MAC having the second MAC length or a third MAC length among a plurality of MAC lengths, and A third message is transmitted to the base station.
3. The method of claim 1, wherein: Receiving the first message includes receiving a first radio resource control (RRC) message; The method further includes: determining that a first MAC length is to be used for both user plane messages and control plane messages; Generating the second message includes generating a data packet; Transmitting the second message to the base station comprises transmitting the second message via a data radio bearer (DRB); and The method further includes: generating a third message including the second RRC message and an additional MAC having the first MAC length, and A third message is transmitted to the base station.
4. The method of claim 1, wherein: Receiving the first message includes receiving a safe mode command message; The method also includes: determining that a first MAC length is to be used for a control plane message; Generating the second message includes generating a first radio resource control (RRC) message; and The method also includes receiving a third message including (i) a second RRC message including another information element and (ii) a first MAC having a first MAC length, Calculate the expected MAC with the first MAC length, Compare the expected MAC to the first MAC to verify that the first MAC is a valid MAC, When the another information element indicates that integrity protection is enabled for the user plane message, generating a fourth message including the data packet and a second MAC having the first MAC length; and A fourth message is transmitted to the base station.
5. The method according to any one of claims 1 to 4, further comprising, before receiving the first message: receiving a message from a base station requesting capabilities of a user equipment; and In response to the message requesting the capability of the user equipment, a message including an information element indicating that the user equipment supports the first MAC length is transmitted to the base station.
6. A user equipment comprising hardware and configured to execute the method according to any one of claims 1 to 5.
7. A method in a base station supporting multiple message authentication code (MAC) lengths for integrity protection of wireless communications, the method comprising: generating a first message including (i) an information element indicating that a first MAC length of a plurality of MAC lengths is to be used for integrity protection and (ii) a MAC having a second MAC length of the plurality of MAC lengths; transmitting a first message to a user equipment; After transmitting the first message, receiving from the user equipment a second message including a MAC having a first MAC length; calculating an expected MAC having a first MAC length; as well as The expected MAC is compared to the MAC in the second message to verify that the MAC in the second message is a valid MAC.
8. The method of claim 7, further comprising: Before generating the first message, transmitting a message to the user equipment requesting capabilities of the user equipment; as well as In response to the message requesting capabilities of the user equipment, a message including an information element indicating that the user equipment supports a first MAC length is received from the user equipment.
9. The method of claim 7 or 8, wherein: Generating the first message includes generating a first radio resource control (RRC) message; The method further includes determining that a first MAC length is to be used for a user plane message; Receiving the second message comprises receiving a message including a data packet via a data radio bearer (DRB); as well as The method further includes receiving, from the user equipment, a third message including a second RRC message and an additional MAC having the second MAC length or a third MAC length among a plurality of MAC lengths.
10. The method according to claim 7 or 8, wherein: Generating the first message includes generating a first radio resource control (RRC) message; The method further includes determining that a first MAC length is to be used for both user plane messages and control plane messages; Receiving the second message comprises receiving a message including a data packet via a data radio bearer (DRB); and The method also includes receiving, from the user equipment, a third message including the second RRC message and an additional MAC having the first MAC length.
11. The method of claim 7 or 8, wherein: Generating the first message includes generating a safe mode command message; The method further includes determining that a first MAC length is to be used for a control plane message; Receiving the second message includes receiving a first radio resource control (RRC) message; as well as The method further includes: generating a third message including (i) a second RRC message including another information element and (ii) a first MAC having a first MAC length, transmitting a third message to the user equipment, and A fourth message including a data packet and a second MAC having the first MAC length is received from the user equipment.
12. A base station comprising hardware and configured to perform the method according to any one of claims 7 to 11.
13. A method in one or more core network elements, the method comprising: receiving a first message including a first information element from the first base station or the second base station; When the first information element indicates that the user equipment supports a first MAC length among a plurality of message authentication code MAC lengths supported by the first base station for integrity protection, generating a second message including a second information element indicating that the first MAC length is to be used for integrity protection of wireless communications between the first base station and the user equipment; as well as A second message is transmitted to the first base station to configure the first base station to use the first MAC length for wireless communication with the user equipment.
14. The method of claim 13, wherein: The second information element indicates that the first MAC length is to be used for integrity protection of wireless communications on a data radio bearer DRB or during a protocol data unit PDU session; as well as The second message is transmitted to the first base station for configuring the first base station to use the first MAC length for wireless communication with the user equipment over the DRB or during the PDU session.
15. The method of claim 14, further comprising, before generating the second message: generating a third message including a third information element indicating that the first MAC length is to be used for integrity protection of wireless communications on one or more signaling radio bearers (SRBs); and A third message is transmitted to the first base station to configure the first base station to use the first MAC length for wireless communications with the user equipment over the one or more SRBs.
16. One or more core network elements comprising hardware and configured to perform the method of any one of claims 13 to 15.
